@seamapi/types 1.516.0 → 1.517.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.
@@ -3616,6 +3616,7 @@ declare const access_grant: z.ZodObject<{
3616
3616
  requested_access_methods: z.ZodArray<z.ZodObject<{
3617
3617
  display_name: z.ZodString;
3618
3618
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
3619
+ code: z.ZodOptional<z.ZodString>;
3619
3620
  created_at: z.ZodString;
3620
3621
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
3621
3622
  }, "strip", z.ZodTypeAny, {
@@ -3623,11 +3624,13 @@ declare const access_grant: z.ZodObject<{
3623
3624
  created_at: string;
3624
3625
  mode: "code" | "card" | "mobile_key";
3625
3626
  created_access_method_ids: string[];
3627
+ code?: string | undefined;
3626
3628
  }, {
3627
3629
  display_name: string;
3628
3630
  created_at: string;
3629
3631
  mode: "code" | "card" | "mobile_key";
3630
3632
  created_access_method_ids: string[];
3633
+ code?: string | undefined;
3631
3634
  }>, "many">;
3632
3635
  access_method_ids: z.ZodArray<z.ZodString, "many">;
3633
3636
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -3654,6 +3657,7 @@ declare const access_grant: z.ZodObject<{
3654
3657
  created_at: string;
3655
3658
  mode: "code" | "card" | "mobile_key";
3656
3659
  created_access_method_ids: string[];
3660
+ code?: string | undefined;
3657
3661
  }[];
3658
3662
  access_method_ids: string[];
3659
3663
  access_grant_key?: string | undefined;
@@ -3676,6 +3680,7 @@ declare const access_grant: z.ZodObject<{
3676
3680
  created_at: string;
3677
3681
  mode: "code" | "card" | "mobile_key";
3678
3682
  created_access_method_ids: string[];
3683
+ code?: string | undefined;
3679
3684
  }[];
3680
3685
  access_method_ids: string[];
3681
3686
  access_grant_key?: string | undefined;
@@ -24301,6 +24306,7 @@ declare const batch: z.ZodObject<{
24301
24306
  requested_access_methods: z.ZodArray<z.ZodObject<{
24302
24307
  display_name: z.ZodString;
24303
24308
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
24309
+ code: z.ZodOptional<z.ZodString>;
24304
24310
  created_at: z.ZodString;
24305
24311
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
24306
24312
  }, "strip", z.ZodTypeAny, {
@@ -24308,11 +24314,13 @@ declare const batch: z.ZodObject<{
24308
24314
  created_at: string;
24309
24315
  mode: "code" | "card" | "mobile_key";
24310
24316
  created_access_method_ids: string[];
24317
+ code?: string | undefined;
24311
24318
  }, {
24312
24319
  display_name: string;
24313
24320
  created_at: string;
24314
24321
  mode: "code" | "card" | "mobile_key";
24315
24322
  created_access_method_ids: string[];
24323
+ code?: string | undefined;
24316
24324
  }>, "many">;
24317
24325
  access_method_ids: z.ZodArray<z.ZodString, "many">;
24318
24326
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -24339,6 +24347,7 @@ declare const batch: z.ZodObject<{
24339
24347
  created_at: string;
24340
24348
  mode: "code" | "card" | "mobile_key";
24341
24349
  created_access_method_ids: string[];
24350
+ code?: string | undefined;
24342
24351
  }[];
24343
24352
  access_method_ids: string[];
24344
24353
  access_grant_key?: string | undefined;
@@ -24361,6 +24370,7 @@ declare const batch: z.ZodObject<{
24361
24370
  created_at: string;
24362
24371
  mode: "code" | "card" | "mobile_key";
24363
24372
  created_access_method_ids: string[];
24373
+ code?: string | undefined;
24364
24374
  }[];
24365
24375
  access_method_ids: string[];
24366
24376
  access_grant_key?: string | undefined;
@@ -31306,6 +31316,7 @@ declare const batch: z.ZodObject<{
31306
31316
  created_at: string;
31307
31317
  mode: "code" | "card" | "mobile_key";
31308
31318
  created_access_method_ids: string[];
31319
+ code?: string | undefined;
31309
31320
  }[];
31310
31321
  access_method_ids: string[];
31311
31322
  access_grant_key?: string | undefined;
@@ -35143,6 +35154,7 @@ declare const batch: z.ZodObject<{
35143
35154
  created_at: string;
35144
35155
  mode: "code" | "card" | "mobile_key";
35145
35156
  created_access_method_ids: string[];
35157
+ code?: string | undefined;
35146
35158
  }[];
35147
35159
  access_method_ids: string[];
35148
35160
  access_grant_key?: string | undefined;
@@ -50934,6 +50946,13 @@ declare const _default: {
50934
50946
  description: string;
50935
50947
  items: {
50936
50948
  properties: {
50949
+ code: {
50950
+ description: string;
50951
+ maxLength: number;
50952
+ minLength: number;
50953
+ pattern: string;
50954
+ type: string;
50955
+ };
50937
50956
  created_access_method_ids: {
50938
50957
  description: string;
50939
50958
  items: {
@@ -67214,6 +67233,13 @@ declare const _default: {
67214
67233
  requested_access_methods: {
67215
67234
  items: {
67216
67235
  properties: {
67236
+ code: {
67237
+ description: string;
67238
+ maxLength: number;
67239
+ minLength: number;
67240
+ pattern: string;
67241
+ type: string;
67242
+ };
67217
67243
  mode: {
67218
67244
  description: string;
67219
67245
  enum: string[];
@@ -110808,6 +110834,8 @@ type Routes = {
110808
110834
  requested_access_methods: {
110809
110835
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
110810
110836
  mode: 'code' | 'card' | 'mobile_key';
110837
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
110838
+ code?: string | undefined;
110811
110839
  }[];
110812
110840
  /** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
110813
110841
  starts_at?: string | undefined;
@@ -110839,6 +110867,8 @@ type Routes = {
110839
110867
  display_name: string;
110840
110868
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
110841
110869
  mode: 'code' | 'card' | 'mobile_key';
110870
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
110871
+ code?: string | undefined;
110842
110872
  /** Date and time at which the requested access method was added to the Access Grant. */
110843
110873
  created_at: string;
110844
110874
  /** IDs of the access methods created for the requested access method. */
@@ -110912,6 +110942,8 @@ type Routes = {
110912
110942
  display_name: string;
110913
110943
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
110914
110944
  mode: 'code' | 'card' | 'mobile_key';
110945
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
110946
+ code?: string | undefined;
110915
110947
  /** Date and time at which the requested access method was added to the Access Grant. */
110916
110948
  created_at: string;
110917
110949
  /** IDs of the access methods created for the requested access method. */
@@ -112623,6 +112655,8 @@ type Routes = {
112623
112655
  display_name: string;
112624
112656
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
112625
112657
  mode: 'code' | 'card' | 'mobile_key';
112658
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
112659
+ code?: string | undefined;
112626
112660
  /** Date and time at which the requested access method was added to the Access Grant. */
112627
112661
  created_at: string;
112628
112662
  /** IDs of the access methods created for the requested access method. */
@@ -117999,6 +118033,8 @@ type Routes = {
117999
118033
  display_name: string;
118000
118034
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
118001
118035
  mode: 'code' | 'card' | 'mobile_key';
118036
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
118037
+ code?: string | undefined;
118002
118038
  /** Date and time at which the requested access method was added to the Access Grant. */
118003
118039
  created_at: string;
118004
118040
  /** IDs of the access methods created for the requested access method. */
@@ -183585,6 +183621,8 @@ type Routes = {
183585
183621
  display_name: string;
183586
183622
  /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
183587
183623
  mode: 'code' | 'card' | 'mobile_key';
183624
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
183625
+ code?: string | undefined;
183588
183626
  /** Date and time at which the requested access method was added to the Access Grant. */
183589
183627
  created_at: string;
183590
183628
  /** IDs of the access methods created for the requested access method. */
package/dist/index.cjs CHANGED
@@ -2262,6 +2262,9 @@ var requested_access_method = zod.z.object({
2262
2262
  mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2263
2263
  "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2264
2264
  ),
2265
+ code: zod.z.string().min(4).max(9).regex(/^\d+$/, "Must only contain digits").optional().describe(
2266
+ "Specific PIN code to use for this access method. Only applicable when mode is 'code'."
2267
+ ),
2265
2268
  created_at: zod.z.string().datetime().describe(
2266
2269
  "Date and time at which the requested access method was added to the Access Grant."
2267
2270
  ),
@@ -7177,6 +7180,13 @@ var openapi_default = {
7177
7180
  description: "Access methods that the user requested for the Access Grant.",
7178
7181
  items: {
7179
7182
  properties: {
7183
+ code: {
7184
+ description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
7185
+ maxLength: 9,
7186
+ minLength: 4,
7187
+ pattern: "^\\d+$",
7188
+ type: "string"
7189
+ },
7180
7190
  created_access_method_ids: {
7181
7191
  description: "IDs of the access methods created for the requested access method.",
7182
7192
  items: { format: "uuid", type: "string" },
@@ -30661,6 +30671,13 @@ var openapi_default = {
30661
30671
  requested_access_methods: {
30662
30672
  items: {
30663
30673
  properties: {
30674
+ code: {
30675
+ description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
30676
+ maxLength: 9,
30677
+ minLength: 4,
30678
+ pattern: "^\\d+$",
30679
+ type: "string"
30680
+ },
30664
30681
  mode: {
30665
30682
  description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
30666
30683
  enum: ["code", "card", "mobile_key"],