@seamapi/types 1.364.0 → 1.366.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 (60) hide show
  1. package/dist/connect.cjs +1007 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2441 -178
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-access-group.js +1 -2
  8. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-credential.js +1 -2
  10. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  11. package/lib/seam/connect/models/acs/acs-system.d.ts +1 -1
  12. package/lib/seam/connect/models/acs/acs-system.js +2 -2
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
  15. package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +10 -4
  16. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
  17. package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
  18. package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
  19. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
  20. package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
  21. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
  22. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
  23. package/lib/seam/connect/models/acs/index.d.ts +1 -1
  24. package/lib/seam/connect/models/acs/index.js +1 -1
  25. package/lib/seam/connect/models/acs/index.js.map +1 -1
  26. package/lib/seam/connect/models/connected-accounts/connected-account.js +1 -2
  27. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  28. package/lib/seam/connect/models/devices/device.js +1 -2
  29. package/lib/seam/connect/models/devices/device.js.map +1 -1
  30. package/lib/seam/connect/models/index.d.ts +1 -0
  31. package/lib/seam/connect/models/index.js +1 -0
  32. package/lib/seam/connect/models/index.js.map +1 -1
  33. package/lib/seam/connect/models/locations/index.d.ts +1 -0
  34. package/lib/seam/connect/models/locations/index.js +2 -0
  35. package/lib/seam/connect/models/locations/index.js.map +1 -0
  36. package/lib/seam/connect/models/locations/location.d.ts +49 -0
  37. package/lib/seam/connect/models/locations/location.js +25 -0
  38. package/lib/seam/connect/models/locations/location.js.map +1 -0
  39. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  40. package/lib/seam/connect/openapi.d.ts +1271 -36
  41. package/lib/seam/connect/openapi.js +955 -0
  42. package/lib/seam/connect/openapi.js.map +1 -1
  43. package/lib/seam/connect/route-types.d.ts +506 -0
  44. package/package.json +1 -1
  45. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  46. package/src/lib/seam/connect/models/acs/acs-access-group.ts +1 -2
  47. package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -2
  48. package/src/lib/seam/connect/models/acs/acs-system.ts +2 -2
  49. package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +10 -4
  50. package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
  51. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
  52. package/src/lib/seam/connect/models/acs/index.ts +1 -1
  53. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +1 -2
  54. package/src/lib/seam/connect/models/devices/device.ts +1 -2
  55. package/src/lib/seam/connect/models/index.ts +1 -0
  56. package/src/lib/seam/connect/models/locations/index.ts +1 -0
  57. package/src/lib/seam/connect/models/locations/location.ts +30 -0
  58. package/src/lib/seam/connect/openapi.ts +976 -0
  59. package/src/lib/seam/connect/route-types.ts +567 -0
  60. package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -2128,7 +2128,7 @@ var acs_system_capability_flags = zod.z.object({
2128
2128
  "Indicates whether the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) supports [adding users to access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems)."
2129
2129
  )
2130
2130
  });
2131
- var location = zod.z.object({
2131
+ var acs_location = zod.z.object({
2132
2132
  time_zone: zod.z.string().nullable().describe(
2133
2133
  "Time zone in which the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) is located."
2134
2134
  )
@@ -2268,7 +2268,7 @@ var acs_system = zod.z.object({
2268
2268
  deprecated: Use \`external_type_display_name\`.
2269
2269
  ---
2270
2270
  `),
2271
- location,
2271
+ location: acs_location,
2272
2272
  name: zod.z.string().describe(
2273
2273
  "Name of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
2274
2274
  ),
@@ -2322,8 +2322,51 @@ var start_end_schedule = zod.z.object({
2322
2322
  ).nullable()
2323
2323
  });
2324
2324
  var schedule = start_end_schedule;
2325
+ var common_pending_modification = zod.z.object({
2326
+ created_at: zod.z.string().datetime()
2327
+ });
2328
+ var acs_user_profile = zod.z.object({
2329
+ email_address: zod.z.string().email().nullable(),
2330
+ full_name: zod.z.string().nullable(),
2331
+ phone_number: phone_number.optional().nullable()
2332
+ });
2333
+ var profile_pending_modification = common_pending_modification.extend({
2334
+ modification_code: zod.z.literal("profile"),
2335
+ modified_from: acs_user_profile.partial(),
2336
+ modified_to: acs_user_profile.partial()
2337
+ });
2338
+ var access_schedule_pending_modification = common_pending_modification.extend(
2339
+ {
2340
+ modification_code: zod.z.literal("access_schedule"),
2341
+ modified_from: schedule,
2342
+ modified_to: schedule
2343
+ }
2344
+ );
2345
+ var suspension_state_pending_modification = common_pending_modification.extend({
2346
+ modification_code: zod.z.literal("suspension_state"),
2347
+ modified_from: zod.z.object({ is_suspended: zod.z.boolean() }),
2348
+ modified_to: zod.z.object({ is_suspended: zod.z.boolean() })
2349
+ });
2350
+ var acs_access_group_membership_pending_modification = common_pending_modification.extend({
2351
+ modification_code: zod.z.literal("acs_access_group_membership"),
2352
+ modified_from: zod.z.object({
2353
+ acs_access_group_id: zod.z.string().uuid().nullable()
2354
+ }),
2355
+ modified_to: zod.z.object({
2356
+ acs_access_group_id: zod.z.string().uuid().nullable()
2357
+ })
2358
+ });
2359
+ var acs_user_pending_modification = zod.z.discriminatedUnion(
2360
+ "modification_code",
2361
+ [
2362
+ profile_pending_modification,
2363
+ access_schedule_pending_modification,
2364
+ suspension_state_pending_modification,
2365
+ acs_access_group_membership_pending_modification
2366
+ ]
2367
+ );
2325
2368
 
2326
- // src/lib/seam/connect/models/acs/acs-user.ts
2369
+ // src/lib/seam/connect/models/acs/acs-users/acs-user.ts
2327
2370
  var acs_user_external_type = zod.z.enum([
2328
2371
  "pti_user",
2329
2372
  "brivo_user",
@@ -2503,7 +2546,12 @@ var common_acs_user = zod.z.object({
2503
2546
  ),
2504
2547
  errors: zod.z.array(acs_user_errors).describe(
2505
2548
  "Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management)."
2506
- )
2549
+ ),
2550
+ pending_modifications: zod.z.array(acs_user_pending_modification).optional().describe(`
2551
+ ---
2552
+ undocumented: Experimental.
2553
+ ---
2554
+ `)
2507
2555
  }).merge(user_fields);
2508
2556
  var acs_user = common_acs_user.merge(
2509
2557
  zod.z.object({
@@ -6200,6 +6248,166 @@ var openapi_default = {
6200
6248
  type: "string",
6201
6249
  "x-undocumented": "Only used internally."
6202
6250
  },
6251
+ pending_modifications: {
6252
+ items: {
6253
+ discriminator: { propertyName: "modification_code" },
6254
+ oneOf: [
6255
+ {
6256
+ properties: {
6257
+ created_at: { format: "date-time", type: "string" },
6258
+ modification_code: { enum: ["profile"], type: "string" },
6259
+ modified_from: {
6260
+ properties: {
6261
+ email_address: {
6262
+ format: "email",
6263
+ nullable: true,
6264
+ type: "string"
6265
+ },
6266
+ full_name: { nullable: true, type: "string" },
6267
+ phone_number: { nullable: true, type: "string" }
6268
+ },
6269
+ type: "object"
6270
+ },
6271
+ modified_to: {
6272
+ properties: {
6273
+ email_address: {
6274
+ format: "email",
6275
+ nullable: true,
6276
+ type: "string"
6277
+ },
6278
+ full_name: { nullable: true, type: "string" },
6279
+ phone_number: { nullable: true, type: "string" }
6280
+ },
6281
+ type: "object"
6282
+ }
6283
+ },
6284
+ required: [
6285
+ "created_at",
6286
+ "modification_code",
6287
+ "modified_from",
6288
+ "modified_to"
6289
+ ],
6290
+ type: "object"
6291
+ },
6292
+ {
6293
+ properties: {
6294
+ created_at: { format: "date-time", type: "string" },
6295
+ modification_code: {
6296
+ enum: ["access_schedule"],
6297
+ type: "string"
6298
+ },
6299
+ modified_from: {
6300
+ properties: {
6301
+ ends_at: {
6302
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6303
+ format: "date-time",
6304
+ nullable: true,
6305
+ type: "string"
6306
+ },
6307
+ starts_at: {
6308
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6309
+ format: "date-time",
6310
+ type: "string"
6311
+ }
6312
+ },
6313
+ required: ["starts_at", "ends_at"],
6314
+ type: "object"
6315
+ },
6316
+ modified_to: {
6317
+ properties: {
6318
+ ends_at: {
6319
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6320
+ format: "date-time",
6321
+ nullable: true,
6322
+ type: "string"
6323
+ },
6324
+ starts_at: {
6325
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
6326
+ format: "date-time",
6327
+ type: "string"
6328
+ }
6329
+ },
6330
+ required: ["starts_at", "ends_at"],
6331
+ type: "object"
6332
+ }
6333
+ },
6334
+ required: [
6335
+ "created_at",
6336
+ "modification_code",
6337
+ "modified_from",
6338
+ "modified_to"
6339
+ ],
6340
+ type: "object"
6341
+ },
6342
+ {
6343
+ properties: {
6344
+ created_at: { format: "date-time", type: "string" },
6345
+ modification_code: {
6346
+ enum: ["suspension_state"],
6347
+ type: "string"
6348
+ },
6349
+ modified_from: {
6350
+ properties: { is_suspended: { type: "boolean" } },
6351
+ required: ["is_suspended"],
6352
+ type: "object"
6353
+ },
6354
+ modified_to: {
6355
+ properties: { is_suspended: { type: "boolean" } },
6356
+ required: ["is_suspended"],
6357
+ type: "object"
6358
+ }
6359
+ },
6360
+ required: [
6361
+ "created_at",
6362
+ "modification_code",
6363
+ "modified_from",
6364
+ "modified_to"
6365
+ ],
6366
+ type: "object"
6367
+ },
6368
+ {
6369
+ properties: {
6370
+ created_at: { format: "date-time", type: "string" },
6371
+ modification_code: {
6372
+ enum: ["acs_access_group_membership"],
6373
+ type: "string"
6374
+ },
6375
+ modified_from: {
6376
+ properties: {
6377
+ acs_access_group_id: {
6378
+ format: "uuid",
6379
+ nullable: true,
6380
+ type: "string"
6381
+ }
6382
+ },
6383
+ required: ["acs_access_group_id"],
6384
+ type: "object"
6385
+ },
6386
+ modified_to: {
6387
+ properties: {
6388
+ acs_access_group_id: {
6389
+ format: "uuid",
6390
+ nullable: true,
6391
+ type: "string"
6392
+ }
6393
+ },
6394
+ required: ["acs_access_group_id"],
6395
+ type: "object"
6396
+ }
6397
+ },
6398
+ required: [
6399
+ "created_at",
6400
+ "modification_code",
6401
+ "modified_from",
6402
+ "modified_to"
6403
+ ],
6404
+ type: "object"
6405
+ }
6406
+ ]
6407
+ },
6408
+ type: "array",
6409
+ "x-undocumented": "Experimental."
6410
+ },
6203
6411
  phone_number: {
6204
6412
  description: "Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
6205
6413
  type: "string"
@@ -17420,6 +17628,166 @@ var openapi_default = {
17420
17628
  type: "string",
17421
17629
  "x-undocumented": "Only used internally."
17422
17630
  },
17631
+ pending_modifications: {
17632
+ items: {
17633
+ discriminator: { propertyName: "modification_code" },
17634
+ oneOf: [
17635
+ {
17636
+ properties: {
17637
+ created_at: { format: "date-time", type: "string" },
17638
+ modification_code: { enum: ["profile"], type: "string" },
17639
+ modified_from: {
17640
+ properties: {
17641
+ email_address: {
17642
+ format: "email",
17643
+ nullable: true,
17644
+ type: "string"
17645
+ },
17646
+ full_name: { nullable: true, type: "string" },
17647
+ phone_number: { nullable: true, type: "string" }
17648
+ },
17649
+ type: "object"
17650
+ },
17651
+ modified_to: {
17652
+ properties: {
17653
+ email_address: {
17654
+ format: "email",
17655
+ nullable: true,
17656
+ type: "string"
17657
+ },
17658
+ full_name: { nullable: true, type: "string" },
17659
+ phone_number: { nullable: true, type: "string" }
17660
+ },
17661
+ type: "object"
17662
+ }
17663
+ },
17664
+ required: [
17665
+ "created_at",
17666
+ "modification_code",
17667
+ "modified_from",
17668
+ "modified_to"
17669
+ ],
17670
+ type: "object"
17671
+ },
17672
+ {
17673
+ properties: {
17674
+ created_at: { format: "date-time", type: "string" },
17675
+ modification_code: {
17676
+ enum: ["access_schedule"],
17677
+ type: "string"
17678
+ },
17679
+ modified_from: {
17680
+ properties: {
17681
+ ends_at: {
17682
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17683
+ format: "date-time",
17684
+ nullable: true,
17685
+ type: "string"
17686
+ },
17687
+ starts_at: {
17688
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17689
+ format: "date-time",
17690
+ type: "string"
17691
+ }
17692
+ },
17693
+ required: ["starts_at", "ends_at"],
17694
+ type: "object"
17695
+ },
17696
+ modified_to: {
17697
+ properties: {
17698
+ ends_at: {
17699
+ description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17700
+ format: "date-time",
17701
+ nullable: true,
17702
+ type: "string"
17703
+ },
17704
+ starts_at: {
17705
+ description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
17706
+ format: "date-time",
17707
+ type: "string"
17708
+ }
17709
+ },
17710
+ required: ["starts_at", "ends_at"],
17711
+ type: "object"
17712
+ }
17713
+ },
17714
+ required: [
17715
+ "created_at",
17716
+ "modification_code",
17717
+ "modified_from",
17718
+ "modified_to"
17719
+ ],
17720
+ type: "object"
17721
+ },
17722
+ {
17723
+ properties: {
17724
+ created_at: { format: "date-time", type: "string" },
17725
+ modification_code: {
17726
+ enum: ["suspension_state"],
17727
+ type: "string"
17728
+ },
17729
+ modified_from: {
17730
+ properties: { is_suspended: { type: "boolean" } },
17731
+ required: ["is_suspended"],
17732
+ type: "object"
17733
+ },
17734
+ modified_to: {
17735
+ properties: { is_suspended: { type: "boolean" } },
17736
+ required: ["is_suspended"],
17737
+ type: "object"
17738
+ }
17739
+ },
17740
+ required: [
17741
+ "created_at",
17742
+ "modification_code",
17743
+ "modified_from",
17744
+ "modified_to"
17745
+ ],
17746
+ type: "object"
17747
+ },
17748
+ {
17749
+ properties: {
17750
+ created_at: { format: "date-time", type: "string" },
17751
+ modification_code: {
17752
+ enum: ["acs_access_group_membership"],
17753
+ type: "string"
17754
+ },
17755
+ modified_from: {
17756
+ properties: {
17757
+ acs_access_group_id: {
17758
+ format: "uuid",
17759
+ nullable: true,
17760
+ type: "string"
17761
+ }
17762
+ },
17763
+ required: ["acs_access_group_id"],
17764
+ type: "object"
17765
+ },
17766
+ modified_to: {
17767
+ properties: {
17768
+ acs_access_group_id: {
17769
+ format: "uuid",
17770
+ nullable: true,
17771
+ type: "string"
17772
+ }
17773
+ },
17774
+ required: ["acs_access_group_id"],
17775
+ type: "object"
17776
+ }
17777
+ },
17778
+ required: [
17779
+ "created_at",
17780
+ "modification_code",
17781
+ "modified_from",
17782
+ "modified_to"
17783
+ ],
17784
+ type: "object"
17785
+ }
17786
+ ]
17787
+ },
17788
+ type: "array",
17789
+ "x-undocumented": "Experimental."
17790
+ },
17423
17791
  phone_number: {
17424
17792
  description: "Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
17425
17793
  type: "string"
@@ -24797,6 +25165,12 @@ var openapi_default = {
24797
25165
  ],
24798
25166
  type: "string"
24799
25167
  },
25168
+ unstable_location_id: {
25169
+ format: "uuid",
25170
+ nullable: true,
25171
+ type: "string",
25172
+ "x-undocumented": "Experimental locations."
25173
+ },
24800
25174
  user_identifier_key: {
24801
25175
  description: "Your own internal user ID for the user by which to filter devices.",
24802
25176
  type: "string"
@@ -25320,6 +25694,12 @@ var openapi_default = {
25320
25694
  ],
25321
25695
  type: "string"
25322
25696
  },
25697
+ unstable_location_id: {
25698
+ format: "uuid",
25699
+ nullable: true,
25700
+ type: "string",
25701
+ "x-undocumented": "Experimental locations."
25702
+ },
25323
25703
  user_identifier_key: {
25324
25704
  description: "Your own internal user ID for the user by which to filter devices.",
25325
25705
  type: "string"
@@ -26168,6 +26548,12 @@ var openapi_default = {
26168
26548
  ],
26169
26549
  type: "string"
26170
26550
  },
26551
+ unstable_location_id: {
26552
+ format: "uuid",
26553
+ nullable: true,
26554
+ type: "string",
26555
+ "x-undocumented": "Experimental locations."
26556
+ },
26171
26557
  user_identifier_key: {
26172
26558
  description: "Your own internal user ID for the user by which to filter devices.",
26173
26559
  type: "string"
@@ -26654,6 +27040,12 @@ var openapi_default = {
26654
27040
  ],
26655
27041
  type: "string"
26656
27042
  },
27043
+ unstable_location_id: {
27044
+ format: "uuid",
27045
+ nullable: true,
27046
+ type: "string",
27047
+ "x-undocumented": "Experimental locations."
27048
+ },
26657
27049
  user_identifier_key: {
26658
27050
  description: "Your own internal user ID for the user by which to filter devices.",
26659
27051
  type: "string"
@@ -28484,6 +28876,12 @@ var openapi_default = {
28484
28876
  ],
28485
28877
  type: "string"
28486
28878
  },
28879
+ unstable_location_id: {
28880
+ format: "uuid",
28881
+ nullable: true,
28882
+ type: "string",
28883
+ "x-undocumented": "Experimental locations."
28884
+ },
28487
28885
  user_identifier_key: {
28488
28886
  description: "Your own internal user ID for the user by which to filter devices.",
28489
28887
  type: "string"
@@ -29832,6 +30230,611 @@ var openapi_default = {
29832
30230
  "x-title": "Update a Climate Preset"
29833
30231
  }
29834
30232
  },
30233
+ "/unstable_locations/add_devices": {
30234
+ post: {
30235
+ description: "Add devices to a specific location. If a device already belongs to a location it will be moved.",
30236
+ operationId: "unstableLocationsAddDevicesPost",
30237
+ requestBody: {
30238
+ content: {
30239
+ "application/json": {
30240
+ schema: {
30241
+ properties: {
30242
+ device_ids: {
30243
+ items: { format: "uuid", type: "string" },
30244
+ type: "array"
30245
+ },
30246
+ location_id: { format: "uuid", type: "string" }
30247
+ },
30248
+ required: ["location_id", "device_ids"],
30249
+ type: "object"
30250
+ }
30251
+ }
30252
+ }
30253
+ },
30254
+ responses: {
30255
+ 200: {
30256
+ content: {
30257
+ "application/json": {
30258
+ schema: {
30259
+ properties: { ok: { type: "boolean" } },
30260
+ required: ["ok"],
30261
+ type: "object"
30262
+ }
30263
+ }
30264
+ },
30265
+ description: "OK"
30266
+ },
30267
+ 400: { description: "Bad Request" },
30268
+ 401: { description: "Unauthorized" }
30269
+ },
30270
+ security: [
30271
+ { pat_with_workspace: [] },
30272
+ { console_session_with_workspace: [] },
30273
+ { api_key: [] }
30274
+ ],
30275
+ summary: "/unstable_locations/add_devices",
30276
+ tags: [],
30277
+ "x-fern-sdk-group-name": ["unstable_locations"],
30278
+ "x-fern-sdk-method-name": "add_devices",
30279
+ "x-response-key": null,
30280
+ "x-title": "Add Location Devices",
30281
+ "x-undocumented": "Experimental locations."
30282
+ }
30283
+ },
30284
+ "/unstable_locations/create": {
30285
+ post: {
30286
+ description: "Create a new location.",
30287
+ operationId: "unstableLocationsCreatePost",
30288
+ requestBody: {
30289
+ content: {
30290
+ "application/json": {
30291
+ schema: {
30292
+ properties: {
30293
+ geolocation: {
30294
+ properties: {
30295
+ latitude: { format: "float", type: "number" },
30296
+ longitude: { format: "float", type: "number" }
30297
+ },
30298
+ required: ["latitude", "longitude"],
30299
+ type: "object"
30300
+ },
30301
+ name: { type: "string" },
30302
+ time_zone: { type: "string" }
30303
+ },
30304
+ required: ["name"],
30305
+ type: "object"
30306
+ }
30307
+ }
30308
+ }
30309
+ },
30310
+ responses: {
30311
+ 200: {
30312
+ content: {
30313
+ "application/json": {
30314
+ schema: {
30315
+ properties: {
30316
+ location: {
30317
+ properties: {
30318
+ created_at: {
30319
+ description: "Date and time at which the location object was created.",
30320
+ format: "date-time",
30321
+ type: "string"
30322
+ },
30323
+ display_name: {
30324
+ description: "Display name of the location.",
30325
+ type: "string"
30326
+ },
30327
+ geolocation: {
30328
+ description: "Geographical location of the location.",
30329
+ properties: {
30330
+ latitude: { format: "float", type: "number" },
30331
+ longitude: { format: "float", type: "number" }
30332
+ },
30333
+ required: ["latitude", "longitude"],
30334
+ type: "object"
30335
+ },
30336
+ location_id: {
30337
+ description: "Unique identifier for the location.",
30338
+ format: "uuid",
30339
+ type: "string"
30340
+ },
30341
+ time_zone: {
30342
+ description: "Time zone of the location.",
30343
+ type: "string"
30344
+ },
30345
+ workspace_id: {
30346
+ description: "Unique identifier for the Seam workspace associated with the location.",
30347
+ format: "uuid",
30348
+ type: "string"
30349
+ }
30350
+ },
30351
+ required: [
30352
+ "location_id",
30353
+ "workspace_id",
30354
+ "display_name",
30355
+ "created_at"
30356
+ ],
30357
+ type: "object"
30358
+ },
30359
+ ok: { type: "boolean" }
30360
+ },
30361
+ required: ["location", "ok"],
30362
+ type: "object"
30363
+ }
30364
+ }
30365
+ },
30366
+ description: "OK"
30367
+ },
30368
+ 400: { description: "Bad Request" },
30369
+ 401: { description: "Unauthorized" }
30370
+ },
30371
+ security: [
30372
+ { pat_with_workspace: [] },
30373
+ { console_session_with_workspace: [] },
30374
+ { api_key: [] }
30375
+ ],
30376
+ summary: "/unstable_locations/create",
30377
+ tags: [],
30378
+ "x-fern-sdk-group-name": ["unstable_locations"],
30379
+ "x-fern-sdk-method-name": "create",
30380
+ "x-fern-sdk-return-value": "location",
30381
+ "x-response-key": "location",
30382
+ "x-title": "Create Location",
30383
+ "x-undocumented": "Experimental locations."
30384
+ }
30385
+ },
30386
+ "/unstable_locations/delete": {
30387
+ post: {
30388
+ description: "Delete a location.",
30389
+ operationId: "unstableLocationsDeletePost",
30390
+ requestBody: {
30391
+ content: {
30392
+ "application/json": {
30393
+ schema: {
30394
+ properties: { location_id: { format: "uuid", type: "string" } },
30395
+ required: ["location_id"],
30396
+ type: "object"
30397
+ }
30398
+ }
30399
+ }
30400
+ },
30401
+ responses: {
30402
+ 200: {
30403
+ content: {
30404
+ "application/json": {
30405
+ schema: {
30406
+ properties: { ok: { type: "boolean" } },
30407
+ required: ["ok"],
30408
+ type: "object"
30409
+ }
30410
+ }
30411
+ },
30412
+ description: "OK"
30413
+ },
30414
+ 400: { description: "Bad Request" },
30415
+ 401: { description: "Unauthorized" }
30416
+ },
30417
+ security: [
30418
+ { pat_with_workspace: [] },
30419
+ { console_session_with_workspace: [] },
30420
+ { api_key: [] }
30421
+ ],
30422
+ summary: "/unstable_locations/delete",
30423
+ tags: [],
30424
+ "x-fern-sdk-group-name": ["unstable_locations"],
30425
+ "x-fern-sdk-method-name": "delete",
30426
+ "x-response-key": null,
30427
+ "x-title": "Delete Location",
30428
+ "x-undocumented": "Experimental locations."
30429
+ }
30430
+ },
30431
+ "/unstable_locations/get": {
30432
+ post: {
30433
+ description: "Get a location.",
30434
+ operationId: "unstableLocationsGetPost",
30435
+ requestBody: {
30436
+ content: {
30437
+ "application/json": {
30438
+ schema: {
30439
+ properties: { location_id: { format: "uuid", type: "string" } },
30440
+ required: ["location_id"],
30441
+ type: "object"
30442
+ }
30443
+ }
30444
+ }
30445
+ },
30446
+ responses: {
30447
+ 200: {
30448
+ content: {
30449
+ "application/json": {
30450
+ schema: {
30451
+ properties: {
30452
+ location: {
30453
+ properties: {
30454
+ created_at: {
30455
+ description: "Date and time at which the location object was created.",
30456
+ format: "date-time",
30457
+ type: "string"
30458
+ },
30459
+ display_name: {
30460
+ description: "Display name of the location.",
30461
+ type: "string"
30462
+ },
30463
+ geolocation: {
30464
+ description: "Geographical location of the location.",
30465
+ properties: {
30466
+ latitude: { format: "float", type: "number" },
30467
+ longitude: { format: "float", type: "number" }
30468
+ },
30469
+ required: ["latitude", "longitude"],
30470
+ type: "object"
30471
+ },
30472
+ location_id: {
30473
+ description: "Unique identifier for the location.",
30474
+ format: "uuid",
30475
+ type: "string"
30476
+ },
30477
+ time_zone: {
30478
+ description: "Time zone of the location.",
30479
+ type: "string"
30480
+ },
30481
+ workspace_id: {
30482
+ description: "Unique identifier for the Seam workspace associated with the location.",
30483
+ format: "uuid",
30484
+ type: "string"
30485
+ }
30486
+ },
30487
+ required: [
30488
+ "location_id",
30489
+ "workspace_id",
30490
+ "display_name",
30491
+ "created_at"
30492
+ ],
30493
+ type: "object"
30494
+ },
30495
+ ok: { type: "boolean" }
30496
+ },
30497
+ required: ["location", "ok"],
30498
+ type: "object"
30499
+ }
30500
+ }
30501
+ },
30502
+ description: "OK"
30503
+ },
30504
+ 400: { description: "Bad Request" },
30505
+ 401: { description: "Unauthorized" }
30506
+ },
30507
+ security: [
30508
+ { pat_with_workspace: [] },
30509
+ { console_session_with_workspace: [] },
30510
+ { api_key: [] }
30511
+ ],
30512
+ summary: "/unstable_locations/get",
30513
+ tags: [],
30514
+ "x-fern-sdk-group-name": ["unstable_locations"],
30515
+ "x-fern-sdk-method-name": "get",
30516
+ "x-fern-sdk-return-value": "location",
30517
+ "x-response-key": "location",
30518
+ "x-title": "Get Location",
30519
+ "x-undocumented": "Experimental locations."
30520
+ }
30521
+ },
30522
+ "/unstable_locations/list": {
30523
+ get: {
30524
+ description: "Returns a list of all locations.",
30525
+ operationId: "unstableLocationsListGet",
30526
+ responses: {
30527
+ 200: {
30528
+ content: {
30529
+ "application/json": {
30530
+ schema: {
30531
+ properties: {
30532
+ locations: {
30533
+ items: {
30534
+ properties: {
30535
+ created_at: {
30536
+ description: "Date and time at which the location object was created.",
30537
+ format: "date-time",
30538
+ type: "string"
30539
+ },
30540
+ display_name: {
30541
+ description: "Display name of the location.",
30542
+ type: "string"
30543
+ },
30544
+ geolocation: {
30545
+ description: "Geographical location of the location.",
30546
+ properties: {
30547
+ latitude: { format: "float", type: "number" },
30548
+ longitude: { format: "float", type: "number" }
30549
+ },
30550
+ required: ["latitude", "longitude"],
30551
+ type: "object"
30552
+ },
30553
+ location_id: {
30554
+ description: "Unique identifier for the location.",
30555
+ format: "uuid",
30556
+ type: "string"
30557
+ },
30558
+ time_zone: {
30559
+ description: "Time zone of the location.",
30560
+ type: "string"
30561
+ },
30562
+ workspace_id: {
30563
+ description: "Unique identifier for the Seam workspace associated with the location.",
30564
+ format: "uuid",
30565
+ type: "string"
30566
+ }
30567
+ },
30568
+ required: [
30569
+ "location_id",
30570
+ "workspace_id",
30571
+ "display_name",
30572
+ "created_at"
30573
+ ],
30574
+ type: "object"
30575
+ },
30576
+ type: "array"
30577
+ },
30578
+ ok: { type: "boolean" }
30579
+ },
30580
+ required: ["locations", "ok"],
30581
+ type: "object"
30582
+ }
30583
+ }
30584
+ },
30585
+ description: "OK"
30586
+ },
30587
+ 400: { description: "Bad Request" },
30588
+ 401: { description: "Unauthorized" }
30589
+ },
30590
+ security: [
30591
+ { pat_with_workspace: [] },
30592
+ { console_session_with_workspace: [] },
30593
+ { api_key: [] }
30594
+ ],
30595
+ summary: "/unstable_locations/list",
30596
+ tags: [],
30597
+ "x-fern-ignore": true,
30598
+ "x-response-key": "locations",
30599
+ "x-title": "List Locations",
30600
+ "x-undocumented": "Experimental locations."
30601
+ },
30602
+ post: {
30603
+ description: "Returns a list of all locations.",
30604
+ operationId: "unstableLocationsListPost",
30605
+ responses: {
30606
+ 200: {
30607
+ content: {
30608
+ "application/json": {
30609
+ schema: {
30610
+ properties: {
30611
+ locations: {
30612
+ items: {
30613
+ properties: {
30614
+ created_at: {
30615
+ description: "Date and time at which the location object was created.",
30616
+ format: "date-time",
30617
+ type: "string"
30618
+ },
30619
+ display_name: {
30620
+ description: "Display name of the location.",
30621
+ type: "string"
30622
+ },
30623
+ geolocation: {
30624
+ description: "Geographical location of the location.",
30625
+ properties: {
30626
+ latitude: { format: "float", type: "number" },
30627
+ longitude: { format: "float", type: "number" }
30628
+ },
30629
+ required: ["latitude", "longitude"],
30630
+ type: "object"
30631
+ },
30632
+ location_id: {
30633
+ description: "Unique identifier for the location.",
30634
+ format: "uuid",
30635
+ type: "string"
30636
+ },
30637
+ time_zone: {
30638
+ description: "Time zone of the location.",
30639
+ type: "string"
30640
+ },
30641
+ workspace_id: {
30642
+ description: "Unique identifier for the Seam workspace associated with the location.",
30643
+ format: "uuid",
30644
+ type: "string"
30645
+ }
30646
+ },
30647
+ required: [
30648
+ "location_id",
30649
+ "workspace_id",
30650
+ "display_name",
30651
+ "created_at"
30652
+ ],
30653
+ type: "object"
30654
+ },
30655
+ type: "array"
30656
+ },
30657
+ ok: { type: "boolean" }
30658
+ },
30659
+ required: ["locations", "ok"],
30660
+ type: "object"
30661
+ }
30662
+ }
30663
+ },
30664
+ description: "OK"
30665
+ },
30666
+ 400: { description: "Bad Request" },
30667
+ 401: { description: "Unauthorized" }
30668
+ },
30669
+ security: [
30670
+ { pat_with_workspace: [] },
30671
+ { console_session_with_workspace: [] },
30672
+ { api_key: [] }
30673
+ ],
30674
+ summary: "/unstable_locations/list",
30675
+ tags: [],
30676
+ "x-fern-sdk-group-name": ["unstable_locations"],
30677
+ "x-fern-sdk-method-name": "list",
30678
+ "x-fern-sdk-return-value": "locations",
30679
+ "x-response-key": "locations",
30680
+ "x-title": "List Locations",
30681
+ "x-undocumented": "Experimental locations."
30682
+ }
30683
+ },
30684
+ "/unstable_locations/remove_devices": {
30685
+ post: {
30686
+ description: "Remove devices from a specific location.",
30687
+ operationId: "unstableLocationsRemoveDevicesPost",
30688
+ requestBody: {
30689
+ content: {
30690
+ "application/json": {
30691
+ schema: {
30692
+ properties: {
30693
+ device_ids: {
30694
+ items: { format: "uuid", type: "string" },
30695
+ type: "array"
30696
+ },
30697
+ location_id: { format: "uuid", type: "string" }
30698
+ },
30699
+ required: ["location_id", "device_ids"],
30700
+ type: "object"
30701
+ }
30702
+ }
30703
+ }
30704
+ },
30705
+ responses: {
30706
+ 200: {
30707
+ content: {
30708
+ "application/json": {
30709
+ schema: {
30710
+ properties: { ok: { type: "boolean" } },
30711
+ required: ["ok"],
30712
+ type: "object"
30713
+ }
30714
+ }
30715
+ },
30716
+ description: "OK"
30717
+ },
30718
+ 400: { description: "Bad Request" },
30719
+ 401: { description: "Unauthorized" }
30720
+ },
30721
+ security: [
30722
+ { pat_with_workspace: [] },
30723
+ { console_session_with_workspace: [] },
30724
+ { api_key: [] }
30725
+ ],
30726
+ summary: "/unstable_locations/remove_devices",
30727
+ tags: [],
30728
+ "x-fern-sdk-group-name": ["unstable_locations"],
30729
+ "x-fern-sdk-method-name": "remove_devices",
30730
+ "x-response-key": null,
30731
+ "x-title": "Remove Location Devices",
30732
+ "x-undocumented": "Experimental locations."
30733
+ }
30734
+ },
30735
+ "/unstable_locations/update": {
30736
+ post: {
30737
+ description: "Update an existing location.",
30738
+ operationId: "unstableLocationsUpdatePost",
30739
+ requestBody: {
30740
+ content: {
30741
+ "application/json": {
30742
+ schema: {
30743
+ properties: {
30744
+ geolocation: {
30745
+ properties: {
30746
+ latitude: { format: "float", type: "number" },
30747
+ longitude: { format: "float", type: "number" }
30748
+ },
30749
+ required: ["latitude", "longitude"],
30750
+ type: "object"
30751
+ },
30752
+ location_id: { format: "uuid", type: "string" },
30753
+ name: { type: "string" },
30754
+ time_zone: { type: "string" }
30755
+ },
30756
+ required: ["location_id"],
30757
+ type: "object"
30758
+ }
30759
+ }
30760
+ }
30761
+ },
30762
+ responses: {
30763
+ 200: {
30764
+ content: {
30765
+ "application/json": {
30766
+ schema: {
30767
+ properties: {
30768
+ location: {
30769
+ properties: {
30770
+ created_at: {
30771
+ description: "Date and time at which the location object was created.",
30772
+ format: "date-time",
30773
+ type: "string"
30774
+ },
30775
+ display_name: {
30776
+ description: "Display name of the location.",
30777
+ type: "string"
30778
+ },
30779
+ geolocation: {
30780
+ description: "Geographical location of the location.",
30781
+ properties: {
30782
+ latitude: { format: "float", type: "number" },
30783
+ longitude: { format: "float", type: "number" }
30784
+ },
30785
+ required: ["latitude", "longitude"],
30786
+ type: "object"
30787
+ },
30788
+ location_id: {
30789
+ description: "Unique identifier for the location.",
30790
+ format: "uuid",
30791
+ type: "string"
30792
+ },
30793
+ time_zone: {
30794
+ description: "Time zone of the location.",
30795
+ type: "string"
30796
+ },
30797
+ workspace_id: {
30798
+ description: "Unique identifier for the Seam workspace associated with the location.",
30799
+ format: "uuid",
30800
+ type: "string"
30801
+ }
30802
+ },
30803
+ required: [
30804
+ "location_id",
30805
+ "workspace_id",
30806
+ "display_name",
30807
+ "created_at"
30808
+ ],
30809
+ type: "object"
30810
+ },
30811
+ ok: { type: "boolean" }
30812
+ },
30813
+ required: ["location", "ok"],
30814
+ type: "object"
30815
+ }
30816
+ }
30817
+ },
30818
+ description: "OK"
30819
+ },
30820
+ 400: { description: "Bad Request" },
30821
+ 401: { description: "Unauthorized" }
30822
+ },
30823
+ security: [
30824
+ { pat_with_workspace: [] },
30825
+ { console_session_with_workspace: [] },
30826
+ { api_key: [] }
30827
+ ],
30828
+ summary: "/unstable_locations/update",
30829
+ tags: [],
30830
+ "x-fern-sdk-group-name": ["unstable_locations"],
30831
+ "x-fern-sdk-method-name": "update",
30832
+ "x-fern-sdk-return-value": "location",
30833
+ "x-response-key": "location",
30834
+ "x-title": "Update Location",
30835
+ "x-undocumented": "Experimental locations."
30836
+ }
30837
+ },
29835
30838
  "/user_identities/add_acs_user": {
29836
30839
  post: {
29837
30840
  description: "Adds a specified [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",