Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
249 changes: 0 additions & 249 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
97 changes: 0 additions & 97 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading