@seamapi/types 1.593.0 → 1.594.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.
@@ -11823,6 +11823,82 @@ export type Routes = {
11823
11823
  }[];
11824
11824
  };
11825
11825
  };
11826
+ '/access_grants/request_access_methods': {
11827
+ route: '/access_grants/request_access_methods';
11828
+ method: 'POST';
11829
+ queryParams: {};
11830
+ jsonBody: {};
11831
+ commonParams: {
11832
+ /** ID of the Access Grant to add access methods to. */
11833
+ access_grant_id: string;
11834
+ /** Array of requested access methods to add to the access grant. */
11835
+ requested_access_methods: {
11836
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
11837
+ mode: 'code' | 'card' | 'mobile_key';
11838
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
11839
+ code?: string | undefined;
11840
+ }[];
11841
+ };
11842
+ formData: {};
11843
+ jsonResponse: {
11844
+ /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
11845
+ access_grant: {
11846
+ /** ID of the Seam workspace associated with the Access Grant. */
11847
+ workspace_id: string;
11848
+ /** ID of the Access Grant. */
11849
+ access_grant_id: string;
11850
+ /** Unique key for the access grant within the workspace. */
11851
+ access_grant_key?: string | undefined;
11852
+ /** ID of user identity to which the Access Grant gives access. */
11853
+ user_identity_id: string;
11854
+ /**
11855
+ * @deprecated Use `space_ids`.*/
11856
+ location_ids: string[];
11857
+ /** IDs of the spaces to which the Access Grant gives access. */
11858
+ space_ids: string[];
11859
+ /** Access methods that the user requested for the Access Grant. */
11860
+ requested_access_methods: {
11861
+ /** Display name of the access method. */
11862
+ display_name: string;
11863
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
11864
+ mode: 'code' | 'card' | 'mobile_key';
11865
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
11866
+ code?: string | undefined;
11867
+ /** Date and time at which the requested access method was added to the Access Grant. */
11868
+ created_at: string;
11869
+ /** IDs of the access methods created for the requested access method. */
11870
+ created_access_method_ids: string[];
11871
+ }[];
11872
+ /** IDs of the access methods created for the Access Grant. */
11873
+ access_method_ids: string[];
11874
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
11875
+ client_session_token?: string | undefined;
11876
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
11877
+ name: string | null;
11878
+ /** Display name of the Access Grant. */
11879
+ display_name: string;
11880
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
11881
+ instant_key_url?: string | undefined;
11882
+ /** Date and time at which the Access Grant was created. */
11883
+ created_at: string;
11884
+ /** Date and time at which the Access Grant starts. */
11885
+ starts_at: string;
11886
+ /** Date and time at which the Access Grant ends. */
11887
+ ends_at: string | null;
11888
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
11889
+ warnings: {
11890
+ /** Date and time at which Seam created the warning. */
11891
+ created_at: string;
11892
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
11893
+ message: string;
11894
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
11895
+ warning_code: 'being_deleted';
11896
+ }[];
11897
+ /** ID of the customization profile associated with the Access Grant. */
11898
+ customization_profile_id?: string | undefined;
11899
+ };
11900
+ };
11901
+ };
11826
11902
  '/access_grants/unmanaged/get': {
11827
11903
  route: '/access_grants/unmanaged/get';
11828
11904
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.593.0",
3
+ "version": "1.594.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -29115,6 +29115,90 @@ export default {
29115
29115
  'x-title': 'List Access Grants',
29116
29116
  },
29117
29117
  },
29118
+ '/access_grants/request_access_methods': {
29119
+ post: {
29120
+ description:
29121
+ 'Adds additional requested access methods to an existing Access Grant.',
29122
+ operationId: 'accessGrantsRequestAccessMethodsPost',
29123
+ requestBody: {
29124
+ content: {
29125
+ 'application/json': {
29126
+ schema: {
29127
+ properties: {
29128
+ access_grant_id: {
29129
+ description:
29130
+ 'ID of the Access Grant to add access methods to.',
29131
+ format: 'uuid',
29132
+ type: 'string',
29133
+ },
29134
+ requested_access_methods: {
29135
+ description:
29136
+ 'Array of requested access methods to add to the access grant.',
29137
+ items: {
29138
+ properties: {
29139
+ code: {
29140
+ description:
29141
+ "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
29142
+ maxLength: 9,
29143
+ minLength: 4,
29144
+ pattern: '^\\d+$',
29145
+ type: 'string',
29146
+ },
29147
+ mode: {
29148
+ description:
29149
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
29150
+ enum: ['code', 'card', 'mobile_key'],
29151
+ type: 'string',
29152
+ },
29153
+ },
29154
+ required: ['mode'],
29155
+ type: 'object',
29156
+ },
29157
+ minItems: 1,
29158
+ type: 'array',
29159
+ },
29160
+ },
29161
+ required: ['access_grant_id', 'requested_access_methods'],
29162
+ type: 'object',
29163
+ },
29164
+ },
29165
+ },
29166
+ },
29167
+ responses: {
29168
+ 200: {
29169
+ content: {
29170
+ 'application/json': {
29171
+ schema: {
29172
+ properties: {
29173
+ access_grant: { $ref: '#/components/schemas/access_grant' },
29174
+ ok: { type: 'boolean' },
29175
+ },
29176
+ required: ['access_grant', 'ok'],
29177
+ type: 'object',
29178
+ },
29179
+ },
29180
+ },
29181
+ description: 'OK',
29182
+ },
29183
+ 400: { description: 'Bad Request' },
29184
+ 401: { description: 'Unauthorized' },
29185
+ },
29186
+ security: [
29187
+ { pat_with_workspace: [] },
29188
+ { console_session_with_workspace: [] },
29189
+ { api_key: [] },
29190
+ { client_session_with_customer: [] },
29191
+ ],
29192
+ summary: '/access_grants/request_access_methods',
29193
+ tags: [],
29194
+ 'x-draft': 'Early access.',
29195
+ 'x-fern-sdk-group-name': ['access_grants'],
29196
+ 'x-fern-sdk-method-name': 'request_access_methods',
29197
+ 'x-fern-sdk-return-value': 'access_grant',
29198
+ 'x-response-key': 'access_grant',
29199
+ 'x-title': 'Add Requested Access Methods to Access Grant',
29200
+ },
29201
+ },
29118
29202
  '/access_grants/unmanaged/get': {
29119
29203
  get: {
29120
29204
  description:
@@ -13551,6 +13551,82 @@ export type Routes = {
13551
13551
  }[]
13552
13552
  }
13553
13553
  }
13554
+ '/access_grants/request_access_methods': {
13555
+ route: '/access_grants/request_access_methods'
13556
+ method: 'POST'
13557
+ queryParams: {}
13558
+ jsonBody: {}
13559
+ commonParams: {
13560
+ /** ID of the Access Grant to add access methods to. */
13561
+ access_grant_id: string
13562
+ /** Array of requested access methods to add to the access grant. */
13563
+ requested_access_methods: {
13564
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
13565
+ mode: 'code' | 'card' | 'mobile_key'
13566
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
13567
+ code?: string | undefined
13568
+ }[]
13569
+ }
13570
+ formData: {}
13571
+ jsonResponse: {
13572
+ /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
13573
+ access_grant: {
13574
+ /** ID of the Seam workspace associated with the Access Grant. */
13575
+ workspace_id: string
13576
+ /** ID of the Access Grant. */
13577
+ access_grant_id: string
13578
+ /** Unique key for the access grant within the workspace. */
13579
+ access_grant_key?: string | undefined
13580
+ /** ID of user identity to which the Access Grant gives access. */
13581
+ user_identity_id: string
13582
+ /**
13583
+ * @deprecated Use `space_ids`.*/
13584
+ location_ids: string[]
13585
+ /** IDs of the spaces to which the Access Grant gives access. */
13586
+ space_ids: string[]
13587
+ /** Access methods that the user requested for the Access Grant. */
13588
+ requested_access_methods: {
13589
+ /** Display name of the access method. */
13590
+ display_name: string
13591
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
13592
+ mode: 'code' | 'card' | 'mobile_key'
13593
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
13594
+ code?: string | undefined
13595
+ /** Date and time at which the requested access method was added to the Access Grant. */
13596
+ created_at: string
13597
+ /** IDs of the access methods created for the requested access method. */
13598
+ created_access_method_ids: string[]
13599
+ }[]
13600
+ /** IDs of the access methods created for the Access Grant. */
13601
+ access_method_ids: string[]
13602
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
13603
+ client_session_token?: string | undefined
13604
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
13605
+ name: string | null
13606
+ /** Display name of the Access Grant. */
13607
+ display_name: string
13608
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
13609
+ instant_key_url?: string | undefined
13610
+ /** Date and time at which the Access Grant was created. */
13611
+ created_at: string
13612
+ /** Date and time at which the Access Grant starts. */
13613
+ starts_at: string
13614
+ /** Date and time at which the Access Grant ends. */
13615
+ ends_at: string | null
13616
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
13617
+ warnings: {
13618
+ /** Date and time at which Seam created the warning. */
13619
+ created_at: string
13620
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13621
+ message: string
13622
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13623
+ warning_code: 'being_deleted'
13624
+ }[]
13625
+ /** ID of the customization profile associated with the Access Grant. */
13626
+ customization_profile_id?: string | undefined
13627
+ }
13628
+ }
13629
+ }
13554
13630
  '/access_grants/unmanaged/get': {
13555
13631
  route: '/access_grants/unmanaged/get'
13556
13632
  method: 'GET' | 'POST'