@seamapi/types 1.42.1 → 1.44.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 (40) hide show
  1. package/dist/connect.cjs +263 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +522 -18
  4. package/lib/seam/connect/openapi.d.ts +350 -0
  5. package/lib/seam/connect/openapi.js +243 -10
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +143 -15
  8. package/lib/seam/connect/stable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/stable/models/connect-webview.d.ts +21 -0
  10. package/lib/seam/connect/stable/models/connect-webview.js +8 -0
  11. package/lib/seam/connect/stable/models/connect-webview.js.map +1 -1
  12. package/lib/seam/connect/stable/models/custom-metadata.d.ts +3 -0
  13. package/lib/seam/connect/stable/models/custom-metadata.js +7 -0
  14. package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -0
  15. package/lib/seam/connect/stable/models/index.d.ts +1 -0
  16. package/lib/seam/connect/stable/models/index.js +1 -0
  17. package/lib/seam/connect/stable/models/index.js.map +1 -1
  18. package/lib/seam/connect/stable/schemas.d.ts +1 -1
  19. package/lib/seam/connect/stable/schemas.js +1 -1
  20. package/lib/seam/connect/stable/schemas.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
  22. package/lib/seam/connect/unstable/models/acs/credential.js +5 -2
  23. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  24. package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
  25. package/lib/seam/connect/unstable/models/acs/user.js +1 -1
  26. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  27. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +62 -0
  28. package/lib/seam/connect/unstable/models/devices/managed-device.js +20 -2
  29. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/openapi.ts +247 -10
  32. package/src/lib/seam/connect/route-types.ts +143 -15
  33. package/src/lib/seam/connect/stable/model-types.ts +1 -1
  34. package/src/lib/seam/connect/stable/models/connect-webview.ts +9 -0
  35. package/src/lib/seam/connect/stable/models/custom-metadata.ts +12 -0
  36. package/src/lib/seam/connect/stable/models/index.ts +1 -0
  37. package/src/lib/seam/connect/stable/schemas.ts +1 -1
  38. package/src/lib/seam/connect/unstable/models/acs/credential.ts +5 -2
  39. package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -1
  40. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +23 -2
package/dist/connect.cjs CHANGED
@@ -11,8 +11,17 @@ var __export = (target, all) => {
11
11
  // src/lib/seam/connect/stable/schemas.ts
12
12
  var schemas_exports = {};
13
13
  __export(schemas_exports, {
14
- connect_webview: () => connect_webview
14
+ connect_webview: () => connect_webview,
15
+ custom_metadata: () => custom_metadata
15
16
  });
17
+ var custom_metadata = zod.z.record(
18
+ zod.z.string().max(40),
19
+ zod.z.union([zod.z.string().max(500), zod.z.number(), zod.z.null(), zod.z.boolean()])
20
+ ).refine((val) => Object.keys(val).length <= 50, {
21
+ message: "Custom metadata is limited to a maximum of 50 keys"
22
+ });
23
+
24
+ // src/lib/seam/connect/stable/models/connect-webview.ts
16
25
  var connect_webview = zod.z.object({
17
26
  connect_webview_id: zod.z.string().uuid(),
18
27
  connected_account_id: zod.z.string().uuid().optional(),
@@ -25,7 +34,14 @@ var connect_webview = zod.z.object({
25
34
  any_device_allowed: zod.z.boolean(),
26
35
  created_at: zod.z.string().datetime(),
27
36
  login_successful: zod.z.boolean(),
28
- status: zod.z.enum(["pending", "failed", "authorized"])
37
+ status: zod.z.enum(["pending", "failed", "authorized"]),
38
+ custom_redirect_url: zod.z.string().url().nullable(),
39
+ custom_redirect_failure_url: zod.z.string().url().nullable(),
40
+ custom_metadata,
41
+ automatically_manage_new_devices: zod.z.boolean(),
42
+ wait_for_device_creation: zod.z.boolean(),
43
+ authorized_at: zod.z.string().datetime().nullable(),
44
+ selected_provider: zod.z.string().nullable()
29
45
  });
30
46
 
31
47
  // src/lib/seam/connect/openapi.ts
@@ -170,7 +186,7 @@ var openapi_default = {
170
186
  type: "string"
171
187
  },
172
188
  email_address: { format: "email", type: "string" },
173
- external_type: { enum: ["pti_user"], type: "string" },
189
+ external_type: { enum: ["pti_user", "brivo_user"], type: "string" },
174
190
  external_type_display_name: { type: "string" },
175
191
  full_name: { type: "string" },
176
192
  is_suspended: { type: "boolean" },
@@ -317,16 +333,46 @@ var openapi_default = {
317
333
  accepted_providers: { items: { type: "string" }, type: "array" },
318
334
  any_device_allowed: { type: "boolean" },
319
335
  any_provider_allowed: { type: "boolean" },
336
+ authorized_at: {
337
+ format: "date-time",
338
+ nullable: true,
339
+ type: "string"
340
+ },
341
+ automatically_manage_new_devices: { type: "boolean" },
320
342
  connect_webview_id: { format: "uuid", type: "string" },
321
343
  connected_account_id: { format: "uuid", type: "string" },
322
344
  created_at: { format: "date-time", type: "string" },
345
+ custom_metadata: {
346
+ additionalProperties: {
347
+ nullable: true,
348
+ oneOf: [
349
+ { maxLength: 500, type: "string" },
350
+ { type: "number" },
351
+ { format: "null", nullable: true, type: "string" },
352
+ { type: "boolean" }
353
+ ]
354
+ },
355
+ type: "object"
356
+ },
357
+ custom_redirect_failure_url: {
358
+ format: "uri",
359
+ nullable: true,
360
+ type: "string"
361
+ },
362
+ custom_redirect_url: {
363
+ format: "uri",
364
+ nullable: true,
365
+ type: "string"
366
+ },
323
367
  device_selection_mode: {
324
368
  enum: ["none", "single", "multiple"],
325
369
  type: "string"
326
370
  },
327
371
  login_successful: { type: "boolean" },
372
+ selected_provider: { nullable: true, type: "string" },
328
373
  status: { enum: ["pending", "failed", "authorized"], type: "string" },
329
374
  url: { format: "uri", type: "string" },
375
+ wait_for_device_creation: { type: "boolean" },
330
376
  workspace_id: { format: "uuid", type: "string" }
331
377
  },
332
378
  required: [
@@ -340,7 +386,14 @@ var openapi_default = {
340
386
  "any_device_allowed",
341
387
  "created_at",
342
388
  "login_successful",
343
- "status"
389
+ "status",
390
+ "custom_redirect_url",
391
+ "custom_redirect_failure_url",
392
+ "custom_metadata",
393
+ "automatically_manage_new_devices",
394
+ "wait_for_device_creation",
395
+ "authorized_at",
396
+ "selected_provider"
344
397
  ],
345
398
  type: "object"
346
399
  },
@@ -482,17 +535,34 @@ var openapi_default = {
482
535
  manufacturer: { type: "string" },
483
536
  model: {
484
537
  properties: {
538
+ access_codes_supported: { type: "boolean" },
539
+ accessory_keypad_supported: { type: "boolean" },
485
540
  display_name: { type: "string" },
486
- manufacturer_display_name: { type: "string" }
541
+ manufacturer_display_name: { type: "string" },
542
+ offline_access_codes_supported: { type: "boolean" }
487
543
  },
488
544
  required: ["display_name", "manufacturer_display_name"],
489
545
  type: "object"
490
546
  },
491
547
  name: { type: "string" },
548
+ offline_access_codes_enabled: {
549
+ description: "Currently possible to use offline access codes",
550
+ type: "boolean"
551
+ },
492
552
  online: { type: "boolean" },
553
+ online_access_codes_enabled: {
554
+ description: "Currently possible to use online access codes",
555
+ type: "boolean"
556
+ },
493
557
  serial_number: { type: "string" },
494
- supports_accessory_keypad: { type: "boolean" },
495
- supports_offline_access_codes: { type: "boolean" }
558
+ supports_accessory_keypad: {
559
+ description: "Deprecated: use model.offline_access_codes_enabled.",
560
+ type: "boolean"
561
+ },
562
+ supports_offline_access_codes: {
563
+ description: "Deprecated: use model.accessory_keypad_supported.",
564
+ type: "boolean"
565
+ }
496
566
  },
497
567
  required: ["online", "name", "model"],
498
568
  type: "object"
@@ -3123,6 +3193,91 @@ var openapi_default = {
3123
3193
  "x-fern-sdk-method-name": "update"
3124
3194
  }
3125
3195
  },
3196
+ "/acs/credentials/assign": {
3197
+ patch: {
3198
+ operationId: "acsCredentialsAssignPatch",
3199
+ requestBody: {
3200
+ content: {
3201
+ "application/json": {
3202
+ schema: {
3203
+ properties: {
3204
+ acs_credential_id: { format: "uuid", type: "string" },
3205
+ acs_user_id: { format: "uuid", type: "string" }
3206
+ },
3207
+ required: ["acs_user_id", "acs_credential_id"],
3208
+ type: "object"
3209
+ }
3210
+ }
3211
+ }
3212
+ },
3213
+ responses: {
3214
+ 200: {
3215
+ content: {
3216
+ "application/json": {
3217
+ schema: {
3218
+ properties: { ok: { type: "boolean" } },
3219
+ required: ["ok"],
3220
+ type: "object"
3221
+ }
3222
+ }
3223
+ },
3224
+ description: "OK"
3225
+ },
3226
+ 400: { description: "Bad Request" },
3227
+ 401: { description: "Unauthorized" }
3228
+ },
3229
+ security: [
3230
+ { access_token: [], seam_workspace: [] },
3231
+ { seam_client_session_token: [] },
3232
+ { client_session_token: [] }
3233
+ ],
3234
+ summary: "/acs/credentials/assign",
3235
+ tags: [],
3236
+ "x-fern-ignore": true
3237
+ },
3238
+ post: {
3239
+ operationId: "acsCredentialsAssignPost",
3240
+ requestBody: {
3241
+ content: {
3242
+ "application/json": {
3243
+ schema: {
3244
+ properties: {
3245
+ acs_credential_id: { format: "uuid", type: "string" },
3246
+ acs_user_id: { format: "uuid", type: "string" }
3247
+ },
3248
+ required: ["acs_user_id", "acs_credential_id"],
3249
+ type: "object"
3250
+ }
3251
+ }
3252
+ }
3253
+ },
3254
+ responses: {
3255
+ 200: {
3256
+ content: {
3257
+ "application/json": {
3258
+ schema: {
3259
+ properties: { ok: { type: "boolean" } },
3260
+ required: ["ok"],
3261
+ type: "object"
3262
+ }
3263
+ }
3264
+ },
3265
+ description: "OK"
3266
+ },
3267
+ 400: { description: "Bad Request" },
3268
+ 401: { description: "Unauthorized" }
3269
+ },
3270
+ security: [
3271
+ { access_token: [], seam_workspace: [] },
3272
+ { seam_client_session_token: [] },
3273
+ { client_session_token: [] }
3274
+ ],
3275
+ summary: "/acs/credentials/assign",
3276
+ tags: [],
3277
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3278
+ "x-fern-sdk-method-name": "assign"
3279
+ }
3280
+ },
3126
3281
  "/acs/credentials/create": {
3127
3282
  post: {
3128
3283
  operationId: "acsCredentialsCreatePost",
@@ -3153,13 +3308,15 @@ var openapi_default = {
3153
3308
  acs_user_id: { format: "uuid", type: "string" },
3154
3309
  code: { nullable: true, type: "string" },
3155
3310
  created_at: { format: "date-time", type: "string" },
3156
- external_type: { enum: ["pti_card"], type: "string" },
3311
+ external_type: {
3312
+ enum: ["pti_card", "brivo_credential"],
3313
+ type: "string"
3314
+ },
3157
3315
  external_type_display_name: { type: "string" },
3158
3316
  workspace_id: { format: "uuid", type: "string" }
3159
3317
  },
3160
3318
  required: [
3161
3319
  "acs_credential_id",
3162
- "acs_user_id",
3163
3320
  "acs_system_id",
3164
3321
  "code",
3165
3322
  "external_type",
@@ -3264,13 +3421,15 @@ var openapi_default = {
3264
3421
  acs_user_id: { format: "uuid", type: "string" },
3265
3422
  code: { nullable: true, type: "string" },
3266
3423
  created_at: { format: "date-time", type: "string" },
3267
- external_type: { enum: ["pti_card"], type: "string" },
3424
+ external_type: {
3425
+ enum: ["pti_card", "brivo_credential"],
3426
+ type: "string"
3427
+ },
3268
3428
  external_type_display_name: { type: "string" },
3269
3429
  workspace_id: { format: "uuid", type: "string" }
3270
3430
  },
3271
3431
  required: [
3272
3432
  "acs_credential_id",
3273
- "acs_user_id",
3274
3433
  "acs_system_id",
3275
3434
  "code",
3276
3435
  "external_type",
@@ -3352,13 +3511,15 @@ var openapi_default = {
3352
3511
  acs_user_id: { format: "uuid", type: "string" },
3353
3512
  code: { nullable: true, type: "string" },
3354
3513
  created_at: { format: "date-time", type: "string" },
3355
- external_type: { enum: ["pti_card"], type: "string" },
3514
+ external_type: {
3515
+ enum: ["pti_card", "brivo_credential"],
3516
+ type: "string"
3517
+ },
3356
3518
  external_type_display_name: { type: "string" },
3357
3519
  workspace_id: { format: "uuid", type: "string" }
3358
3520
  },
3359
3521
  required: [
3360
3522
  "acs_credential_id",
3361
- "acs_user_id",
3362
3523
  "acs_system_id",
3363
3524
  "code",
3364
3525
  "external_type",
@@ -3393,6 +3554,91 @@ var openapi_default = {
3393
3554
  "x-fern-sdk-method-name": "list"
3394
3555
  }
3395
3556
  },
3557
+ "/acs/credentials/unassign": {
3558
+ patch: {
3559
+ operationId: "acsCredentialsUnassignPatch",
3560
+ requestBody: {
3561
+ content: {
3562
+ "application/json": {
3563
+ schema: {
3564
+ properties: {
3565
+ acs_credential_id: { format: "uuid", type: "string" },
3566
+ acs_user_id: { format: "uuid", type: "string" }
3567
+ },
3568
+ required: ["acs_user_id", "acs_credential_id"],
3569
+ type: "object"
3570
+ }
3571
+ }
3572
+ }
3573
+ },
3574
+ responses: {
3575
+ 200: {
3576
+ content: {
3577
+ "application/json": {
3578
+ schema: {
3579
+ properties: { ok: { type: "boolean" } },
3580
+ required: ["ok"],
3581
+ type: "object"
3582
+ }
3583
+ }
3584
+ },
3585
+ description: "OK"
3586
+ },
3587
+ 400: { description: "Bad Request" },
3588
+ 401: { description: "Unauthorized" }
3589
+ },
3590
+ security: [
3591
+ { access_token: [], seam_workspace: [] },
3592
+ { seam_client_session_token: [] },
3593
+ { client_session_token: [] }
3594
+ ],
3595
+ summary: "/acs/credentials/unassign",
3596
+ tags: [],
3597
+ "x-fern-ignore": true
3598
+ },
3599
+ post: {
3600
+ operationId: "acsCredentialsUnassignPost",
3601
+ requestBody: {
3602
+ content: {
3603
+ "application/json": {
3604
+ schema: {
3605
+ properties: {
3606
+ acs_credential_id: { format: "uuid", type: "string" },
3607
+ acs_user_id: { format: "uuid", type: "string" }
3608
+ },
3609
+ required: ["acs_user_id", "acs_credential_id"],
3610
+ type: "object"
3611
+ }
3612
+ }
3613
+ }
3614
+ },
3615
+ responses: {
3616
+ 200: {
3617
+ content: {
3618
+ "application/json": {
3619
+ schema: {
3620
+ properties: { ok: { type: "boolean" } },
3621
+ required: ["ok"],
3622
+ type: "object"
3623
+ }
3624
+ }
3625
+ },
3626
+ description: "OK"
3627
+ },
3628
+ 400: { description: "Bad Request" },
3629
+ 401: { description: "Unauthorized" }
3630
+ },
3631
+ security: [
3632
+ { access_token: [], seam_workspace: [] },
3633
+ { seam_client_session_token: [] },
3634
+ { client_session_token: [] }
3635
+ ],
3636
+ summary: "/acs/credentials/unassign",
3637
+ tags: [],
3638
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3639
+ "x-fern-sdk-method-name": "unassign"
3640
+ }
3641
+ },
3396
3642
  "/acs/systems/get": {
3397
3643
  post: {
3398
3644
  operationId: "acsSystemsGetPost",
@@ -3569,6 +3815,7 @@ var openapi_default = {
3569
3815
  format: "email",
3570
3816
  type: "string"
3571
3817
  },
3818
+ email_address: { format: "email", type: "string" },
3572
3819
  full_name: { type: "string" },
3573
3820
  phone_number: { nullable: true, type: "string" }
3574
3821
  },
@@ -3871,6 +4118,7 @@ var openapi_default = {
3871
4118
  format: "email",
3872
4119
  type: "string"
3873
4120
  },
4121
+ email_address: { format: "email", type: "string" },
3874
4122
  full_name: { type: "string" },
3875
4123
  phone_number: { nullable: true, type: "string" }
3876
4124
  },
@@ -3918,6 +4166,7 @@ var openapi_default = {
3918
4166
  format: "email",
3919
4167
  type: "string"
3920
4168
  },
4169
+ email_address: { format: "email", type: "string" },
3921
4170
  full_name: { type: "string" },
3922
4171
  phone_number: { nullable: true, type: "string" }
3923
4172
  },
@@ -8843,7 +9092,7 @@ var openapi_default = {
8843
9092
  tags: ["/workspaces"],
8844
9093
  "x-fern-sdk-group-name": ["workspaces"],
8845
9094
  "x-fern-sdk-method-name": "list",
8846
- "x-fern-sdk-return-value": "workspace"
9095
+ "x-fern-sdk-return-value": "workspaces"
8847
9096
  }
8848
9097
  },
8849
9098
  "/workspaces/reset_sandbox": {