@seamapi/types 1.592.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';
@@ -58646,6 +58722,45 @@ export type Routes = {
58646
58722
  };
58647
58723
  };
58648
58724
  };
58725
+ '/seam/customer/v1/spaces/list': {
58726
+ route: '/seam/customer/v1/spaces/list';
58727
+ method: 'GET' | 'POST';
58728
+ queryParams: {};
58729
+ jsonBody: {};
58730
+ commonParams: {
58731
+ /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
58732
+ search?: string | undefined;
58733
+ /** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */
58734
+ connected_account_id?: string | undefined;
58735
+ /** Filter spaces by space_key. */
58736
+ space_key?: string | undefined;
58737
+ };
58738
+ formData: {};
58739
+ jsonResponse: {
58740
+ spaces: {
58741
+ /** ID of the space. */
58742
+ space_id: string;
58743
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
58744
+ workspace_id: string;
58745
+ /** Unique key for the space within the workspace. */
58746
+ space_key?: string | undefined;
58747
+ /** Name of the space. */
58748
+ name: string;
58749
+ /** Display name for the space. */
58750
+ display_name: string;
58751
+ /** Date and time at which the space was created. */
58752
+ created_at: string;
58753
+ /** Number of devices in the space. */
58754
+ device_count: number;
58755
+ /** Number of entrances in the space. */
58756
+ acs_entrance_count: number;
58757
+ /** */
58758
+ parent_space_id?: string | undefined;
58759
+ /** */
58760
+ parent_space_key?: string | undefined;
58761
+ }[];
58762
+ };
58763
+ };
58649
58764
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
58650
58765
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code';
58651
58766
  method: 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.592.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:
@@ -52865,6 +52949,139 @@ export default {
52865
52949
  'x-title': 'Create a Space',
52866
52950
  },
52867
52951
  },
52952
+ '/seam/customer/v1/spaces/list': {
52953
+ get: {
52954
+ description: 'Returns a list of all spaces.',
52955
+ operationId: 'seamCustomerV1SpacesListGet',
52956
+ parameters: [
52957
+ {
52958
+ in: 'query',
52959
+ name: 'search',
52960
+ schema: {
52961
+ description:
52962
+ 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
52963
+ minLength: 1,
52964
+ type: 'string',
52965
+ },
52966
+ },
52967
+ {
52968
+ in: 'query',
52969
+ name: 'connected_account_id',
52970
+ schema: {
52971
+ description:
52972
+ 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
52973
+ format: 'uuid',
52974
+ type: 'string',
52975
+ 'x-draft': 'Needs review.',
52976
+ 'x-undocumented': 'Only used internally.',
52977
+ },
52978
+ },
52979
+ {
52980
+ in: 'query',
52981
+ name: 'space_key',
52982
+ schema: {
52983
+ description: 'Filter spaces by space_key.',
52984
+ type: 'string',
52985
+ },
52986
+ },
52987
+ ],
52988
+ responses: {
52989
+ 200: {
52990
+ content: {
52991
+ 'application/json': {
52992
+ schema: {
52993
+ properties: {
52994
+ ok: { type: 'boolean' },
52995
+ spaces: {
52996
+ items: { $ref: '#/components/schemas/space' },
52997
+ type: 'array',
52998
+ },
52999
+ },
53000
+ required: ['spaces', 'ok'],
53001
+ type: 'object',
53002
+ },
53003
+ },
53004
+ },
53005
+ description: 'OK',
53006
+ },
53007
+ 400: { description: 'Bad Request' },
53008
+ 401: { description: 'Unauthorized' },
53009
+ },
53010
+ security: [{ client_session_with_customer: [] }],
53011
+ summary: '/seam/customer/v1/spaces/list',
53012
+ tags: [],
53013
+ 'x-draft': 'Early access.',
53014
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
53015
+ 'x-fern-sdk-method-name': 'list',
53016
+ 'x-fern-sdk-return-value': 'spaces',
53017
+ 'x-response-key': 'spaces',
53018
+ 'x-title': 'List Spaces',
53019
+ },
53020
+ post: {
53021
+ description: 'Returns a list of all spaces.',
53022
+ operationId: 'seamCustomerV1SpacesListPost',
53023
+ requestBody: {
53024
+ content: {
53025
+ 'application/json': {
53026
+ schema: {
53027
+ properties: {
53028
+ connected_account_id: {
53029
+ description:
53030
+ 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
53031
+ format: 'uuid',
53032
+ type: 'string',
53033
+ 'x-draft': 'Needs review.',
53034
+ 'x-undocumented': 'Only used internally.',
53035
+ },
53036
+ search: {
53037
+ description:
53038
+ 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
53039
+ minLength: 1,
53040
+ type: 'string',
53041
+ },
53042
+ space_key: {
53043
+ description: 'Filter spaces by space_key.',
53044
+ type: 'string',
53045
+ },
53046
+ },
53047
+ type: 'object',
53048
+ },
53049
+ },
53050
+ },
53051
+ },
53052
+ responses: {
53053
+ 200: {
53054
+ content: {
53055
+ 'application/json': {
53056
+ schema: {
53057
+ properties: {
53058
+ ok: { type: 'boolean' },
53059
+ spaces: {
53060
+ items: { $ref: '#/components/schemas/space' },
53061
+ type: 'array',
53062
+ },
53063
+ },
53064
+ required: ['spaces', 'ok'],
53065
+ type: 'object',
53066
+ },
53067
+ },
53068
+ },
53069
+ description: 'OK',
53070
+ },
53071
+ 400: { description: 'Bad Request' },
53072
+ 401: { description: 'Unauthorized' },
53073
+ },
53074
+ security: [{ client_session_with_customer: [] }],
53075
+ summary: '/seam/customer/v1/spaces/list',
53076
+ tags: [],
53077
+ 'x-draft': 'Early access.',
53078
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
53079
+ 'x-fern-sdk-method-name': 'list',
53080
+ 'x-fern-sdk-return-value': 'spaces',
53081
+ 'x-response-key': 'spaces',
53082
+ 'x-title': 'List Spaces',
53083
+ },
53084
+ },
52868
53085
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
52869
53086
  post: {
52870
53087
  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'
@@ -69895,6 +69971,45 @@ export type Routes = {
69895
69971
  }
69896
69972
  }
69897
69973
  }
69974
+ '/seam/customer/v1/spaces/list': {
69975
+ route: '/seam/customer/v1/spaces/list'
69976
+ method: 'GET' | 'POST'
69977
+ queryParams: {}
69978
+ jsonBody: {}
69979
+ commonParams: {
69980
+ /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
69981
+ search?: string | undefined
69982
+ /** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */
69983
+ connected_account_id?: string | undefined
69984
+ /** Filter spaces by space_key. */
69985
+ space_key?: string | undefined
69986
+ }
69987
+ formData: {}
69988
+ jsonResponse: {
69989
+ spaces: {
69990
+ /** ID of the space. */
69991
+ space_id: string
69992
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
69993
+ workspace_id: string
69994
+ /** Unique key for the space within the workspace. */
69995
+ space_key?: string | undefined
69996
+ /** Name of the space. */
69997
+ name: string
69998
+ /** Display name for the space. */
69999
+ display_name: string
70000
+ /** Date and time at which the space was created. */
70001
+ created_at: string
70002
+ /** Number of devices in the space. */
70003
+ device_count: number
70004
+ /** Number of entrances in the space. */
70005
+ acs_entrance_count: number
70006
+ /** */
70007
+ parent_space_id?: string | undefined
70008
+ /** */
70009
+ parent_space_key?: string | undefined
70010
+ }[]
70011
+ }
70012
+ }
69898
70013
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
69899
70014
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code'
69900
70015
  method: 'POST'