@seamapi/types 1.477.0 → 1.478.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.
@@ -23870,6 +23870,80 @@ declare const batch: z.ZodObject<{
23870
23870
  instant_key_url?: string | undefined;
23871
23871
  is_encoding_required?: boolean | undefined;
23872
23872
  }>, "many">>;
23873
+ access_grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
23874
+ workspace_id: z.ZodString;
23875
+ access_grant_id: z.ZodString;
23876
+ access_grant_key: z.ZodOptional<z.ZodString>;
23877
+ user_identity_id: z.ZodString;
23878
+ location_ids: z.ZodArray<z.ZodString, "many">;
23879
+ space_ids: z.ZodArray<z.ZodString, "many">;
23880
+ requested_access_methods: z.ZodArray<z.ZodObject<{
23881
+ display_name: z.ZodString;
23882
+ mode: z.ZodEnum<["code", "card", "mobile_key"]>;
23883
+ created_at: z.ZodString;
23884
+ created_access_method_ids: z.ZodArray<z.ZodString, "many">;
23885
+ }, "strip", z.ZodTypeAny, {
23886
+ display_name: string;
23887
+ created_at: string;
23888
+ mode: "code" | "card" | "mobile_key";
23889
+ created_access_method_ids: string[];
23890
+ }, {
23891
+ display_name: string;
23892
+ created_at: string;
23893
+ mode: "code" | "card" | "mobile_key";
23894
+ created_access_method_ids: string[];
23895
+ }>, "many">;
23896
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
23897
+ client_session_token: z.ZodOptional<z.ZodString>;
23898
+ name: z.ZodNullable<z.ZodString>;
23899
+ display_name: z.ZodString;
23900
+ instant_key_url: z.ZodOptional<z.ZodString>;
23901
+ created_at: z.ZodString;
23902
+ starts_at: z.ZodString;
23903
+ ends_at: z.ZodNullable<z.ZodString>;
23904
+ }, "strip", z.ZodTypeAny, {
23905
+ name: string | null;
23906
+ display_name: string;
23907
+ workspace_id: string;
23908
+ created_at: string;
23909
+ starts_at: string;
23910
+ ends_at: string | null;
23911
+ access_grant_id: string;
23912
+ user_identity_id: string;
23913
+ location_ids: string[];
23914
+ space_ids: string[];
23915
+ requested_access_methods: {
23916
+ display_name: string;
23917
+ created_at: string;
23918
+ mode: "code" | "card" | "mobile_key";
23919
+ created_access_method_ids: string[];
23920
+ }[];
23921
+ access_method_ids: string[];
23922
+ access_grant_key?: string | undefined;
23923
+ client_session_token?: string | undefined;
23924
+ instant_key_url?: string | undefined;
23925
+ }, {
23926
+ name: string | null;
23927
+ display_name: string;
23928
+ workspace_id: string;
23929
+ created_at: string;
23930
+ starts_at: string;
23931
+ ends_at: string | null;
23932
+ access_grant_id: string;
23933
+ user_identity_id: string;
23934
+ location_ids: string[];
23935
+ space_ids: string[];
23936
+ requested_access_methods: {
23937
+ display_name: string;
23938
+ created_at: string;
23939
+ mode: "code" | "card" | "mobile_key";
23940
+ created_access_method_ids: string[];
23941
+ }[];
23942
+ access_method_ids: string[];
23943
+ access_grant_key?: string | undefined;
23944
+ client_session_token?: string | undefined;
23945
+ instant_key_url?: string | undefined;
23946
+ }>, "many">>;
23873
23947
  }, "strip", z.ZodTypeAny, {
23874
23948
  batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
23875
23949
  spaces?: {
@@ -24664,6 +24738,28 @@ declare const batch: z.ZodObject<{
24664
24738
  system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "dormakaba_ambiance_site" | "legic_connect_credential_service" | undefined;
24665
24739
  system_type_display_name?: string | undefined;
24666
24740
  }[] | undefined;
24741
+ access_grants?: {
24742
+ name: string | null;
24743
+ display_name: string;
24744
+ workspace_id: string;
24745
+ created_at: string;
24746
+ starts_at: string;
24747
+ ends_at: string | null;
24748
+ access_grant_id: string;
24749
+ user_identity_id: string;
24750
+ location_ids: string[];
24751
+ space_ids: string[];
24752
+ requested_access_methods: {
24753
+ display_name: string;
24754
+ created_at: string;
24755
+ mode: "code" | "card" | "mobile_key";
24756
+ created_access_method_ids: string[];
24757
+ }[];
24758
+ access_method_ids: string[];
24759
+ access_grant_key?: string | undefined;
24760
+ client_session_token?: string | undefined;
24761
+ instant_key_url?: string | undefined;
24762
+ }[] | undefined;
24667
24763
  user_identities?: {
24668
24764
  display_name: string;
24669
24765
  workspace_id: string;
@@ -26796,6 +26892,28 @@ declare const batch: z.ZodObject<{
26796
26892
  system_type?: "assa_abloy_credential_service" | "assa_abloy_vostio" | "assa_abloy_vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "salto_space_system" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | "dormakaba_community_site" | "dormakaba_ambiance_site" | "legic_connect_credential_service" | undefined;
26797
26893
  system_type_display_name?: string | undefined;
26798
26894
  }[] | undefined;
26895
+ access_grants?: {
26896
+ name: string | null;
26897
+ display_name: string;
26898
+ workspace_id: string;
26899
+ created_at: string;
26900
+ starts_at: string;
26901
+ ends_at: string | null;
26902
+ access_grant_id: string;
26903
+ user_identity_id: string;
26904
+ location_ids: string[];
26905
+ space_ids: string[];
26906
+ requested_access_methods: {
26907
+ display_name: string;
26908
+ created_at: string;
26909
+ mode: "code" | "card" | "mobile_key";
26910
+ created_access_method_ids: string[];
26911
+ }[];
26912
+ access_method_ids: string[];
26913
+ access_grant_key?: string | undefined;
26914
+ client_session_token?: string | undefined;
26915
+ instant_key_url?: string | undefined;
26916
+ }[] | undefined;
26799
26917
  user_identities?: {
26800
26918
  display_name: string;
26801
26919
  workspace_id: string;
@@ -58729,6 +58847,12 @@ declare const _default: {
58729
58847
  batch: {
58730
58848
  description: string;
58731
58849
  properties: {
58850
+ access_grants: {
58851
+ items: {
58852
+ $ref: string;
58853
+ };
58854
+ type: string;
58855
+ };
58732
58856
  access_methods: {
58733
58857
  items: {
58734
58858
  $ref: string;
@@ -58920,6 +59044,12 @@ declare const _default: {
58920
59044
  batch: {
58921
59045
  description: string;
58922
59046
  properties: {
59047
+ access_grants: {
59048
+ items: {
59049
+ $ref: string;
59050
+ };
59051
+ type: string;
59052
+ };
58923
59053
  access_methods: {
58924
59054
  items: {
58925
59055
  $ref: string;
@@ -88920,6 +89050,12 @@ declare const _default: {
88920
89050
  batch: {
88921
89051
  description: string;
88922
89052
  properties: {
89053
+ access_grants: {
89054
+ items: {
89055
+ $ref: string;
89056
+ };
89057
+ type: string;
89058
+ };
88923
89059
  access_methods: {
88924
89060
  items: {
88925
89061
  $ref: string;
@@ -89086,6 +89222,12 @@ declare const _default: {
89086
89222
  batch: {
89087
89223
  description: string;
89088
89224
  properties: {
89225
+ access_grants: {
89226
+ items: {
89227
+ $ref: string;
89228
+ };
89229
+ type: string;
89230
+ };
89089
89231
  access_methods: {
89090
89232
  items: {
89091
89233
  $ref: string;
@@ -106681,6 +106823,48 @@ type Routes = {
106681
106823
  /** The actual PIN code for code access methods. */
106682
106824
  code?: string | undefined;
106683
106825
  }[] | undefined;
106826
+ access_grants?: {
106827
+ /** ID of the Seam workspace associated with the Access Grant. */
106828
+ workspace_id: string;
106829
+ /** ID of the Access Grant. */
106830
+ access_grant_id: string;
106831
+ /** Unique key for the access grant within the workspace. */
106832
+ access_grant_key?: string | undefined;
106833
+ /** ID of user identity to which the Access Grant gives access. */
106834
+ user_identity_id: string;
106835
+ /**
106836
+ * @deprecated Use `space_ids`.*/
106837
+ location_ids: string[];
106838
+ /** IDs of the spaces to which the Access Grant gives access. */
106839
+ space_ids: string[];
106840
+ /** Access methods that the user requested for the Access Grant. */
106841
+ requested_access_methods: {
106842
+ /** Display name of the access method. */
106843
+ display_name: string;
106844
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
106845
+ mode: 'code' | 'card' | 'mobile_key';
106846
+ /** Date and time at which the requested access method was added to the Access Grant. */
106847
+ created_at: string;
106848
+ /** IDs of the access methods created for the requested access method. */
106849
+ created_access_method_ids: string[];
106850
+ }[];
106851
+ /** IDs of the access methods created for the Access Grant. */
106852
+ access_method_ids: string[];
106853
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
106854
+ client_session_token?: string | undefined;
106855
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
106856
+ name: string | null;
106857
+ /** Display name of the Access Grant. */
106858
+ display_name: string;
106859
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
106860
+ instant_key_url?: string | undefined;
106861
+ /** Date and time at which the Access Grant was created. */
106862
+ created_at: string;
106863
+ /** Date and time at which the Access Grant starts. */
106864
+ starts_at: string;
106865
+ /** Date and time at which the Access Grant ends. */
106866
+ ends_at: string | null;
106867
+ }[] | undefined;
106684
106868
  };
106685
106869
  };
106686
106870
  };
@@ -169329,6 +169513,48 @@ type Routes = {
169329
169513
  /** The actual PIN code for code access methods. */
169330
169514
  code?: string | undefined;
169331
169515
  }[] | undefined;
169516
+ access_grants?: {
169517
+ /** ID of the Seam workspace associated with the Access Grant. */
169518
+ workspace_id: string;
169519
+ /** ID of the Access Grant. */
169520
+ access_grant_id: string;
169521
+ /** Unique key for the access grant within the workspace. */
169522
+ access_grant_key?: string | undefined;
169523
+ /** ID of user identity to which the Access Grant gives access. */
169524
+ user_identity_id: string;
169525
+ /**
169526
+ * @deprecated Use `space_ids`.*/
169527
+ location_ids: string[];
169528
+ /** IDs of the spaces to which the Access Grant gives access. */
169529
+ space_ids: string[];
169530
+ /** Access methods that the user requested for the Access Grant. */
169531
+ requested_access_methods: {
169532
+ /** Display name of the access method. */
169533
+ display_name: string;
169534
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
169535
+ mode: 'code' | 'card' | 'mobile_key';
169536
+ /** Date and time at which the requested access method was added to the Access Grant. */
169537
+ created_at: string;
169538
+ /** IDs of the access methods created for the requested access method. */
169539
+ created_access_method_ids: string[];
169540
+ }[];
169541
+ /** IDs of the access methods created for the Access Grant. */
169542
+ access_method_ids: string[];
169543
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
169544
+ client_session_token?: string | undefined;
169545
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
169546
+ name: string | null;
169547
+ /** Display name of the Access Grant. */
169548
+ display_name: string;
169549
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
169550
+ instant_key_url?: string | undefined;
169551
+ /** Date and time at which the Access Grant was created. */
169552
+ created_at: string;
169553
+ /** Date and time at which the Access Grant starts. */
169554
+ starts_at: string;
169555
+ /** Date and time at which the Access Grant ends. */
169556
+ ends_at: string | null;
169557
+ }[] | undefined;
169332
169558
  };
169333
169559
  };
169334
169560
  };
package/dist/index.cjs CHANGED
@@ -2268,6 +2268,53 @@ var unmanaged_access_code = access_code.pick({
2268
2268
 
2269
2269
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2270
2270
  `);
2271
+ var requested_access_method = zod.z.object({
2272
+ display_name: zod.z.string().describe("Display name of the access method."),
2273
+ mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2274
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2275
+ ),
2276
+ created_at: zod.z.string().datetime().describe(
2277
+ "Date and time at which the requested access method was added to the Access Grant."
2278
+ ),
2279
+ created_access_method_ids: zod.z.array(zod.z.string().uuid()).describe(
2280
+ "IDs of the access methods created for the requested access method."
2281
+ )
2282
+ });
2283
+
2284
+ // src/lib/seam/connect/models/access-grants/access-grant.ts
2285
+ var access_grant = zod.z.object({
2286
+ workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
2287
+ access_grant_id: zod.z.string().uuid().describe("ID of the Access Grant."),
2288
+ access_grant_key: zod.z.string().optional().describe("Unique key for the access grant within the workspace."),
2289
+ user_identity_id: zod.z.string().uuid().describe("ID of user identity to which the Access Grant gives access."),
2290
+ location_ids: zod.z.array(zod.z.string().uuid()).describe(`
2291
+ ---
2292
+ deprecated: Use \`space_ids\`.
2293
+ ---
2294
+ `),
2295
+ space_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the spaces to which the Access Grant gives access."),
2296
+ requested_access_methods: zod.z.array(requested_access_method).describe("Access methods that the user requested for the Access Grant."),
2297
+ access_method_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the access methods created for the Access Grant."),
2298
+ client_session_token: zod.z.string().optional().describe(
2299
+ "Client Session Token. Only returned if the Access Grant has a mobile_key access method."
2300
+ ),
2301
+ name: zod.z.string().nullable().describe(
2302
+ "Name of the Access Grant. If not provided, the display name will be computed."
2303
+ ),
2304
+ display_name: zod.z.string().describe("Display name of the Access Grant."),
2305
+ instant_key_url: zod.z.string().url().optional().describe(
2306
+ "Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. "
2307
+ ),
2308
+ created_at: zod.z.string().datetime().describe("Date and time at which the Access Grant was created."),
2309
+ starts_at: zod.z.string().datetime().describe("Date and time at which the Access Grant starts."),
2310
+ ends_at: zod.z.string().datetime().nullable().describe("Date and time at which the Access Grant ends.")
2311
+ }).describe(`
2312
+ ---
2313
+ draft: Early access.
2314
+ route_path: /access_grants
2315
+ ---
2316
+ 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.
2317
+ `);
2271
2318
  var access_method = zod.z.object({
2272
2319
  workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2273
2320
  access_method_id: zod.z.string().uuid().describe("ID of the access method."),
@@ -4161,7 +4208,8 @@ zod.z.object({
4161
4208
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4162
4209
  unmanaged_devices: unmanaged_device.array().optional(),
4163
4210
  connect_webviews: connect_webview.array().optional(),
4164
- access_methods: access_method.array().optional()
4211
+ access_methods: access_method.array().optional(),
4212
+ access_grants: access_grant.array().optional()
4165
4213
  }).describe("A batch of workspace resources.");
4166
4214
  var batch = zod.z.object({
4167
4215
  batch_type: zod.z.enum([
@@ -4185,7 +4233,8 @@ var batch = zod.z.object({
4185
4233
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4186
4234
  unmanaged_devices: unmanaged_device.array().optional(),
4187
4235
  connect_webviews: connect_webview.array().optional(),
4188
- access_methods: access_method.array().optional()
4236
+ access_methods: access_method.array().optional(),
4237
+ access_grants: access_grant.array().optional()
4189
4238
  }).describe("A batch of workspace resources.");
4190
4239
  var bridge = zod.z.object({
4191
4240
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -31729,6 +31778,10 @@ var openapi_default = {
31729
31778
  batch: {
31730
31779
  description: "A batch of workspace resources.",
31731
31780
  properties: {
31781
+ access_grants: {
31782
+ items: { $ref: "#/components/schemas/access_grant" },
31783
+ type: "array"
31784
+ },
31732
31785
  access_methods: {
31733
31786
  items: { $ref: "#/components/schemas/access_method" },
31734
31787
  type: "array"
@@ -31890,6 +31943,10 @@ var openapi_default = {
31890
31943
  batch: {
31891
31944
  description: "A batch of workspace resources.",
31892
31945
  properties: {
31946
+ access_grants: {
31947
+ items: { $ref: "#/components/schemas/access_grant" },
31948
+ type: "array"
31949
+ },
31893
31950
  access_methods: {
31894
31951
  items: { $ref: "#/components/schemas/access_method" },
31895
31952
  type: "array"
@@ -57703,6 +57760,10 @@ var openapi_default = {
57703
57760
  batch: {
57704
57761
  description: "A batch of workspace resources.",
57705
57762
  properties: {
57763
+ access_grants: {
57764
+ items: { $ref: "#/components/schemas/access_grant" },
57765
+ type: "array"
57766
+ },
57706
57767
  access_methods: {
57707
57768
  items: { $ref: "#/components/schemas/access_method" },
57708
57769
  type: "array"
@@ -57841,6 +57902,10 @@ var openapi_default = {
57841
57902
  batch: {
57842
57903
  description: "A batch of workspace resources.",
57843
57904
  properties: {
57905
+ access_grants: {
57906
+ items: { $ref: "#/components/schemas/access_grant" },
57907
+ type: "array"
57908
+ },
57844
57909
  access_methods: {
57845
57910
  items: { $ref: "#/components/schemas/access_method" },
57846
57911
  type: "array"