@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4
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/contract/accounts/models.d.ts +21 -0
- package/contract/accounts/routes.d.ts +39 -0
- package/contract/audit-log/models.d.ts +3 -0
- package/contract/audit-log/routes.d.ts +1 -0
- package/contract/connect/models.d.ts +17 -0
- package/contract/connect/routes.d.ts +23 -0
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/custom-domain.d.ts +12 -0
- package/contract/errors.d.ts +6 -0
- package/contract/limits.d.ts +6 -0
- package/contract/mail/models.d.ts +139 -2
- package/contract/mail/routes.d.ts +211 -41
- package/contract/meetings/models.d.ts +11 -0
- package/contract/meetings/routes.d.ts +79 -0
- package/contract/oauth-apps/models.d.ts +6 -0
- package/contract/oauth-apps/routes.d.ts +26 -4
- package/contract/org-connections/models.d.ts +10 -0
- package/contract/org-connections/routes.d.ts +42 -0
- package/contract/public.d.ts +1 -0
- package/contract/reasons.d.ts +33 -0
- package/contract/router.d.ts +723 -89
- package/contract/send/models.d.ts +58 -0
- package/contract/send/routes.d.ts +54 -0
- package/contract/threads/routes.d.ts +8 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ export declare const meetingApps: {
|
|
|
24
24
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
25
25
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
26
26
|
scopes: z.ZodArray<z.ZodString>;
|
|
27
|
+
useConnectDomain: z.ZodBoolean;
|
|
27
28
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
28
29
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
29
30
|
}, z.core.$strip>>;
|
|
@@ -53,6 +54,7 @@ export declare const meetingApps: {
|
|
|
53
54
|
name: z.ZodString;
|
|
54
55
|
clientId: z.ZodString;
|
|
55
56
|
clientSecret: z.ZodString;
|
|
57
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
56
58
|
}, z.core.$strip>,
|
|
57
59
|
z.ZodObject<{
|
|
58
60
|
kind: z.ZodLiteral<"zoom_s2s">;
|
|
@@ -60,18 +62,21 @@ export declare const meetingApps: {
|
|
|
60
62
|
accountId: z.ZodString;
|
|
61
63
|
clientId: z.ZodString;
|
|
62
64
|
clientSecret: z.ZodString;
|
|
65
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
63
66
|
}, z.core.$strip>,
|
|
64
67
|
z.ZodObject<{
|
|
65
68
|
kind: z.ZodLiteral<"webex_oauth">;
|
|
66
69
|
name: z.ZodString;
|
|
67
70
|
clientId: z.ZodString;
|
|
68
71
|
clientSecret: z.ZodString;
|
|
72
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
69
73
|
}, z.core.$strip>,
|
|
70
74
|
z.ZodObject<{
|
|
71
75
|
kind: z.ZodLiteral<"webex_service_app">;
|
|
72
76
|
name: z.ZodString;
|
|
73
77
|
clientId: z.ZodString;
|
|
74
78
|
clientSecret: z.ZodString;
|
|
79
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
75
80
|
refreshToken: z.ZodString;
|
|
76
81
|
}, z.core.$strip>
|
|
77
82
|
], "kind">, z.ZodObject<{
|
|
@@ -97,6 +102,7 @@ export declare const meetingApps: {
|
|
|
97
102
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
98
103
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
99
104
|
scopes: z.ZodArray<z.ZodString>;
|
|
105
|
+
useConnectDomain: z.ZodBoolean;
|
|
100
106
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
101
107
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
102
108
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
@@ -121,6 +127,78 @@ export declare const meetingApps: {
|
|
|
121
127
|
status: 409;
|
|
122
128
|
message: string;
|
|
123
129
|
};
|
|
130
|
+
connect_domain_inactive: {
|
|
131
|
+
status: 409;
|
|
132
|
+
message: string;
|
|
133
|
+
};
|
|
134
|
+
connect_domain_unsupported: {
|
|
135
|
+
status: 400;
|
|
136
|
+
message: string;
|
|
137
|
+
};
|
|
138
|
+
plan_module_unavailable: {
|
|
139
|
+
status: 403;
|
|
140
|
+
message: string;
|
|
141
|
+
};
|
|
142
|
+
}>, Record<never, never>>;
|
|
143
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
144
|
+
appId: z.ZodUUID;
|
|
145
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
id: z.ZodUUID;
|
|
148
|
+
kind: z.ZodEnum<{
|
|
149
|
+
zoom_oauth: "zoom_oauth";
|
|
150
|
+
zoom_s2s: "zoom_s2s";
|
|
151
|
+
webex_oauth: "webex_oauth";
|
|
152
|
+
webex_service_app: "webex_service_app";
|
|
153
|
+
}>;
|
|
154
|
+
service: z.ZodEnum<{
|
|
155
|
+
zoom: "zoom";
|
|
156
|
+
webex: "webex";
|
|
157
|
+
}>;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
clientId: z.ZodString;
|
|
160
|
+
zoomAccountId: z.ZodNullable<z.ZodString>;
|
|
161
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
162
|
+
active: "active";
|
|
163
|
+
unverified: "unverified";
|
|
164
|
+
failing: "failing";
|
|
165
|
+
}>>;
|
|
166
|
+
statusDetail: z.ZodNullable<z.ZodString>;
|
|
167
|
+
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
168
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
169
|
+
useConnectDomain: z.ZodBoolean;
|
|
170
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
171
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
172
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
173
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
174
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
175
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
176
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
177
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
178
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
179
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
180
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
181
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
182
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
183
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
184
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
185
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
186
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
187
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
188
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
189
|
+
}>>, {
|
|
190
|
+
connect_domain_inactive: {
|
|
191
|
+
status: 409;
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
194
|
+
connect_domain_unsupported: {
|
|
195
|
+
status: 400;
|
|
196
|
+
message: string;
|
|
197
|
+
};
|
|
198
|
+
meeting_app_not_found: {
|
|
199
|
+
status: 404;
|
|
200
|
+
message: string;
|
|
201
|
+
};
|
|
124
202
|
plan_module_unavailable: {
|
|
125
203
|
status: 403;
|
|
126
204
|
message: string;
|
|
@@ -153,6 +231,7 @@ export declare const meetingApps: {
|
|
|
153
231
|
statusDetail: z.ZodNullable<z.ZodString>;
|
|
154
232
|
checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
155
233
|
scopes: z.ZodArray<z.ZodString>;
|
|
234
|
+
useConnectDomain: z.ZodBoolean;
|
|
156
235
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
157
236
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
158
237
|
}, z.core.$strip>;
|
|
@@ -20,6 +20,8 @@ export declare const OAuthApp: z.ZodObject<{
|
|
|
20
20
|
china: "china";
|
|
21
21
|
}>>;
|
|
22
22
|
authority: z.ZodNullable<z.ZodString>;
|
|
23
|
+
useConnectDomain: z.ZodBoolean;
|
|
24
|
+
redirectUri: z.ZodURL;
|
|
23
25
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
24
26
|
topic: z.ZodString;
|
|
25
27
|
serviceAccount: z.ZodEmail;
|
|
@@ -44,6 +46,8 @@ export declare const OAuthAppList: z.ZodObject<{
|
|
|
44
46
|
china: "china";
|
|
45
47
|
}>>;
|
|
46
48
|
authority: z.ZodNullable<z.ZodString>;
|
|
49
|
+
useConnectDomain: z.ZodBoolean;
|
|
50
|
+
redirectUri: z.ZodURL;
|
|
47
51
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
48
52
|
topic: z.ZodString;
|
|
49
53
|
serviceAccount: z.ZodEmail;
|
|
@@ -68,6 +72,7 @@ export declare const CreateOAuthApp: z.ZodObject<{
|
|
|
68
72
|
clientId: z.ZodString;
|
|
69
73
|
clientSecret: z.ZodString;
|
|
70
74
|
authority: z.ZodOptional<z.ZodString>;
|
|
75
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
71
76
|
}, z.core.$strip>;
|
|
72
77
|
export type CreateOAuthApp = z.infer<typeof CreateOAuthApp>;
|
|
73
78
|
export declare const UpdateOAuthApp: z.ZodObject<{
|
|
@@ -78,6 +83,7 @@ export declare const UpdateOAuthApp: z.ZodObject<{
|
|
|
78
83
|
topic: z.ZodString;
|
|
79
84
|
serviceAccount: z.ZodEmail;
|
|
80
85
|
}, z.core.$strip>>>;
|
|
86
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
81
87
|
}, z.core.$strip>;
|
|
82
88
|
export type UpdateOAuthApp = z.infer<typeof UpdateOAuthApp>;
|
|
83
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;
|
|
@@ -56,6 +58,7 @@ export declare const oauthApps: {
|
|
|
56
58
|
clientId: z.ZodString;
|
|
57
59
|
clientSecret: z.ZodString;
|
|
58
60
|
authority: z.ZodOptional<z.ZodString>;
|
|
61
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
59
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
63
|
id: z.ZodUUID;
|
|
61
64
|
provider: z.ZodEnum<{
|
|
@@ -71,6 +74,8 @@ export declare const oauthApps: {
|
|
|
71
74
|
china: "china";
|
|
72
75
|
}>>;
|
|
73
76
|
authority: z.ZodNullable<z.ZodString>;
|
|
77
|
+
useConnectDomain: z.ZodBoolean;
|
|
78
|
+
redirectUri: z.ZodURL;
|
|
74
79
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
75
80
|
topic: z.ZodString;
|
|
76
81
|
serviceAccount: z.ZodEmail;
|
|
@@ -94,10 +99,20 @@ export declare const oauthApps: {
|
|
|
94
99
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
95
100
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
96
101
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
97
|
-
}>>,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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>>;
|
|
101
116
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
102
117
|
appId: z.ZodUUID;
|
|
103
118
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -107,6 +122,7 @@ export declare const oauthApps: {
|
|
|
107
122
|
topic: z.ZodString;
|
|
108
123
|
serviceAccount: z.ZodEmail;
|
|
109
124
|
}, z.core.$strip>>>;
|
|
125
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
110
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
111
127
|
id: z.ZodUUID;
|
|
112
128
|
provider: z.ZodEnum<{
|
|
@@ -122,6 +138,8 @@ export declare const oauthApps: {
|
|
|
122
138
|
china: "china";
|
|
123
139
|
}>>;
|
|
124
140
|
authority: z.ZodNullable<z.ZodString>;
|
|
141
|
+
useConnectDomain: z.ZodBoolean;
|
|
142
|
+
redirectUri: z.ZodURL;
|
|
125
143
|
gmailPush: z.ZodNullable<z.ZodObject<{
|
|
126
144
|
topic: z.ZodString;
|
|
127
145
|
serviceAccount: z.ZodEmail;
|
|
@@ -158,6 +176,10 @@ export declare const oauthApps: {
|
|
|
158
176
|
status: 400;
|
|
159
177
|
message: string;
|
|
160
178
|
};
|
|
179
|
+
connect_domain_inactive: {
|
|
180
|
+
status: 409;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
161
183
|
oauth_app_not_found: {
|
|
162
184
|
status: 404;
|
|
163
185
|
message: string;
|
|
@@ -43,6 +43,8 @@ export declare const MicrosoftAppAccess: z.ZodObject<{
|
|
|
43
43
|
certificate: "certificate";
|
|
44
44
|
}>;
|
|
45
45
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
useConnectDomain: z.ZodBoolean;
|
|
47
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
46
48
|
permissions: z.ZodArray<z.ZodObject<{
|
|
47
49
|
name: z.ZodString;
|
|
48
50
|
isRequired: z.ZodBoolean;
|
|
@@ -85,6 +87,8 @@ export declare const OrgConnection: z.ZodObject<{
|
|
|
85
87
|
certificate: "certificate";
|
|
86
88
|
}>;
|
|
87
89
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
useConnectDomain: z.ZodBoolean;
|
|
91
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
88
92
|
permissions: z.ZodArray<z.ZodObject<{
|
|
89
93
|
name: z.ZodString;
|
|
90
94
|
isRequired: z.ZodBoolean;
|
|
@@ -132,6 +136,8 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
132
136
|
certificate: "certificate";
|
|
133
137
|
}>;
|
|
134
138
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
useConnectDomain: z.ZodBoolean;
|
|
140
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
135
141
|
permissions: z.ZodArray<z.ZodObject<{
|
|
136
142
|
name: z.ZodString;
|
|
137
143
|
isRequired: z.ZodBoolean;
|
|
@@ -180,6 +186,7 @@ export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
|
180
186
|
}, z.core.$strip>
|
|
181
187
|
], "type">;
|
|
182
188
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
183
190
|
}, z.core.$strip>
|
|
184
191
|
], "kind">;
|
|
185
192
|
export type CreateOrgConnection = z.infer<typeof CreateOrgConnection>;
|
|
@@ -194,6 +201,7 @@ export declare const UpdateOrgConnection: z.ZodObject<{
|
|
|
194
201
|
certificate: z.ZodOptional<z.ZodString>;
|
|
195
202
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
196
203
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
204
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
197
205
|
}, z.core.$strip>;
|
|
198
206
|
export type UpdateOrgConnection = z.infer<typeof UpdateOrgConnection>;
|
|
199
207
|
export declare const OrgConnectionCheck: z.ZodObject<{
|
|
@@ -240,6 +248,8 @@ export declare const OrgConnectionTestResult: z.ZodObject<{
|
|
|
240
248
|
certificate: "certificate";
|
|
241
249
|
}>;
|
|
242
250
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
useConnectDomain: z.ZodBoolean;
|
|
252
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
243
253
|
permissions: z.ZodArray<z.ZodObject<{
|
|
244
254
|
name: z.ZodString;
|
|
245
255
|
isRequired: z.ZodBoolean;
|
|
@@ -37,6 +37,8 @@ export declare const orgConnections: {
|
|
|
37
37
|
certificate: "certificate";
|
|
38
38
|
}>;
|
|
39
39
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
useConnectDomain: z.ZodBoolean;
|
|
41
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
40
42
|
permissions: z.ZodArray<z.ZodObject<{
|
|
41
43
|
name: z.ZodString;
|
|
42
44
|
isRequired: z.ZodBoolean;
|
|
@@ -101,6 +103,7 @@ export declare const orgConnections: {
|
|
|
101
103
|
}, z.core.$strip>
|
|
102
104
|
], "type">;
|
|
103
105
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
104
107
|
}, z.core.$strip>
|
|
105
108
|
], "kind">, z.ZodObject<{
|
|
106
109
|
id: z.ZodUUID;
|
|
@@ -138,6 +141,8 @@ export declare const orgConnections: {
|
|
|
138
141
|
certificate: "certificate";
|
|
139
142
|
}>;
|
|
140
143
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
144
|
+
useConnectDomain: z.ZodBoolean;
|
|
145
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
141
146
|
permissions: z.ZodArray<z.ZodObject<{
|
|
142
147
|
name: z.ZodString;
|
|
143
148
|
isRequired: z.ZodBoolean;
|
|
@@ -168,6 +173,14 @@ export declare const orgConnections: {
|
|
|
168
173
|
status: 400;
|
|
169
174
|
message: string;
|
|
170
175
|
};
|
|
176
|
+
connect_domain_inactive: {
|
|
177
|
+
status: 409;
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
180
|
+
connect_domain_unsupported: {
|
|
181
|
+
status: 400;
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
171
184
|
invalid_certificate: {
|
|
172
185
|
status: 400;
|
|
173
186
|
message: string;
|
|
@@ -219,6 +232,8 @@ export declare const orgConnections: {
|
|
|
219
232
|
certificate: "certificate";
|
|
220
233
|
}>;
|
|
221
234
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
235
|
+
useConnectDomain: z.ZodBoolean;
|
|
236
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
222
237
|
permissions: z.ZodArray<z.ZodObject<{
|
|
223
238
|
name: z.ZodString;
|
|
224
239
|
isRequired: z.ZodBoolean;
|
|
@@ -259,6 +274,7 @@ export declare const orgConnections: {
|
|
|
259
274
|
certificate: z.ZodOptional<z.ZodString>;
|
|
260
275
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
261
276
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
277
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
262
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
263
279
|
id: z.ZodUUID;
|
|
264
280
|
kind: z.ZodEnum<{
|
|
@@ -295,6 +311,8 @@ export declare const orgConnections: {
|
|
|
295
311
|
certificate: "certificate";
|
|
296
312
|
}>;
|
|
297
313
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
useConnectDomain: z.ZodBoolean;
|
|
315
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
298
316
|
permissions: z.ZodArray<z.ZodObject<{
|
|
299
317
|
name: z.ZodString;
|
|
300
318
|
isRequired: z.ZodBoolean;
|
|
@@ -325,6 +343,14 @@ export declare const orgConnections: {
|
|
|
325
343
|
status: 400;
|
|
326
344
|
message: string;
|
|
327
345
|
};
|
|
346
|
+
connect_domain_inactive: {
|
|
347
|
+
status: 409;
|
|
348
|
+
message: string;
|
|
349
|
+
};
|
|
350
|
+
connect_domain_unsupported: {
|
|
351
|
+
status: 400;
|
|
352
|
+
message: string;
|
|
353
|
+
};
|
|
328
354
|
invalid_certificate: {
|
|
329
355
|
status: 400;
|
|
330
356
|
message: string;
|
|
@@ -399,6 +425,10 @@ export declare const orgConnections: {
|
|
|
399
425
|
status: 400;
|
|
400
426
|
message: string;
|
|
401
427
|
};
|
|
428
|
+
connect_domain_inactive: {
|
|
429
|
+
status: 409;
|
|
430
|
+
message: string;
|
|
431
|
+
};
|
|
402
432
|
session_required: {
|
|
403
433
|
status: 403;
|
|
404
434
|
message: string;
|
|
@@ -456,6 +486,8 @@ export declare const orgConnections: {
|
|
|
456
486
|
certificate: "certificate";
|
|
457
487
|
}>;
|
|
458
488
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
489
|
+
useConnectDomain: z.ZodBoolean;
|
|
490
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
459
491
|
permissions: z.ZodArray<z.ZodObject<{
|
|
460
492
|
name: z.ZodString;
|
|
461
493
|
isRequired: z.ZodBoolean;
|
|
@@ -795,6 +827,11 @@ export declare const orgConnections: {
|
|
|
795
827
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
796
828
|
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
797
829
|
}, z.core.$strip>;
|
|
830
|
+
mailPermissions: z.ZodNullable<z.ZodEnum<{
|
|
831
|
+
full: "full";
|
|
832
|
+
read_send: "read_send";
|
|
833
|
+
read: "read";
|
|
834
|
+
}>>;
|
|
798
835
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
799
836
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
800
837
|
contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -1020,6 +1057,11 @@ export declare const sharedMailboxes: {
|
|
|
1020
1057
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
1021
1058
|
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
1022
1059
|
}, z.core.$strip>;
|
|
1060
|
+
mailPermissions: z.ZodNullable<z.ZodEnum<{
|
|
1061
|
+
full: "full";
|
|
1062
|
+
read_send: "read_send";
|
|
1063
|
+
read: "read";
|
|
1064
|
+
}>>;
|
|
1023
1065
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1024
1066
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1025
1067
|
contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
package/contract/public.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./ai/models.js";
|
|
|
3
3
|
export * from "./audit-log/models.js";
|
|
4
4
|
export * from "./calendar/models.js";
|
|
5
5
|
export * from "./connect/models.js";
|
|
6
|
+
export * from "./connect-domain/models.js";
|
|
6
7
|
export * from "./contacts/models.js";
|
|
7
8
|
export * from "./email-validation/models.js";
|
|
8
9
|
export * from "./errors.js";
|
package/contract/reasons.d.ts
CHANGED
|
@@ -505,6 +505,9 @@ export declare const REASONS: {
|
|
|
505
505
|
readonly connect_grants_nothing: {
|
|
506
506
|
readonly status: 400;
|
|
507
507
|
};
|
|
508
|
+
readonly mail_permissions_unsupported: {
|
|
509
|
+
readonly status: 400;
|
|
510
|
+
};
|
|
508
511
|
readonly tenant_not_found: {
|
|
509
512
|
readonly status: 404;
|
|
510
513
|
};
|
|
@@ -613,6 +616,9 @@ export declare const REASONS: {
|
|
|
613
616
|
readonly mail_disabled: {
|
|
614
617
|
readonly status: 409;
|
|
615
618
|
};
|
|
619
|
+
readonly mail_permission_missing: {
|
|
620
|
+
readonly status: 409;
|
|
621
|
+
};
|
|
616
622
|
readonly calendar_disabled: {
|
|
617
623
|
readonly status: 409;
|
|
618
624
|
};
|
|
@@ -743,6 +749,9 @@ export declare const REASONS: {
|
|
|
743
749
|
readonly send_not_cancellable: {
|
|
744
750
|
readonly status: 409;
|
|
745
751
|
};
|
|
752
|
+
readonly duplicate_message_id: {
|
|
753
|
+
readonly status: 409;
|
|
754
|
+
};
|
|
746
755
|
readonly suppression_list_not_found: {
|
|
747
756
|
readonly status: 404;
|
|
748
757
|
};
|
|
@@ -773,6 +782,30 @@ export declare const REASONS: {
|
|
|
773
782
|
readonly tracking_domain_edge_unavailable: {
|
|
774
783
|
readonly status: 502;
|
|
775
784
|
};
|
|
785
|
+
readonly connect_domain_unavailable: {
|
|
786
|
+
readonly status: 400;
|
|
787
|
+
};
|
|
788
|
+
readonly connect_domain_not_found: {
|
|
789
|
+
readonly status: 404;
|
|
790
|
+
};
|
|
791
|
+
readonly connect_domain_not_allowed: {
|
|
792
|
+
readonly status: 400;
|
|
793
|
+
};
|
|
794
|
+
readonly connect_domain_taken: {
|
|
795
|
+
readonly status: 409;
|
|
796
|
+
};
|
|
797
|
+
readonly connect_domain_in_use: {
|
|
798
|
+
readonly status: 409;
|
|
799
|
+
};
|
|
800
|
+
readonly connect_domain_edge_unavailable: {
|
|
801
|
+
readonly status: 502;
|
|
802
|
+
};
|
|
803
|
+
readonly connect_domain_inactive: {
|
|
804
|
+
readonly status: 409;
|
|
805
|
+
};
|
|
806
|
+
readonly connect_domain_unsupported: {
|
|
807
|
+
readonly status: 400;
|
|
808
|
+
};
|
|
776
809
|
readonly template_not_found: {
|
|
777
810
|
readonly status: 404;
|
|
778
811
|
};
|