@seamapi/types 1.532.0 → 1.533.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.
- package/dist/connect.cjs +8 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +18 -0
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -0
- package/lib/seam/connect/models/events/access-methods.d.ts +6 -0
- package/lib/seam/connect/models/events/access-methods.js +4 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +3 -0
- package/lib/seam/connect/openapi.js +4 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +10 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-methods.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +5 -0
- package/src/lib/seam/connect/route-types.ts +10 -0
|
@@ -34968,6 +34968,7 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34968
34968
|
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34969
34969
|
} & {
|
|
34970
34970
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
34971
|
+
code: z.ZodOptional<z.ZodString>;
|
|
34971
34972
|
}, "strip", z.ZodTypeAny, {
|
|
34972
34973
|
workspace_id: string;
|
|
34973
34974
|
created_at: string;
|
|
@@ -34976,6 +34977,7 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34976
34977
|
occurred_at: string;
|
|
34977
34978
|
event_type: "access_method.reissued";
|
|
34978
34979
|
access_grant_ids: string[];
|
|
34980
|
+
code?: string | undefined;
|
|
34979
34981
|
access_grant_keys?: string[] | undefined;
|
|
34980
34982
|
}, {
|
|
34981
34983
|
workspace_id: string;
|
|
@@ -34985,6 +34987,7 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34985
34987
|
occurred_at: string;
|
|
34986
34988
|
event_type: "access_method.reissued";
|
|
34987
34989
|
access_grant_ids: string[];
|
|
34990
|
+
code?: string | undefined;
|
|
34988
34991
|
access_grant_keys?: string[] | undefined;
|
|
34989
34992
|
}>, z.ZodObject<{
|
|
34990
34993
|
event_id: z.ZodString;
|
|
@@ -42927,6 +42930,7 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
42927
42930
|
occurred_at: string;
|
|
42928
42931
|
event_type: "access_method.reissued";
|
|
42929
42932
|
access_grant_ids: string[];
|
|
42933
|
+
code?: string | undefined;
|
|
42930
42934
|
access_grant_keys?: string[] | undefined;
|
|
42931
42935
|
} | {
|
|
42932
42936
|
workspace_id: string;
|
|
@@ -46854,6 +46858,7 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
46854
46858
|
occurred_at: string;
|
|
46855
46859
|
event_type: "access_method.reissued";
|
|
46856
46860
|
access_grant_ids: string[];
|
|
46861
|
+
code?: string | undefined;
|
|
46857
46862
|
access_grant_keys?: string[] | undefined;
|
|
46858
46863
|
} | {
|
|
46859
46864
|
workspace_id: string;
|
|
@@ -63223,6 +63228,7 @@ export declare const batch: z.ZodObject<{
|
|
|
63223
63228
|
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63224
63229
|
} & {
|
|
63225
63230
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
63231
|
+
code: z.ZodOptional<z.ZodString>;
|
|
63226
63232
|
}, "strip", z.ZodTypeAny, {
|
|
63227
63233
|
workspace_id: string;
|
|
63228
63234
|
created_at: string;
|
|
@@ -63231,6 +63237,7 @@ export declare const batch: z.ZodObject<{
|
|
|
63231
63237
|
occurred_at: string;
|
|
63232
63238
|
event_type: "access_method.reissued";
|
|
63233
63239
|
access_grant_ids: string[];
|
|
63240
|
+
code?: string | undefined;
|
|
63234
63241
|
access_grant_keys?: string[] | undefined;
|
|
63235
63242
|
}, {
|
|
63236
63243
|
workspace_id: string;
|
|
@@ -63240,6 +63247,7 @@ export declare const batch: z.ZodObject<{
|
|
|
63240
63247
|
occurred_at: string;
|
|
63241
63248
|
event_type: "access_method.reissued";
|
|
63242
63249
|
access_grant_ids: string[];
|
|
63250
|
+
code?: string | undefined;
|
|
63243
63251
|
access_grant_keys?: string[] | undefined;
|
|
63244
63252
|
}>, z.ZodObject<{
|
|
63245
63253
|
event_id: z.ZodString;
|
|
@@ -71111,6 +71119,7 @@ export declare const batch: z.ZodObject<{
|
|
|
71111
71119
|
occurred_at: string;
|
|
71112
71120
|
event_type: "access_method.reissued";
|
|
71113
71121
|
access_grant_ids: string[];
|
|
71122
|
+
code?: string | undefined;
|
|
71114
71123
|
access_grant_keys?: string[] | undefined;
|
|
71115
71124
|
} | {
|
|
71116
71125
|
workspace_id: string;
|
|
@@ -74967,6 +74976,7 @@ export declare const batch: z.ZodObject<{
|
|
|
74967
74976
|
occurred_at: string;
|
|
74968
74977
|
event_type: "access_method.reissued";
|
|
74969
74978
|
access_grant_ids: string[];
|
|
74979
|
+
code?: string | undefined;
|
|
74970
74980
|
access_grant_keys?: string[] | undefined;
|
|
74971
74981
|
} | {
|
|
74972
74982
|
workspace_id: string;
|
|
@@ -135,6 +135,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
135
135
|
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
136
136
|
} & {
|
|
137
137
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
138
|
+
code: z.ZodOptional<z.ZodString>;
|
|
138
139
|
}, "strip", z.ZodTypeAny, {
|
|
139
140
|
workspace_id: string;
|
|
140
141
|
created_at: string;
|
|
@@ -143,6 +144,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
143
144
|
occurred_at: string;
|
|
144
145
|
event_type: "access_method.reissued";
|
|
145
146
|
access_grant_ids: string[];
|
|
147
|
+
code?: string | undefined;
|
|
146
148
|
access_grant_keys?: string[] | undefined;
|
|
147
149
|
}, {
|
|
148
150
|
workspace_id: string;
|
|
@@ -152,6 +154,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
152
154
|
occurred_at: string;
|
|
153
155
|
event_type: "access_method.reissued";
|
|
154
156
|
access_grant_ids: string[];
|
|
157
|
+
code?: string | undefined;
|
|
155
158
|
access_grant_keys?: string[] | undefined;
|
|
156
159
|
}>;
|
|
157
160
|
export type AccessMethodRevokedEvent = z.infer<typeof access_method_revoked_event>;
|
|
@@ -285,6 +288,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
285
288
|
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
286
289
|
} & {
|
|
287
290
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
291
|
+
code: z.ZodOptional<z.ZodString>;
|
|
288
292
|
}, "strip", z.ZodTypeAny, {
|
|
289
293
|
workspace_id: string;
|
|
290
294
|
created_at: string;
|
|
@@ -293,6 +297,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
293
297
|
occurred_at: string;
|
|
294
298
|
event_type: "access_method.reissued";
|
|
295
299
|
access_grant_ids: string[];
|
|
300
|
+
code?: string | undefined;
|
|
296
301
|
access_grant_keys?: string[] | undefined;
|
|
297
302
|
}, {
|
|
298
303
|
workspace_id: string;
|
|
@@ -302,5 +307,6 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
302
307
|
occurred_at: string;
|
|
303
308
|
event_type: "access_method.reissued";
|
|
304
309
|
access_grant_ids: string[];
|
|
310
|
+
code?: string | undefined;
|
|
305
311
|
access_grant_keys?: string[] | undefined;
|
|
306
312
|
}>];
|
|
@@ -51,6 +51,10 @@ export const access_method_deleted_event = access_method_event.extend({
|
|
|
51
51
|
`);
|
|
52
52
|
export const access_method_reissued_event = access_method_event.extend({
|
|
53
53
|
event_type: z.literal('access_method.reissued'),
|
|
54
|
+
code: z
|
|
55
|
+
.string()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe("The actual PIN code for code access methods (only present when mode is 'code')."),
|
|
54
58
|
}).describe(`
|
|
55
59
|
---
|
|
56
60
|
route_path: /access_methods
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,mCAAmC,CAAC;IAChD,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,4EAA4E,CAC7E;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IAC7C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF,CAClF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,O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,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACrE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IAC/C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF,CAClF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;IAC1C,2BAA2B;IAC3B,4BAA4B;CACpB,CAAA"}
|
|
@@ -857,6 +857,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
857
857
|
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
858
858
|
} & {
|
|
859
859
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
860
|
+
code: z.ZodOptional<z.ZodString>;
|
|
860
861
|
}, "strip", z.ZodTypeAny, {
|
|
861
862
|
workspace_id: string;
|
|
862
863
|
created_at: string;
|
|
@@ -865,6 +866,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
865
866
|
occurred_at: string;
|
|
866
867
|
event_type: "access_method.reissued";
|
|
867
868
|
access_grant_ids: string[];
|
|
869
|
+
code?: string | undefined;
|
|
868
870
|
access_grant_keys?: string[] | undefined;
|
|
869
871
|
}, {
|
|
870
872
|
workspace_id: string;
|
|
@@ -874,6 +876,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
874
876
|
occurred_at: string;
|
|
875
877
|
event_type: "access_method.reissued";
|
|
876
878
|
access_grant_ids: string[];
|
|
879
|
+
code?: string | undefined;
|
|
877
880
|
access_grant_keys?: string[] | undefined;
|
|
878
881
|
}>, z.ZodObject<{
|
|
879
882
|
event_id: z.ZodString;
|
|
@@ -13240,6 +13240,10 @@ export default {
|
|
|
13240
13240
|
format: 'uuid',
|
|
13241
13241
|
type: 'string',
|
|
13242
13242
|
},
|
|
13243
|
+
code: {
|
|
13244
|
+
description: "The actual PIN code for code access methods (only present when mode is 'code').",
|
|
13245
|
+
type: 'string',
|
|
13246
|
+
},
|
|
13243
13247
|
created_at: {
|
|
13244
13248
|
description: 'Date and time at which the event was created.',
|
|
13245
13249
|
format: 'date-time',
|