@seamapi/types 1.841.0 → 1.843.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +171 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +119 -32
- package/dist/index.cjs +171 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +33 -18
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +9 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +12 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +4 -4
- package/lib/seam/connect/models/devices/device.d.ts +6 -6
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +4 -4
- package/lib/seam/connect/models/spaces/space.d.ts +6 -6
- package/lib/seam/connect/openapi.js +162 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +173 -0
- package/src/lib/seam/connect/route-types.ts +65 -0
|
@@ -9808,6 +9808,14 @@ const openapi = {
|
|
|
9808
9808
|
description: 'Your unique key for the customer associated with this connected account.',
|
|
9809
9809
|
type: 'string',
|
|
9810
9810
|
},
|
|
9811
|
+
default_checkin_time: {
|
|
9812
|
+
description: 'Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration — set during the connect_webview for providers like Lodgify whose API does not expose check-in times.',
|
|
9813
|
+
type: 'string',
|
|
9814
|
+
},
|
|
9815
|
+
default_checkout_time: {
|
|
9816
|
+
description: 'Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration.',
|
|
9817
|
+
type: 'string',
|
|
9818
|
+
},
|
|
9811
9819
|
display_name: {
|
|
9812
9820
|
description: 'Display name for the connected account.',
|
|
9813
9821
|
type: 'string',
|
|
@@ -9959,6 +9967,10 @@ const openapi = {
|
|
|
9959
9967
|
format: 'uri',
|
|
9960
9968
|
type: 'string',
|
|
9961
9969
|
},
|
|
9970
|
+
time_zone: {
|
|
9971
|
+
description: 'IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.',
|
|
9972
|
+
type: 'string',
|
|
9973
|
+
},
|
|
9962
9974
|
user_identifier: {
|
|
9963
9975
|
deprecated: true,
|
|
9964
9976
|
description: 'User identifier associated with the connected account.',
|
|
@@ -60372,6 +60384,133 @@ const openapi = {
|
|
|
60372
60384
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
60373
60385
|
},
|
|
60374
60386
|
},
|
|
60387
|
+
'/seam/customer/v1/connectors/external_sites/list': {
|
|
60388
|
+
get: {
|
|
60389
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
60390
|
+
operationId: 'seamCustomerV1ConnectorsExternalSitesListGet',
|
|
60391
|
+
parameters: [
|
|
60392
|
+
{
|
|
60393
|
+
in: 'query',
|
|
60394
|
+
name: 'connected_account_id',
|
|
60395
|
+
required: true,
|
|
60396
|
+
schema: {
|
|
60397
|
+
description: 'ID of the connected account to list external sites for',
|
|
60398
|
+
format: 'uuid',
|
|
60399
|
+
type: 'string',
|
|
60400
|
+
},
|
|
60401
|
+
},
|
|
60402
|
+
],
|
|
60403
|
+
responses: {
|
|
60404
|
+
200: {
|
|
60405
|
+
content: {
|
|
60406
|
+
'application/json': {
|
|
60407
|
+
schema: {
|
|
60408
|
+
properties: {
|
|
60409
|
+
external_sites: {
|
|
60410
|
+
items: {
|
|
60411
|
+
properties: {
|
|
60412
|
+
key: { type: 'string' },
|
|
60413
|
+
name: { type: 'string' },
|
|
60414
|
+
},
|
|
60415
|
+
required: ['key', 'name'],
|
|
60416
|
+
type: 'object',
|
|
60417
|
+
},
|
|
60418
|
+
type: 'array',
|
|
60419
|
+
},
|
|
60420
|
+
ok: { type: 'boolean' },
|
|
60421
|
+
},
|
|
60422
|
+
required: ['external_sites', 'ok'],
|
|
60423
|
+
type: 'object',
|
|
60424
|
+
},
|
|
60425
|
+
},
|
|
60426
|
+
},
|
|
60427
|
+
description: 'OK',
|
|
60428
|
+
},
|
|
60429
|
+
400: { description: 'Bad Request' },
|
|
60430
|
+
401: { description: 'Unauthorized' },
|
|
60431
|
+
},
|
|
60432
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
60433
|
+
summary: '/seam/customer/v1/connectors/external_sites/list',
|
|
60434
|
+
tags: [],
|
|
60435
|
+
'x-fern-sdk-group-name': [
|
|
60436
|
+
'seam',
|
|
60437
|
+
'customer',
|
|
60438
|
+
'v1',
|
|
60439
|
+
'connectors',
|
|
60440
|
+
'external_sites',
|
|
60441
|
+
],
|
|
60442
|
+
'x-fern-sdk-method-name': 'list',
|
|
60443
|
+
'x-fern-sdk-return-value': 'external_sites',
|
|
60444
|
+
'x-response-key': 'external_sites',
|
|
60445
|
+
'x-title': 'List External Sites for a Connected Account',
|
|
60446
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
60447
|
+
},
|
|
60448
|
+
post: {
|
|
60449
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
60450
|
+
operationId: 'seamCustomerV1ConnectorsExternalSitesListPost',
|
|
60451
|
+
requestBody: {
|
|
60452
|
+
content: {
|
|
60453
|
+
'application/json': {
|
|
60454
|
+
schema: {
|
|
60455
|
+
properties: {
|
|
60456
|
+
connected_account_id: {
|
|
60457
|
+
description: 'ID of the connected account to list external sites for',
|
|
60458
|
+
format: 'uuid',
|
|
60459
|
+
type: 'string',
|
|
60460
|
+
},
|
|
60461
|
+
},
|
|
60462
|
+
required: ['connected_account_id'],
|
|
60463
|
+
type: 'object',
|
|
60464
|
+
},
|
|
60465
|
+
},
|
|
60466
|
+
},
|
|
60467
|
+
},
|
|
60468
|
+
responses: {
|
|
60469
|
+
200: {
|
|
60470
|
+
content: {
|
|
60471
|
+
'application/json': {
|
|
60472
|
+
schema: {
|
|
60473
|
+
properties: {
|
|
60474
|
+
external_sites: {
|
|
60475
|
+
items: {
|
|
60476
|
+
properties: {
|
|
60477
|
+
key: { type: 'string' },
|
|
60478
|
+
name: { type: 'string' },
|
|
60479
|
+
},
|
|
60480
|
+
required: ['key', 'name'],
|
|
60481
|
+
type: 'object',
|
|
60482
|
+
},
|
|
60483
|
+
type: 'array',
|
|
60484
|
+
},
|
|
60485
|
+
ok: { type: 'boolean' },
|
|
60486
|
+
},
|
|
60487
|
+
required: ['external_sites', 'ok'],
|
|
60488
|
+
type: 'object',
|
|
60489
|
+
},
|
|
60490
|
+
},
|
|
60491
|
+
},
|
|
60492
|
+
description: 'OK',
|
|
60493
|
+
},
|
|
60494
|
+
400: { description: 'Bad Request' },
|
|
60495
|
+
401: { description: 'Unauthorized' },
|
|
60496
|
+
},
|
|
60497
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
60498
|
+
summary: '/seam/customer/v1/connectors/external_sites/list',
|
|
60499
|
+
tags: [],
|
|
60500
|
+
'x-fern-sdk-group-name': [
|
|
60501
|
+
'seam',
|
|
60502
|
+
'customer',
|
|
60503
|
+
'v1',
|
|
60504
|
+
'connectors',
|
|
60505
|
+
'external_sites',
|
|
60506
|
+
],
|
|
60507
|
+
'x-fern-sdk-method-name': 'list',
|
|
60508
|
+
'x-fern-sdk-return-value': 'external_sites',
|
|
60509
|
+
'x-response-key': 'external_sites',
|
|
60510
|
+
'x-title': 'List External Sites for a Connected Account',
|
|
60511
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
60512
|
+
},
|
|
60513
|
+
},
|
|
60375
60514
|
'/seam/customer/v1/connectors/ical/validate-config': {
|
|
60376
60515
|
post: {
|
|
60377
60516
|
description: 'Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.',
|
|
@@ -66403,6 +66542,29 @@ const openapi = {
|
|
|
66403
66542
|
items: { format: 'uuid', type: 'string' },
|
|
66404
66543
|
type: 'array',
|
|
66405
66544
|
},
|
|
66545
|
+
customer_data: {
|
|
66546
|
+
description: "Reservation/stay-related defaults for the space. When omitted and `connected_account_ids` is provided, `default_checkin_time` / `default_checkout_time` / `time_zone` are auto-inherited from the first connected account's connector configuration.",
|
|
66547
|
+
properties: {
|
|
66548
|
+
default_checkin_time: {
|
|
66549
|
+
description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
|
|
66550
|
+
nullable: true,
|
|
66551
|
+
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
|
|
66552
|
+
type: 'string',
|
|
66553
|
+
},
|
|
66554
|
+
default_checkout_time: {
|
|
66555
|
+
description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
|
|
66556
|
+
nullable: true,
|
|
66557
|
+
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
|
|
66558
|
+
type: 'string',
|
|
66559
|
+
},
|
|
66560
|
+
time_zone: {
|
|
66561
|
+
description: 'IANA time zone for the space, e.g. America/Los_Angeles.',
|
|
66562
|
+
nullable: true,
|
|
66563
|
+
type: 'string',
|
|
66564
|
+
},
|
|
66565
|
+
},
|
|
66566
|
+
type: 'object',
|
|
66567
|
+
},
|
|
66406
66568
|
device_ids: {
|
|
66407
66569
|
description: 'IDs of the devices that you want to add to the new space.',
|
|
66408
66570
|
items: { format: 'uuid', type: 'string' },
|