@seamapi/types 1.607.0 → 1.608.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.
@@ -0,0 +1 @@
1
+ export * from './pending-mutations.js';
@@ -0,0 +1,2 @@
1
+ export * from './pending-mutations.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-credentials/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+ export declare const acs_credential_pending_mutations: z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
3
+ created_at: z.ZodString;
4
+ message: z.ZodString;
5
+ } & {
6
+ mutation_code: z.ZodLiteral<"creating">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ message: string;
9
+ created_at: string;
10
+ mutation_code: "creating";
11
+ }, {
12
+ message: string;
13
+ created_at: string;
14
+ mutation_code: "creating";
15
+ }>, z.ZodObject<{
16
+ created_at: z.ZodString;
17
+ message: z.ZodString;
18
+ } & {
19
+ mutation_code: z.ZodLiteral<"deleting">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ message: string;
22
+ created_at: string;
23
+ mutation_code: "deleting";
24
+ }, {
25
+ message: string;
26
+ created_at: string;
27
+ mutation_code: "deleting";
28
+ }>]>;
29
+ export type AcsCredentialPendingMutation = z.infer<typeof acs_credential_pending_mutations>;
30
+ declare const _acs_credential_pending_mutations_map: z.ZodObject<{
31
+ creating: z.ZodNullable<z.ZodOptional<z.ZodObject<{
32
+ created_at: z.ZodString;
33
+ message: z.ZodString;
34
+ } & {
35
+ mutation_code: z.ZodLiteral<"creating">;
36
+ }, "strip", z.ZodTypeAny, {
37
+ message: string;
38
+ created_at: string;
39
+ mutation_code: "creating";
40
+ }, {
41
+ message: string;
42
+ created_at: string;
43
+ mutation_code: "creating";
44
+ }>>>;
45
+ deleting: z.ZodNullable<z.ZodOptional<z.ZodObject<{
46
+ created_at: z.ZodString;
47
+ message: z.ZodString;
48
+ } & {
49
+ mutation_code: z.ZodLiteral<"deleting">;
50
+ }, "strip", z.ZodTypeAny, {
51
+ message: string;
52
+ created_at: string;
53
+ mutation_code: "deleting";
54
+ }, {
55
+ message: string;
56
+ created_at: string;
57
+ mutation_code: "deleting";
58
+ }>>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ creating?: {
61
+ message: string;
62
+ created_at: string;
63
+ mutation_code: "creating";
64
+ } | null | undefined;
65
+ deleting?: {
66
+ message: string;
67
+ created_at: string;
68
+ mutation_code: "deleting";
69
+ } | null | undefined;
70
+ }, {
71
+ creating?: {
72
+ message: string;
73
+ created_at: string;
74
+ mutation_code: "creating";
75
+ } | null | undefined;
76
+ deleting?: {
77
+ message: string;
78
+ created_at: string;
79
+ mutation_code: "deleting";
80
+ } | null | undefined;
81
+ }>;
82
+ export type AcsCredentialPendingMutationsMap = z.infer<typeof _acs_credential_pending_mutations_map>;
83
+ export {};
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ const common_pending_mutation = z.object({
3
+ created_at: z
4
+ .string()
5
+ .datetime()
6
+ .describe('Date and time at which the mutation was created.'),
7
+ message: z.string().describe('Detailed description of the mutation.'),
8
+ });
9
+ const creating = common_pending_mutation
10
+ .extend({
11
+ mutation_code: z
12
+ .literal('creating')
13
+ .describe('Mutation code to indicate that Seam is in the process of pushing a credential creation to the integrated access system.'),
14
+ })
15
+ .describe('Seam is in the process of pushing a credential creation to the integrated access system.');
16
+ const deleting = common_pending_mutation
17
+ .extend({
18
+ mutation_code: z
19
+ .literal('deleting')
20
+ .describe('Mutation code to indicate that Seam is in the process of pushing a credential deletion to the integrated access system.'),
21
+ })
22
+ .describe('Seam is in the process of pushing a credential deletion to the integrated access system.');
23
+ export const acs_credential_pending_mutations = z.discriminatedUnion('mutation_code', [creating, deleting]);
24
+ const _acs_credential_pending_mutations_map = z.object({
25
+ creating: creating.optional().nullable(),
26
+ deleting: deleting.optional().nullable(),
27
+ });
28
+ //# sourceMappingURL=pending-mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-mutations.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACtE,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAG,uBAAuB;KACrC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC;SACb,OAAO,CAAC,UAAU,CAAC;SACnB,QAAQ,CACP,yHAAyH,CAC1H;CACJ,CAAC;KACD,QAAQ,CACP,0FAA0F,CAC3F,CAAA;AAEH,MAAM,QAAQ,GAAG,uBAAuB;KACrC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC;SACb,OAAO,CAAC,UAAU,CAAC;SACnB,QAAQ,CACP,yHAAyH,CAC1H;CACJ,CAAC;KACD,QAAQ,CACP,0FAA0F,CAC3F,CAAA;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAClE,eAAe,EACf,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACrB,CAAA;AAMD,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
@@ -2,6 +2,7 @@ export * from './acs-access-group.js';
2
2
  export * from './acs-credential.js';
3
3
  export * from './acs-credential-pool.js';
4
4
  export * from './acs-credential-provisioning-automation.js';
5
+ export * from './acs-credentials/index.js';
5
6
  export * from './acs-encoder.js';
6
7
  export * from './acs-entrance.js';
7
8
  export * from './acs-system.js';
@@ -2,6 +2,7 @@ export * from './acs-access-group.js';
2
2
  export * from './acs-credential.js';
3
3
  export * from './acs-credential-pool.js';
4
4
  export * from './acs-credential-provisioning-automation.js';
5
+ export * from './acs-credentials/index.js';
5
6
  export * from './acs-encoder.js';
6
7
  export * from './acs-entrance.js';
7
8
  export * from './acs-system.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.607.0",
3
+ "version": "1.608.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -0,0 +1 @@
1
+ export * from './pending-mutations.js'
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod'
2
+
3
+ const common_pending_mutation = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which the mutation was created.'),
8
+ message: z.string().describe('Detailed description of the mutation.'),
9
+ })
10
+
11
+ const creating = common_pending_mutation
12
+ .extend({
13
+ mutation_code: z
14
+ .literal('creating')
15
+ .describe(
16
+ 'Mutation code to indicate that Seam is in the process of pushing a credential creation to the integrated access system.',
17
+ ),
18
+ })
19
+ .describe(
20
+ 'Seam is in the process of pushing a credential creation to the integrated access system.',
21
+ )
22
+
23
+ const deleting = common_pending_mutation
24
+ .extend({
25
+ mutation_code: z
26
+ .literal('deleting')
27
+ .describe(
28
+ 'Mutation code to indicate that Seam is in the process of pushing a credential deletion to the integrated access system.',
29
+ ),
30
+ })
31
+ .describe(
32
+ 'Seam is in the process of pushing a credential deletion to the integrated access system.',
33
+ )
34
+
35
+ export const acs_credential_pending_mutations = z.discriminatedUnion(
36
+ 'mutation_code',
37
+ [creating, deleting],
38
+ )
39
+
40
+ export type AcsCredentialPendingMutation = z.infer<
41
+ typeof acs_credential_pending_mutations
42
+ >
43
+
44
+ const _acs_credential_pending_mutations_map = z.object({
45
+ creating: creating.optional().nullable(),
46
+ deleting: deleting.optional().nullable(),
47
+ })
48
+
49
+ export type AcsCredentialPendingMutationsMap = z.infer<
50
+ typeof _acs_credential_pending_mutations_map
51
+ >
@@ -2,6 +2,7 @@ export * from './acs-access-group.js'
2
2
  export * from './acs-credential.js'
3
3
  export * from './acs-credential-pool.js'
4
4
  export * from './acs-credential-provisioning-automation.js'
5
+ export * from './acs-credentials/index.js'
5
6
  export * from './acs-encoder.js'
6
7
  export * from './acs-entrance.js'
7
8
  export * from './acs-system.js'