@seamapi/types 1.408.0 → 1.409.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.
Files changed (30) hide show
  1. package/dist/connect.cjs +120 -246
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +240 -204
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/access-grants/access-grant.js +2 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-method.js +2 -1
  8. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  9. package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -5
  10. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  11. package/lib/seam/connect/models/pagination.d.ts +1 -0
  12. package/lib/seam/connect/models/spaces/space.js +6 -1
  13. package/lib/seam/connect/models/spaces/space.js.map +1 -1
  14. package/lib/seam/connect/openapi.d.ts +97 -202
  15. package/lib/seam/connect/openapi.js +92 -239
  16. package/lib/seam/connect/openapi.js.map +1 -1
  17. package/lib/seam/connect/route-types.d.ts +3 -0
  18. package/lib/seam/connect/schemas.d.ts +1 -1
  19. package/lib/seam/connect/schemas.js +1 -1
  20. package/lib/seam/connect/schemas.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/model-types.ts +6 -0
  23. package/src/lib/seam/connect/models/access-grants/access-grant.ts +2 -1
  24. package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -1
  25. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -5
  26. package/src/lib/seam/connect/models/pagination.ts +2 -0
  27. package/src/lib/seam/connect/models/spaces/space.ts +6 -1
  28. package/src/lib/seam/connect/openapi.ts +93 -251
  29. package/src/lib/seam/connect/route-types.ts +3 -0
  30. package/src/lib/seam/connect/schemas.ts +2 -0
package/dist/connect.cjs CHANGED
@@ -21,6 +21,7 @@ __export(schemas_exports, {
21
21
  action_attempt: () => action_attempt,
22
22
  bridge: () => bridge,
23
23
  bridge_client_session: () => bridge_client_session,
24
+ building_block_type: () => building_block_type,
24
25
  client_session: () => client_session,
25
26
  common_failed_action_attempt: () => common_failed_action_attempt,
26
27
  common_pending_action_attempt: () => common_pending_action_attempt,
@@ -31,6 +32,7 @@ __export(schemas_exports, {
31
32
  device: () => device,
32
33
  device_provider: () => device_provider,
33
34
  instant_key: () => instant_key,
35
+ magic_link: () => magic_link,
34
36
  noise_threshold: () => noise_threshold,
35
37
  pagination: () => pagination,
36
38
  seam_event: () => seam_event,
@@ -2366,7 +2368,8 @@ var access_method = zod.z.object({
2366
2368
  )
2367
2369
  }).describe(`
2368
2370
  ---
2369
- undocumented: Unreleased.
2371
+ draft: Early access.
2372
+ route_path: /access_methods
2370
2373
  ---
2371
2374
  `);
2372
2375
  var acs_access_group_external_type = zod.z.enum([
@@ -5069,6 +5072,24 @@ var pagination = zod.z.object({
5069
5072
  ),
5070
5073
  next_page_url: zod.z.string().url().nullable().describe("URL to get the next page of results.")
5071
5074
  }).describe("Information about the current page of results.");
5075
+ var building_block_type = zod.z.enum([
5076
+ "connect_accounts",
5077
+ "manage_devices",
5078
+ "organize_spaces"
5079
+ ]);
5080
+ var magic_link = zod.z.object({
5081
+ url: zod.z.string().url(),
5082
+ building_block_type,
5083
+ customer_key: zod.z.string(),
5084
+ expires_at: zod.z.string().datetime(),
5085
+ workspace_id: zod.z.string().uuid(),
5086
+ created_at: zod.z.string().datetime()
5087
+ }).describe(`
5088
+ ---
5089
+ undocumented: Unreleased.
5090
+ route_path: /unstable_partner/building_blocks
5091
+ ---
5092
+ `);
5072
5093
  var user_identity = zod.z.object({
5073
5094
  user_identity_id: zod.z.string().uuid().describe("ID of the user identity."),
5074
5095
  user_identity_key: zod.z.string().min(1).nullable().describe("Unique key for the user identity."),
@@ -19732,17 +19753,6 @@ var openapi_default = {
19732
19753
  "x-route-path": "/unstable_partner/building_blocks",
19733
19754
  "x-undocumented": "Unreleased."
19734
19755
  },
19735
- network: {
19736
- properties: {
19737
- created_at: { format: "date-time", type: "string" },
19738
- display_name: { type: "string" },
19739
- network_id: { format: "uuid", type: "string" },
19740
- workspace_id: { format: "uuid", type: "string" }
19741
- },
19742
- required: ["network_id", "workspace_id", "display_name", "created_at"],
19743
- type: "object",
19744
- "x-route-path": "/networks"
19745
- },
19746
19756
  noise_threshold: {
19747
19757
  description: "Represents a [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/latest/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.",
19748
19758
  properties: {
@@ -20499,6 +20509,40 @@ var openapi_default = {
20499
20509
  "x-route-path": "/seam/mobile_sdk/v1/phone_sessions",
20500
20510
  "x-undocumented": "Seam Mobile SDK only."
20501
20511
  },
20512
+ space: {
20513
+ properties: {
20514
+ created_at: {
20515
+ description: "Date and time at which the space object was created.",
20516
+ format: "date-time",
20517
+ type: "string"
20518
+ },
20519
+ display_name: {
20520
+ description: "Display name of the space.",
20521
+ type: "string"
20522
+ },
20523
+ name: { description: "Name of the space.", type: "string" },
20524
+ space_id: {
20525
+ description: "Unique identifier for the space.",
20526
+ format: "uuid",
20527
+ type: "string"
20528
+ },
20529
+ workspace_id: {
20530
+ description: "Unique identifier for the Seam workspace associated with the space.",
20531
+ format: "uuid",
20532
+ type: "string"
20533
+ }
20534
+ },
20535
+ required: [
20536
+ "space_id",
20537
+ "workspace_id",
20538
+ "name",
20539
+ "display_name",
20540
+ "created_at"
20541
+ ],
20542
+ type: "object",
20543
+ "x-draft": "Early access.",
20544
+ "x-route-path": "/spaces"
20545
+ },
20502
20546
  thermostat_schedule: {
20503
20547
  description: "Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.",
20504
20548
  properties: {
@@ -25975,8 +26019,7 @@ var openapi_default = {
25975
26019
  "created_at",
25976
26020
  "created_access_method_ids"
25977
26021
  ],
25978
- type: "object",
25979
- "x-undocumented": "Unreleased."
26022
+ type: "object"
25980
26023
  },
25981
26024
  type: "array"
25982
26025
  },
@@ -26008,7 +26051,8 @@ var openapi_default = {
26008
26051
  "created_at"
26009
26052
  ],
26010
26053
  type: "object",
26011
- "x-undocumented": "Unreleased."
26054
+ "x-draft": "Early access.",
26055
+ "x-route-path": "/access_grants"
26012
26056
  },
26013
26057
  ok: { type: "boolean" }
26014
26058
  },
@@ -26174,8 +26218,7 @@ var openapi_default = {
26174
26218
  "created_at",
26175
26219
  "created_access_method_ids"
26176
26220
  ],
26177
- type: "object",
26178
- "x-undocumented": "Unreleased."
26221
+ type: "object"
26179
26222
  },
26180
26223
  type: "array"
26181
26224
  },
@@ -26207,7 +26250,8 @@ var openapi_default = {
26207
26250
  "created_at"
26208
26251
  ],
26209
26252
  type: "object",
26210
- "x-undocumented": "Unreleased."
26253
+ "x-draft": "Early access.",
26254
+ "x-route-path": "/access_grants"
26211
26255
  },
26212
26256
  ok: { type: "boolean" }
26213
26257
  },
@@ -26342,8 +26386,7 @@ var openapi_default = {
26342
26386
  "created_at",
26343
26387
  "created_access_method_ids"
26344
26388
  ],
26345
- type: "object",
26346
- "x-undocumented": "Unreleased."
26389
+ type: "object"
26347
26390
  },
26348
26391
  type: "array"
26349
26392
  },
@@ -26375,7 +26418,8 @@ var openapi_default = {
26375
26418
  "created_at"
26376
26419
  ],
26377
26420
  type: "object",
26378
- "x-undocumented": "Unreleased."
26421
+ "x-draft": "Early access.",
26422
+ "x-route-path": "/access_grants"
26379
26423
  },
26380
26424
  type: "array"
26381
26425
  },
@@ -26533,7 +26577,8 @@ var openapi_default = {
26533
26577
  "created_at"
26534
26578
  ],
26535
26579
  type: "object",
26536
- "x-undocumented": "Unreleased."
26580
+ "x-draft": "Early access.",
26581
+ "x-route-path": "/access_methods"
26537
26582
  },
26538
26583
  ok: { type: "boolean" }
26539
26584
  },
@@ -26638,7 +26683,8 @@ var openapi_default = {
26638
26683
  "created_at"
26639
26684
  ],
26640
26685
  type: "object",
26641
- "x-undocumented": "Unreleased."
26686
+ "x-draft": "Early access.",
26687
+ "x-route-path": "/access_methods"
26642
26688
  },
26643
26689
  type: "array"
26644
26690
  },
@@ -34324,7 +34370,22 @@ var openapi_default = {
34324
34370
  "application/json": {
34325
34371
  schema: {
34326
34372
  properties: {
34327
- network: { $ref: "#/components/schemas/network" },
34373
+ network: {
34374
+ properties: {
34375
+ created_at: { format: "date-time", type: "string" },
34376
+ display_name: { type: "string" },
34377
+ network_id: { format: "uuid", type: "string" },
34378
+ workspace_id: { format: "uuid", type: "string" }
34379
+ },
34380
+ required: [
34381
+ "network_id",
34382
+ "workspace_id",
34383
+ "display_name",
34384
+ "created_at"
34385
+ ],
34386
+ type: "object",
34387
+ "x-route-path": "/networks"
34388
+ },
34328
34389
  ok: { type: "boolean" }
34329
34390
  },
34330
34391
  required: ["network", "ok"],
@@ -34367,7 +34428,22 @@ var openapi_default = {
34367
34428
  schema: {
34368
34429
  properties: {
34369
34430
  networks: {
34370
- items: { $ref: "#/components/schemas/network" },
34431
+ items: {
34432
+ properties: {
34433
+ created_at: { format: "date-time", type: "string" },
34434
+ display_name: { type: "string" },
34435
+ network_id: { format: "uuid", type: "string" },
34436
+ workspace_id: { format: "uuid", type: "string" }
34437
+ },
34438
+ required: [
34439
+ "network_id",
34440
+ "workspace_id",
34441
+ "display_name",
34442
+ "created_at"
34443
+ ],
34444
+ type: "object",
34445
+ "x-route-path": "/networks"
34446
+ },
34371
34447
  type: "array"
34372
34448
  },
34373
34449
  ok: { type: "boolean" }
@@ -37066,41 +37142,7 @@ var openapi_default = {
37066
37142
  schema: {
37067
37143
  properties: {
37068
37144
  ok: { type: "boolean" },
37069
- space: {
37070
- properties: {
37071
- created_at: {
37072
- description: "Date and time at which the space object was created.",
37073
- format: "date-time",
37074
- type: "string"
37075
- },
37076
- display_name: {
37077
- description: "Display name of the space.",
37078
- type: "string"
37079
- },
37080
- name: {
37081
- description: "Name of the space.",
37082
- type: "string"
37083
- },
37084
- space_id: {
37085
- description: "Unique identifier for the space.",
37086
- format: "uuid",
37087
- type: "string"
37088
- },
37089
- workspace_id: {
37090
- description: "Unique identifier for the Seam workspace associated with the space.",
37091
- format: "uuid",
37092
- type: "string"
37093
- }
37094
- },
37095
- required: [
37096
- "space_id",
37097
- "workspace_id",
37098
- "name",
37099
- "display_name",
37100
- "created_at"
37101
- ],
37102
- type: "object"
37103
- }
37145
+ space: { $ref: "#/components/schemas/space" }
37104
37146
  },
37105
37147
  required: ["space", "ok"],
37106
37148
  type: "object"
@@ -37192,41 +37234,7 @@ var openapi_default = {
37192
37234
  schema: {
37193
37235
  properties: {
37194
37236
  ok: { type: "boolean" },
37195
- space: {
37196
- properties: {
37197
- created_at: {
37198
- description: "Date and time at which the space object was created.",
37199
- format: "date-time",
37200
- type: "string"
37201
- },
37202
- display_name: {
37203
- description: "Display name of the space.",
37204
- type: "string"
37205
- },
37206
- name: {
37207
- description: "Name of the space.",
37208
- type: "string"
37209
- },
37210
- space_id: {
37211
- description: "Unique identifier for the space.",
37212
- format: "uuid",
37213
- type: "string"
37214
- },
37215
- workspace_id: {
37216
- description: "Unique identifier for the Seam workspace associated with the space.",
37217
- format: "uuid",
37218
- type: "string"
37219
- }
37220
- },
37221
- required: [
37222
- "space_id",
37223
- "workspace_id",
37224
- "name",
37225
- "display_name",
37226
- "created_at"
37227
- ],
37228
- type: "object"
37229
- }
37237
+ space: { $ref: "#/components/schemas/space" }
37230
37238
  },
37231
37239
  required: ["space", "ok"],
37232
37240
  type: "object"
@@ -37264,41 +37272,7 @@ var openapi_default = {
37264
37272
  properties: {
37265
37273
  ok: { type: "boolean" },
37266
37274
  spaces: {
37267
- items: {
37268
- properties: {
37269
- created_at: {
37270
- description: "Date and time at which the space object was created.",
37271
- format: "date-time",
37272
- type: "string"
37273
- },
37274
- display_name: {
37275
- description: "Display name of the space.",
37276
- type: "string"
37277
- },
37278
- name: {
37279
- description: "Name of the space.",
37280
- type: "string"
37281
- },
37282
- space_id: {
37283
- description: "Unique identifier for the space.",
37284
- format: "uuid",
37285
- type: "string"
37286
- },
37287
- workspace_id: {
37288
- description: "Unique identifier for the Seam workspace associated with the space.",
37289
- format: "uuid",
37290
- type: "string"
37291
- }
37292
- },
37293
- required: [
37294
- "space_id",
37295
- "workspace_id",
37296
- "name",
37297
- "display_name",
37298
- "created_at"
37299
- ],
37300
- type: "object"
37301
- },
37275
+ items: { $ref: "#/components/schemas/space" },
37302
37276
  type: "array"
37303
37277
  }
37304
37278
  },
@@ -37334,41 +37308,7 @@ var openapi_default = {
37334
37308
  properties: {
37335
37309
  ok: { type: "boolean" },
37336
37310
  spaces: {
37337
- items: {
37338
- properties: {
37339
- created_at: {
37340
- description: "Date and time at which the space object was created.",
37341
- format: "date-time",
37342
- type: "string"
37343
- },
37344
- display_name: {
37345
- description: "Display name of the space.",
37346
- type: "string"
37347
- },
37348
- name: {
37349
- description: "Name of the space.",
37350
- type: "string"
37351
- },
37352
- space_id: {
37353
- description: "Unique identifier for the space.",
37354
- format: "uuid",
37355
- type: "string"
37356
- },
37357
- workspace_id: {
37358
- description: "Unique identifier for the Seam workspace associated with the space.",
37359
- format: "uuid",
37360
- type: "string"
37361
- }
37362
- },
37363
- required: [
37364
- "space_id",
37365
- "workspace_id",
37366
- "name",
37367
- "display_name",
37368
- "created_at"
37369
- ],
37370
- type: "object"
37371
- },
37311
+ items: { $ref: "#/components/schemas/space" },
37372
37312
  type: "array"
37373
37313
  }
37374
37314
  },
@@ -37521,41 +37461,7 @@ var openapi_default = {
37521
37461
  schema: {
37522
37462
  properties: {
37523
37463
  ok: { type: "boolean" },
37524
- space: {
37525
- properties: {
37526
- created_at: {
37527
- description: "Date and time at which the space object was created.",
37528
- format: "date-time",
37529
- type: "string"
37530
- },
37531
- display_name: {
37532
- description: "Display name of the space.",
37533
- type: "string"
37534
- },
37535
- name: {
37536
- description: "Name of the space.",
37537
- type: "string"
37538
- },
37539
- space_id: {
37540
- description: "Unique identifier for the space.",
37541
- format: "uuid",
37542
- type: "string"
37543
- },
37544
- workspace_id: {
37545
- description: "Unique identifier for the Seam workspace associated with the space.",
37546
- format: "uuid",
37547
- type: "string"
37548
- }
37549
- },
37550
- required: [
37551
- "space_id",
37552
- "workspace_id",
37553
- "name",
37554
- "display_name",
37555
- "created_at"
37556
- ],
37557
- type: "object"
37558
- }
37464
+ space: { $ref: "#/components/schemas/space" }
37559
37465
  },
37560
37466
  required: ["space", "ok"],
37561
37467
  type: "object"
@@ -37602,41 +37508,7 @@ var openapi_default = {
37602
37508
  schema: {
37603
37509
  properties: {
37604
37510
  ok: { type: "boolean" },
37605
- space: {
37606
- properties: {
37607
- created_at: {
37608
- description: "Date and time at which the space object was created.",
37609
- format: "date-time",
37610
- type: "string"
37611
- },
37612
- display_name: {
37613
- description: "Display name of the space.",
37614
- type: "string"
37615
- },
37616
- name: {
37617
- description: "Name of the space.",
37618
- type: "string"
37619
- },
37620
- space_id: {
37621
- description: "Unique identifier for the space.",
37622
- format: "uuid",
37623
- type: "string"
37624
- },
37625
- workspace_id: {
37626
- description: "Unique identifier for the Seam workspace associated with the space.",
37627
- format: "uuid",
37628
- type: "string"
37629
- }
37630
- },
37631
- required: [
37632
- "space_id",
37633
- "workspace_id",
37634
- "name",
37635
- "display_name",
37636
- "created_at"
37637
- ],
37638
- type: "object"
37639
- }
37511
+ space: { $ref: "#/components/schemas/space" }
37640
37512
  },
37641
37513
  required: ["space", "ok"],
37642
37514
  type: "object"
@@ -40317,8 +40189,7 @@ var openapi_default = {
40317
40189
  "created_at",
40318
40190
  "created_access_method_ids"
40319
40191
  ],
40320
- type: "object",
40321
- "x-undocumented": "Unreleased."
40192
+ type: "object"
40322
40193
  },
40323
40194
  type: "array"
40324
40195
  },
@@ -40350,7 +40221,8 @@ var openapi_default = {
40350
40221
  "created_at"
40351
40222
  ],
40352
40223
  type: "object",
40353
- "x-undocumented": "Unreleased."
40224
+ "x-draft": "Early access.",
40225
+ "x-route-path": "/access_grants"
40354
40226
  },
40355
40227
  ok: { type: "boolean" }
40356
40228
  },
@@ -40516,8 +40388,7 @@ var openapi_default = {
40516
40388
  "created_at",
40517
40389
  "created_access_method_ids"
40518
40390
  ],
40519
- type: "object",
40520
- "x-undocumented": "Unreleased."
40391
+ type: "object"
40521
40392
  },
40522
40393
  type: "array"
40523
40394
  },
@@ -40549,7 +40420,8 @@ var openapi_default = {
40549
40420
  "created_at"
40550
40421
  ],
40551
40422
  type: "object",
40552
- "x-undocumented": "Unreleased."
40423
+ "x-draft": "Early access.",
40424
+ "x-route-path": "/access_grants"
40553
40425
  },
40554
40426
  ok: { type: "boolean" }
40555
40427
  },
@@ -40684,8 +40556,7 @@ var openapi_default = {
40684
40556
  "created_at",
40685
40557
  "created_access_method_ids"
40686
40558
  ],
40687
- type: "object",
40688
- "x-undocumented": "Unreleased."
40559
+ type: "object"
40689
40560
  },
40690
40561
  type: "array"
40691
40562
  },
@@ -40717,7 +40588,8 @@ var openapi_default = {
40717
40588
  "created_at"
40718
40589
  ],
40719
40590
  type: "object",
40720
- "x-undocumented": "Unreleased."
40591
+ "x-draft": "Early access.",
40592
+ "x-route-path": "/access_grants"
40721
40593
  },
40722
40594
  type: "array"
40723
40595
  },
@@ -40875,7 +40747,8 @@ var openapi_default = {
40875
40747
  "created_at"
40876
40748
  ],
40877
40749
  type: "object",
40878
- "x-undocumented": "Unreleased."
40750
+ "x-draft": "Early access.",
40751
+ "x-route-path": "/access_methods"
40879
40752
  },
40880
40753
  ok: { type: "boolean" }
40881
40754
  },
@@ -40980,7 +40853,8 @@ var openapi_default = {
40980
40853
  "created_at"
40981
40854
  ],
40982
40855
  type: "object",
40983
- "x-undocumented": "Unreleased."
40856
+ "x-draft": "Early access.",
40857
+ "x-route-path": "/access_methods"
40984
40858
  },
40985
40859
  type: "array"
40986
40860
  },