@seamapi/types 1.473.0 → 1.474.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.
@@ -23833,6 +23833,43 @@ declare const batch: z.ZodObject<{
23833
23833
  selected_provider: string | null;
23834
23834
  customer_key?: string | undefined;
23835
23835
  }>, "many">>;
23836
+ access_methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
23837
+ workspace_id: z.ZodString;
23838
+ access_method_id: z.ZodString;
23839
+ display_name: z.ZodString;
23840
+ mode: z.ZodEnum<["code", "card", "mobile_key"]>;
23841
+ created_at: z.ZodString;
23842
+ issued_at: z.ZodNullable<z.ZodString>;
23843
+ is_issued: z.ZodBoolean;
23844
+ instant_key_url: z.ZodOptional<z.ZodString>;
23845
+ client_session_token: z.ZodOptional<z.ZodString>;
23846
+ is_encoding_required: z.ZodOptional<z.ZodBoolean>;
23847
+ code: z.ZodOptional<z.ZodString>;
23848
+ }, "strip", z.ZodTypeAny, {
23849
+ display_name: string;
23850
+ workspace_id: string;
23851
+ created_at: string;
23852
+ mode: "code" | "card" | "mobile_key";
23853
+ access_method_id: string;
23854
+ issued_at: string | null;
23855
+ is_issued: boolean;
23856
+ code?: string | undefined;
23857
+ client_session_token?: string | undefined;
23858
+ instant_key_url?: string | undefined;
23859
+ is_encoding_required?: boolean | undefined;
23860
+ }, {
23861
+ display_name: string;
23862
+ workspace_id: string;
23863
+ created_at: string;
23864
+ mode: "code" | "card" | "mobile_key";
23865
+ access_method_id: string;
23866
+ issued_at: string | null;
23867
+ is_issued: boolean;
23868
+ code?: string | undefined;
23869
+ client_session_token?: string | undefined;
23870
+ instant_key_url?: string | undefined;
23871
+ is_encoding_required?: boolean | undefined;
23872
+ }>, "many">>;
23836
23873
  }, "strip", z.ZodTypeAny, {
23837
23874
  batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
23838
23875
  spaces?: {
@@ -24654,6 +24691,19 @@ declare const batch: z.ZodObject<{
24654
24691
  user_identity_key: string | null;
24655
24692
  acs_user_ids: string[];
24656
24693
  }[] | undefined;
24694
+ access_methods?: {
24695
+ display_name: string;
24696
+ workspace_id: string;
24697
+ created_at: string;
24698
+ mode: "code" | "card" | "mobile_key";
24699
+ access_method_id: string;
24700
+ issued_at: string | null;
24701
+ is_issued: boolean;
24702
+ code?: string | undefined;
24703
+ client_session_token?: string | undefined;
24704
+ instant_key_url?: string | undefined;
24705
+ is_encoding_required?: boolean | undefined;
24706
+ }[] | undefined;
24657
24707
  workspaces?: {
24658
24708
  name: string;
24659
24709
  workspace_id: string;
@@ -26773,6 +26823,19 @@ declare const batch: z.ZodObject<{
26773
26823
  user_identity_key: string | null;
26774
26824
  acs_user_ids: string[];
26775
26825
  }[] | undefined;
26826
+ access_methods?: {
26827
+ display_name: string;
26828
+ workspace_id: string;
26829
+ created_at: string;
26830
+ mode: "code" | "card" | "mobile_key";
26831
+ access_method_id: string;
26832
+ issued_at: string | null;
26833
+ is_issued: boolean;
26834
+ code?: string | undefined;
26835
+ client_session_token?: string | undefined;
26836
+ instant_key_url?: string | undefined;
26837
+ is_encoding_required?: boolean | undefined;
26838
+ }[] | undefined;
26776
26839
  workspaces?: {
26777
26840
  name: string;
26778
26841
  workspace_id: string;
@@ -58642,6 +58705,12 @@ declare const _default: {
58642
58705
  batch: {
58643
58706
  description: string;
58644
58707
  properties: {
58708
+ access_methods: {
58709
+ items: {
58710
+ $ref: string;
58711
+ };
58712
+ type: string;
58713
+ };
58645
58714
  acs_access_groups: {
58646
58715
  items: {
58647
58716
  $ref: string;
@@ -58827,6 +58896,12 @@ declare const _default: {
58827
58896
  batch: {
58828
58897
  description: string;
58829
58898
  properties: {
58899
+ access_methods: {
58900
+ items: {
58901
+ $ref: string;
58902
+ };
58903
+ type: string;
58904
+ };
58830
58905
  acs_access_groups: {
58831
58906
  items: {
58832
58907
  $ref: string;
@@ -88249,6 +88324,12 @@ declare const _default: {
88249
88324
  batch: {
88250
88325
  description: string;
88251
88326
  properties: {
88327
+ access_methods: {
88328
+ items: {
88329
+ $ref: string;
88330
+ };
88331
+ type: string;
88332
+ };
88252
88333
  acs_access_groups: {
88253
88334
  items: {
88254
88335
  $ref: string;
@@ -88409,6 +88490,12 @@ declare const _default: {
88409
88490
  batch: {
88410
88491
  description: string;
88411
88492
  properties: {
88493
+ access_methods: {
88494
+ items: {
88495
+ $ref: string;
88496
+ };
88497
+ type: string;
88498
+ };
88412
88499
  acs_access_groups: {
88413
88500
  items: {
88414
88501
  $ref: string;
@@ -105974,6 +106061,30 @@ type Routes = {
105974
106061
  /** The customer key associated with this webview, if any. */
105975
106062
  customer_key?: string | undefined;
105976
106063
  }[] | undefined;
106064
+ access_methods?: {
106065
+ /** ID of the Seam workspace associated with the access method. */
106066
+ workspace_id: string;
106067
+ /** ID of the access method. */
106068
+ access_method_id: string;
106069
+ /** Display name of the access method. */
106070
+ display_name: string;
106071
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
106072
+ mode: 'code' | 'card' | 'mobile_key';
106073
+ /** Date and time at which the access method was created. */
106074
+ created_at: string;
106075
+ /** Date and time at which the access method was issued. */
106076
+ issued_at: string | null;
106077
+ /** Indicates whether the access method has been issued. */
106078
+ is_issued: boolean;
106079
+ /** URL of the Instant Key for mobile key access methods. */
106080
+ instant_key_url?: string | undefined;
106081
+ /** Token of the client session associated with the access method. */
106082
+ client_session_token?: string | undefined;
106083
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
106084
+ is_encoding_required?: boolean | undefined;
106085
+ /** The actual PIN code for code access methods. */
106086
+ code?: string | undefined;
106087
+ }[] | undefined;
105977
106088
  };
105978
106089
  };
105979
106090
  };
@@ -168515,6 +168626,30 @@ type Routes = {
168515
168626
  /** The customer key associated with this webview, if any. */
168516
168627
  customer_key?: string | undefined;
168517
168628
  }[] | undefined;
168629
+ access_methods?: {
168630
+ /** ID of the Seam workspace associated with the access method. */
168631
+ workspace_id: string;
168632
+ /** ID of the access method. */
168633
+ access_method_id: string;
168634
+ /** Display name of the access method. */
168635
+ display_name: string;
168636
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
168637
+ mode: 'code' | 'card' | 'mobile_key';
168638
+ /** Date and time at which the access method was created. */
168639
+ created_at: string;
168640
+ /** Date and time at which the access method was issued. */
168641
+ issued_at: string | null;
168642
+ /** Indicates whether the access method has been issued. */
168643
+ is_issued: boolean;
168644
+ /** URL of the Instant Key for mobile key access methods. */
168645
+ instant_key_url?: string | undefined;
168646
+ /** Token of the client session associated with the access method. */
168647
+ client_session_token?: string | undefined;
168648
+ /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
168649
+ is_encoding_required?: boolean | undefined;
168650
+ /** The actual PIN code for code access methods. */
168651
+ code?: string | undefined;
168652
+ }[] | undefined;
168518
168653
  };
168519
168654
  };
168520
168655
  };
package/dist/index.cjs CHANGED
@@ -2265,6 +2265,29 @@ var unmanaged_access_code = access_code.pick({
2265
2265
 
2266
2266
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2267
2267
  `);
2268
+ var access_method = zod.z.object({
2269
+ workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2270
+ access_method_id: zod.z.string().uuid().describe("ID of the access method."),
2271
+ display_name: zod.z.string().describe("Display name of the access method."),
2272
+ mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2273
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2274
+ ),
2275
+ created_at: zod.z.string().datetime().describe("Date and time at which the access method was created."),
2276
+ issued_at: zod.z.string().datetime().nullable().describe("Date and time at which the access method was issued."),
2277
+ is_issued: zod.z.boolean().describe("Indicates whether the access method has been issued."),
2278
+ instant_key_url: zod.z.string().url().optional().describe("URL of the Instant Key for mobile key access methods."),
2279
+ client_session_token: zod.z.string().optional().describe("Token of the client session associated with the access method."),
2280
+ is_encoding_required: zod.z.boolean().optional().describe(
2281
+ "Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method."
2282
+ ),
2283
+ code: zod.z.string().optional().describe("The actual PIN code for code access methods.")
2284
+ }).describe(`
2285
+ ---
2286
+ draft: Early access.
2287
+ route_path: /access_methods
2288
+ ---
2289
+ Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
2290
+ `);
2268
2291
  var acs_access_group_external_type = zod.z.enum([
2269
2292
  "pti_unit",
2270
2293
  "pti_access_level",
@@ -4134,7 +4157,8 @@ zod.z.object({
4134
4157
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4135
4158
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4136
4159
  unmanaged_devices: unmanaged_device.array().optional(),
4137
- connect_webviews: connect_webview.array().optional()
4160
+ connect_webviews: connect_webview.array().optional(),
4161
+ access_methods: access_method.array().optional()
4138
4162
  }).describe("A batch of workspace resources.");
4139
4163
  var batch = zod.z.object({
4140
4164
  batch_type: zod.z.enum([
@@ -4157,7 +4181,8 @@ var batch = zod.z.object({
4157
4181
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4158
4182
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4159
4183
  unmanaged_devices: unmanaged_device.array().optional(),
4160
- connect_webviews: connect_webview.array().optional()
4184
+ connect_webviews: connect_webview.array().optional(),
4185
+ access_methods: access_method.array().optional()
4161
4186
  }).describe("A batch of workspace resources.");
4162
4187
  var bridge = zod.z.object({
4163
4188
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -31685,6 +31710,10 @@ var openapi_default = {
31685
31710
  batch: {
31686
31711
  description: "A batch of workspace resources.",
31687
31712
  properties: {
31713
+ access_methods: {
31714
+ items: { $ref: "#/components/schemas/access_method" },
31715
+ type: "array"
31716
+ },
31688
31717
  acs_access_groups: {
31689
31718
  items: {
31690
31719
  $ref: "#/components/schemas/acs_access_group"
@@ -31842,6 +31871,10 @@ var openapi_default = {
31842
31871
  batch: {
31843
31872
  description: "A batch of workspace resources.",
31844
31873
  properties: {
31874
+ access_methods: {
31875
+ items: { $ref: "#/components/schemas/access_method" },
31876
+ type: "array"
31877
+ },
31845
31878
  acs_access_groups: {
31846
31879
  items: {
31847
31880
  $ref: "#/components/schemas/acs_access_group"
@@ -57216,6 +57249,10 @@ var openapi_default = {
57216
57249
  batch: {
57217
57250
  description: "A batch of workspace resources.",
57218
57251
  properties: {
57252
+ access_methods: {
57253
+ items: { $ref: "#/components/schemas/access_method" },
57254
+ type: "array"
57255
+ },
57219
57256
  acs_access_groups: {
57220
57257
  items: {
57221
57258
  $ref: "#/components/schemas/acs_access_group"
@@ -57350,6 +57387,10 @@ var openapi_default = {
57350
57387
  batch: {
57351
57388
  description: "A batch of workspace resources.",
57352
57389
  properties: {
57390
+ access_methods: {
57391
+ items: { $ref: "#/components/schemas/access_method" },
57392
+ type: "array"
57393
+ },
57353
57394
  acs_access_groups: {
57354
57395
  items: {
57355
57396
  $ref: "#/components/schemas/acs_access_group"