From 531109e873b92cc4df0eaec0ff26169563cf2131 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 24 Oct 2024 13:14:28 -0700 Subject: [PATCH] fix: Encoding a card does not require the acs_system_id --- src/lib/seam/connect/openapi.ts | 58 ++++++----------------------- src/lib/seam/connect/route-types.ts | 28 ++++---------- 2 files changed, 20 insertions(+), 66 deletions(-) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 6b51e7ba..9d3f924e 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -8214,34 +8214,12 @@ export default { content: { 'application/json': { schema: { - oneOf: [ - { - properties: { - acs_credential_id: { format: 'uuid', type: 'string' }, - acs_system_id: { format: 'uuid', type: 'string' }, - device_name: { type: 'string' }, - }, - required: [ - 'acs_system_id', - 'device_name', - 'acs_credential_id', - ], - type: 'object', - }, - { - properties: { - acs_credential_id: { format: 'uuid', type: 'string' }, - acs_system_id: { format: 'uuid', type: 'string' }, - device_id: { format: 'uuid', type: 'string' }, - }, - required: [ - 'acs_system_id', - 'device_id', - 'acs_credential_id', - ], - type: 'object', - }, - ], + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + device_id: { format: 'uuid', type: 'string' }, + }, + required: ['device_id', 'acs_credential_id'], + type: 'object', }, }, }, @@ -8374,24 +8352,12 @@ export default { content: { 'application/json': { schema: { - oneOf: [ - { - properties: { - acs_system_id: { format: 'uuid', type: 'string' }, - device_name: { type: 'string' }, - }, - required: ['acs_system_id', 'device_name'], - type: 'object', - }, - { - properties: { - acs_system_id: { format: 'uuid', type: 'string' }, - device_id: { format: 'uuid', type: 'string' }, - }, - required: ['acs_system_id', 'device_id'], - type: 'object', - }, - ], + properties: { + acs_system_id: { format: 'uuid', type: 'string' }, + device_id: { format: 'uuid', type: 'string' }, + }, + required: ['acs_system_id', 'device_id'], + type: 'object', }, }, }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 5a149a37..ad973fad 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -4742,17 +4742,10 @@ export interface Routes { method: 'POST' queryParams: {} jsonBody: {} - commonParams: - | { - acs_system_id: string - device_name: string - acs_credential_id: string - } - | { - acs_system_id: string - device_id: string - acs_credential_id: string - } + commonParams: { + device_id: string + acs_credential_id: string + } formData: {} jsonResponse: { action_attempt: @@ -6148,15 +6141,10 @@ export interface Routes { method: 'POST' queryParams: {} jsonBody: {} - commonParams: - | { - acs_system_id: string - device_name: string - } - | { - acs_system_id: string - device_id: string - } + commonParams: { + acs_system_id: string + device_id: string + } formData: {} jsonResponse: { action_attempt: