@workwae/sdk 0.0.0-stage → 0.1.0-alpha.2

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.
Files changed (65) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +766 -0
  4. package/contract/accounts/routes.d.ts +1480 -0
  5. package/contract/ai/models.d.ts +29 -0
  6. package/contract/ai/routes.d.ts +98 -0
  7. package/contract/audit-log/models.d.ts +121 -0
  8. package/contract/audit-log/routes.d.ts +81 -0
  9. package/contract/calendar/models.d.ts +1012 -0
  10. package/contract/calendar/routes.d.ts +1843 -0
  11. package/contract/connect/models.d.ts +284 -0
  12. package/contract/connect/routes.d.ts +570 -0
  13. package/contract/contacts/models.d.ts +259 -0
  14. package/contract/contacts/routes.d.ts +648 -0
  15. package/contract/email-validation/models.d.ts +119 -0
  16. package/contract/email-validation/routes.d.ts +106 -0
  17. package/contract/errors.d.ts +116 -0
  18. package/contract/events/models.d.ts +2424 -0
  19. package/contract/events/routes.d.ts +117 -0
  20. package/contract/exports/models.d.ts +67 -0
  21. package/contract/exports/routes.d.ts +206 -0
  22. package/contract/identities/models.d.ts +98 -0
  23. package/contract/identities/routes.d.ts +318 -0
  24. package/contract/limits.d.ts +118 -0
  25. package/contract/mail/models.d.ts +571 -0
  26. package/contract/mail/routes.d.ts +1189 -0
  27. package/contract/mcp-keys/models.d.ts +125 -0
  28. package/contract/mcp-keys/routes.d.ts +151 -0
  29. package/contract/meetings/models.d.ts +227 -0
  30. package/contract/meetings/routes.d.ts +405 -0
  31. package/contract/oauth-apps/models.d.ts +86 -0
  32. package/contract/oauth-apps/routes.d.ts +195 -0
  33. package/contract/org-connections/models.d.ts +427 -0
  34. package/contract/org-connections/routes.d.ts +1107 -0
  35. package/contract/plans/credit-packs.d.ts +30 -0
  36. package/contract/plans/models.d.ts +208 -0
  37. package/contract/primitives.d.ts +85 -0
  38. package/contract/public.d.ts +32 -0
  39. package/contract/reasons.d.ts +1222 -0
  40. package/contract/router.d.ts +12986 -0
  41. package/contract/scheduling/models.d.ts +405 -0
  42. package/contract/scheduling/routes.d.ts +756 -0
  43. package/contract/send/models.d.ts +787 -0
  44. package/contract/send/routes.d.ts +1488 -0
  45. package/contract/settings/models.d.ts +163 -0
  46. package/contract/settings/routes.d.ts +162 -0
  47. package/contract/suppressions/models.d.ts +224 -0
  48. package/contract/suppressions/routes.d.ts +365 -0
  49. package/contract/templates/models.d.ts +155 -0
  50. package/contract/templates/routes.d.ts +305 -0
  51. package/contract/threads/models.d.ts +112 -0
  52. package/contract/threads/routes.d.ts +376 -0
  53. package/contract/tracking-domain/models.d.ts +41 -0
  54. package/contract/tracking-domain/routes.d.ts +193 -0
  55. package/contract/usage/models.d.ts +185 -0
  56. package/contract/usage/routes.d.ts +109 -0
  57. package/contract/webhooks/models.d.ts +894 -0
  58. package/contract/webhooks/routes.d.ts +882 -0
  59. package/contract/webhooks/signing.d.ts +19 -0
  60. package/errors.d.ts +15 -0
  61. package/index.d.ts +6 -0
  62. package/index.js +1 -0
  63. package/package.json +44 -4
  64. package/pagination.d.ts +40 -0
  65. package/webhooks.d.ts +28 -0
@@ -0,0 +1,195 @@
1
+ import * as z from "zod";
2
+ export declare const oauthApps: {
3
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4
+ items: z.ZodArray<z.ZodObject<{
5
+ id: z.ZodUUID;
6
+ provider: z.ZodEnum<{
7
+ google: "google";
8
+ microsoft: "microsoft";
9
+ }>;
10
+ name: z.ZodString;
11
+ clientId: z.ZodString;
12
+ cloud: z.ZodNullable<z.ZodEnum<{
13
+ global: "global";
14
+ "gcc-high": "gcc-high";
15
+ dod: "dod";
16
+ china: "china";
17
+ }>>;
18
+ authority: z.ZodNullable<z.ZodString>;
19
+ gmailPush: z.ZodNullable<z.ZodObject<{
20
+ topic: z.ZodString;
21
+ serviceAccount: z.ZodEmail;
22
+ }, z.core.$strip>>;
23
+ gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
24
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
27
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
28
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
29
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
30
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
31
+ readonly role_forbidden: "The member's role does not allow the operation.";
32
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
33
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
34
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
35
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
36
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
37
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
38
+ readonly payload_too_large: "The request body is larger than the API accepts.";
39
+ readonly internal_error: "An unexpected failure on our side.";
40
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
41
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
42
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
43
+ }>>, Record<never, never>>;
44
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
45
+ provider: z.ZodEnum<{
46
+ google: "google";
47
+ microsoft: "microsoft";
48
+ }>;
49
+ cloud: z.ZodOptional<z.ZodEnum<{
50
+ global: "global";
51
+ "gcc-high": "gcc-high";
52
+ dod: "dod";
53
+ china: "china";
54
+ }>>;
55
+ name: z.ZodString;
56
+ clientId: z.ZodString;
57
+ clientSecret: z.ZodString;
58
+ authority: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ id: z.ZodUUID;
61
+ provider: z.ZodEnum<{
62
+ google: "google";
63
+ microsoft: "microsoft";
64
+ }>;
65
+ name: z.ZodString;
66
+ clientId: z.ZodString;
67
+ cloud: z.ZodNullable<z.ZodEnum<{
68
+ global: "global";
69
+ "gcc-high": "gcc-high";
70
+ dod: "dod";
71
+ china: "china";
72
+ }>>;
73
+ authority: z.ZodNullable<z.ZodString>;
74
+ gmailPush: z.ZodNullable<z.ZodObject<{
75
+ topic: z.ZodString;
76
+ serviceAccount: z.ZodEmail;
77
+ }, z.core.$strip>>;
78
+ gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
79
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
80
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
81
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
82
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
83
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
84
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
85
+ readonly role_forbidden: "The member's role does not allow the operation.";
86
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
87
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
88
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
89
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
90
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
91
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
92
+ readonly payload_too_large: "The request body is larger than the API accepts.";
93
+ readonly internal_error: "An unexpected failure on our side.";
94
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
95
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
96
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
97
+ }>>, import("../errors.js").DeclaredErrors<{
98
+ readonly cloud_required: "provider is microsoft and no cloud is given.";
99
+ readonly not_microsoft: "cloud or authority is given for a Google app.";
100
+ }>>, Record<never, never>>;
101
+ update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
102
+ appId: z.ZodUUID;
103
+ name: z.ZodOptional<z.ZodString>;
104
+ clientSecret: z.ZodOptional<z.ZodString>;
105
+ authority: z.ZodOptional<z.ZodString>;
106
+ gmailPush: z.ZodOptional<z.ZodNullable<z.ZodObject<{
107
+ topic: z.ZodString;
108
+ serviceAccount: z.ZodEmail;
109
+ }, z.core.$strip>>>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ id: z.ZodUUID;
112
+ provider: z.ZodEnum<{
113
+ google: "google";
114
+ microsoft: "microsoft";
115
+ }>;
116
+ name: z.ZodString;
117
+ clientId: z.ZodString;
118
+ cloud: z.ZodNullable<z.ZodEnum<{
119
+ global: "global";
120
+ "gcc-high": "gcc-high";
121
+ dod: "dod";
122
+ china: "china";
123
+ }>>;
124
+ authority: z.ZodNullable<z.ZodString>;
125
+ gmailPush: z.ZodNullable<z.ZodObject<{
126
+ topic: z.ZodString;
127
+ serviceAccount: z.ZodEmail;
128
+ }, z.core.$strip>>;
129
+ gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
130
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
131
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
132
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
133
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
134
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
135
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
136
+ readonly role_forbidden: "The member's role does not allow the operation.";
137
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
138
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
139
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
140
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
141
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
142
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
143
+ readonly payload_too_large: "The request body is larger than the API accepts.";
144
+ readonly internal_error: "An unexpected failure on our side.";
145
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
146
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
147
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
148
+ }>>, {
149
+ gmail_push_unsupported: {
150
+ status: 400;
151
+ message: string;
152
+ };
153
+ push_unavailable: {
154
+ status: 400;
155
+ message: string;
156
+ };
157
+ not_microsoft: {
158
+ status: 400;
159
+ message: string;
160
+ };
161
+ oauth_app_not_found: {
162
+ status: 404;
163
+ message: string;
164
+ };
165
+ }>, Record<never, never>>;
166
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
167
+ appId: z.ZodUUID;
168
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
169
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
170
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
171
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
172
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
173
+ readonly role_forbidden: "The member's role does not allow the operation.";
174
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
175
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
176
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
177
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
178
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
179
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
180
+ readonly payload_too_large: "The request body is larger than the API accepts.";
181
+ readonly internal_error: "An unexpected failure on our side.";
182
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
183
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
184
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
185
+ }>>, {
186
+ oauth_app_in_use: {
187
+ status: 409;
188
+ message: string;
189
+ };
190
+ oauth_app_not_found: {
191
+ status: 404;
192
+ message: string;
193
+ };
194
+ }>, Record<never, never>>;
195
+ };
@@ -0,0 +1,427 @@
1
+ import * as z from "zod";
2
+ export declare const OrgConnectionKind: z.ZodEnum<{
3
+ google_delegation: "google_delegation";
4
+ microsoft_app: "microsoft_app";
5
+ }>;
6
+ export type OrgConnectionKind = z.infer<typeof OrgConnectionKind>;
7
+ export declare const OrgConnectionStatus: z.ZodEnum<{
8
+ active: "active";
9
+ unverified: "unverified";
10
+ failing: "failing";
11
+ pending_consent: "pending_consent";
12
+ }>;
13
+ export type OrgConnectionStatus = z.infer<typeof OrgConnectionStatus>;
14
+ export declare const MicrosoftAppCredential: z.ZodEnum<{
15
+ platform: "platform";
16
+ client_secret: "client_secret";
17
+ certificate: "certificate";
18
+ }>;
19
+ export type MicrosoftAppCredential = z.infer<typeof MicrosoftAppCredential>;
20
+ export declare const GoogleDelegation: z.ZodObject<{
21
+ domain: z.ZodString;
22
+ serviceAccountEmail: z.ZodString;
23
+ directoryAdmin: z.ZodNullable<z.ZodString>;
24
+ scopes: z.ZodArray<z.ZodString>;
25
+ groupsEnabled: z.ZodBoolean;
26
+ }, z.core.$strip>;
27
+ export type GoogleDelegation = z.infer<typeof GoogleDelegation>;
28
+ export declare const GraphPermission: z.ZodObject<{
29
+ name: z.ZodString;
30
+ isRequired: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ export type GraphPermission = z.infer<typeof GraphPermission>;
33
+ export declare const MicrosoftAppAccess: z.ZodObject<{
34
+ cloud: z.ZodEnum<{
35
+ global: "global";
36
+ "gcc-high": "gcc-high";
37
+ dod: "dod";
38
+ china: "china";
39
+ }>;
40
+ credentialType: z.ZodEnum<{
41
+ platform: "platform";
42
+ client_secret: "client_secret";
43
+ certificate: "certificate";
44
+ }>;
45
+ directoryId: z.ZodNullable<z.ZodString>;
46
+ permissions: z.ZodArray<z.ZodObject<{
47
+ name: z.ZodString;
48
+ isRequired: z.ZodBoolean;
49
+ }, z.core.$strip>>;
50
+ }, z.core.$strip>;
51
+ export type MicrosoftAppAccess = z.infer<typeof MicrosoftAppAccess>;
52
+ export declare const OrgConnection: z.ZodObject<{
53
+ id: z.ZodUUID;
54
+ kind: z.ZodEnum<{
55
+ google_delegation: "google_delegation";
56
+ microsoft_app: "microsoft_app";
57
+ }>;
58
+ name: z.ZodString;
59
+ clientId: z.ZodString;
60
+ status: z.ZodEnum<{
61
+ active: "active";
62
+ unverified: "unverified";
63
+ failing: "failing";
64
+ pending_consent: "pending_consent";
65
+ }>;
66
+ statusDetail: z.ZodNullable<z.ZodString>;
67
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
68
+ google: z.ZodNullable<z.ZodObject<{
69
+ domain: z.ZodString;
70
+ serviceAccountEmail: z.ZodString;
71
+ directoryAdmin: z.ZodNullable<z.ZodString>;
72
+ scopes: z.ZodArray<z.ZodString>;
73
+ groupsEnabled: z.ZodBoolean;
74
+ }, z.core.$strip>>;
75
+ microsoft: z.ZodNullable<z.ZodObject<{
76
+ cloud: z.ZodEnum<{
77
+ global: "global";
78
+ "gcc-high": "gcc-high";
79
+ dod: "dod";
80
+ china: "china";
81
+ }>;
82
+ credentialType: z.ZodEnum<{
83
+ platform: "platform";
84
+ client_secret: "client_secret";
85
+ certificate: "certificate";
86
+ }>;
87
+ directoryId: z.ZodNullable<z.ZodString>;
88
+ permissions: z.ZodArray<z.ZodObject<{
89
+ name: z.ZodString;
90
+ isRequired: z.ZodBoolean;
91
+ }, z.core.$strip>>;
92
+ }, z.core.$strip>>;
93
+ accounts: z.ZodNumber;
94
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
95
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
96
+ }, z.core.$strip>;
97
+ export type OrgConnection = z.infer<typeof OrgConnection>;
98
+ export declare const OrgConnectionList: z.ZodObject<{
99
+ items: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodUUID;
101
+ kind: z.ZodEnum<{
102
+ google_delegation: "google_delegation";
103
+ microsoft_app: "microsoft_app";
104
+ }>;
105
+ name: z.ZodString;
106
+ clientId: z.ZodString;
107
+ status: z.ZodEnum<{
108
+ active: "active";
109
+ unverified: "unverified";
110
+ failing: "failing";
111
+ pending_consent: "pending_consent";
112
+ }>;
113
+ statusDetail: z.ZodNullable<z.ZodString>;
114
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
115
+ google: z.ZodNullable<z.ZodObject<{
116
+ domain: z.ZodString;
117
+ serviceAccountEmail: z.ZodString;
118
+ directoryAdmin: z.ZodNullable<z.ZodString>;
119
+ scopes: z.ZodArray<z.ZodString>;
120
+ groupsEnabled: z.ZodBoolean;
121
+ }, z.core.$strip>>;
122
+ microsoft: z.ZodNullable<z.ZodObject<{
123
+ cloud: z.ZodEnum<{
124
+ global: "global";
125
+ "gcc-high": "gcc-high";
126
+ dod: "dod";
127
+ china: "china";
128
+ }>;
129
+ credentialType: z.ZodEnum<{
130
+ platform: "platform";
131
+ client_secret: "client_secret";
132
+ certificate: "certificate";
133
+ }>;
134
+ directoryId: z.ZodNullable<z.ZodString>;
135
+ permissions: z.ZodArray<z.ZodObject<{
136
+ name: z.ZodString;
137
+ isRequired: z.ZodBoolean;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>>;
140
+ accounts: z.ZodNumber;
141
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
142
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>;
145
+ export type OrgConnectionList = z.infer<typeof OrgConnectionList>;
146
+ export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
147
+ z.ZodObject<{
148
+ kind: z.ZodLiteral<"google_delegation">;
149
+ name: z.ZodString;
150
+ serviceAccountKey: z.ZodString;
151
+ domain: z.ZodString;
152
+ calendarEnabled: z.ZodDefault<z.ZodBoolean>;
153
+ contactsEnabled: z.ZodDefault<z.ZodBoolean>;
154
+ directoryAdmin: z.ZodOptional<z.ZodEmail>;
155
+ groupsEnabled: z.ZodDefault<z.ZodBoolean>;
156
+ }, z.core.$strip>,
157
+ z.ZodObject<{
158
+ kind: z.ZodLiteral<"microsoft_app">;
159
+ name: z.ZodString;
160
+ cloud: z.ZodDefault<z.ZodEnum<{
161
+ global: "global";
162
+ "gcc-high": "gcc-high";
163
+ dod: "dod";
164
+ china: "china";
165
+ }>>;
166
+ credential: z.ZodDiscriminatedUnion<[
167
+ z.ZodObject<{
168
+ type: z.ZodLiteral<"platform">;
169
+ }, z.core.$strip>,
170
+ z.ZodObject<{
171
+ type: z.ZodLiteral<"client_secret">;
172
+ clientId: z.ZodString;
173
+ clientSecret: z.ZodString;
174
+ }, z.core.$strip>,
175
+ z.ZodObject<{
176
+ type: z.ZodLiteral<"certificate">;
177
+ clientId: z.ZodString;
178
+ certificate: z.ZodString;
179
+ privateKey: z.ZodString;
180
+ }, z.core.$strip>
181
+ ], "type">;
182
+ directoryId: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strip>
184
+ ], "kind">;
185
+ export type CreateOrgConnection = z.infer<typeof CreateOrgConnection>;
186
+ export declare const UpdateOrgConnection: z.ZodObject<{
187
+ name: z.ZodOptional<z.ZodString>;
188
+ serviceAccountKey: z.ZodOptional<z.ZodString>;
189
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
190
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
191
+ groupsEnabled: z.ZodOptional<z.ZodBoolean>;
192
+ directoryAdmin: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
193
+ clientSecret: z.ZodOptional<z.ZodString>;
194
+ certificate: z.ZodOptional<z.ZodString>;
195
+ privateKey: z.ZodOptional<z.ZodString>;
196
+ directoryId: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ export type UpdateOrgConnection = z.infer<typeof UpdateOrgConnection>;
199
+ export declare const OrgConnectionCheck: z.ZodObject<{
200
+ name: z.ZodString;
201
+ isOk: z.ZodBoolean;
202
+ isRequired: z.ZodBoolean;
203
+ detail: z.ZodString;
204
+ }, z.core.$strip>;
205
+ export type OrgConnectionCheck = z.infer<typeof OrgConnectionCheck>;
206
+ export declare const OrgConnectionTestResult: z.ZodObject<{
207
+ connection: z.ZodObject<{
208
+ id: z.ZodUUID;
209
+ kind: z.ZodEnum<{
210
+ google_delegation: "google_delegation";
211
+ microsoft_app: "microsoft_app";
212
+ }>;
213
+ name: z.ZodString;
214
+ clientId: z.ZodString;
215
+ status: z.ZodEnum<{
216
+ active: "active";
217
+ unverified: "unverified";
218
+ failing: "failing";
219
+ pending_consent: "pending_consent";
220
+ }>;
221
+ statusDetail: z.ZodNullable<z.ZodString>;
222
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
223
+ google: z.ZodNullable<z.ZodObject<{
224
+ domain: z.ZodString;
225
+ serviceAccountEmail: z.ZodString;
226
+ directoryAdmin: z.ZodNullable<z.ZodString>;
227
+ scopes: z.ZodArray<z.ZodString>;
228
+ groupsEnabled: z.ZodBoolean;
229
+ }, z.core.$strip>>;
230
+ microsoft: z.ZodNullable<z.ZodObject<{
231
+ cloud: z.ZodEnum<{
232
+ global: "global";
233
+ "gcc-high": "gcc-high";
234
+ dod: "dod";
235
+ china: "china";
236
+ }>;
237
+ credentialType: z.ZodEnum<{
238
+ platform: "platform";
239
+ client_secret: "client_secret";
240
+ certificate: "certificate";
241
+ }>;
242
+ directoryId: z.ZodNullable<z.ZodString>;
243
+ permissions: z.ZodArray<z.ZodObject<{
244
+ name: z.ZodString;
245
+ isRequired: z.ZodBoolean;
246
+ }, z.core.$strip>>;
247
+ }, z.core.$strip>>;
248
+ accounts: z.ZodNumber;
249
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
250
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
251
+ }, z.core.$strip>;
252
+ checks: z.ZodArray<z.ZodObject<{
253
+ name: z.ZodString;
254
+ isOk: z.ZodBoolean;
255
+ isRequired: z.ZodBoolean;
256
+ detail: z.ZodString;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+ export type OrgConnectionTestResult = z.infer<typeof OrgConnectionTestResult>;
260
+ export declare const DirectoryEntry: z.ZodObject<{
261
+ id: z.ZodString;
262
+ email: z.ZodString;
263
+ displayName: z.ZodNullable<z.ZodString>;
264
+ accountId: z.ZodNullable<z.ZodUUID>;
265
+ }, z.core.$strip>;
266
+ export type DirectoryEntry = z.infer<typeof DirectoryEntry>;
267
+ export declare const DirectoryEntryPage: z.ZodObject<{
268
+ items: z.ZodArray<z.ZodObject<{
269
+ id: z.ZodString;
270
+ email: z.ZodString;
271
+ displayName: z.ZodNullable<z.ZodString>;
272
+ accountId: z.ZodNullable<z.ZodUUID>;
273
+ }, z.core.$strip>>;
274
+ nextCursor: z.ZodNullable<z.ZodString>;
275
+ }, z.core.$strip>;
276
+ export type DirectoryEntryPage = z.infer<typeof DirectoryEntryPage>;
277
+ export declare const AddMailboxInput: z.ZodObject<{
278
+ email: z.ZodEmail;
279
+ displayName: z.ZodOptional<z.ZodString>;
280
+ externalRef: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strip>;
282
+ export type AddMailboxInput = z.infer<typeof AddMailboxInput>;
283
+ export declare const AddMailboxesRequest: z.ZodObject<{
284
+ mailboxes: z.ZodArray<z.ZodObject<{
285
+ email: z.ZodEmail;
286
+ displayName: z.ZodOptional<z.ZodString>;
287
+ externalRef: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>>;
289
+ settings: z.ZodOptional<z.ZodObject<{
290
+ bodyStorage: z.ZodOptional<z.ZodEnum<{
291
+ none: "none";
292
+ cache: "cache";
293
+ full: "full";
294
+ }>>;
295
+ syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
296
+ mailEnabled: z.ZodOptional<z.ZodBoolean>;
297
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
298
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
299
+ undoSendSeconds: z.ZodOptional<z.ZodNumber>;
300
+ trackOpens: z.ZodOptional<z.ZodBoolean>;
301
+ trackClicks: z.ZodOptional<z.ZodBoolean>;
302
+ trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
303
+ suppressionCheck: z.ZodOptional<z.ZodEnum<{
304
+ lists: "lists";
305
+ always: "always";
306
+ }>>;
307
+ sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
+ }, z.core.$strip>>;
309
+ }, z.core.$strip>;
310
+ export type AddMailboxesRequest = z.infer<typeof AddMailboxesRequest>;
311
+ export declare const AddedMailboxStatus: z.ZodEnum<{
312
+ failed: "failed";
313
+ created: "created";
314
+ exists: "exists";
315
+ }>;
316
+ export type AddedMailboxStatus = z.infer<typeof AddedMailboxStatus>;
317
+ export declare const AddedMailboxError: z.ZodObject<{
318
+ reason: z.ZodString;
319
+ message: z.ZodString;
320
+ }, z.core.$strip>;
321
+ export type AddedMailboxError = z.infer<typeof AddedMailboxError>;
322
+ export declare const AddedMailbox: z.ZodObject<{
323
+ email: z.ZodString;
324
+ status: z.ZodEnum<{
325
+ failed: "failed";
326
+ created: "created";
327
+ exists: "exists";
328
+ }>;
329
+ accountId: z.ZodNullable<z.ZodUUID>;
330
+ error: z.ZodNullable<z.ZodObject<{
331
+ reason: z.ZodString;
332
+ message: z.ZodString;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strip>;
335
+ export type AddedMailbox = z.infer<typeof AddedMailbox>;
336
+ export declare const AddedMailboxList: z.ZodObject<{
337
+ items: z.ZodArray<z.ZodObject<{
338
+ email: z.ZodString;
339
+ status: z.ZodEnum<{
340
+ failed: "failed";
341
+ created: "created";
342
+ exists: "exists";
343
+ }>;
344
+ accountId: z.ZodNullable<z.ZodUUID>;
345
+ error: z.ZodNullable<z.ZodObject<{
346
+ reason: z.ZodString;
347
+ message: z.ZodString;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$strip>>;
350
+ }, z.core.$strip>;
351
+ export type AddedMailboxList = z.infer<typeof AddedMailboxList>;
352
+ export declare const OrgConnectionIdInput: z.ZodObject<{
353
+ connectionId: z.ZodUUID;
354
+ }, z.core.$strip>;
355
+ export type OrgConnectionIdInput = z.infer<typeof OrgConnectionIdInput>;
356
+ export declare const StartConsentRequest: z.ZodObject<{
357
+ redirectUri: z.ZodURL;
358
+ state: z.ZodOptional<z.ZodString>;
359
+ }, z.core.$strip>;
360
+ export type StartConsentRequest = z.infer<typeof StartConsentRequest>;
361
+ export declare const ConsentLink: z.ZodObject<{
362
+ consentUrl: z.ZodURL;
363
+ }, z.core.$strip>;
364
+ export type ConsentLink = z.infer<typeof ConsentLink>;
365
+ export declare const TestOrgConnectionRequest: z.ZodObject<{
366
+ user: z.ZodOptional<z.ZodEmail>;
367
+ }, z.core.$strip>;
368
+ export type TestOrgConnectionRequest = z.infer<typeof TestOrgConnectionRequest>;
369
+ export declare const ListDirectoryEntriesQuery: z.ZodObject<{
370
+ cursor: z.ZodOptional<z.ZodString>;
371
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
372
+ query: z.ZodOptional<z.ZodString>;
373
+ }, z.core.$strip>;
374
+ export type ListDirectoryEntriesQuery = z.infer<typeof ListDirectoryEntriesQuery>;
375
+ export declare const OpenSharedMailboxRequest: z.ZodObject<{
376
+ email: z.ZodEmail;
377
+ displayName: z.ZodOptional<z.ZodString>;
378
+ externalRef: z.ZodOptional<z.ZodString>;
379
+ settings: z.ZodOptional<z.ZodObject<{
380
+ bodyStorage: z.ZodOptional<z.ZodEnum<{
381
+ none: "none";
382
+ cache: "cache";
383
+ full: "full";
384
+ }>>;
385
+ syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
386
+ mailEnabled: z.ZodOptional<z.ZodBoolean>;
387
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
388
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
389
+ undoSendSeconds: z.ZodOptional<z.ZodNumber>;
390
+ trackOpens: z.ZodOptional<z.ZodBoolean>;
391
+ trackClicks: z.ZodOptional<z.ZodBoolean>;
392
+ trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
393
+ suppressionCheck: z.ZodOptional<z.ZodEnum<{
394
+ lists: "lists";
395
+ always: "always";
396
+ }>>;
397
+ sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
398
+ }, z.core.$strip>>;
399
+ }, z.core.$strip>;
400
+ export type OpenSharedMailboxRequest = z.infer<typeof OpenSharedMailboxRequest>;
401
+ export declare const AddGroupRequest: z.ZodObject<{
402
+ email: z.ZodEmail;
403
+ relayEmail: z.ZodEmail;
404
+ displayName: z.ZodOptional<z.ZodString>;
405
+ externalRef: z.ZodOptional<z.ZodString>;
406
+ settings: z.ZodOptional<z.ZodObject<{
407
+ bodyStorage: z.ZodOptional<z.ZodEnum<{
408
+ none: "none";
409
+ cache: "cache";
410
+ full: "full";
411
+ }>>;
412
+ syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
413
+ mailEnabled: z.ZodOptional<z.ZodBoolean>;
414
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
415
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
416
+ undoSendSeconds: z.ZodOptional<z.ZodNumber>;
417
+ trackOpens: z.ZodOptional<z.ZodBoolean>;
418
+ trackClicks: z.ZodOptional<z.ZodBoolean>;
419
+ trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
420
+ suppressionCheck: z.ZodOptional<z.ZodEnum<{
421
+ lists: "lists";
422
+ always: "always";
423
+ }>>;
424
+ sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
425
+ }, z.core.$strip>>;
426
+ }, z.core.$strip>;
427
+ export type AddGroupRequest = z.infer<typeof AddGroupRequest>;