@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.
@@ -69806,6 +69806,108 @@ declare const _default: {
69806
69806
  'x-title': string;
69807
69807
  };
69808
69808
  };
69809
+ '/access_grants/request_access_methods': {
69810
+ post: {
69811
+ description: string;
69812
+ operationId: string;
69813
+ requestBody: {
69814
+ content: {
69815
+ 'application/json': {
69816
+ schema: {
69817
+ properties: {
69818
+ access_grant_id: {
69819
+ description: string;
69820
+ format: string;
69821
+ type: string;
69822
+ };
69823
+ requested_access_methods: {
69824
+ description: string;
69825
+ items: {
69826
+ properties: {
69827
+ code: {
69828
+ description: string;
69829
+ maxLength: number;
69830
+ minLength: number;
69831
+ pattern: string;
69832
+ type: string;
69833
+ };
69834
+ mode: {
69835
+ description: string;
69836
+ enum: string[];
69837
+ type: string;
69838
+ };
69839
+ };
69840
+ required: string[];
69841
+ type: string;
69842
+ };
69843
+ minItems: number;
69844
+ type: string;
69845
+ };
69846
+ };
69847
+ required: string[];
69848
+ type: string;
69849
+ };
69850
+ };
69851
+ };
69852
+ };
69853
+ responses: {
69854
+ 200: {
69855
+ content: {
69856
+ 'application/json': {
69857
+ schema: {
69858
+ properties: {
69859
+ access_grant: {
69860
+ $ref: string;
69861
+ };
69862
+ ok: {
69863
+ type: string;
69864
+ };
69865
+ };
69866
+ required: string[];
69867
+ type: string;
69868
+ };
69869
+ };
69870
+ };
69871
+ description: string;
69872
+ };
69873
+ 400: {
69874
+ description: string;
69875
+ };
69876
+ 401: {
69877
+ description: string;
69878
+ };
69879
+ };
69880
+ security: ({
69881
+ pat_with_workspace: never[];
69882
+ console_session_with_workspace?: never;
69883
+ api_key?: never;
69884
+ client_session_with_customer?: never;
69885
+ } | {
69886
+ console_session_with_workspace: never[];
69887
+ pat_with_workspace?: never;
69888
+ api_key?: never;
69889
+ client_session_with_customer?: never;
69890
+ } | {
69891
+ api_key: never[];
69892
+ pat_with_workspace?: never;
69893
+ console_session_with_workspace?: never;
69894
+ client_session_with_customer?: never;
69895
+ } | {
69896
+ client_session_with_customer: never[];
69897
+ pat_with_workspace?: never;
69898
+ console_session_with_workspace?: never;
69899
+ api_key?: never;
69900
+ })[];
69901
+ summary: string;
69902
+ tags: never[];
69903
+ 'x-draft': string;
69904
+ 'x-fern-sdk-group-name': string[];
69905
+ 'x-fern-sdk-method-name': string;
69906
+ 'x-fern-sdk-return-value': string;
69907
+ 'x-response-key': string;
69908
+ 'x-title': string;
69909
+ };
69910
+ };
69809
69911
  '/access_grants/unmanaged/get': {
69810
69912
  get: {
69811
69913
  description: string;
@@ -94906,6 +95008,159 @@ declare const _default: {
94906
95008
  'x-title': string;
94907
95009
  };
94908
95010
  };
95011
+ '/seam/customer/v1/spaces/list': {
95012
+ get: {
95013
+ description: string;
95014
+ operationId: string;
95015
+ parameters: ({
95016
+ in: string;
95017
+ name: string;
95018
+ schema: {
95019
+ description: string;
95020
+ minLength: number;
95021
+ type: string;
95022
+ format?: never;
95023
+ 'x-draft'?: never;
95024
+ 'x-undocumented'?: never;
95025
+ };
95026
+ } | {
95027
+ in: string;
95028
+ name: string;
95029
+ schema: {
95030
+ description: string;
95031
+ format: string;
95032
+ type: string;
95033
+ 'x-draft': string;
95034
+ 'x-undocumented': string;
95035
+ minLength?: never;
95036
+ };
95037
+ } | {
95038
+ in: string;
95039
+ name: string;
95040
+ schema: {
95041
+ description: string;
95042
+ type: string;
95043
+ minLength?: never;
95044
+ format?: never;
95045
+ 'x-draft'?: never;
95046
+ 'x-undocumented'?: never;
95047
+ };
95048
+ })[];
95049
+ responses: {
95050
+ 200: {
95051
+ content: {
95052
+ 'application/json': {
95053
+ schema: {
95054
+ properties: {
95055
+ ok: {
95056
+ type: string;
95057
+ };
95058
+ spaces: {
95059
+ items: {
95060
+ $ref: string;
95061
+ };
95062
+ type: string;
95063
+ };
95064
+ };
95065
+ required: string[];
95066
+ type: string;
95067
+ };
95068
+ };
95069
+ };
95070
+ description: string;
95071
+ };
95072
+ 400: {
95073
+ description: string;
95074
+ };
95075
+ 401: {
95076
+ description: string;
95077
+ };
95078
+ };
95079
+ security: {
95080
+ client_session_with_customer: never[];
95081
+ }[];
95082
+ summary: string;
95083
+ tags: never[];
95084
+ 'x-draft': string;
95085
+ 'x-fern-sdk-group-name': string[];
95086
+ 'x-fern-sdk-method-name': string;
95087
+ 'x-fern-sdk-return-value': string;
95088
+ 'x-response-key': string;
95089
+ 'x-title': string;
95090
+ };
95091
+ post: {
95092
+ description: string;
95093
+ operationId: string;
95094
+ requestBody: {
95095
+ content: {
95096
+ 'application/json': {
95097
+ schema: {
95098
+ properties: {
95099
+ connected_account_id: {
95100
+ description: string;
95101
+ format: string;
95102
+ type: string;
95103
+ 'x-draft': string;
95104
+ 'x-undocumented': string;
95105
+ };
95106
+ search: {
95107
+ description: string;
95108
+ minLength: number;
95109
+ type: string;
95110
+ };
95111
+ space_key: {
95112
+ description: string;
95113
+ type: string;
95114
+ };
95115
+ };
95116
+ type: string;
95117
+ };
95118
+ };
95119
+ };
95120
+ };
95121
+ responses: {
95122
+ 200: {
95123
+ content: {
95124
+ 'application/json': {
95125
+ schema: {
95126
+ properties: {
95127
+ ok: {
95128
+ type: string;
95129
+ };
95130
+ spaces: {
95131
+ items: {
95132
+ $ref: string;
95133
+ };
95134
+ type: string;
95135
+ };
95136
+ };
95137
+ required: string[];
95138
+ type: string;
95139
+ };
95140
+ };
95141
+ };
95142
+ description: string;
95143
+ };
95144
+ 400: {
95145
+ description: string;
95146
+ };
95147
+ 401: {
95148
+ description: string;
95149
+ };
95150
+ };
95151
+ security: {
95152
+ client_session_with_customer: never[];
95153
+ }[];
95154
+ summary: string;
95155
+ tags: never[];
95156
+ 'x-draft': string;
95157
+ 'x-fern-sdk-group-name': string[];
95158
+ 'x-fern-sdk-method-name': string;
95159
+ 'x-fern-sdk-return-value': string;
95160
+ 'x-response-key': string;
95161
+ 'x-title': string;
95162
+ };
95163
+ };
94909
95164
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
94910
95165
  post: {
94911
95166
  description: string;
@@ -118848,6 +119103,82 @@ type Routes = {
118848
119103
  }[];
118849
119104
  };
118850
119105
  };
119106
+ '/access_grants/request_access_methods': {
119107
+ route: '/access_grants/request_access_methods';
119108
+ method: 'POST';
119109
+ queryParams: {};
119110
+ jsonBody: {};
119111
+ commonParams: {
119112
+ /** ID of the Access Grant to add access methods to. */
119113
+ access_grant_id: string;
119114
+ /** Array of requested access methods to add to the access grant. */
119115
+ requested_access_methods: {
119116
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
119117
+ mode: 'code' | 'card' | 'mobile_key';
119118
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
119119
+ code?: string | undefined;
119120
+ }[];
119121
+ };
119122
+ formData: {};
119123
+ jsonResponse: {
119124
+ /** 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. */
119125
+ access_grant: {
119126
+ /** ID of the Seam workspace associated with the Access Grant. */
119127
+ workspace_id: string;
119128
+ /** ID of the Access Grant. */
119129
+ access_grant_id: string;
119130
+ /** Unique key for the access grant within the workspace. */
119131
+ access_grant_key?: string | undefined;
119132
+ /** ID of user identity to which the Access Grant gives access. */
119133
+ user_identity_id: string;
119134
+ /**
119135
+ * @deprecated Use `space_ids`.*/
119136
+ location_ids: string[];
119137
+ /** IDs of the spaces to which the Access Grant gives access. */
119138
+ space_ids: string[];
119139
+ /** Access methods that the user requested for the Access Grant. */
119140
+ requested_access_methods: {
119141
+ /** Display name of the access method. */
119142
+ display_name: string;
119143
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
119144
+ mode: 'code' | 'card' | 'mobile_key';
119145
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
119146
+ code?: string | undefined;
119147
+ /** Date and time at which the requested access method was added to the Access Grant. */
119148
+ created_at: string;
119149
+ /** IDs of the access methods created for the requested access method. */
119150
+ created_access_method_ids: string[];
119151
+ }[];
119152
+ /** IDs of the access methods created for the Access Grant. */
119153
+ access_method_ids: string[];
119154
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
119155
+ client_session_token?: string | undefined;
119156
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
119157
+ name: string | null;
119158
+ /** Display name of the Access Grant. */
119159
+ display_name: string;
119160
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
119161
+ instant_key_url?: string | undefined;
119162
+ /** Date and time at which the Access Grant was created. */
119163
+ created_at: string;
119164
+ /** Date and time at which the Access Grant starts. */
119165
+ starts_at: string;
119166
+ /** Date and time at which the Access Grant ends. */
119167
+ ends_at: string | null;
119168
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
119169
+ warnings: {
119170
+ /** Date and time at which Seam created the warning. */
119171
+ created_at: string;
119172
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
119173
+ message: string;
119174
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
119175
+ warning_code: 'being_deleted';
119176
+ }[];
119177
+ /** ID of the customization profile associated with the Access Grant. */
119178
+ customization_profile_id?: string | undefined;
119179
+ };
119180
+ };
119181
+ };
118851
119182
  '/access_grants/unmanaged/get': {
118852
119183
  route: '/access_grants/unmanaged/get';
118853
119184
  method: 'GET' | 'POST';
@@ -165671,6 +166002,45 @@ type Routes = {
165671
166002
  };
165672
166003
  };
165673
166004
  };
166005
+ '/seam/customer/v1/spaces/list': {
166006
+ route: '/seam/customer/v1/spaces/list';
166007
+ method: 'GET' | 'POST';
166008
+ queryParams: {};
166009
+ jsonBody: {};
166010
+ commonParams: {
166011
+ /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
166012
+ search?: string | undefined;
166013
+ /** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */
166014
+ connected_account_id?: string | undefined;
166015
+ /** Filter spaces by space_key. */
166016
+ space_key?: string | undefined;
166017
+ };
166018
+ formData: {};
166019
+ jsonResponse: {
166020
+ spaces: {
166021
+ /** ID of the space. */
166022
+ space_id: string;
166023
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
166024
+ workspace_id: string;
166025
+ /** Unique key for the space within the workspace. */
166026
+ space_key?: string | undefined;
166027
+ /** Name of the space. */
166028
+ name: string;
166029
+ /** Display name for the space. */
166030
+ display_name: string;
166031
+ /** Date and time at which the space was created. */
166032
+ created_at: string;
166033
+ /** Number of devices in the space. */
166034
+ device_count: number;
166035
+ /** Number of entrances in the space. */
166036
+ acs_entrance_count: number;
166037
+ /** */
166038
+ parent_space_id?: string | undefined;
166039
+ /** */
166040
+ parent_space_key?: string | undefined;
166041
+ }[];
166042
+ };
166043
+ };
165674
166044
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
165675
166045
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code';
165676
166046
  method: 'POST';
package/dist/index.cjs CHANGED
@@ -31946,6 +31946,85 @@ var openapi_default = {
31946
31946
  "x-title": "List Access Grants"
31947
31947
  }
31948
31948
  },
31949
+ "/access_grants/request_access_methods": {
31950
+ post: {
31951
+ description: "Adds additional requested access methods to an existing Access Grant.",
31952
+ operationId: "accessGrantsRequestAccessMethodsPost",
31953
+ requestBody: {
31954
+ content: {
31955
+ "application/json": {
31956
+ schema: {
31957
+ properties: {
31958
+ access_grant_id: {
31959
+ description: "ID of the Access Grant to add access methods to.",
31960
+ format: "uuid",
31961
+ type: "string"
31962
+ },
31963
+ requested_access_methods: {
31964
+ description: "Array of requested access methods to add to the access grant.",
31965
+ items: {
31966
+ properties: {
31967
+ code: {
31968
+ description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
31969
+ maxLength: 9,
31970
+ minLength: 4,
31971
+ pattern: "^\\d+$",
31972
+ type: "string"
31973
+ },
31974
+ mode: {
31975
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
31976
+ enum: ["code", "card", "mobile_key"],
31977
+ type: "string"
31978
+ }
31979
+ },
31980
+ required: ["mode"],
31981
+ type: "object"
31982
+ },
31983
+ minItems: 1,
31984
+ type: "array"
31985
+ }
31986
+ },
31987
+ required: ["access_grant_id", "requested_access_methods"],
31988
+ type: "object"
31989
+ }
31990
+ }
31991
+ }
31992
+ },
31993
+ responses: {
31994
+ 200: {
31995
+ content: {
31996
+ "application/json": {
31997
+ schema: {
31998
+ properties: {
31999
+ access_grant: { $ref: "#/components/schemas/access_grant" },
32000
+ ok: { type: "boolean" }
32001
+ },
32002
+ required: ["access_grant", "ok"],
32003
+ type: "object"
32004
+ }
32005
+ }
32006
+ },
32007
+ description: "OK"
32008
+ },
32009
+ 400: { description: "Bad Request" },
32010
+ 401: { description: "Unauthorized" }
32011
+ },
32012
+ security: [
32013
+ { pat_with_workspace: [] },
32014
+ { console_session_with_workspace: [] },
32015
+ { api_key: [] },
32016
+ { client_session_with_customer: [] }
32017
+ ],
32018
+ summary: "/access_grants/request_access_methods",
32019
+ tags: [],
32020
+ "x-draft": "Early access.",
32021
+ "x-fern-sdk-group-name": ["access_grants"],
32022
+ "x-fern-sdk-method-name": "request_access_methods",
32023
+ "x-fern-sdk-return-value": "access_grant",
32024
+ "x-response-key": "access_grant",
32025
+ "x-title": "Add Requested Access Methods to Access Grant"
32026
+ }
32027
+ },
31949
32028
  "/access_grants/unmanaged/get": {
31950
32029
  get: {
31951
32030
  description: "Get an unmanaged Access Grant (where is_managed = false).",
@@ -54476,6 +54555,135 @@ var openapi_default = {
54476
54555
  "x-title": "Create a Space"
54477
54556
  }
54478
54557
  },
54558
+ "/seam/customer/v1/spaces/list": {
54559
+ get: {
54560
+ description: "Returns a list of all spaces.",
54561
+ operationId: "seamCustomerV1SpacesListGet",
54562
+ parameters: [
54563
+ {
54564
+ in: "query",
54565
+ name: "search",
54566
+ schema: {
54567
+ description: "String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.",
54568
+ minLength: 1,
54569
+ type: "string"
54570
+ }
54571
+ },
54572
+ {
54573
+ in: "query",
54574
+ name: "connected_account_id",
54575
+ schema: {
54576
+ description: "Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.",
54577
+ format: "uuid",
54578
+ type: "string",
54579
+ "x-draft": "Needs review.",
54580
+ "x-undocumented": "Only used internally."
54581
+ }
54582
+ },
54583
+ {
54584
+ in: "query",
54585
+ name: "space_key",
54586
+ schema: {
54587
+ description: "Filter spaces by space_key.",
54588
+ type: "string"
54589
+ }
54590
+ }
54591
+ ],
54592
+ responses: {
54593
+ 200: {
54594
+ content: {
54595
+ "application/json": {
54596
+ schema: {
54597
+ properties: {
54598
+ ok: { type: "boolean" },
54599
+ spaces: {
54600
+ items: { $ref: "#/components/schemas/space" },
54601
+ type: "array"
54602
+ }
54603
+ },
54604
+ required: ["spaces", "ok"],
54605
+ type: "object"
54606
+ }
54607
+ }
54608
+ },
54609
+ description: "OK"
54610
+ },
54611
+ 400: { description: "Bad Request" },
54612
+ 401: { description: "Unauthorized" }
54613
+ },
54614
+ security: [{ client_session_with_customer: [] }],
54615
+ summary: "/seam/customer/v1/spaces/list",
54616
+ tags: [],
54617
+ "x-draft": "Early access.",
54618
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
54619
+ "x-fern-sdk-method-name": "list",
54620
+ "x-fern-sdk-return-value": "spaces",
54621
+ "x-response-key": "spaces",
54622
+ "x-title": "List Spaces"
54623
+ },
54624
+ post: {
54625
+ description: "Returns a list of all spaces.",
54626
+ operationId: "seamCustomerV1SpacesListPost",
54627
+ requestBody: {
54628
+ content: {
54629
+ "application/json": {
54630
+ schema: {
54631
+ properties: {
54632
+ connected_account_id: {
54633
+ description: "Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.",
54634
+ format: "uuid",
54635
+ type: "string",
54636
+ "x-draft": "Needs review.",
54637
+ "x-undocumented": "Only used internally."
54638
+ },
54639
+ search: {
54640
+ description: "String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.",
54641
+ minLength: 1,
54642
+ type: "string"
54643
+ },
54644
+ space_key: {
54645
+ description: "Filter spaces by space_key.",
54646
+ type: "string"
54647
+ }
54648
+ },
54649
+ type: "object"
54650
+ }
54651
+ }
54652
+ }
54653
+ },
54654
+ responses: {
54655
+ 200: {
54656
+ content: {
54657
+ "application/json": {
54658
+ schema: {
54659
+ properties: {
54660
+ ok: { type: "boolean" },
54661
+ spaces: {
54662
+ items: { $ref: "#/components/schemas/space" },
54663
+ type: "array"
54664
+ }
54665
+ },
54666
+ required: ["spaces", "ok"],
54667
+ type: "object"
54668
+ }
54669
+ }
54670
+ },
54671
+ description: "OK"
54672
+ },
54673
+ 400: { description: "Bad Request" },
54674
+ 401: { description: "Unauthorized" }
54675
+ },
54676
+ security: [{ client_session_with_customer: [] }],
54677
+ summary: "/seam/customer/v1/spaces/list",
54678
+ tags: [],
54679
+ "x-draft": "Early access.",
54680
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
54681
+ "x-fern-sdk-method-name": "list",
54682
+ "x-fern-sdk-return-value": "spaces",
54683
+ "x-response-key": "spaces",
54684
+ "x-title": "List Spaces"
54685
+ }
54686
+ },
54479
54687
  "/seam/instant_key/v1/client_sessions/exchange_short_code": {
54480
54688
  post: {
54481
54689
  description: "Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.",