@seamapi/types 1.369.2 → 1.370.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 (48) hide show
  1. package/dist/connect.cjs +370 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +519 -28
  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/access-grants/access-grant.d.ts +57 -0
  8. package/lib/seam/connect/models/access-grants/access-grant.js +29 -0
  9. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -0
  10. package/lib/seam/connect/models/access-grants/access-method.d.ts +21 -0
  11. package/lib/seam/connect/models/access-grants/access-method.js +24 -0
  12. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -0
  13. package/lib/seam/connect/models/access-grants/index.d.ts +2 -0
  14. package/lib/seam/connect/models/access-grants/index.js +3 -0
  15. package/lib/seam/connect/models/access-grants/index.js.map +1 -0
  16. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +4 -4
  17. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  18. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  19. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
  20. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  21. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  22. package/lib/seam/connect/models/bridges/{bridge_client_session.js → bridge-client-session.js} +1 -1
  23. package/lib/seam/connect/models/bridges/{bridge_client_session.js.map → bridge-client-session.js.map} +1 -1
  24. package/lib/seam/connect/models/bridges/bridge-connected-system.d.ts +30 -0
  25. package/lib/seam/connect/models/bridges/bridge-connected-system.js +17 -0
  26. package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -0
  27. package/lib/seam/connect/models/bridges/index.d.ts +2 -1
  28. package/lib/seam/connect/models/bridges/index.js +2 -1
  29. package/lib/seam/connect/models/bridges/index.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/openapi.d.ts +402 -0
  34. package/lib/seam/connect/openapi.js +369 -0
  35. package/lib/seam/connect/openapi.js.map +1 -1
  36. package/lib/seam/connect/route-types.d.ts +89 -0
  37. package/package.json +1 -1
  38. package/src/lib/seam/connect/internal/schemas.ts +3 -0
  39. package/src/lib/seam/connect/models/access-grants/access-grant.ts +34 -0
  40. package/src/lib/seam/connect/models/access-grants/access-method.ts +28 -0
  41. package/src/lib/seam/connect/models/access-grants/index.ts +2 -0
  42. package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +19 -0
  43. package/src/lib/seam/connect/models/bridges/index.ts +2 -1
  44. package/src/lib/seam/connect/models/index.ts +1 -0
  45. package/src/lib/seam/connect/openapi.ts +394 -0
  46. package/src/lib/seam/connect/route-types.ts +96 -0
  47. /package/lib/seam/connect/models/bridges/{bridge_client_session.d.ts → bridge-client-session.d.ts} +0 -0
  48. /package/src/lib/seam/connect/models/bridges/{bridge_client_session.ts → bridge-client-session.ts} +0 -0
@@ -29277,6 +29277,26 @@ export interface Routes {
29277
29277
  };
29278
29278
  };
29279
29279
  };
29280
+ '/seam/bridge/v1/bridge_connected_systems/list': {
29281
+ route: '/seam/bridge/v1/bridge_connected_systems/list';
29282
+ method: 'GET' | 'POST';
29283
+ queryParams: {};
29284
+ jsonBody: {};
29285
+ commonParams: {};
29286
+ formData: {};
29287
+ jsonResponse: {
29288
+ bridge_connected_systems: Array<{
29289
+ bridge_id: string;
29290
+ bridge_created_at: string;
29291
+ connected_account_id: string;
29292
+ connected_account_created_at: string;
29293
+ acs_system_id: string;
29294
+ acs_system_display_name: string;
29295
+ workspace_id: string;
29296
+ workspace_display_name: string;
29297
+ }>;
29298
+ };
29299
+ };
29280
29300
  '/thermostats/activate_climate_preset': {
29281
29301
  route: '/thermostats/activate_climate_preset';
29282
29302
  method: 'POST';
@@ -38541,6 +38561,74 @@ export interface Routes {
38541
38561
  formData: {};
38542
38562
  jsonResponse: {};
38543
38563
  };
38564
+ '/unstable_access_grants/create': {
38565
+ route: '/unstable_access_grants/create';
38566
+ method: 'POST';
38567
+ queryParams: {};
38568
+ jsonBody: {};
38569
+ commonParams: ({
38570
+ /** ID of user identity for whom access is being granted. */
38571
+ user_identity_id?: string | undefined;
38572
+ } | {
38573
+ /** When used, creates a new user identity with the given details, and grants them access. */
38574
+ user_identity?: {
38575
+ /** Unique email address for the user identity. */
38576
+ email_address?: (string | null) | undefined;
38577
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
38578
+ phone_number?: (string | null) | undefined;
38579
+ full_name?: (string | null) | undefined;
38580
+ } | undefined;
38581
+ }) & {
38582
+ /** Set of IDs of existing locations to which access is being granted. */
38583
+ location_ids?: string[] | undefined;
38584
+ /** When used, creates a new location with the given entrances and devices, and gives the user access to this location. */
38585
+ location?: {
38586
+ /** Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to add to the location to which access is being granted. */
38587
+ acs_entrance_ids?: string[];
38588
+ /** 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. */
38589
+ device_ids?: string[];
38590
+ } | undefined;
38591
+ desired_access_methods: Array<{
38592
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
38593
+ mode: 'code' | 'card' | 'mobile_key';
38594
+ }>;
38595
+ /** 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. */
38596
+ starts_at?: string | undefined;
38597
+ /** 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`. */
38598
+ ends_at?: string | undefined;
38599
+ };
38600
+ formData: {};
38601
+ jsonResponse: {
38602
+ /** */
38603
+ access_grant: {
38604
+ /** Unique identifier for the Seam workspace associated with the access grant. */
38605
+ workspace_id: string;
38606
+ /** ID of the access grant. */
38607
+ access_grant_id: string;
38608
+ /** ID of user identity to which access is being granted. */
38609
+ user_identity_id: string;
38610
+ /** IDs of the locations to which access is being given. */
38611
+ location_ids: string[];
38612
+ /** Access methods associated with this access grant. */
38613
+ access_methods: Array<{
38614
+ /** Key for the access method - unique within an access grant. */
38615
+ access_method_key: string;
38616
+ /** Display name of the access method. */
38617
+ display_name: string;
38618
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
38619
+ mode: 'code' | 'card' | 'mobile_key';
38620
+ /** Date and time at which the access method was created. */
38621
+ created_at: string;
38622
+ /** Date and time at which the access method was issued. */
38623
+ issued_at: string | null;
38624
+ }>;
38625
+ /** Display name of the access grant. */
38626
+ display_name: string;
38627
+ /** Date and time at which the access grant was created. */
38628
+ created_at: string;
38629
+ };
38630
+ };
38631
+ };
38544
38632
  '/unstable_locations/add_devices': {
38545
38633
  route: '/unstable_locations/add_devices';
38546
38634
  method: 'POST' | 'PUT';
@@ -40757,6 +40845,7 @@ export interface Routes {
40757
40845
  webview_primary_button_color?: string | undefined;
40758
40846
  webview_primary_button_text_color?: string | undefined;
40759
40847
  webview_logo_shape?: ('circle' | 'square') | undefined;
40848
+ webview_success_message?: string | undefined;
40760
40849
  };
40761
40850
  commonParams: {};
40762
40851
  formData: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.369.2",
3
+ "version": "1.370.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,7 @@
1
1
  export {
2
2
  access_code_code_constraint,
3
+ access_grant,
4
+ access_method,
3
5
  acs_access_group,
4
6
  acs_access_group_external_type,
5
7
  acs_credential,
@@ -18,6 +20,7 @@ export {
18
20
  battery_status,
19
21
  bridge,
20
22
  bridge_client_session,
23
+ bridge_connected_system,
21
24
  capabilities,
22
25
  climate_preset,
23
26
  climate_setting,
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod'
2
+
3
+ import { access_method } from './access-method.js'
4
+
5
+ export const access_grant = z.object({
6
+ workspace_id: z
7
+ .string()
8
+ .uuid()
9
+ .describe(
10
+ 'Unique identifier for the Seam workspace associated with the access grant.',
11
+ ),
12
+ access_grant_id: z.string().uuid().describe('ID of the access grant.'),
13
+ user_identity_id: z
14
+ .string()
15
+ .uuid()
16
+ .describe('ID of user identity to which access is being granted.'),
17
+ location_ids: z
18
+ .array(z.string().uuid())
19
+ .describe('IDs of the locations to which access is being given.'),
20
+ access_methods: z
21
+ .array(access_method)
22
+ .describe('Access methods associated with this access grant.'),
23
+ display_name: z.string().describe('Display name of the access grant.'),
24
+ created_at: z
25
+ .string()
26
+ .datetime()
27
+ .describe('Date and time at which the access grant was created.'),
28
+ }).describe(`
29
+ ---
30
+ undocumented: Unreleased.
31
+ ---
32
+ `)
33
+
34
+ export type AccessGrant = z.infer<typeof access_grant>
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod'
2
+
3
+ export const access_method = z.object({
4
+ access_method_key: z
5
+ .string()
6
+ .describe('Key for the access method - unique within an access grant.'),
7
+ display_name: z.string().describe('Display name of the access method.'),
8
+ mode: z
9
+ .enum(['code', 'card', 'mobile_key'])
10
+ .describe(
11
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
12
+ ),
13
+ created_at: z
14
+ .string()
15
+ .datetime()
16
+ .describe('Date and time at which the access method was created.'),
17
+ issued_at: z
18
+ .string()
19
+ .datetime()
20
+ .nullable()
21
+ .describe('Date and time at which the access method was issued.'),
22
+ }).describe(`
23
+ ---
24
+ undocumented: Unreleased.
25
+ ---
26
+ `)
27
+
28
+ export type AccessMethod = z.infer<typeof access_method>
@@ -0,0 +1,2 @@
1
+ export * from './access-grant.js'
2
+ export * from './access-method.js'
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod'
2
+
3
+ export const bridge_connected_system = z.object({
4
+ bridge_id: z.string().uuid(),
5
+ bridge_created_at: z.string().datetime(),
6
+ connected_account_id: z.string().uuid(),
7
+ connected_account_created_at: z.string().datetime(),
8
+ acs_system_id: z.string().uuid(),
9
+ acs_system_display_name: z.string(),
10
+ workspace_id: z.string().uuid(),
11
+ workspace_display_name: z.string(),
12
+ }).describe(`
13
+ ---
14
+ route_path: /seam/bridge/v1/bridge_connected_systems
15
+ undocumented: Seam Bridge Client only.
16
+ ---
17
+ `)
18
+
19
+ export type BridgeConnectedSystem = z.infer<typeof bridge_connected_system>
@@ -1,2 +1,3 @@
1
1
  export * from './bridge.js'
2
- export * from './bridge_client_session.js'
2
+ export * from './bridge-client-session.js'
3
+ export * from './bridge-connected-system.js'
@@ -1,4 +1,5 @@
1
1
  export * from './access-codes/index.js'
2
+ export * from './access-grants/index.js'
2
3
  export * from './acs/index.js'
3
4
  export * from './action-attempts/index.js'
4
5
  export * from './bridges/index.js'
@@ -26200,6 +26200,151 @@ export default {
26200
26200
  'x-undocumented': 'Seam Bridge Client only.',
26201
26201
  },
26202
26202
  },
26203
+ '/seam/bridge/v1/bridge_connected_systems/list': {
26204
+ get: {
26205
+ description:
26206
+ 'Returns the bridge connected systems associated with the session token used.',
26207
+ operationId: 'seamBridgeV1BridgeConnectedSystemsListGet',
26208
+ responses: {
26209
+ 200: {
26210
+ content: {
26211
+ 'application/json': {
26212
+ schema: {
26213
+ properties: {
26214
+ bridge_connected_systems: {
26215
+ items: {
26216
+ properties: {
26217
+ acs_system_display_name: { type: 'string' },
26218
+ acs_system_id: { format: 'uuid', type: 'string' },
26219
+ bridge_created_at: {
26220
+ format: 'date-time',
26221
+ type: 'string',
26222
+ },
26223
+ bridge_id: { format: 'uuid', type: 'string' },
26224
+ connected_account_created_at: {
26225
+ format: 'date-time',
26226
+ type: 'string',
26227
+ },
26228
+ connected_account_id: {
26229
+ format: 'uuid',
26230
+ type: 'string',
26231
+ },
26232
+ workspace_display_name: { type: 'string' },
26233
+ workspace_id: { format: 'uuid', type: 'string' },
26234
+ },
26235
+ required: [
26236
+ 'bridge_id',
26237
+ 'bridge_created_at',
26238
+ 'connected_account_id',
26239
+ 'connected_account_created_at',
26240
+ 'acs_system_id',
26241
+ 'acs_system_display_name',
26242
+ 'workspace_id',
26243
+ 'workspace_display_name',
26244
+ ],
26245
+ type: 'object',
26246
+ 'x-route-path':
26247
+ '/seam/bridge/v1/bridge_connected_systems',
26248
+ 'x-undocumented': 'Seam Bridge Client only.',
26249
+ },
26250
+ type: 'array',
26251
+ },
26252
+ ok: { type: 'boolean' },
26253
+ },
26254
+ required: ['bridge_connected_systems', 'ok'],
26255
+ type: 'object',
26256
+ },
26257
+ },
26258
+ },
26259
+ description: 'OK',
26260
+ },
26261
+ 400: { description: 'Bad Request' },
26262
+ 401: { description: 'Unauthorized' },
26263
+ },
26264
+ security: [{ bridge_client_session: [] }],
26265
+ summary: '/seam/bridge/v1/bridge_connected_systems/list',
26266
+ tags: [],
26267
+ 'x-fern-ignore': true,
26268
+ 'x-response-key': 'bridge_connected_systems',
26269
+ 'x-title': 'List Bridge Connected Systems',
26270
+ 'x-undocumented': 'Seam Bridge Client only.',
26271
+ },
26272
+ post: {
26273
+ description:
26274
+ 'Returns the bridge connected systems associated with the session token used.',
26275
+ operationId: 'seamBridgeV1BridgeConnectedSystemsListPost',
26276
+ responses: {
26277
+ 200: {
26278
+ content: {
26279
+ 'application/json': {
26280
+ schema: {
26281
+ properties: {
26282
+ bridge_connected_systems: {
26283
+ items: {
26284
+ properties: {
26285
+ acs_system_display_name: { type: 'string' },
26286
+ acs_system_id: { format: 'uuid', type: 'string' },
26287
+ bridge_created_at: {
26288
+ format: 'date-time',
26289
+ type: 'string',
26290
+ },
26291
+ bridge_id: { format: 'uuid', type: 'string' },
26292
+ connected_account_created_at: {
26293
+ format: 'date-time',
26294
+ type: 'string',
26295
+ },
26296
+ connected_account_id: {
26297
+ format: 'uuid',
26298
+ type: 'string',
26299
+ },
26300
+ workspace_display_name: { type: 'string' },
26301
+ workspace_id: { format: 'uuid', type: 'string' },
26302
+ },
26303
+ required: [
26304
+ 'bridge_id',
26305
+ 'bridge_created_at',
26306
+ 'connected_account_id',
26307
+ 'connected_account_created_at',
26308
+ 'acs_system_id',
26309
+ 'acs_system_display_name',
26310
+ 'workspace_id',
26311
+ 'workspace_display_name',
26312
+ ],
26313
+ type: 'object',
26314
+ 'x-route-path':
26315
+ '/seam/bridge/v1/bridge_connected_systems',
26316
+ 'x-undocumented': 'Seam Bridge Client only.',
26317
+ },
26318
+ type: 'array',
26319
+ },
26320
+ ok: { type: 'boolean' },
26321
+ },
26322
+ required: ['bridge_connected_systems', 'ok'],
26323
+ type: 'object',
26324
+ },
26325
+ },
26326
+ },
26327
+ description: 'OK',
26328
+ },
26329
+ 400: { description: 'Bad Request' },
26330
+ 401: { description: 'Unauthorized' },
26331
+ },
26332
+ security: [{ bridge_client_session: [] }],
26333
+ summary: '/seam/bridge/v1/bridge_connected_systems/list',
26334
+ tags: [],
26335
+ 'x-fern-sdk-group-name': [
26336
+ 'seam',
26337
+ 'bridge',
26338
+ 'v1',
26339
+ 'bridge_connected_systems',
26340
+ ],
26341
+ 'x-fern-sdk-method-name': 'list',
26342
+ 'x-fern-sdk-return-value': 'bridge_connected_systems',
26343
+ 'x-response-key': 'bridge_connected_systems',
26344
+ 'x-title': 'List Bridge Connected Systems',
26345
+ 'x-undocumented': 'Seam Bridge Client only.',
26346
+ },
26347
+ },
26203
26348
  '/thermostats/activate_climate_preset': {
26204
26349
  post: {
26205
26350
  description:
@@ -28426,6 +28571,254 @@ export default {
28426
28571
  'x-title': 'Update a Climate Preset',
28427
28572
  },
28428
28573
  },
28574
+ '/unstable_access_grants/create': {
28575
+ post: {
28576
+ description: 'Creates a new access grant.',
28577
+ operationId: 'unstableAccessGrantsCreatePost',
28578
+ requestBody: {
28579
+ content: {
28580
+ 'application/json': {
28581
+ schema: {
28582
+ allOf: [
28583
+ {
28584
+ oneOf: [
28585
+ {
28586
+ properties: {
28587
+ user_identity_id: {
28588
+ description:
28589
+ 'ID of user identity for whom access is being granted.',
28590
+ format: 'uuid',
28591
+ type: 'string',
28592
+ },
28593
+ },
28594
+ type: 'object',
28595
+ },
28596
+ {
28597
+ properties: {
28598
+ user_identity: {
28599
+ description:
28600
+ 'When used, creates a new user identity with the given details, and grants them access.',
28601
+ properties: {
28602
+ email_address: {
28603
+ description:
28604
+ 'Unique email address for the user identity.',
28605
+ format: 'email',
28606
+ nullable: true,
28607
+ type: 'string',
28608
+ },
28609
+ full_name: {
28610
+ minLength: 1,
28611
+ nullable: true,
28612
+ type: 'string',
28613
+ },
28614
+ phone_number: {
28615
+ description:
28616
+ 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
28617
+ nullable: true,
28618
+ type: 'string',
28619
+ },
28620
+ },
28621
+ type: 'object',
28622
+ 'x-route-path': '/user_identities',
28623
+ },
28624
+ },
28625
+ type: 'object',
28626
+ },
28627
+ ],
28628
+ },
28629
+ {
28630
+ properties: {
28631
+ desired_access_methods: {
28632
+ items: {
28633
+ properties: {
28634
+ mode: {
28635
+ description:
28636
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
28637
+ enum: ['code', 'card', 'mobile_key'],
28638
+ type: 'string',
28639
+ },
28640
+ },
28641
+ required: ['mode'],
28642
+ type: 'object',
28643
+ },
28644
+ type: 'array',
28645
+ },
28646
+ ends_at: {
28647
+ description:
28648
+ '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`.',
28649
+ format: 'date-time',
28650
+ type: 'string',
28651
+ },
28652
+ location: {
28653
+ description:
28654
+ 'When used, creates a new location with the given entrances and devices, and gives the user access to this location.',
28655
+ properties: {
28656
+ acs_entrance_ids: {
28657
+ default: [],
28658
+ description:
28659
+ 'Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to add to the location to which access is being granted.',
28660
+ items: { format: 'uuid', type: 'string' },
28661
+ type: 'array',
28662
+ },
28663
+ device_ids: {
28664
+ default: [],
28665
+ description:
28666
+ '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.',
28667
+ items: { format: 'uuid', type: 'string' },
28668
+ type: 'array',
28669
+ },
28670
+ },
28671
+ type: 'object',
28672
+ },
28673
+ location_ids: {
28674
+ description:
28675
+ 'Set of IDs of existing locations to which access is being granted.',
28676
+ items: { format: 'uuid', type: 'string' },
28677
+ type: 'array',
28678
+ },
28679
+ starts_at: {
28680
+ description:
28681
+ '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.',
28682
+ format: 'date-time',
28683
+ type: 'string',
28684
+ },
28685
+ },
28686
+ required: ['desired_access_methods'],
28687
+ type: 'object',
28688
+ },
28689
+ ],
28690
+ },
28691
+ },
28692
+ },
28693
+ },
28694
+ responses: {
28695
+ 200: {
28696
+ content: {
28697
+ 'application/json': {
28698
+ schema: {
28699
+ properties: {
28700
+ access_grant: {
28701
+ properties: {
28702
+ access_grant_id: {
28703
+ description: 'ID of the access grant.',
28704
+ format: 'uuid',
28705
+ type: 'string',
28706
+ },
28707
+ access_methods: {
28708
+ description:
28709
+ 'Access methods associated with this access grant.',
28710
+ items: {
28711
+ properties: {
28712
+ access_method_key: {
28713
+ description:
28714
+ 'Key for the access method - unique within an access grant.',
28715
+ type: 'string',
28716
+ },
28717
+ created_at: {
28718
+ description:
28719
+ 'Date and time at which the access method was created.',
28720
+ format: 'date-time',
28721
+ type: 'string',
28722
+ },
28723
+ display_name: {
28724
+ description:
28725
+ 'Display name of the access method.',
28726
+ type: 'string',
28727
+ },
28728
+ issued_at: {
28729
+ description:
28730
+ 'Date and time at which the access method was issued.',
28731
+ format: 'date-time',
28732
+ nullable: true,
28733
+ type: 'string',
28734
+ },
28735
+ mode: {
28736
+ description:
28737
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
28738
+ enum: ['code', 'card', 'mobile_key'],
28739
+ type: 'string',
28740
+ },
28741
+ },
28742
+ required: [
28743
+ 'access_method_key',
28744
+ 'display_name',
28745
+ 'mode',
28746
+ 'created_at',
28747
+ 'issued_at',
28748
+ ],
28749
+ type: 'object',
28750
+ 'x-undocumented': 'Unreleased.',
28751
+ },
28752
+ type: 'array',
28753
+ },
28754
+ created_at: {
28755
+ description:
28756
+ 'Date and time at which the access grant was created.',
28757
+ format: 'date-time',
28758
+ type: 'string',
28759
+ },
28760
+ display_name: {
28761
+ description: 'Display name of the access grant.',
28762
+ type: 'string',
28763
+ },
28764
+ location_ids: {
28765
+ description:
28766
+ 'IDs of the locations to which access is being given.',
28767
+ items: { format: 'uuid', type: 'string' },
28768
+ type: 'array',
28769
+ },
28770
+ user_identity_id: {
28771
+ description:
28772
+ 'ID of user identity to which access is being granted.',
28773
+ format: 'uuid',
28774
+ type: 'string',
28775
+ },
28776
+ workspace_id: {
28777
+ description:
28778
+ 'Unique identifier for the Seam workspace associated with the access grant.',
28779
+ format: 'uuid',
28780
+ type: 'string',
28781
+ },
28782
+ },
28783
+ required: [
28784
+ 'workspace_id',
28785
+ 'access_grant_id',
28786
+ 'user_identity_id',
28787
+ 'location_ids',
28788
+ 'access_methods',
28789
+ 'display_name',
28790
+ 'created_at',
28791
+ ],
28792
+ type: 'object',
28793
+ 'x-undocumented': 'Unreleased.',
28794
+ },
28795
+ ok: { type: 'boolean' },
28796
+ },
28797
+ required: ['access_grant', 'ok'],
28798
+ type: 'object',
28799
+ },
28800
+ },
28801
+ },
28802
+ description: 'OK',
28803
+ },
28804
+ 400: { description: 'Bad Request' },
28805
+ 401: { description: 'Unauthorized' },
28806
+ },
28807
+ security: [
28808
+ { pat_with_workspace: [] },
28809
+ { console_session_with_workspace: [] },
28810
+ { api_key: [] },
28811
+ ],
28812
+ summary: '/unstable_access_grants/create',
28813
+ tags: [],
28814
+ 'x-fern-sdk-group-name': ['unstable_access_grants'],
28815
+ 'x-fern-sdk-method-name': 'create',
28816
+ 'x-fern-sdk-return-value': 'access_grant',
28817
+ 'x-response-key': 'access_grant',
28818
+ 'x-title': 'Create an Access Grant',
28819
+ 'x-undocumented': 'Unreleased.',
28820
+ },
28821
+ },
28429
28822
  '/unstable_locations/add_devices': {
28430
28823
  post: {
28431
28824
  description:
@@ -30725,6 +31118,7 @@ export default {
30725
31118
  },
30726
31119
  webview_primary_button_color: { type: 'string' },
30727
31120
  webview_primary_button_text_color: { type: 'string' },
31121
+ webview_success_message: { type: 'string' },
30728
31122
  },
30729
31123
  required: ['name'],
30730
31124
  type: 'object',