From da20f15bd2e2d021e2ce27aca188b7c0ea4ef7dd Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Wed, 29 Apr 2026 17:02:37 +0000 Subject: [PATCH] feat: Sync with Seam API via 9dc02823597d6cb96d7dd885295aad61ffa97034 --- src/lib/seam/connect/openapi.ts | 249 ---------------------------- src/lib/seam/connect/route-types.ts | 97 ----------- 2 files changed, 346 deletions(-) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index f9daf623..c16ce9bd 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -65421,255 +65421,6 @@ export default { 'x-undocumented': 'Internal endpoint for Console.', }, }, - '/seam/customer/v1/connectors/ical/generate-config': { - post: { - description: - "Fetches an iCal feed URL and uses AI to generate a parsing config\nbased on the feed's structure and content.", - operationId: 'seamCustomerV1ConnectorsIcalGenerateConfigPost', - requestBody: { - content: { - 'application/json': { - schema: { - properties: { - ical_url: { - description: 'iCal feed URL to analyze', - format: 'uri', - type: 'string', - }, - }, - required: ['ical_url'], - type: 'object', - }, - }, - }, - }, - responses: { - 200: { - content: { - 'application/json': { - schema: { - properties: { - generated_config: { - properties: { - ical_config: { - properties: { - default_check_in_time: { - description: - 'Default check-in time (HH:MM) used when iCal gives date-only values', - pattern: '^\\d{2}:\\d{2}$', - type: 'string', - }, - default_check_out_time: { - description: - 'Default check-out time (HH:MM) used when iCal gives date-only values', - pattern: '^\\d{2}:\\d{2}$', - type: 'string', - }, - fields: { - properties: { - ends_at: { - description: 'How to extract check-out date', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - guest_email: { - description: 'How to extract guest email', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - guest_name: { - description: 'How to extract guest name', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - guest_phone: { - description: 'How to extract guest phone', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - reservation_key: { - description: - 'How to extract the reservation key (falls back to UID)', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - starts_at: { - description: 'How to extract check-in date', - properties: { - pattern: { - description: - 'Regex with capture group to extract value from the property', - type: 'string', - }, - source: { - description: - 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', - type: 'string', - }, - type: { - description: - "Special type handling — 'date' parses iCal date formats", - enum: ['date'], - type: 'string', - }, - }, - required: ['source'], - type: 'object', - }, - }, - required: ['starts_at', 'ends_at'], - type: 'object', - }, - filter: { - description: - 'Optional filter to skip non-matching events', - properties: { - pattern: { - description: - 'Regex pattern — events not matching are skipped', - type: 'string', - }, - source: { - description: - 'iCal property name to match against', - type: 'string', - }, - }, - required: ['source', 'pattern'], - type: 'object', - }, - time_zone: { - description: - 'IANA time zone (e.g. America/New_York) applied when dates have no time/timezone', - type: 'string', - }, - }, - required: ['fields'], - type: 'object', - }, - }, - required: ['ical_config'], - type: 'object', - }, - ok: { type: 'boolean' }, - }, - required: ['generated_config', 'ok'], - type: 'object', - }, - }, - }, - description: 'OK', - }, - 400: { description: 'Bad Request' }, - 401: { description: 'Unauthorized' }, - }, - security: [{ api_key: [] }, { console_session_with_workspace: [] }], - summary: '/seam/customer/v1/connectors/ical/generate-config', - tags: [], - 'x-fern-sdk-group-name': [ - 'seam', - 'customer', - 'v1', - 'connectors', - 'ical', - ], - 'x-fern-sdk-method-name': 'generate-config', - 'x-fern-sdk-return-value': 'generated_config', - 'x-response-key': 'generated_config', - 'x-title': 'Generate iCal Config', - 'x-undocumented': 'Only used internally.', - }, - }, '/seam/customer/v1/connectors/ical/validate-config': { post: { description: diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 5ccfa43f..1aabc20b 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -76012,103 +76012,6 @@ export type Routes = { } maxDuration: undefined } - '/seam/customer/v1/connectors/ical/generate-config': { - route: '/seam/customer/v1/connectors/ical/generate-config' - method: 'POST' - queryParams: {} - jsonBody: { - /** iCal feed URL to analyze */ - ical_url: string - } - commonParams: {} - formData: {} - jsonResponse: { - generated_config: { - ical_config: { - /** Optional filter to skip non-matching events */ - filter?: - | { - /** iCal property name to match against */ - source: string - /** Regex pattern — events not matching are skipped */ - pattern: string - } - | undefined - fields: { - /** How to extract the reservation key (falls back to UID) */ - reservation_key?: - | { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - | undefined - /** How to extract guest name */ - guest_name?: - | { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - | undefined - /** How to extract guest email */ - guest_email?: - | { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - | undefined - /** How to extract guest phone */ - guest_phone?: - | { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - | undefined - /** How to extract check-in date */ - starts_at: { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - /** How to extract check-out date */ - ends_at: { - /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ - source: string - /** Regex with capture group to extract value from the property */ - pattern?: string | undefined - /** Special type handling — 'date' parses iCal date formats */ - type?: 'date' | undefined - } - } - /** IANA time zone (e.g. America/New_York) applied when dates have no time/timezone */ - time_zone?: string | undefined - /** Default check-in time (HH:MM) used when iCal gives date-only values */ - default_check_in_time?: string | undefined - /** Default check-out time (HH:MM) used when iCal gives date-only values */ - default_check_out_time?: string | undefined - } - } - } - maxDuration: undefined - } '/seam/customer/v1/connectors/ical/validate-config': { route: '/seam/customer/v1/connectors/ical/validate-config' method: 'POST'