@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.3
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/README.md +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +22 -5
- package/contract/audit-log/routes.d.ts +11 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +30 -16
- package/contract/connect/routes.d.ts +51 -7
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/custom-domain.d.ts +12 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +27 -73
- package/contract/mail/models.d.ts +230 -50
- package/contract/mail/routes.d.ts +649 -59
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +39 -33
- package/contract/meetings/routes.d.ts +121 -23
- package/contract/oauth-apps/models.d.ts +6 -6
- package/contract/oauth-apps/routes.d.ts +34 -4
- package/contract/org-connections/models.d.ts +93 -39
- package/contract/org-connections/routes.d.ts +352 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +7 -0
- package/contract/reasons.d.ts +559 -21
- package/contract/router.d.ts +6447 -2719
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +140 -45
- package/contract/send/routes.d.ts +310 -31
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** A Pub/Sub topic id as users.watch takes it: projects/<project id>/topics/<topic>. */
|
|
3
2
|
export declare const PUBSUB_TOPIC_PATTERN: RegExp;
|
|
4
|
-
/**
|
|
5
|
-
* Gmail push for the accounts of a tenant Google app: users.watch publishes to `topic`, which
|
|
6
|
-
* must be in the Cloud project of the app's OAuth client, and the tenant's push subscription
|
|
7
|
-
* delivers to the app's gmailPushEndpoint with OIDC tokens issued for `serviceAccount`.
|
|
8
|
-
*/
|
|
9
3
|
export declare const GmailPushSettings: z.ZodObject<{
|
|
10
4
|
topic: z.ZodString;
|
|
11
5
|
serviceAccount: z.ZodEmail;
|
|
@@ -26,6 +20,8 @@ export declare const OAuthApp: z.ZodObject<{
|
|
|
26
20
|
china: "china";
|
|
27
21
|
}>>;
|
|
28
22
|
authority: z.ZodNullable<z.ZodString>;
|
|
23
|
+
useConnectDomain: z.ZodBoolean;
|
|
24
|
+
redirectUri: z.ZodURL;
|
|
29
25
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
30
26
|
topic: z.ZodString;
|
|
31
27
|
serviceAccount: z.ZodEmail;
|
|
@@ -50,6 +46,8 @@ export declare const OAuthAppList: z.ZodObject<{
|
|
|
50
46
|
china: "china";
|
|
51
47
|
}>>;
|
|
52
48
|
authority: z.ZodNullable<z.ZodString>;
|
|
49
|
+
useConnectDomain: z.ZodBoolean;
|
|
50
|
+
redirectUri: z.ZodURL;
|
|
53
51
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
54
52
|
topic: z.ZodString;
|
|
55
53
|
serviceAccount: z.ZodEmail;
|
|
@@ -74,6 +72,7 @@ export declare const CreateOAuthApp: z.ZodObject<{
|
|
|
74
72
|
clientId: z.ZodString;
|
|
75
73
|
clientSecret: z.ZodString;
|
|
76
74
|
authority: z.ZodOptional<z.ZodString>;
|
|
75
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
77
76
|
}, z.core.$strip>;
|
|
78
77
|
export type CreateOAuthApp = z.infer<typeof CreateOAuthApp>;
|
|
79
78
|
export declare const UpdateOAuthApp: z.ZodObject<{
|
|
@@ -84,6 +83,7 @@ export declare const UpdateOAuthApp: z.ZodObject<{
|
|
|
84
83
|
topic: z.ZodString;
|
|
85
84
|
serviceAccount: z.ZodEmail;
|
|
86
85
|
}, z.core.$strip>>>;
|
|
86
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
87
87
|
}, z.core.$strip>;
|
|
88
88
|
export type UpdateOAuthApp = z.infer<typeof UpdateOAuthApp>;
|
|
89
89
|
export declare const OAuthAppIdInput: z.ZodObject<{
|
|
@@ -16,6 +16,8 @@ export declare const oauthApps: {
|
|
|
16
16
|
china: "china";
|
|
17
17
|
}>>;
|
|
18
18
|
authority: z.ZodNullable<z.ZodString>;
|
|
19
|
+
useConnectDomain: z.ZodBoolean;
|
|
20
|
+
redirectUri: z.ZodURL;
|
|
19
21
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
20
22
|
topic: z.ZodString;
|
|
21
23
|
serviceAccount: z.ZodEmail;
|
|
@@ -30,6 +32,8 @@ export declare const oauthApps: {
|
|
|
30
32
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
31
33
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
32
34
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
35
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
36
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
33
37
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
34
38
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
35
39
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -54,6 +58,7 @@ export declare const oauthApps: {
|
|
|
54
58
|
clientId: z.ZodString;
|
|
55
59
|
clientSecret: z.ZodString;
|
|
56
60
|
authority: z.ZodOptional<z.ZodString>;
|
|
61
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
57
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
58
63
|
id: z.ZodUUID;
|
|
59
64
|
provider: z.ZodEnum<{
|
|
@@ -69,6 +74,8 @@ export declare const oauthApps: {
|
|
|
69
74
|
china: "china";
|
|
70
75
|
}>>;
|
|
71
76
|
authority: z.ZodNullable<z.ZodString>;
|
|
77
|
+
useConnectDomain: z.ZodBoolean;
|
|
78
|
+
redirectUri: z.ZodURL;
|
|
72
79
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
73
80
|
topic: z.ZodString;
|
|
74
81
|
serviceAccount: z.ZodEmail;
|
|
@@ -82,6 +89,8 @@ export declare const oauthApps: {
|
|
|
82
89
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
83
90
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
84
91
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
92
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
93
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
85
94
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
86
95
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
87
96
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -90,10 +99,20 @@ export declare const oauthApps: {
|
|
|
90
99
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
91
100
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
92
101
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
93
|
-
}>>,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
}>>, {
|
|
103
|
+
cloud_required: {
|
|
104
|
+
status: 400;
|
|
105
|
+
message: string;
|
|
106
|
+
};
|
|
107
|
+
not_microsoft: {
|
|
108
|
+
status: 400;
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
connect_domain_inactive: {
|
|
112
|
+
status: 409;
|
|
113
|
+
message: string;
|
|
114
|
+
};
|
|
115
|
+
}>, Record<never, never>>;
|
|
97
116
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
98
117
|
appId: z.ZodUUID;
|
|
99
118
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -103,6 +122,7 @@ export declare const oauthApps: {
|
|
|
103
122
|
topic: z.ZodString;
|
|
104
123
|
serviceAccount: z.ZodEmail;
|
|
105
124
|
}, z.core.$strip>>>;
|
|
125
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
106
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
127
|
id: z.ZodUUID;
|
|
108
128
|
provider: z.ZodEnum<{
|
|
@@ -118,6 +138,8 @@ export declare const oauthApps: {
|
|
|
118
138
|
china: "china";
|
|
119
139
|
}>>;
|
|
120
140
|
authority: z.ZodNullable<z.ZodString>;
|
|
141
|
+
useConnectDomain: z.ZodBoolean;
|
|
142
|
+
redirectUri: z.ZodURL;
|
|
121
143
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
122
144
|
topic: z.ZodString;
|
|
123
145
|
serviceAccount: z.ZodEmail;
|
|
@@ -131,6 +153,8 @@ export declare const oauthApps: {
|
|
|
131
153
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
132
154
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
133
155
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
156
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
157
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
134
158
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
135
159
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
136
160
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -152,6 +176,10 @@ export declare const oauthApps: {
|
|
|
152
176
|
status: 400;
|
|
153
177
|
message: string;
|
|
154
178
|
};
|
|
179
|
+
connect_domain_inactive: {
|
|
180
|
+
status: 409;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
155
183
|
oauth_app_not_found: {
|
|
156
184
|
status: 404;
|
|
157
185
|
message: string;
|
|
@@ -166,6 +194,8 @@ export declare const oauthApps: {
|
|
|
166
194
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
167
195
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
168
196
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
197
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
198
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
169
199
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
170
200
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
171
201
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -4,8 +4,6 @@ export declare const OrgConnectionKind: z.ZodEnum<{
|
|
|
4
4
|
microsoft_app: "microsoft_app";
|
|
5
5
|
}>;
|
|
6
6
|
export type OrgConnectionKind = z.infer<typeof OrgConnectionKind>;
|
|
7
|
-
/** pending_consent: no Microsoft directory has consented yet. unverified: registered or changed
|
|
8
|
-
* and not tested since. active / failing: the outcome of the last test or consent. */
|
|
9
7
|
export declare const OrgConnectionStatus: z.ZodEnum<{
|
|
10
8
|
active: "active";
|
|
11
9
|
unverified: "unverified";
|
|
@@ -13,8 +11,6 @@ export declare const OrgConnectionStatus: z.ZodEnum<{
|
|
|
13
11
|
pending_consent: "pending_consent";
|
|
14
12
|
}>;
|
|
15
13
|
export type OrgConnectionStatus = z.infer<typeof OrgConnectionStatus>;
|
|
16
|
-
/** platform: the platform's Entra app for the cloud, authorized through admin consent.
|
|
17
|
-
* client_secret / certificate: the tenant's own app registration. */
|
|
18
14
|
export declare const MicrosoftAppCredential: z.ZodEnum<{
|
|
19
15
|
platform: "platform";
|
|
20
16
|
client_secret: "client_secret";
|
|
@@ -26,6 +22,7 @@ export declare const GoogleDelegation: z.ZodObject<{
|
|
|
26
22
|
serviceAccountEmail: z.ZodString;
|
|
27
23
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
28
24
|
scopes: z.ZodArray<z.ZodString>;
|
|
25
|
+
groupsEnabled: z.ZodBoolean;
|
|
29
26
|
}, z.core.$strip>;
|
|
30
27
|
export type GoogleDelegation = z.infer<typeof GoogleDelegation>;
|
|
31
28
|
export declare const GraphPermission: z.ZodObject<{
|
|
@@ -46,6 +43,8 @@ export declare const MicrosoftAppAccess: z.ZodObject<{
|
|
|
46
43
|
certificate: "certificate";
|
|
47
44
|
}>;
|
|
48
45
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
useConnectDomain: z.ZodBoolean;
|
|
47
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
49
48
|
permissions: z.ZodArray<z.ZodObject<{
|
|
50
49
|
name: z.ZodString;
|
|
51
50
|
isRequired: z.ZodBoolean;
|
|
@@ -73,6 +72,7 @@ export declare const OrgConnection: z.ZodObject<{
|
|
|
73
72
|
serviceAccountEmail: z.ZodString;
|
|
74
73
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
75
74
|
scopes: z.ZodArray<z.ZodString>;
|
|
75
|
+
groupsEnabled: z.ZodBoolean;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
77
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
78
78
|
cloud: z.ZodEnum<{
|
|
@@ -87,6 +87,8 @@ export declare const OrgConnection: z.ZodObject<{
|
|
|
87
87
|
certificate: "certificate";
|
|
88
88
|
}>;
|
|
89
89
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
useConnectDomain: z.ZodBoolean;
|
|
91
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
90
92
|
permissions: z.ZodArray<z.ZodObject<{
|
|
91
93
|
name: z.ZodString;
|
|
92
94
|
isRequired: z.ZodBoolean;
|
|
@@ -119,6 +121,7 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
119
121
|
serviceAccountEmail: z.ZodString;
|
|
120
122
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
121
123
|
scopes: z.ZodArray<z.ZodString>;
|
|
124
|
+
groupsEnabled: z.ZodBoolean;
|
|
122
125
|
}, z.core.$strip>>;
|
|
123
126
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
124
127
|
cloud: z.ZodEnum<{
|
|
@@ -133,6 +136,8 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
133
136
|
certificate: "certificate";
|
|
134
137
|
}>;
|
|
135
138
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
useConnectDomain: z.ZodBoolean;
|
|
140
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
136
141
|
permissions: z.ZodArray<z.ZodObject<{
|
|
137
142
|
name: z.ZodString;
|
|
138
143
|
isRequired: z.ZodBoolean;
|
|
@@ -144,48 +149,59 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
144
149
|
}, z.core.$strip>>;
|
|
145
150
|
}, z.core.$strip>;
|
|
146
151
|
export type OrgConnectionList = z.infer<typeof OrgConnectionList>;
|
|
147
|
-
export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
152
|
+
export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
153
|
+
z.ZodObject<{
|
|
154
|
+
kind: z.ZodLiteral<"google_delegation">;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
serviceAccountKey: z.ZodString;
|
|
157
|
+
domain: z.ZodString;
|
|
158
|
+
calendarEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
159
|
+
contactsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
160
|
+
directoryAdmin: z.ZodOptional<z.ZodEmail>;
|
|
161
|
+
groupsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
}, z.core.$strip>,
|
|
163
|
+
z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"microsoft_app">;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
cloud: z.ZodDefault<z.ZodEnum<{
|
|
167
|
+
global: "global";
|
|
168
|
+
"gcc-high": "gcc-high";
|
|
169
|
+
dod: "dod";
|
|
170
|
+
china: "china";
|
|
171
|
+
}>>;
|
|
172
|
+
credential: z.ZodDiscriminatedUnion<[
|
|
173
|
+
z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"platform">;
|
|
175
|
+
}, z.core.$strip>,
|
|
176
|
+
z.ZodObject<{
|
|
177
|
+
type: z.ZodLiteral<"client_secret">;
|
|
178
|
+
clientId: z.ZodString;
|
|
179
|
+
clientSecret: z.ZodString;
|
|
180
|
+
}, z.core.$strip>,
|
|
181
|
+
z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"certificate">;
|
|
183
|
+
clientId: z.ZodString;
|
|
184
|
+
certificate: z.ZodString;
|
|
185
|
+
privateKey: z.ZodString;
|
|
186
|
+
}, z.core.$strip>
|
|
187
|
+
], "type">;
|
|
188
|
+
directoryId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>
|
|
191
|
+
], "kind">;
|
|
178
192
|
export type CreateOrgConnection = z.infer<typeof CreateOrgConnection>;
|
|
179
193
|
export declare const UpdateOrgConnection: z.ZodObject<{
|
|
180
194
|
name: z.ZodOptional<z.ZodString>;
|
|
181
195
|
serviceAccountKey: z.ZodOptional<z.ZodString>;
|
|
182
196
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
183
197
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
groupsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
184
199
|
directoryAdmin: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
185
200
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
186
201
|
certificate: z.ZodOptional<z.ZodString>;
|
|
187
202
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
188
203
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
204
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
189
205
|
}, z.core.$strip>;
|
|
190
206
|
export type UpdateOrgConnection = z.infer<typeof UpdateOrgConnection>;
|
|
191
207
|
export declare const OrgConnectionCheck: z.ZodObject<{
|
|
@@ -217,6 +233,7 @@ export declare const OrgConnectionTestResult: z.ZodObject<{
|
|
|
217
233
|
serviceAccountEmail: z.ZodString;
|
|
218
234
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
219
235
|
scopes: z.ZodArray<z.ZodString>;
|
|
236
|
+
groupsEnabled: z.ZodBoolean;
|
|
220
237
|
}, z.core.$strip>>;
|
|
221
238
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
222
239
|
cloud: z.ZodEnum<{
|
|
@@ -231,6 +248,8 @@ export declare const OrgConnectionTestResult: z.ZodObject<{
|
|
|
231
248
|
certificate: "certificate";
|
|
232
249
|
}>;
|
|
233
250
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
useConnectDomain: z.ZodBoolean;
|
|
252
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
234
253
|
permissions: z.ZodArray<z.ZodObject<{
|
|
235
254
|
name: z.ZodString;
|
|
236
255
|
isRequired: z.ZodBoolean;
|
|
@@ -284,24 +303,27 @@ export declare const AddMailboxesRequest: z.ZodObject<{
|
|
|
284
303
|
full: "full";
|
|
285
304
|
}>>;
|
|
286
305
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
287
307
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
288
308
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
289
309
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
290
310
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
291
311
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
292
312
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
lists: "lists";
|
|
315
|
+
always: "always";
|
|
316
|
+
}>>;
|
|
317
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
293
318
|
}, z.core.$strip>>;
|
|
294
319
|
}, z.core.$strip>;
|
|
295
320
|
export type AddMailboxesRequest = z.infer<typeof AddMailboxesRequest>;
|
|
296
|
-
/** created: a new account. exists: a live account for the mailbox was already there.
|
|
297
|
-
* failed: see error. */
|
|
298
321
|
export declare const AddedMailboxStatus: z.ZodEnum<{
|
|
299
322
|
failed: "failed";
|
|
300
323
|
created: "created";
|
|
301
324
|
exists: "exists";
|
|
302
325
|
}>;
|
|
303
326
|
export type AddedMailboxStatus = z.infer<typeof AddedMailboxStatus>;
|
|
304
|
-
/** Why one mailbox was not added: `reason` is the reason the API would refuse it with (REASONS). */
|
|
305
327
|
export declare const AddedMailboxError: z.ZodObject<{
|
|
306
328
|
reason: z.ZodString;
|
|
307
329
|
message: z.ZodString;
|
|
@@ -321,7 +343,6 @@ export declare const AddedMailbox: z.ZodObject<{
|
|
|
321
343
|
}, z.core.$strip>>;
|
|
322
344
|
}, z.core.$strip>;
|
|
323
345
|
export type AddedMailbox = z.infer<typeof AddedMailbox>;
|
|
324
|
-
/** One result per requested mailbox, in request order. */
|
|
325
346
|
export declare const AddedMailboxList: z.ZodObject<{
|
|
326
347
|
items: z.ZodArray<z.ZodObject<{
|
|
327
348
|
email: z.ZodString;
|
|
@@ -372,12 +393,45 @@ export declare const OpenSharedMailboxRequest: z.ZodObject<{
|
|
|
372
393
|
full: "full";
|
|
373
394
|
}>>;
|
|
374
395
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
396
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
375
397
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
376
398
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
377
399
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
378
400
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
379
401
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
380
402
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
403
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
404
|
+
lists: "lists";
|
|
405
|
+
always: "always";
|
|
406
|
+
}>>;
|
|
407
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
381
408
|
}, z.core.$strip>>;
|
|
382
409
|
}, z.core.$strip>;
|
|
383
410
|
export type OpenSharedMailboxRequest = z.infer<typeof OpenSharedMailboxRequest>;
|
|
411
|
+
export declare const AddGroupRequest: z.ZodObject<{
|
|
412
|
+
email: z.ZodEmail;
|
|
413
|
+
relayEmail: z.ZodEmail;
|
|
414
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
415
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
416
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
418
|
+
none: "none";
|
|
419
|
+
cache: "cache";
|
|
420
|
+
full: "full";
|
|
421
|
+
}>>;
|
|
422
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
423
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
425
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
431
|
+
lists: "lists";
|
|
432
|
+
always: "always";
|
|
433
|
+
}>>;
|
|
434
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
export type AddGroupRequest = z.infer<typeof AddGroupRequest>;
|