@seamapi/types 1.365.0 → 1.366.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 +370 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1304 -14
- package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
- package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +9 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
- package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
- package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
- package/lib/seam/connect/models/acs/index.d.ts +1 -1
- package/lib/seam/connect/models/acs/index.js +1 -1
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
- package/lib/seam/connect/openapi.d.ts +432 -0
- package/lib/seam/connect/openapi.js +320 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +336 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +9 -2
- package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
- package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
- package/src/lib/seam/connect/models/acs/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +328 -0
- package/src/lib/seam/connect/route-types.ts +385 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-users/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_user_pending_modification: z.ZodDiscriminatedUnion<"modification_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
created_at: z.ZodString;
|
|
4
|
+
}, {
|
|
5
|
+
modification_code: z.ZodLiteral<"profile">;
|
|
6
|
+
modified_from: z.ZodObject<{
|
|
7
|
+
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
email_address?: string | null | undefined;
|
|
12
|
+
full_name?: string | null | undefined;
|
|
13
|
+
phone_number?: string | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
email_address?: string | null | undefined;
|
|
16
|
+
full_name?: string | null | undefined;
|
|
17
|
+
phone_number?: string | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
modified_to: z.ZodObject<{
|
|
20
|
+
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
email_address?: string | null | undefined;
|
|
25
|
+
full_name?: string | null | undefined;
|
|
26
|
+
phone_number?: string | null | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
email_address?: string | null | undefined;
|
|
29
|
+
full_name?: string | null | undefined;
|
|
30
|
+
phone_number?: string | null | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
}>, "strip", z.ZodTypeAny, {
|
|
33
|
+
created_at: string;
|
|
34
|
+
modification_code: "profile";
|
|
35
|
+
modified_from: {
|
|
36
|
+
email_address?: string | null | undefined;
|
|
37
|
+
full_name?: string | null | undefined;
|
|
38
|
+
phone_number?: string | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
modified_to: {
|
|
41
|
+
email_address?: string | null | undefined;
|
|
42
|
+
full_name?: string | null | undefined;
|
|
43
|
+
phone_number?: string | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
created_at: string;
|
|
47
|
+
modification_code: "profile";
|
|
48
|
+
modified_from: {
|
|
49
|
+
email_address?: string | null | undefined;
|
|
50
|
+
full_name?: string | null | undefined;
|
|
51
|
+
phone_number?: string | null | undefined;
|
|
52
|
+
};
|
|
53
|
+
modified_to: {
|
|
54
|
+
email_address?: string | null | undefined;
|
|
55
|
+
full_name?: string | null | undefined;
|
|
56
|
+
phone_number?: string | null | undefined;
|
|
57
|
+
};
|
|
58
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
59
|
+
created_at: z.ZodString;
|
|
60
|
+
}, {
|
|
61
|
+
modification_code: z.ZodLiteral<"access_schedule">;
|
|
62
|
+
modified_from: z.ZodObject<{
|
|
63
|
+
starts_at: z.ZodString;
|
|
64
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
starts_at: string;
|
|
67
|
+
ends_at: string | null;
|
|
68
|
+
}, {
|
|
69
|
+
starts_at: string;
|
|
70
|
+
ends_at: string | null;
|
|
71
|
+
}>;
|
|
72
|
+
modified_to: z.ZodObject<{
|
|
73
|
+
starts_at: z.ZodString;
|
|
74
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
starts_at: string;
|
|
77
|
+
ends_at: string | null;
|
|
78
|
+
}, {
|
|
79
|
+
starts_at: string;
|
|
80
|
+
ends_at: string | null;
|
|
81
|
+
}>;
|
|
82
|
+
}>, "strip", z.ZodTypeAny, {
|
|
83
|
+
created_at: string;
|
|
84
|
+
modification_code: "access_schedule";
|
|
85
|
+
modified_from: {
|
|
86
|
+
starts_at: string;
|
|
87
|
+
ends_at: string | null;
|
|
88
|
+
};
|
|
89
|
+
modified_to: {
|
|
90
|
+
starts_at: string;
|
|
91
|
+
ends_at: string | null;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
created_at: string;
|
|
95
|
+
modification_code: "access_schedule";
|
|
96
|
+
modified_from: {
|
|
97
|
+
starts_at: string;
|
|
98
|
+
ends_at: string | null;
|
|
99
|
+
};
|
|
100
|
+
modified_to: {
|
|
101
|
+
starts_at: string;
|
|
102
|
+
ends_at: string | null;
|
|
103
|
+
};
|
|
104
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
105
|
+
created_at: z.ZodString;
|
|
106
|
+
}, {
|
|
107
|
+
modification_code: z.ZodLiteral<"suspension_state">;
|
|
108
|
+
modified_from: z.ZodObject<{
|
|
109
|
+
is_suspended: z.ZodBoolean;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
is_suspended: boolean;
|
|
112
|
+
}, {
|
|
113
|
+
is_suspended: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
modified_to: z.ZodObject<{
|
|
116
|
+
is_suspended: z.ZodBoolean;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
is_suspended: boolean;
|
|
119
|
+
}, {
|
|
120
|
+
is_suspended: boolean;
|
|
121
|
+
}>;
|
|
122
|
+
}>, "strip", z.ZodTypeAny, {
|
|
123
|
+
created_at: string;
|
|
124
|
+
modification_code: "suspension_state";
|
|
125
|
+
modified_from: {
|
|
126
|
+
is_suspended: boolean;
|
|
127
|
+
};
|
|
128
|
+
modified_to: {
|
|
129
|
+
is_suspended: boolean;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
created_at: string;
|
|
133
|
+
modification_code: "suspension_state";
|
|
134
|
+
modified_from: {
|
|
135
|
+
is_suspended: boolean;
|
|
136
|
+
};
|
|
137
|
+
modified_to: {
|
|
138
|
+
is_suspended: boolean;
|
|
139
|
+
};
|
|
140
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
+
created_at: z.ZodString;
|
|
142
|
+
}, {
|
|
143
|
+
modification_code: z.ZodLiteral<"acs_access_group_membership">;
|
|
144
|
+
modified_from: z.ZodObject<{
|
|
145
|
+
acs_access_group_id: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
acs_access_group_id: string | null;
|
|
148
|
+
}, {
|
|
149
|
+
acs_access_group_id: string | null;
|
|
150
|
+
}>;
|
|
151
|
+
modified_to: z.ZodObject<{
|
|
152
|
+
acs_access_group_id: z.ZodNullable<z.ZodString>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
acs_access_group_id: string | null;
|
|
155
|
+
}, {
|
|
156
|
+
acs_access_group_id: string | null;
|
|
157
|
+
}>;
|
|
158
|
+
}>, "strip", z.ZodTypeAny, {
|
|
159
|
+
created_at: string;
|
|
160
|
+
modification_code: "acs_access_group_membership";
|
|
161
|
+
modified_from: {
|
|
162
|
+
acs_access_group_id: string | null;
|
|
163
|
+
};
|
|
164
|
+
modified_to: {
|
|
165
|
+
acs_access_group_id: string | null;
|
|
166
|
+
};
|
|
167
|
+
}, {
|
|
168
|
+
created_at: string;
|
|
169
|
+
modification_code: "acs_access_group_membership";
|
|
170
|
+
modified_from: {
|
|
171
|
+
acs_access_group_id: string | null;
|
|
172
|
+
};
|
|
173
|
+
modified_to: {
|
|
174
|
+
acs_access_group_id: string | null;
|
|
175
|
+
};
|
|
176
|
+
}>]>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { phone_number } from '../../phone-number.js';
|
|
3
|
+
import { schedule } from '../../schedule.js';
|
|
4
|
+
const common_pending_modification = z.object({
|
|
5
|
+
created_at: z.string().datetime(),
|
|
6
|
+
});
|
|
7
|
+
const acs_user_profile = z.object({
|
|
8
|
+
email_address: z.string().email().nullable(),
|
|
9
|
+
full_name: z.string().nullable(),
|
|
10
|
+
phone_number: phone_number.optional().nullable(),
|
|
11
|
+
});
|
|
12
|
+
const profile_pending_modification = common_pending_modification.extend({
|
|
13
|
+
modification_code: z.literal('profile'),
|
|
14
|
+
modified_from: acs_user_profile.partial(),
|
|
15
|
+
modified_to: acs_user_profile.partial(),
|
|
16
|
+
});
|
|
17
|
+
const access_schedule_pending_modification = common_pending_modification.extend({
|
|
18
|
+
modification_code: z.literal('access_schedule'),
|
|
19
|
+
modified_from: schedule,
|
|
20
|
+
modified_to: schedule,
|
|
21
|
+
});
|
|
22
|
+
const suspension_state_pending_modification = common_pending_modification.extend({
|
|
23
|
+
modification_code: z.literal('suspension_state'),
|
|
24
|
+
modified_from: z.object({ is_suspended: z.boolean() }),
|
|
25
|
+
modified_to: z.object({ is_suspended: z.boolean() }),
|
|
26
|
+
});
|
|
27
|
+
const acs_access_group_membership_pending_modification = common_pending_modification.extend({
|
|
28
|
+
modification_code: z.literal('acs_access_group_membership'),
|
|
29
|
+
modified_from: z.object({
|
|
30
|
+
acs_access_group_id: z.string().uuid().nullable(),
|
|
31
|
+
}),
|
|
32
|
+
modified_to: z.object({
|
|
33
|
+
acs_access_group_id: z.string().uuid().nullable(),
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
export const acs_user_pending_modification = z.discriminatedUnion('modification_code', [
|
|
37
|
+
profile_pending_modification,
|
|
38
|
+
access_schedule_pending_modification,
|
|
39
|
+
suspension_state_pending_modification,
|
|
40
|
+
acs_access_group_membership_pending_modification,
|
|
41
|
+
]);
|
|
42
|
+
//# sourceMappingURL=pending-modifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-modifications.js","sourceRoot":"","sources":["../../../../../../src/l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,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;CACrD,CAAC,CAAA;AAEJ,MAAM,gDAAgD,GACpD,2BAA2B,CAAC,MAAM,CAAC;IACjC,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAC3D,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;QACtB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;CACH,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,kBAAkB,CAC/D,mBAAmB,EACnB;IACE,4BAA4B;IAC5B,oCAAoC;IACpC,qCAAqC;IACrC,gDAAgD;CACjD,CACF,CAAA"}
|
|
@@ -5,5 +5,5 @@ export * from './acs-credential-provisioning-automation.js';
|
|
|
5
5
|
export * from './acs-encoder.js';
|
|
6
6
|
export * from './acs-entrance.js';
|
|
7
7
|
export * from './acs-system.js';
|
|
8
|
-
export * from './acs-
|
|
8
|
+
export * from './acs-users/index.js';
|
|
9
9
|
export * from './metadata/index.js';
|
|
@@ -5,6 +5,6 @@ export * from './acs-credential-provisioning-automation.js';
|
|
|
5
5
|
export * from './acs-encoder.js';
|
|
6
6
|
export * from './acs-entrance.js';
|
|
7
7
|
export * from './acs-system.js';
|
|
8
|
-
export * from './acs-
|
|
8
|
+
export * from './acs-users/index.js';
|
|
9
9
|
export * from './metadata/index.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,
|
|
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"}
|
|
@@ -13,8 +13,8 @@ export declare const user_identity: z.ZodObject<{
|
|
|
13
13
|
created_at: string;
|
|
14
14
|
workspace_id: string;
|
|
15
15
|
user_identity_id: string;
|
|
16
|
-
full_name: string | null;
|
|
17
16
|
email_address: string | null;
|
|
17
|
+
full_name: string | null;
|
|
18
18
|
phone_number: string | null;
|
|
19
19
|
user_identity_key: string | null;
|
|
20
20
|
}, {
|
|
@@ -22,8 +22,8 @@ export declare const user_identity: z.ZodObject<{
|
|
|
22
22
|
created_at: string;
|
|
23
23
|
workspace_id: string;
|
|
24
24
|
user_identity_id: string;
|
|
25
|
-
full_name: string | null;
|
|
26
25
|
email_address: string | null;
|
|
26
|
+
full_name: string | null;
|
|
27
27
|
phone_number: string | null;
|
|
28
28
|
user_identity_key: string | null;
|
|
29
29
|
}>;
|