@seamapi/types 1.384.0 → 1.386.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 (46) hide show
  1. package/dist/connect.cjs +629 -150
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4211 -445
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -5
  5. package/lib/seam/connect/models/access-grants/access-grant.js +3 -0
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
  8. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
  9. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +156 -0
  11. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
  12. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +80 -0
  14. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +28 -0
  15. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -0
  16. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +80 -0
  17. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +28 -0
  18. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -0
  19. package/lib/seam/connect/models/colors.d.ts +2 -0
  20. package/lib/seam/connect/models/colors.js +8 -0
  21. package/lib/seam/connect/models/colors.js.map +1 -0
  22. package/lib/seam/connect/models/events/access-grants.d.ts +277 -0
  23. package/lib/seam/connect/models/events/access-grants.js +60 -0
  24. package/lib/seam/connect/models/events/access-grants.js.map +1 -0
  25. package/lib/seam/connect/models/events/access-methods.d.ts +146 -0
  26. package/lib/seam/connect/models/events/access-methods.js +35 -0
  27. package/lib/seam/connect/models/events/access-methods.js.map +1 -0
  28. package/lib/seam/connect/models/workspaces/workspace.d.ts +33 -0
  29. package/lib/seam/connect/models/workspaces/workspace.js +8 -0
  30. package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
  31. package/lib/seam/connect/openapi.d.ts +523 -225
  32. package/lib/seam/connect/openapi.js +592 -171
  33. package/lib/seam/connect/openapi.js.map +1 -1
  34. package/lib/seam/connect/route-types.d.ts +3477 -198
  35. package/package.json +2 -2
  36. package/src/lib/seam/connect/models/access-grants/access-grant.ts +5 -0
  37. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +4 -2
  38. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
  39. package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +39 -0
  40. package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +37 -0
  41. package/src/lib/seam/connect/models/colors.ts +9 -0
  42. package/src/lib/seam/connect/models/events/access-grants.ts +92 -0
  43. package/src/lib/seam/connect/models/events/access-methods.ts +51 -0
  44. package/src/lib/seam/connect/models/workspaces/workspace.ts +9 -0
  45. package/src/lib/seam/connect/openapi.ts +615 -175
  46. package/src/lib/seam/connect/route-types.ts +3793 -36
package/dist/connect.cjs CHANGED
@@ -3009,21 +3009,62 @@ var set_hvac_mode_action_attempt = zod.z.discriminatedUnion("status", [
3009
3009
  }).describe("Setting HVAC mode succeeded."),
3010
3010
  common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Setting HVAC mode failed.")
3011
3011
  ]);
3012
- var action_type8 = zod.z.literal("UNLOCK_DOOR");
3012
+ var action_type8 = zod.z.literal("SIMULATE_KEYPAD_CODE_ENTRY");
3013
3013
  var error9 = zod.z.object({
3014
3014
  type: zod.z.string(),
3015
3015
  message: zod.z.string()
3016
3016
  });
3017
3017
  var result9 = zod.z.object({});
3018
+ var simulate_keypad_code_entry_action_attempt = zod.z.discriminatedUnion(
3019
+ "status",
3020
+ [
3021
+ common_pending_action_attempt.extend({
3022
+ action_type: action_type8
3023
+ }).describe("Simulating keypad code entry."),
3024
+ common_succeeded_action_attempt.extend({
3025
+ action_type: action_type8,
3026
+ result: result9
3027
+ }).describe("Simulating keypad code entry succeeded."),
3028
+ common_failed_action_attempt.extend({
3029
+ action_type: action_type8,
3030
+ error: error9
3031
+ }).describe("Simulating keypad code entry failed.")
3032
+ ]
3033
+ );
3034
+ var action_type9 = zod.z.literal("SIMULATE_MANUAL_LOCK_VIA_KEYPAD");
3035
+ var error10 = zod.z.object({
3036
+ type: zod.z.string(),
3037
+ message: zod.z.string()
3038
+ });
3039
+ var result10 = zod.z.object({});
3040
+ var simulate_manual_lock_via_keypad_action_attempt = zod.z.discriminatedUnion("status", [
3041
+ common_pending_action_attempt.extend({
3042
+ action_type: action_type9
3043
+ }).describe("Simulating manual lock via keypad."),
3044
+ common_succeeded_action_attempt.extend({
3045
+ action_type: action_type9,
3046
+ result: result10
3047
+ }).describe("Simulating manual lock via keypad succeeded."),
3048
+ common_failed_action_attempt.extend({
3049
+ action_type: action_type9,
3050
+ error: error10
3051
+ }).describe("Simulating manual lock via keypad failed.")
3052
+ ]);
3053
+ var action_type10 = zod.z.literal("UNLOCK_DOOR");
3054
+ var error11 = zod.z.object({
3055
+ type: zod.z.string(),
3056
+ message: zod.z.string()
3057
+ });
3058
+ var result11 = zod.z.object({});
3018
3059
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
3019
3060
  common_pending_action_attempt.extend({
3020
- action_type: action_type8
3061
+ action_type: action_type10
3021
3062
  }).describe("Unlocking door."),
3022
3063
  common_succeeded_action_attempt.extend({
3023
- action_type: action_type8,
3024
- result: result9
3064
+ action_type: action_type10,
3065
+ result: result11
3025
3066
  }).describe("Unlocking door succeeded."),
3026
- common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Unlocking door failed.")
3067
+ common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Unlocking door failed.")
3027
3068
  ]);
3028
3069
 
3029
3070
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -3036,6 +3077,8 @@ var action_attempt = zod.z.union([
3036
3077
  ...set_fan_mode_action_attempt.options,
3037
3078
  ...set_hvac_mode_action_attempt.options,
3038
3079
  ...activate_climate_preset_action_attempt.options,
3080
+ ...simulate_keypad_code_entry_action_attempt.options,
3081
+ ...simulate_manual_lock_via_keypad_action_attempt.options,
3039
3082
  ...deprecated_action_attempts
3040
3083
  ]).describe(`
3041
3084
  ---
@@ -4238,11 +4281,26 @@ var webhook = zod.z.object({
4238
4281
  route_path: /webhooks
4239
4282
  ---
4240
4283
  `);
4284
+ var hex_color_code = zod.z.string().refine((value) => {
4285
+ if (value != null) {
4286
+ return /^#[\da-fa-z]{3,6}$/i.test(value);
4287
+ }
4288
+ return true;
4289
+ }, "Must be a hex color");
4290
+
4291
+ // src/lib/seam/connect/models/workspaces/workspace.ts
4241
4292
  var workspace = zod.z.object({
4242
4293
  workspace_id: zod.z.string().uuid(),
4243
4294
  name: zod.z.string(),
4244
4295
  company_name: zod.z.string(),
4245
4296
  is_sandbox: zod.z.boolean(),
4297
+ connect_webview_customization: zod.z.object({
4298
+ primary_button_color: hex_color_code.optional(),
4299
+ primary_button_text_color: hex_color_code.optional(),
4300
+ success_message: zod.z.string().optional(),
4301
+ logo_shape: zod.z.enum(["circle", "square"]).optional(),
4302
+ inviter_logo_url: zod.z.string().optional()
4303
+ }),
4246
4304
  is_suspended: zod.z.boolean().describe("True if a sandbox workspace has not been accessed in 14 days"),
4247
4305
  connect_partner_name: zod.z.string().nullable().describe(
4248
4306
  `
@@ -9466,6 +9524,194 @@ var openapi_default = {
9466
9524
  ],
9467
9525
  type: "object"
9468
9526
  },
9527
+ {
9528
+ description: "Simulating keypad code entry.",
9529
+ properties: {
9530
+ action_attempt_id: {
9531
+ description: "ID of the action attempt.",
9532
+ format: "uuid",
9533
+ type: "string"
9534
+ },
9535
+ action_type: {
9536
+ enum: ["SIMULATE_KEYPAD_CODE_ENTRY"],
9537
+ type: "string"
9538
+ },
9539
+ error: {
9540
+ description: "Errors associated with the action attempt. Null for pending action attempts.",
9541
+ nullable: true
9542
+ },
9543
+ result: {
9544
+ description: "Result of the action attempt. Null for pending action attempts.",
9545
+ nullable: true
9546
+ },
9547
+ status: { enum: ["pending"], type: "string" }
9548
+ },
9549
+ required: [
9550
+ "action_attempt_id",
9551
+ "status",
9552
+ "result",
9553
+ "error",
9554
+ "action_type"
9555
+ ],
9556
+ type: "object"
9557
+ },
9558
+ {
9559
+ description: "Simulating keypad code entry succeeded.",
9560
+ properties: {
9561
+ action_attempt_id: {
9562
+ description: "ID of the action attempt.",
9563
+ format: "uuid",
9564
+ type: "string"
9565
+ },
9566
+ action_type: {
9567
+ enum: ["SIMULATE_KEYPAD_CODE_ENTRY"],
9568
+ type: "string"
9569
+ },
9570
+ error: {
9571
+ description: "Errors associated with the action attempt. Null for successful action attempts.",
9572
+ nullable: true
9573
+ },
9574
+ result: { properties: {}, type: "object" },
9575
+ status: { enum: ["success"], type: "string" }
9576
+ },
9577
+ required: [
9578
+ "action_attempt_id",
9579
+ "status",
9580
+ "error",
9581
+ "action_type",
9582
+ "result"
9583
+ ],
9584
+ type: "object"
9585
+ },
9586
+ {
9587
+ description: "Simulating keypad code entry failed.",
9588
+ properties: {
9589
+ action_attempt_id: {
9590
+ description: "ID of the action attempt.",
9591
+ format: "uuid",
9592
+ type: "string"
9593
+ },
9594
+ action_type: {
9595
+ enum: ["SIMULATE_KEYPAD_CODE_ENTRY"],
9596
+ type: "string"
9597
+ },
9598
+ error: {
9599
+ properties: {
9600
+ message: { type: "string" },
9601
+ type: { type: "string" }
9602
+ },
9603
+ required: ["type", "message"],
9604
+ type: "object"
9605
+ },
9606
+ result: {
9607
+ description: "Result of the action attempt. Null for failed action attempts.",
9608
+ nullable: true
9609
+ },
9610
+ status: { enum: ["error"], type: "string" }
9611
+ },
9612
+ required: [
9613
+ "action_attempt_id",
9614
+ "status",
9615
+ "result",
9616
+ "action_type",
9617
+ "error"
9618
+ ],
9619
+ type: "object"
9620
+ },
9621
+ {
9622
+ description: "Simulating manual lock via keypad.",
9623
+ properties: {
9624
+ action_attempt_id: {
9625
+ description: "ID of the action attempt.",
9626
+ format: "uuid",
9627
+ type: "string"
9628
+ },
9629
+ action_type: {
9630
+ enum: ["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"],
9631
+ type: "string"
9632
+ },
9633
+ error: {
9634
+ description: "Errors associated with the action attempt. Null for pending action attempts.",
9635
+ nullable: true
9636
+ },
9637
+ result: {
9638
+ description: "Result of the action attempt. Null for pending action attempts.",
9639
+ nullable: true
9640
+ },
9641
+ status: { enum: ["pending"], type: "string" }
9642
+ },
9643
+ required: [
9644
+ "action_attempt_id",
9645
+ "status",
9646
+ "result",
9647
+ "error",
9648
+ "action_type"
9649
+ ],
9650
+ type: "object"
9651
+ },
9652
+ {
9653
+ description: "Simulating manual lock via keypad succeeded.",
9654
+ properties: {
9655
+ action_attempt_id: {
9656
+ description: "ID of the action attempt.",
9657
+ format: "uuid",
9658
+ type: "string"
9659
+ },
9660
+ action_type: {
9661
+ enum: ["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"],
9662
+ type: "string"
9663
+ },
9664
+ error: {
9665
+ description: "Errors associated with the action attempt. Null for successful action attempts.",
9666
+ nullable: true
9667
+ },
9668
+ result: { properties: {}, type: "object" },
9669
+ status: { enum: ["success"], type: "string" }
9670
+ },
9671
+ required: [
9672
+ "action_attempt_id",
9673
+ "status",
9674
+ "error",
9675
+ "action_type",
9676
+ "result"
9677
+ ],
9678
+ type: "object"
9679
+ },
9680
+ {
9681
+ description: "Simulating manual lock via keypad failed.",
9682
+ properties: {
9683
+ action_attempt_id: {
9684
+ description: "ID of the action attempt.",
9685
+ format: "uuid",
9686
+ type: "string"
9687
+ },
9688
+ action_type: {
9689
+ enum: ["SIMULATE_MANUAL_LOCK_VIA_KEYPAD"],
9690
+ type: "string"
9691
+ },
9692
+ error: {
9693
+ properties: {
9694
+ message: { type: "string" },
9695
+ type: { type: "string" }
9696
+ },
9697
+ required: ["type", "message"],
9698
+ type: "object"
9699
+ },
9700
+ result: {
9701
+ description: "Result of the action attempt. Null for failed action attempts.",
9702
+ nullable: true
9703
+ },
9704
+ status: { enum: ["error"], type: "string" }
9705
+ },
9706
+ required: [
9707
+ "action_attempt_id",
9708
+ "status",
9709
+ "result",
9710
+ "action_type",
9711
+ "error"
9712
+ ],
9713
+ type: "object"
9714
+ },
9469
9715
  {
9470
9716
  properties: {
9471
9717
  action_attempt_id: {
@@ -20108,6 +20354,16 @@ var openapi_default = {
20108
20354
  type: "string",
20109
20355
  "x-deprecated": "use company_name"
20110
20356
  },
20357
+ connect_webview_customization: {
20358
+ properties: {
20359
+ inviter_logo_url: { type: "string" },
20360
+ logo_shape: { enum: ["circle", "square"], type: "string" },
20361
+ primary_button_color: { type: "string" },
20362
+ primary_button_text_color: { type: "string" },
20363
+ success_message: { type: "string" }
20364
+ },
20365
+ type: "object"
20366
+ },
20111
20367
  is_sandbox: { type: "boolean" },
20112
20368
  is_suspended: {
20113
20369
  description: "True if a sandbox workspace has not been accessed in 14 days",
@@ -20121,6 +20377,7 @@ var openapi_default = {
20121
20377
  "name",
20122
20378
  "company_name",
20123
20379
  "is_sandbox",
20380
+ "connect_webview_customization",
20124
20381
  "is_suspended",
20125
20382
  "connect_partner_name"
20126
20383
  ],
@@ -27158,64 +27415,15 @@ var openapi_default = {
27158
27415
  "x-response-key": "device_providers"
27159
27416
  }
27160
27417
  },
27161
- "/devices/simulate/access_code_lock": {
27162
- post: {
27163
- operationId: "devicesSimulateAccessCodeLockPost",
27164
- requestBody: {
27165
- content: {
27166
- "application/json": {
27167
- schema: {
27168
- properties: {
27169
- access_code_id: { format: "uuid", type: "string" },
27170
- device_id: { format: "uuid", type: "string" }
27171
- },
27172
- required: ["device_id", "access_code_id"],
27173
- type: "object"
27174
- }
27175
- }
27176
- }
27177
- },
27178
- responses: {
27179
- 200: {
27180
- content: {
27181
- "application/json": {
27182
- schema: {
27183
- properties: { ok: { type: "boolean" } },
27184
- required: ["ok"],
27185
- type: "object"
27186
- }
27187
- }
27188
- },
27189
- description: "OK"
27190
- },
27191
- 400: { description: "Bad Request" },
27192
- 401: { description: "Unauthorized" }
27193
- },
27194
- security: [
27195
- { api_key: [] },
27196
- { pat_with_workspace: [] },
27197
- { console_session_with_workspace: [] }
27198
- ],
27199
- summary: "/devices/simulate/access_code_lock",
27200
- tags: ["/devices"],
27201
- "x-fern-sdk-group-name": ["devices", "simulate"],
27202
- "x-fern-sdk-method-name": "access_code_lock",
27203
- "x-response-key": null,
27204
- "x-undocumented": "Unreleased."
27205
- }
27206
- },
27207
- "/devices/simulate/access_code_unlock": {
27418
+ "/devices/simulate/connect": {
27208
27419
  post: {
27209
- operationId: "devicesSimulateAccessCodeUnlockPost",
27420
+ operationId: "devicesSimulateConnectPost",
27210
27421
  requestBody: {
27211
27422
  content: {
27212
27423
  "application/json": {
27213
27424
  schema: {
27214
- properties: {
27215
- access_code_id: { format: "uuid", type: "string" },
27216
- device_id: { format: "uuid", type: "string" }
27217
- },
27218
- required: ["device_id", "access_code_id"],
27425
+ properties: { device_id: { format: "uuid", type: "string" } },
27426
+ required: ["device_id"],
27219
27427
  type: "object"
27220
27428
  }
27221
27429
  }
@@ -27242,59 +27450,16 @@ var openapi_default = {
27242
27450
  { pat_with_workspace: [] },
27243
27451
  { console_session_with_workspace: [] }
27244
27452
  ],
27245
- summary: "/devices/simulate/access_code_unlock",
27453
+ summary: "/devices/simulate/connect",
27246
27454
  tags: ["/devices"],
27247
27455
  "x-fern-sdk-group-name": ["devices", "simulate"],
27248
- "x-fern-sdk-method-name": "access_code_unlock",
27249
- "x-response-key": null,
27250
- "x-undocumented": "Unreleased."
27456
+ "x-fern-sdk-method-name": "connect",
27457
+ "x-response-key": null
27251
27458
  }
27252
27459
  },
27253
- "/devices/simulate/connect": {
27460
+ "/devices/simulate/disconnect": {
27254
27461
  post: {
27255
- operationId: "devicesSimulateConnectPost",
27256
- requestBody: {
27257
- content: {
27258
- "application/json": {
27259
- schema: {
27260
- properties: { device_id: { format: "uuid", type: "string" } },
27261
- required: ["device_id"],
27262
- type: "object"
27263
- }
27264
- }
27265
- }
27266
- },
27267
- responses: {
27268
- 200: {
27269
- content: {
27270
- "application/json": {
27271
- schema: {
27272
- properties: { ok: { type: "boolean" } },
27273
- required: ["ok"],
27274
- type: "object"
27275
- }
27276
- }
27277
- },
27278
- description: "OK"
27279
- },
27280
- 400: { description: "Bad Request" },
27281
- 401: { description: "Unauthorized" }
27282
- },
27283
- security: [
27284
- { api_key: [] },
27285
- { pat_with_workspace: [] },
27286
- { console_session_with_workspace: [] }
27287
- ],
27288
- summary: "/devices/simulate/connect",
27289
- tags: ["/devices"],
27290
- "x-fern-sdk-group-name": ["devices", "simulate"],
27291
- "x-fern-sdk-method-name": "connect",
27292
- "x-response-key": null
27293
- }
27294
- },
27295
- "/devices/simulate/disconnect": {
27296
- post: {
27297
- operationId: "devicesSimulateDisconnectPost",
27462
+ operationId: "devicesSimulateDisconnectPost",
27298
27463
  requestBody: {
27299
27464
  content: {
27300
27465
  "application/json": {
@@ -28583,6 +28748,109 @@ var openapi_default = {
28583
28748
  "x-response-key": "action_attempt"
28584
28749
  }
28585
28750
  },
28751
+ "/locks/simulate/keypad_code_entry": {
28752
+ post: {
28753
+ operationId: "locksSimulateKeypadCodeEntryPost",
28754
+ requestBody: {
28755
+ content: {
28756
+ "application/json": {
28757
+ schema: {
28758
+ properties: {
28759
+ code: { type: "string" },
28760
+ device_id: { format: "uuid", type: "string" }
28761
+ },
28762
+ required: ["device_id", "code"],
28763
+ type: "object"
28764
+ }
28765
+ }
28766
+ }
28767
+ },
28768
+ responses: {
28769
+ 200: {
28770
+ content: {
28771
+ "application/json": {
28772
+ schema: {
28773
+ properties: {
28774
+ action_attempt: {
28775
+ $ref: "#/components/schemas/action_attempt"
28776
+ },
28777
+ ok: { type: "boolean" }
28778
+ },
28779
+ required: ["action_attempt", "ok"],
28780
+ type: "object"
28781
+ }
28782
+ }
28783
+ },
28784
+ description: "OK"
28785
+ },
28786
+ 400: { description: "Bad Request" },
28787
+ 401: { description: "Unauthorized" }
28788
+ },
28789
+ security: [
28790
+ { api_key: [] },
28791
+ { pat_with_workspace: [] },
28792
+ { console_session_with_workspace: [] }
28793
+ ],
28794
+ summary: "/locks/simulate/keypad_code_entry",
28795
+ tags: ["/locks"],
28796
+ "x-action-attempt-type": "SIMULATE_KEYPAD_CODE_ENTRY",
28797
+ "x-fern-sdk-group-name": ["locks", "simulate"],
28798
+ "x-fern-sdk-method-name": "keypad_code_entry",
28799
+ "x-fern-sdk-return-value": "action_attempt",
28800
+ "x-response-key": "action_attempt",
28801
+ "x-undocumented": "Unreleased."
28802
+ }
28803
+ },
28804
+ "/locks/simulate/manual_lock_via_keypad": {
28805
+ post: {
28806
+ operationId: "locksSimulateManualLockViaKeypadPost",
28807
+ requestBody: {
28808
+ content: {
28809
+ "application/json": {
28810
+ schema: {
28811
+ properties: { device_id: { format: "uuid", type: "string" } },
28812
+ required: ["device_id"],
28813
+ type: "object"
28814
+ }
28815
+ }
28816
+ }
28817
+ },
28818
+ responses: {
28819
+ 200: {
28820
+ content: {
28821
+ "application/json": {
28822
+ schema: {
28823
+ properties: {
28824
+ action_attempt: {
28825
+ $ref: "#/components/schemas/action_attempt"
28826
+ },
28827
+ ok: { type: "boolean" }
28828
+ },
28829
+ required: ["action_attempt", "ok"],
28830
+ type: "object"
28831
+ }
28832
+ }
28833
+ },
28834
+ description: "OK"
28835
+ },
28836
+ 400: { description: "Bad Request" },
28837
+ 401: { description: "Unauthorized" }
28838
+ },
28839
+ security: [
28840
+ { api_key: [] },
28841
+ { pat_with_workspace: [] },
28842
+ { console_session_with_workspace: [] }
28843
+ ],
28844
+ summary: "/locks/simulate/manual_lock_via_keypad",
28845
+ tags: ["/locks"],
28846
+ "x-action-attempt-type": "SIMULATE_MANUAL_LOCK_VIA_KEYPAD",
28847
+ "x-fern-sdk-group-name": ["locks", "simulate"],
28848
+ "x-fern-sdk-method-name": "manual_lock_via_keypad",
28849
+ "x-fern-sdk-return-value": "action_attempt",
28850
+ "x-response-key": "action_attempt",
28851
+ "x-undocumented": "Unreleased."
28852
+ }
28853
+ },
28586
28854
  "/locks/unlock_door": {
28587
28855
  post: {
28588
28856
  operationId: "locksUnlockDoorPost",
@@ -30651,6 +30919,62 @@ var openapi_default = {
30651
30919
  "x-undocumented": "Seam Bridge Client only."
30652
30920
  }
30653
30921
  },
30922
+ "/seam/instant_key/v1/client_sessions/exchange_short_code": {
30923
+ post: {
30924
+ description: "Exchanges a short code for a Client Session Token (CST).\nThis endpoint is used by mobile apps to securely retrieve a client session token \nusing a short code obtained from an instant key URL.",
30925
+ operationId: "seamInstantKeyV1ClientSessionsExchangeShortCodePost",
30926
+ requestBody: {
30927
+ content: {
30928
+ "application/json": {
30929
+ schema: {
30930
+ properties: {
30931
+ short_code: {
30932
+ description: "The short code to exchange for a client session token",
30933
+ type: "string"
30934
+ }
30935
+ },
30936
+ required: ["short_code"],
30937
+ type: "object"
30938
+ }
30939
+ }
30940
+ }
30941
+ },
30942
+ responses: {
30943
+ 200: {
30944
+ content: {
30945
+ "application/json": {
30946
+ schema: {
30947
+ properties: {
30948
+ client_session: {
30949
+ $ref: "#/components/schemas/client_session"
30950
+ },
30951
+ ok: { type: "boolean" }
30952
+ },
30953
+ required: ["client_session", "ok"],
30954
+ type: "object"
30955
+ }
30956
+ }
30957
+ },
30958
+ description: "OK"
30959
+ },
30960
+ 400: { description: "Bad Request" },
30961
+ 401: { description: "Unauthorized" }
30962
+ },
30963
+ security: [{ certified_client: [] }],
30964
+ summary: "/seam/instant_key/v1/client_sessions/exchange_short_code",
30965
+ tags: ["/client_sessions"],
30966
+ "x-fern-sdk-group-name": [
30967
+ "seam",
30968
+ "instant_key",
30969
+ "v1",
30970
+ "client_sessions"
30971
+ ],
30972
+ "x-fern-sdk-method-name": "exchange_short_code",
30973
+ "x-fern-sdk-return-value": "client_session",
30974
+ "x-response-key": "client_session",
30975
+ "x-title": "Exchange Instant Key Short Code"
30976
+ }
30977
+ },
30654
30978
  "/thermostats/activate_climate_preset": {
30655
30979
  post: {
30656
30980
  description: "Activates a specified [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",
@@ -32684,20 +33008,6 @@ var openapi_default = {
32684
33008
  },
32685
33009
  {
32686
33010
  properties: {
32687
- desired_access_methods: {
32688
- items: {
32689
- properties: {
32690
- mode: {
32691
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
32692
- enum: ["code", "card", "mobile_key"],
32693
- type: "string"
32694
- }
32695
- },
32696
- required: ["mode"],
32697
- type: "object"
32698
- },
32699
- type: "array"
32700
- },
32701
33011
  ends_at: {
32702
33012
  description: "Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.",
32703
33013
  format: "date-time",
@@ -32717,6 +33027,10 @@ var openapi_default = {
32717
33027
  description: "Set of IDs of the [devices](https://docs.seam.co/latest/api/devices/list) to add to the location to which access is being granted.",
32718
33028
  items: { format: "uuid", type: "string" },
32719
33029
  type: "array"
33030
+ },
33031
+ name: {
33032
+ description: "Name of the location.",
33033
+ type: "string"
32720
33034
  }
32721
33035
  },
32722
33036
  type: "object"
@@ -32726,13 +33040,27 @@ var openapi_default = {
32726
33040
  items: { format: "uuid", type: "string" },
32727
33041
  type: "array"
32728
33042
  },
33043
+ requested_access_methods: {
33044
+ items: {
33045
+ properties: {
33046
+ mode: {
33047
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
33048
+ enum: ["code", "card", "mobile_key"],
33049
+ type: "string"
33050
+ }
33051
+ },
33052
+ required: ["mode"],
33053
+ type: "object"
33054
+ },
33055
+ type: "array"
33056
+ },
32729
33057
  starts_at: {
32730
33058
  description: "Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
32731
33059
  format: "date-time",
32732
33060
  type: "string"
32733
33061
  }
32734
33062
  },
32735
- required: ["desired_access_methods"],
33063
+ required: ["requested_access_methods"],
32736
33064
  type: "object"
32737
33065
  }
32738
33066
  ]
@@ -32753,6 +33081,11 @@ var openapi_default = {
32753
33081
  format: "uuid",
32754
33082
  type: "string"
32755
33083
  },
33084
+ access_method_ids: {
33085
+ description: "IDs of the access methods that were created for this access grant.",
33086
+ items: { format: "uuid", type: "string" },
33087
+ type: "array"
33088
+ },
32756
33089
  created_at: {
32757
33090
  description: "Date and time at which the access grant was created.",
32758
33091
  format: "date-time",
@@ -32771,6 +33104,11 @@ var openapi_default = {
32771
33104
  description: "Access methods that the user requested for this access grant.",
32772
33105
  items: {
32773
33106
  properties: {
33107
+ created_access_method_ids: {
33108
+ description: "IDs of the access methods that were created for this requested access method.",
33109
+ items: { format: "uuid", type: "string" },
33110
+ type: "array"
33111
+ },
32774
33112
  created_at: {
32775
33113
  description: "Date and time at which the requested access method was added to this access grant.",
32776
33114
  format: "date-time",
@@ -32784,18 +33122,13 @@ var openapi_default = {
32784
33122
  description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
32785
33123
  enum: ["code", "card", "mobile_key"],
32786
33124
  type: "string"
32787
- },
32788
- provisioned_access_method_ids: {
32789
- description: "IDs of the locations to which access is being given.",
32790
- items: { format: "uuid", type: "string" },
32791
- type: "array"
32792
33125
  }
32793
33126
  },
32794
33127
  required: [
32795
33128
  "display_name",
32796
33129
  "mode",
32797
33130
  "created_at",
32798
- "provisioned_access_method_ids"
33131
+ "created_access_method_ids"
32799
33132
  ],
32800
33133
  type: "object",
32801
33134
  "x-undocumented": "Unreleased."
@@ -32819,6 +33152,7 @@ var openapi_default = {
32819
33152
  "user_identity_id",
32820
33153
  "location_ids",
32821
33154
  "requested_access_methods",
33155
+ "access_method_ids",
32822
33156
  "display_name",
32823
33157
  "created_at"
32824
33158
  ],
@@ -32886,6 +33220,11 @@ var openapi_default = {
32886
33220
  format: "uuid",
32887
33221
  type: "string"
32888
33222
  },
33223
+ access_method_ids: {
33224
+ description: "IDs of the access methods that were created for this access grant.",
33225
+ items: { format: "uuid", type: "string" },
33226
+ type: "array"
33227
+ },
32889
33228
  created_at: {
32890
33229
  description: "Date and time at which the access grant was created.",
32891
33230
  format: "date-time",
@@ -32904,6 +33243,11 @@ var openapi_default = {
32904
33243
  description: "Access methods that the user requested for this access grant.",
32905
33244
  items: {
32906
33245
  properties: {
33246
+ created_access_method_ids: {
33247
+ description: "IDs of the access methods that were created for this requested access method.",
33248
+ items: { format: "uuid", type: "string" },
33249
+ type: "array"
33250
+ },
32907
33251
  created_at: {
32908
33252
  description: "Date and time at which the requested access method was added to this access grant.",
32909
33253
  format: "date-time",
@@ -32917,18 +33261,13 @@ var openapi_default = {
32917
33261
  description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
32918
33262
  enum: ["code", "card", "mobile_key"],
32919
33263
  type: "string"
32920
- },
32921
- provisioned_access_method_ids: {
32922
- description: "IDs of the locations to which access is being given.",
32923
- items: { format: "uuid", type: "string" },
32924
- type: "array"
32925
33264
  }
32926
33265
  },
32927
33266
  required: [
32928
33267
  "display_name",
32929
33268
  "mode",
32930
33269
  "created_at",
32931
- "provisioned_access_method_ids"
33270
+ "created_access_method_ids"
32932
33271
  ],
32933
33272
  type: "object",
32934
33273
  "x-undocumented": "Unreleased."
@@ -32952,6 +33291,7 @@ var openapi_default = {
32952
33291
  "user_identity_id",
32953
33292
  "location_ids",
32954
33293
  "requested_access_methods",
33294
+ "access_method_ids",
32955
33295
  "display_name",
32956
33296
  "created_at"
32957
33297
  ],
@@ -33034,6 +33374,11 @@ var openapi_default = {
33034
33374
  format: "uuid",
33035
33375
  type: "string"
33036
33376
  },
33377
+ access_method_ids: {
33378
+ description: "IDs of the access methods that were created for this access grant.",
33379
+ items: { format: "uuid", type: "string" },
33380
+ type: "array"
33381
+ },
33037
33382
  created_at: {
33038
33383
  description: "Date and time at which the access grant was created.",
33039
33384
  format: "date-time",
@@ -33052,6 +33397,11 @@ var openapi_default = {
33052
33397
  description: "Access methods that the user requested for this access grant.",
33053
33398
  items: {
33054
33399
  properties: {
33400
+ created_access_method_ids: {
33401
+ description: "IDs of the access methods that were created for this requested access method.",
33402
+ items: { format: "uuid", type: "string" },
33403
+ type: "array"
33404
+ },
33055
33405
  created_at: {
33056
33406
  description: "Date and time at which the requested access method was added to this access grant.",
33057
33407
  format: "date-time",
@@ -33065,18 +33415,13 @@ var openapi_default = {
33065
33415
  description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
33066
33416
  enum: ["code", "card", "mobile_key"],
33067
33417
  type: "string"
33068
- },
33069
- provisioned_access_method_ids: {
33070
- description: "IDs of the locations to which access is being given.",
33071
- items: { format: "uuid", type: "string" },
33072
- type: "array"
33073
33418
  }
33074
33419
  },
33075
33420
  required: [
33076
33421
  "display_name",
33077
33422
  "mode",
33078
33423
  "created_at",
33079
- "provisioned_access_method_ids"
33424
+ "created_access_method_ids"
33080
33425
  ],
33081
33426
  type: "object",
33082
33427
  "x-undocumented": "Unreleased."
@@ -33100,6 +33445,7 @@ var openapi_default = {
33100
33445
  "user_identity_id",
33101
33446
  "location_ids",
33102
33447
  "requested_access_methods",
33448
+ "access_method_ids",
33103
33449
  "display_name",
33104
33450
  "created_at"
33105
33451
  ],
@@ -33135,10 +33481,10 @@ var openapi_default = {
33135
33481
  "x-undocumented": "Unreleased."
33136
33482
  }
33137
33483
  },
33138
- "/unstable_access_grants/list_access_methods": {
33484
+ "/unstable_access_methods/list": {
33139
33485
  post: {
33140
- description: "List all access methods for an access grant.",
33141
- operationId: "unstableAccessGrantsListAccessMethodsPost",
33486
+ description: "List all access methods, usually filtered by access grant.",
33487
+ operationId: "unstableAccessMethodsListPost",
33142
33488
  requestBody: {
33143
33489
  content: {
33144
33490
  "application/json": {
@@ -33226,13 +33572,13 @@ var openapi_default = {
33226
33572
  { console_session_with_workspace: [] },
33227
33573
  { api_key: [] }
33228
33574
  ],
33229
- summary: "/unstable_access_grants/list_access_methods",
33575
+ summary: "/unstable_access_methods/list",
33230
33576
  tags: [],
33231
- "x-fern-sdk-group-name": ["unstable_access_grants"],
33232
- "x-fern-sdk-method-name": "list_access_methods",
33577
+ "x-fern-sdk-group-name": ["unstable_access_methods"],
33578
+ "x-fern-sdk-method-name": "list",
33233
33579
  "x-fern-sdk-return-value": "access_methods",
33234
33580
  "x-response-key": "access_methods",
33235
- "x-title": "Get the Access Methods for an Access Grant",
33581
+ "x-title": "List Access Methods",
33236
33582
  "x-undocumented": "Unreleased."
33237
33583
  }
33238
33584
  },
@@ -34529,6 +34875,12 @@ var openapi_default = {
34529
34875
  "application/json": {
34530
34876
  schema: {
34531
34877
  properties: {
34878
+ max_use_count: {
34879
+ default: 1,
34880
+ description: "The maximum number of times the instant key can be used. Defaults to 1.",
34881
+ format: "float",
34882
+ type: "number"
34883
+ },
34532
34884
  user_identity_id: {
34533
34885
  description: "ID of the user identity for which you want to generate an instant key.",
34534
34886
  format: "uuid",
@@ -35536,15 +35888,45 @@ var openapi_default = {
35536
35888
  type: "string",
35537
35889
  "x-deprecated": "use company_name"
35538
35890
  },
35891
+ connect_webview_customization: {
35892
+ properties: {
35893
+ logo_shape: {
35894
+ enum: ["circle", "square"],
35895
+ nullable: true,
35896
+ type: "string"
35897
+ },
35898
+ primary_button_color: { nullable: true, type: "string" },
35899
+ primary_button_text_color: {
35900
+ nullable: true,
35901
+ type: "string"
35902
+ },
35903
+ success_message: { nullable: true, type: "string" }
35904
+ },
35905
+ type: "object"
35906
+ },
35539
35907
  is_sandbox: { default: false, type: "boolean" },
35540
35908
  name: { type: "string" },
35541
35909
  webview_logo_shape: {
35910
+ deprecated: true,
35542
35911
  enum: ["circle", "square"],
35543
- type: "string"
35912
+ type: "string",
35913
+ "x-deprecated": "Use `connect_webview_customization.webview_logo_shape` instead."
35544
35914
  },
35545
- webview_primary_button_color: { type: "string" },
35546
- webview_primary_button_text_color: { type: "string" },
35547
- webview_success_message: { type: "string" }
35915
+ webview_primary_button_color: {
35916
+ deprecated: true,
35917
+ type: "string",
35918
+ "x-deprecated": "Use `connect_webview_customization.webview_primary_button_color` instead."
35919
+ },
35920
+ webview_primary_button_text_color: {
35921
+ deprecated: true,
35922
+ type: "string",
35923
+ "x-deprecated": "Use `connect_webview_customization.webview_primary_button_text_color` instead."
35924
+ },
35925
+ webview_success_message: {
35926
+ deprecated: true,
35927
+ type: "string",
35928
+ "x-deprecated": "Use `connect_webview_customization.webview_success_message` instead."
35929
+ }
35548
35930
  },
35549
35931
  required: ["name"],
35550
35932
  type: "object"
@@ -35767,6 +36149,103 @@ var openapi_default = {
35767
36149
  "x-fern-sdk-return-value": "action_attempt",
35768
36150
  "x-response-key": "action_attempt"
35769
36151
  }
36152
+ },
36153
+ "/workspaces/update": {
36154
+ patch: {
36155
+ operationId: "workspacesUpdatePatch",
36156
+ requestBody: {
36157
+ content: {
36158
+ "application/json": {
36159
+ schema: {
36160
+ properties: {
36161
+ connect_partner_name: { type: "string" },
36162
+ connect_webview_customization: {
36163
+ properties: {
36164
+ logo_shape: {
36165
+ enum: ["circle", "square"],
36166
+ nullable: true,
36167
+ type: "string"
36168
+ },
36169
+ primary_button_color: { nullable: true, type: "string" },
36170
+ primary_button_text_color: {
36171
+ nullable: true,
36172
+ type: "string"
36173
+ },
36174
+ success_message: { nullable: true, type: "string" }
36175
+ },
36176
+ type: "object"
36177
+ },
36178
+ is_suspended: { type: "boolean" },
36179
+ name: { type: "string" }
36180
+ },
36181
+ type: "object"
36182
+ }
36183
+ }
36184
+ }
36185
+ },
36186
+ responses: {
36187
+ 200: { description: "OK" },
36188
+ 400: { description: "Bad Request" },
36189
+ 401: { description: "Unauthorized" }
36190
+ },
36191
+ security: [
36192
+ { api_key: [] },
36193
+ { console_session_with_workspace: [] },
36194
+ { pat_with_workspace: [] }
36195
+ ],
36196
+ summary: "/workspaces/update",
36197
+ tags: ["/workspaces"],
36198
+ "x-fern-ignore": true,
36199
+ "x-response-key": null
36200
+ },
36201
+ post: {
36202
+ operationId: "workspacesUpdatePost",
36203
+ requestBody: {
36204
+ content: {
36205
+ "application/json": {
36206
+ schema: {
36207
+ properties: {
36208
+ connect_partner_name: { type: "string" },
36209
+ connect_webview_customization: {
36210
+ properties: {
36211
+ logo_shape: {
36212
+ enum: ["circle", "square"],
36213
+ nullable: true,
36214
+ type: "string"
36215
+ },
36216
+ primary_button_color: { nullable: true, type: "string" },
36217
+ primary_button_text_color: {
36218
+ nullable: true,
36219
+ type: "string"
36220
+ },
36221
+ success_message: { nullable: true, type: "string" }
36222
+ },
36223
+ type: "object"
36224
+ },
36225
+ is_suspended: { type: "boolean" },
36226
+ name: { type: "string" }
36227
+ },
36228
+ type: "object"
36229
+ }
36230
+ }
36231
+ }
36232
+ },
36233
+ responses: {
36234
+ 200: { description: "OK" },
36235
+ 400: { description: "Bad Request" },
36236
+ 401: { description: "Unauthorized" }
36237
+ },
36238
+ security: [
36239
+ { api_key: [] },
36240
+ { console_session_with_workspace: [] },
36241
+ { pat_with_workspace: [] }
36242
+ ],
36243
+ summary: "/workspaces/update",
36244
+ tags: ["/workspaces"],
36245
+ "x-fern-sdk-group-name": ["workspaces"],
36246
+ "x-fern-sdk-method-name": "update",
36247
+ "x-response-key": null
36248
+ }
35770
36249
  }
35771
36250
  },
35772
36251
  servers: [{ url: "https://connect.getseam.com" }],