@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
package/dist/index.cjs
CHANGED
|
@@ -756,6 +756,15 @@ var connected_account = zod.z.object({
|
|
|
756
756
|
),
|
|
757
757
|
accepted_capabilities: zod.z.array(provider_capability).describe(
|
|
758
758
|
"List of capabilities that were accepted during the account connection process."
|
|
759
|
+
),
|
|
760
|
+
default_checkin_time: zod.z.string().optional().describe(
|
|
761
|
+
"Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration \u2014 set during the connect_webview for providers like Lodgify whose API does not expose check-in times."
|
|
762
|
+
),
|
|
763
|
+
default_checkout_time: zod.z.string().optional().describe(
|
|
764
|
+
"Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration."
|
|
765
|
+
),
|
|
766
|
+
time_zone: zod.z.string().optional().describe(
|
|
767
|
+
"IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration."
|
|
759
768
|
)
|
|
760
769
|
}).describe(`
|
|
761
770
|
---
|
|
@@ -16765,6 +16774,14 @@ var openapi = {
|
|
|
16765
16774
|
description: "Your unique key for the customer associated with this connected account.",
|
|
16766
16775
|
type: "string"
|
|
16767
16776
|
},
|
|
16777
|
+
default_checkin_time: {
|
|
16778
|
+
description: "Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration \u2014 set during the connect_webview for providers like Lodgify whose API does not expose check-in times.",
|
|
16779
|
+
type: "string"
|
|
16780
|
+
},
|
|
16781
|
+
default_checkout_time: {
|
|
16782
|
+
description: "Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration.",
|
|
16783
|
+
type: "string"
|
|
16784
|
+
},
|
|
16768
16785
|
display_name: {
|
|
16769
16786
|
description: "Display name for the connected account.",
|
|
16770
16787
|
type: "string"
|
|
@@ -16916,6 +16933,10 @@ var openapi = {
|
|
|
16916
16933
|
format: "uri",
|
|
16917
16934
|
type: "string"
|
|
16918
16935
|
},
|
|
16936
|
+
time_zone: {
|
|
16937
|
+
description: "IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.",
|
|
16938
|
+
type: "string"
|
|
16939
|
+
},
|
|
16919
16940
|
user_identifier: {
|
|
16920
16941
|
deprecated: true,
|
|
16921
16942
|
description: "User identifier associated with the connected account.",
|
|
@@ -67329,6 +67350,133 @@ var openapi = {
|
|
|
67329
67350
|
"x-undocumented": "Internal endpoint for Console."
|
|
67330
67351
|
}
|
|
67331
67352
|
},
|
|
67353
|
+
"/seam/customer/v1/connectors/external_sites/list": {
|
|
67354
|
+
get: {
|
|
67355
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
67356
|
+
operationId: "seamCustomerV1ConnectorsExternalSitesListGet",
|
|
67357
|
+
parameters: [
|
|
67358
|
+
{
|
|
67359
|
+
in: "query",
|
|
67360
|
+
name: "connected_account_id",
|
|
67361
|
+
required: true,
|
|
67362
|
+
schema: {
|
|
67363
|
+
description: "ID of the connected account to list external sites for",
|
|
67364
|
+
format: "uuid",
|
|
67365
|
+
type: "string"
|
|
67366
|
+
}
|
|
67367
|
+
}
|
|
67368
|
+
],
|
|
67369
|
+
responses: {
|
|
67370
|
+
200: {
|
|
67371
|
+
content: {
|
|
67372
|
+
"application/json": {
|
|
67373
|
+
schema: {
|
|
67374
|
+
properties: {
|
|
67375
|
+
external_sites: {
|
|
67376
|
+
items: {
|
|
67377
|
+
properties: {
|
|
67378
|
+
key: { type: "string" },
|
|
67379
|
+
name: { type: "string" }
|
|
67380
|
+
},
|
|
67381
|
+
required: ["key", "name"],
|
|
67382
|
+
type: "object"
|
|
67383
|
+
},
|
|
67384
|
+
type: "array"
|
|
67385
|
+
},
|
|
67386
|
+
ok: { type: "boolean" }
|
|
67387
|
+
},
|
|
67388
|
+
required: ["external_sites", "ok"],
|
|
67389
|
+
type: "object"
|
|
67390
|
+
}
|
|
67391
|
+
}
|
|
67392
|
+
},
|
|
67393
|
+
description: "OK"
|
|
67394
|
+
},
|
|
67395
|
+
400: { description: "Bad Request" },
|
|
67396
|
+
401: { description: "Unauthorized" }
|
|
67397
|
+
},
|
|
67398
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
67399
|
+
summary: "/seam/customer/v1/connectors/external_sites/list",
|
|
67400
|
+
tags: [],
|
|
67401
|
+
"x-fern-sdk-group-name": [
|
|
67402
|
+
"seam",
|
|
67403
|
+
"customer",
|
|
67404
|
+
"v1",
|
|
67405
|
+
"connectors",
|
|
67406
|
+
"external_sites"
|
|
67407
|
+
],
|
|
67408
|
+
"x-fern-sdk-method-name": "list",
|
|
67409
|
+
"x-fern-sdk-return-value": "external_sites",
|
|
67410
|
+
"x-response-key": "external_sites",
|
|
67411
|
+
"x-title": "List External Sites for a Connected Account",
|
|
67412
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
67413
|
+
},
|
|
67414
|
+
post: {
|
|
67415
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
67416
|
+
operationId: "seamCustomerV1ConnectorsExternalSitesListPost",
|
|
67417
|
+
requestBody: {
|
|
67418
|
+
content: {
|
|
67419
|
+
"application/json": {
|
|
67420
|
+
schema: {
|
|
67421
|
+
properties: {
|
|
67422
|
+
connected_account_id: {
|
|
67423
|
+
description: "ID of the connected account to list external sites for",
|
|
67424
|
+
format: "uuid",
|
|
67425
|
+
type: "string"
|
|
67426
|
+
}
|
|
67427
|
+
},
|
|
67428
|
+
required: ["connected_account_id"],
|
|
67429
|
+
type: "object"
|
|
67430
|
+
}
|
|
67431
|
+
}
|
|
67432
|
+
}
|
|
67433
|
+
},
|
|
67434
|
+
responses: {
|
|
67435
|
+
200: {
|
|
67436
|
+
content: {
|
|
67437
|
+
"application/json": {
|
|
67438
|
+
schema: {
|
|
67439
|
+
properties: {
|
|
67440
|
+
external_sites: {
|
|
67441
|
+
items: {
|
|
67442
|
+
properties: {
|
|
67443
|
+
key: { type: "string" },
|
|
67444
|
+
name: { type: "string" }
|
|
67445
|
+
},
|
|
67446
|
+
required: ["key", "name"],
|
|
67447
|
+
type: "object"
|
|
67448
|
+
},
|
|
67449
|
+
type: "array"
|
|
67450
|
+
},
|
|
67451
|
+
ok: { type: "boolean" }
|
|
67452
|
+
},
|
|
67453
|
+
required: ["external_sites", "ok"],
|
|
67454
|
+
type: "object"
|
|
67455
|
+
}
|
|
67456
|
+
}
|
|
67457
|
+
},
|
|
67458
|
+
description: "OK"
|
|
67459
|
+
},
|
|
67460
|
+
400: { description: "Bad Request" },
|
|
67461
|
+
401: { description: "Unauthorized" }
|
|
67462
|
+
},
|
|
67463
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
67464
|
+
summary: "/seam/customer/v1/connectors/external_sites/list",
|
|
67465
|
+
tags: [],
|
|
67466
|
+
"x-fern-sdk-group-name": [
|
|
67467
|
+
"seam",
|
|
67468
|
+
"customer",
|
|
67469
|
+
"v1",
|
|
67470
|
+
"connectors",
|
|
67471
|
+
"external_sites"
|
|
67472
|
+
],
|
|
67473
|
+
"x-fern-sdk-method-name": "list",
|
|
67474
|
+
"x-fern-sdk-return-value": "external_sites",
|
|
67475
|
+
"x-response-key": "external_sites",
|
|
67476
|
+
"x-title": "List External Sites for a Connected Account",
|
|
67477
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
67478
|
+
}
|
|
67479
|
+
},
|
|
67332
67480
|
"/seam/customer/v1/connectors/ical/validate-config": {
|
|
67333
67481
|
post: {
|
|
67334
67482
|
description: "Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.",
|
|
@@ -73360,6 +73508,29 @@ var openapi = {
|
|
|
73360
73508
|
items: { format: "uuid", type: "string" },
|
|
73361
73509
|
type: "array"
|
|
73362
73510
|
},
|
|
73511
|
+
customer_data: {
|
|
73512
|
+
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.",
|
|
73513
|
+
properties: {
|
|
73514
|
+
default_checkin_time: {
|
|
73515
|
+
description: "Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.",
|
|
73516
|
+
nullable: true,
|
|
73517
|
+
pattern: "^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$",
|
|
73518
|
+
type: "string"
|
|
73519
|
+
},
|
|
73520
|
+
default_checkout_time: {
|
|
73521
|
+
description: "Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.",
|
|
73522
|
+
nullable: true,
|
|
73523
|
+
pattern: "^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$",
|
|
73524
|
+
type: "string"
|
|
73525
|
+
},
|
|
73526
|
+
time_zone: {
|
|
73527
|
+
description: "IANA time zone for the space, e.g. America/Los_Angeles.",
|
|
73528
|
+
nullable: true,
|
|
73529
|
+
type: "string"
|
|
73530
|
+
}
|
|
73531
|
+
},
|
|
73532
|
+
type: "object"
|
|
73533
|
+
},
|
|
73363
73534
|
device_ids: {
|
|
73364
73535
|
description: "IDs of the devices that you want to add to the new space.",
|
|
73365
73536
|
items: { format: "uuid", type: "string" },
|