@seamapi/types 1.515.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.
@@ -9,6 +9,7 @@ export declare const access_grant: z.ZodObject<{
9
9
  requested_access_methods: z.ZodArray<z.ZodObject<{
10
10
  display_name: z.ZodString;
11
11
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
12
+ code: z.ZodOptional<z.ZodString>;
12
13
  created_at: z.ZodString;
13
14
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
14
15
  }, "strip", z.ZodTypeAny, {
@@ -16,11 +17,13 @@ export declare const access_grant: z.ZodObject<{
16
17
  created_at: string;
17
18
  mode: "code" | "card" | "mobile_key";
18
19
  created_access_method_ids: string[];
20
+ code?: string | undefined;
19
21
  }, {
20
22
  display_name: string;
21
23
  created_at: string;
22
24
  mode: "code" | "card" | "mobile_key";
23
25
  created_access_method_ids: string[];
26
+ code?: string | undefined;
24
27
  }>, "many">;
25
28
  access_method_ids: z.ZodArray<z.ZodString, "many">;
26
29
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -47,6 +50,7 @@ export declare const access_grant: z.ZodObject<{
47
50
  created_at: string;
48
51
  mode: "code" | "card" | "mobile_key";
49
52
  created_access_method_ids: string[];
53
+ code?: string | undefined;
50
54
  }[];
51
55
  access_method_ids: string[];
52
56
  access_grant_key?: string | undefined;
@@ -69,6 +73,7 @@ export declare const access_grant: z.ZodObject<{
69
73
  created_at: string;
70
74
  mode: "code" | "card" | "mobile_key";
71
75
  created_access_method_ids: string[];
76
+ code?: string | undefined;
72
77
  }[];
73
78
  access_method_ids: string[];
74
79
  access_grant_key?: string | undefined;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const requested_access_method: z.ZodObject<{
3
3
  display_name: z.ZodString;
4
4
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
5
+ code: z.ZodOptional<z.ZodString>;
5
6
  created_at: z.ZodString;
6
7
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
7
8
  }, "strip", z.ZodTypeAny, {
@@ -9,10 +10,12 @@ export declare const requested_access_method: z.ZodObject<{
9
10
  created_at: string;
10
11
  mode: "code" | "card" | "mobile_key";
11
12
  created_access_method_ids: string[];
13
+ code?: string | undefined;
12
14
  }, {
13
15
  display_name: string;
14
16
  created_at: string;
15
17
  mode: "code" | "card" | "mobile_key";
16
18
  created_access_method_ids: string[];
19
+ code?: string | undefined;
17
20
  }>;
18
21
  export type RequestedAccessMethod = z.infer<typeof requested_access_method>;
@@ -4,6 +4,13 @@ export const requested_access_method = z.object({
4
4
  mode: z
5
5
  .enum(['code', 'card', 'mobile_key'])
6
6
  .describe('Access method mode. Supported values: `code`, `card`, `mobile_key`.'),
7
+ code: z
8
+ .string()
9
+ .min(4)
10
+ .max(9)
11
+ .regex(/^\d+$/, 'Must only contain digits')
12
+ .optional()
13
+ .describe("Specific PIN code to use for this access method. Only applicable when mode is 'code'."),
7
14
  created_at: z
8
15
  .string()
9
16
  .datetime()
@@ -1 +1 @@
1
- {"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,KAAK,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC1C,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF,CACxF;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAA"}
@@ -33905,6 +33905,7 @@ export declare const workspaces_batch: z.ZodObject<{
33905
33905
  requested_access_methods: z.ZodArray<z.ZodObject<{
33906
33906
  display_name: z.ZodString;
33907
33907
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
33908
+ code: z.ZodOptional<z.ZodString>;
33908
33909
  created_at: z.ZodString;
33909
33910
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
33910
33911
  }, "strip", z.ZodTypeAny, {
@@ -33912,11 +33913,13 @@ export declare const workspaces_batch: z.ZodObject<{
33912
33913
  created_at: string;
33913
33914
  mode: "code" | "card" | "mobile_key";
33914
33915
  created_access_method_ids: string[];
33916
+ code?: string | undefined;
33915
33917
  }, {
33916
33918
  display_name: string;
33917
33919
  created_at: string;
33918
33920
  mode: "code" | "card" | "mobile_key";
33919
33921
  created_access_method_ids: string[];
33922
+ code?: string | undefined;
33920
33923
  }>, "many">;
33921
33924
  access_method_ids: z.ZodArray<z.ZodString, "many">;
33922
33925
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -33943,6 +33946,7 @@ export declare const workspaces_batch: z.ZodObject<{
33943
33946
  created_at: string;
33944
33947
  mode: "code" | "card" | "mobile_key";
33945
33948
  created_access_method_ids: string[];
33949
+ code?: string | undefined;
33946
33950
  }[];
33947
33951
  access_method_ids: string[];
33948
33952
  access_grant_key?: string | undefined;
@@ -33965,6 +33969,7 @@ export declare const workspaces_batch: z.ZodObject<{
33965
33969
  created_at: string;
33966
33970
  mode: "code" | "card" | "mobile_key";
33967
33971
  created_access_method_ids: string[];
33972
+ code?: string | undefined;
33968
33973
  }[];
33969
33974
  access_method_ids: string[];
33970
33975
  access_grant_key?: string | undefined;
@@ -40981,6 +40986,7 @@ export declare const workspaces_batch: z.ZodObject<{
40981
40986
  created_at: string;
40982
40987
  mode: "code" | "card" | "mobile_key";
40983
40988
  created_access_method_ids: string[];
40989
+ code?: string | undefined;
40984
40990
  }[];
40985
40991
  access_method_ids: string[];
40986
40992
  access_grant_key?: string | undefined;
@@ -44889,6 +44895,7 @@ export declare const workspaces_batch: z.ZodObject<{
44889
44895
  created_at: string;
44890
44896
  mode: "code" | "card" | "mobile_key";
44891
44897
  created_access_method_ids: string[];
44898
+ code?: string | undefined;
44892
44899
  }[];
44893
44900
  access_method_ids: string[];
44894
44901
  access_grant_key?: string | undefined;
@@ -62050,6 +62057,7 @@ export declare const batch: z.ZodObject<{
62050
62057
  requested_access_methods: z.ZodArray<z.ZodObject<{
62051
62058
  display_name: z.ZodString;
62052
62059
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
62060
+ code: z.ZodOptional<z.ZodString>;
62053
62061
  created_at: z.ZodString;
62054
62062
  created_access_method_ids: z.ZodArray<z.ZodString, "many">;
62055
62063
  }, "strip", z.ZodTypeAny, {
@@ -62057,11 +62065,13 @@ export declare const batch: z.ZodObject<{
62057
62065
  created_at: string;
62058
62066
  mode: "code" | "card" | "mobile_key";
62059
62067
  created_access_method_ids: string[];
62068
+ code?: string | undefined;
62060
62069
  }, {
62061
62070
  display_name: string;
62062
62071
  created_at: string;
62063
62072
  mode: "code" | "card" | "mobile_key";
62064
62073
  created_access_method_ids: string[];
62074
+ code?: string | undefined;
62065
62075
  }>, "many">;
62066
62076
  access_method_ids: z.ZodArray<z.ZodString, "many">;
62067
62077
  client_session_token: z.ZodOptional<z.ZodString>;
@@ -62088,6 +62098,7 @@ export declare const batch: z.ZodObject<{
62088
62098
  created_at: string;
62089
62099
  mode: "code" | "card" | "mobile_key";
62090
62100
  created_access_method_ids: string[];
62101
+ code?: string | undefined;
62091
62102
  }[];
62092
62103
  access_method_ids: string[];
62093
62104
  access_grant_key?: string | undefined;
@@ -62110,6 +62121,7 @@ export declare const batch: z.ZodObject<{
62110
62121
  created_at: string;
62111
62122
  mode: "code" | "card" | "mobile_key";
62112
62123
  created_access_method_ids: string[];
62124
+ code?: string | undefined;
62113
62125
  }[];
62114
62126
  access_method_ids: string[];
62115
62127
  access_grant_key?: string | undefined;
@@ -69055,6 +69067,7 @@ export declare const batch: z.ZodObject<{
69055
69067
  created_at: string;
69056
69068
  mode: "code" | "card" | "mobile_key";
69057
69069
  created_access_method_ids: string[];
69070
+ code?: string | undefined;
69058
69071
  }[];
69059
69072
  access_method_ids: string[];
69060
69073
  access_grant_key?: string | undefined;
@@ -72892,6 +72905,7 @@ export declare const batch: z.ZodObject<{
72892
72905
  created_at: string;
72893
72906
  mode: "code" | "card" | "mobile_key";
72894
72907
  created_access_method_ids: string[];
72908
+ code?: string | undefined;
72895
72909
  }[];
72896
72910
  access_method_ids: string[];
72897
72911
  access_grant_key?: string | undefined;