@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,125 @@
1
+ import * as z from "zod";
2
+ export declare const McpKeyScope: z.ZodEnum<{
3
+ read: "read";
4
+ write: "write";
5
+ send: "send";
6
+ }>;
7
+ export type McpKeyScope = z.infer<typeof McpKeyScope>;
8
+ export declare const McpKeyScopes: z.ZodArray<z.ZodEnum<{
9
+ read: "read";
10
+ write: "write";
11
+ send: "send";
12
+ }>>;
13
+ export declare const McpKey: z.ZodObject<{
14
+ id: z.ZodUUID;
15
+ name: z.ZodString;
16
+ prefix: z.ZodString;
17
+ scopes: z.ZodArray<z.ZodEnum<{
18
+ read: "read";
19
+ write: "write";
20
+ send: "send";
21
+ }>>;
22
+ accountId: z.ZodUUID;
23
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
24
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
25
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
26
+ sendPolicy: z.ZodNullable<z.ZodObject<{
27
+ mode: z.ZodOptional<z.ZodEnum<{
28
+ allow: "allow";
29
+ confirm: "confirm";
30
+ drafts_only: "drafts_only";
31
+ }>>;
32
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
33
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ export type McpKey = z.infer<typeof McpKey>;
38
+ export declare const McpKeyList: z.ZodObject<{
39
+ items: z.ZodArray<z.ZodObject<{
40
+ id: z.ZodUUID;
41
+ name: z.ZodString;
42
+ prefix: z.ZodString;
43
+ scopes: z.ZodArray<z.ZodEnum<{
44
+ read: "read";
45
+ write: "write";
46
+ send: "send";
47
+ }>>;
48
+ accountId: z.ZodUUID;
49
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
50
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
51
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
52
+ sendPolicy: z.ZodNullable<z.ZodObject<{
53
+ mode: z.ZodOptional<z.ZodEnum<{
54
+ allow: "allow";
55
+ confirm: "confirm";
56
+ drafts_only: "drafts_only";
57
+ }>>;
58
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
59
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type McpKeyList = z.infer<typeof McpKeyList>;
65
+ export declare const CreatedMcpKey: z.ZodObject<{
66
+ id: z.ZodUUID;
67
+ name: z.ZodString;
68
+ prefix: z.ZodString;
69
+ scopes: z.ZodArray<z.ZodEnum<{
70
+ read: "read";
71
+ write: "write";
72
+ send: "send";
73
+ }>>;
74
+ accountId: z.ZodUUID;
75
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
76
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
77
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
78
+ sendPolicy: z.ZodNullable<z.ZodObject<{
79
+ mode: z.ZodOptional<z.ZodEnum<{
80
+ allow: "allow";
81
+ confirm: "confirm";
82
+ drafts_only: "drafts_only";
83
+ }>>;
84
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
85
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>>;
88
+ key: z.ZodString;
89
+ mcpUrl: z.ZodURL;
90
+ }, z.core.$strip>;
91
+ export type CreatedMcpKey = z.infer<typeof CreatedMcpKey>;
92
+ export declare const CreateMcpKey: z.ZodObject<{
93
+ name: z.ZodDefault<z.ZodString>;
94
+ scopes: z.ZodArray<z.ZodEnum<{
95
+ read: "read";
96
+ write: "write";
97
+ send: "send";
98
+ }>>;
99
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>>;
100
+ sendPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
+ mode: z.ZodOptional<z.ZodEnum<{
102
+ allow: "allow";
103
+ confirm: "confirm";
104
+ drafts_only: "drafts_only";
105
+ }>>;
106
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
107
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
109
+ }, z.core.$strip>>>;
110
+ }, z.core.$strip>;
111
+ export type CreateMcpKey = z.infer<typeof CreateMcpKey>;
112
+ export declare const McpKeyIdInput: z.ZodObject<{
113
+ accountId: z.ZodUUID;
114
+ keyId: z.ZodUUID;
115
+ }, z.core.$strip>;
116
+ export type McpKeyIdInput = z.infer<typeof McpKeyIdInput>;
117
+ export declare const ConnectSessionMcp: z.ZodObject<{
118
+ scopes: z.ZodArray<z.ZodEnum<{
119
+ read: "read";
120
+ write: "write";
121
+ send: "send";
122
+ }>>;
123
+ name: z.ZodDefault<z.ZodString>;
124
+ }, z.core.$strip>;
125
+ export type ConnectSessionMcp = z.infer<typeof ConnectSessionMcp>;
@@ -0,0 +1,151 @@
1
+ import * as z from "zod";
2
+ export declare const mcpKeys: {
3
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ accountId: z.ZodUUID;
5
+ name: z.ZodDefault<z.ZodString>;
6
+ scopes: z.ZodArray<z.ZodEnum<{
7
+ read: "read";
8
+ write: "write";
9
+ send: "send";
10
+ }>>;
11
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>>;
12
+ sendPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ mode: z.ZodOptional<z.ZodEnum<{
14
+ allow: "allow";
15
+ confirm: "confirm";
16
+ drafts_only: "drafts_only";
17
+ }>>;
18
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
21
+ }, z.core.$strip>>>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ id: z.ZodUUID;
24
+ name: z.ZodString;
25
+ prefix: z.ZodString;
26
+ scopes: z.ZodArray<z.ZodEnum<{
27
+ read: "read";
28
+ write: "write";
29
+ send: "send";
30
+ }>>;
31
+ accountId: z.ZodUUID;
32
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
33
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
34
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
35
+ sendPolicy: z.ZodNullable<z.ZodObject<{
36
+ mode: z.ZodOptional<z.ZodEnum<{
37
+ allow: "allow";
38
+ confirm: "confirm";
39
+ drafts_only: "drafts_only";
40
+ }>>;
41
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ key: z.ZodString;
46
+ mcpUrl: z.ZodURL;
47
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
48
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
49
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
50
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
51
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
52
+ readonly role_forbidden: "The member's role does not allow the operation.";
53
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
54
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
55
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
56
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
57
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
58
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
59
+ readonly payload_too_large: "The request body is larger than the API accepts.";
60
+ readonly internal_error: "An unexpected failure on our side.";
61
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
62
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
63
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
64
+ }>>, {
65
+ mcp_key_limit: {
66
+ status: 409;
67
+ message: string;
68
+ };
69
+ account_not_found: {
70
+ status: 404;
71
+ message: string;
72
+ };
73
+ }>, Record<never, never>>;
74
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
75
+ accountId: z.ZodUUID;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ items: z.ZodArray<z.ZodObject<{
78
+ id: z.ZodUUID;
79
+ name: z.ZodString;
80
+ prefix: z.ZodString;
81
+ scopes: z.ZodArray<z.ZodEnum<{
82
+ read: "read";
83
+ write: "write";
84
+ send: "send";
85
+ }>>;
86
+ accountId: z.ZodUUID;
87
+ expiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
88
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
89
+ lastUsedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
90
+ sendPolicy: z.ZodNullable<z.ZodObject<{
91
+ mode: z.ZodOptional<z.ZodEnum<{
92
+ allow: "allow";
93
+ confirm: "confirm";
94
+ drafts_only: "drafts_only";
95
+ }>>;
96
+ allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
97
+ dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
102
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
103
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
104
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
105
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
106
+ readonly role_forbidden: "The member's role does not allow the operation.";
107
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
108
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
109
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
110
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
111
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
112
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
113
+ readonly payload_too_large: "The request body is larger than the API accepts.";
114
+ readonly internal_error: "An unexpected failure on our side.";
115
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
116
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
117
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
118
+ }>>, import("../errors.js").DeclaredErrors<{
119
+ readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
120
+ }>>, Record<never, never>>;
121
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
122
+ accountId: z.ZodUUID;
123
+ keyId: z.ZodUUID;
124
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
125
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
126
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
127
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
128
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
129
+ readonly role_forbidden: "The member's role does not allow the operation.";
130
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
131
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
132
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
133
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
134
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
135
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
136
+ readonly payload_too_large: "The request body is larger than the API accepts.";
137
+ readonly internal_error: "An unexpected failure on our side.";
138
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
139
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
140
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
141
+ }>>, {
142
+ mcp_key_not_found: {
143
+ status: 404;
144
+ message: string;
145
+ };
146
+ account_not_found: {
147
+ status: 404;
148
+ message: string;
149
+ };
150
+ }>, Record<never, never>>;
151
+ };
@@ -0,0 +1,227 @@
1
+ import * as z from "zod";
2
+ export declare const MeetingService: z.ZodEnum<{
3
+ zoom: "zoom";
4
+ webex: "webex";
5
+ }>;
6
+ export type MeetingService = z.infer<typeof MeetingService>;
7
+ export declare const MeetingConnectionStatus: z.ZodEnum<{
8
+ active: "active";
9
+ reauth_required: "reauth_required";
10
+ }>;
11
+ export type MeetingConnectionStatus = z.infer<typeof MeetingConnectionStatus>;
12
+ export declare const MeetingConnection: z.ZodObject<{
13
+ service: z.ZodEnum<{
14
+ zoom: "zoom";
15
+ webex: "webex";
16
+ }>;
17
+ email: z.ZodString;
18
+ displayName: z.ZodNullable<z.ZodString>;
19
+ meetingAppId: z.ZodNullable<z.ZodUUID>;
20
+ status: z.ZodEnum<{
21
+ active: "active";
22
+ reauth_required: "reauth_required";
23
+ }>;
24
+ statusReason: z.ZodNullable<z.ZodString>;
25
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
26
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
27
+ }, z.core.$strip>;
28
+ export type MeetingConnection = z.infer<typeof MeetingConnection>;
29
+ export declare const MeetingConnectionList: z.ZodObject<{
30
+ items: z.ZodArray<z.ZodObject<{
31
+ service: z.ZodEnum<{
32
+ zoom: "zoom";
33
+ webex: "webex";
34
+ }>;
35
+ email: z.ZodString;
36
+ displayName: z.ZodNullable<z.ZodString>;
37
+ meetingAppId: z.ZodNullable<z.ZodUUID>;
38
+ status: z.ZodEnum<{
39
+ active: "active";
40
+ reauth_required: "reauth_required";
41
+ }>;
42
+ statusReason: z.ZodNullable<z.ZodString>;
43
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
44
+ updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;
47
+ export type MeetingConnectionList = z.infer<typeof MeetingConnectionList>;
48
+ export declare const MeetingAppKind: z.ZodEnum<{
49
+ zoom_oauth: "zoom_oauth";
50
+ zoom_s2s: "zoom_s2s";
51
+ webex_oauth: "webex_oauth";
52
+ webex_service_app: "webex_service_app";
53
+ }>;
54
+ export type MeetingAppKind = z.infer<typeof MeetingAppKind>;
55
+ export declare const MeetingAppStatus: z.ZodEnum<{
56
+ active: "active";
57
+ unverified: "unverified";
58
+ failing: "failing";
59
+ }>;
60
+ export type MeetingAppStatus = z.infer<typeof MeetingAppStatus>;
61
+ export declare const MeetingApp: z.ZodObject<{
62
+ id: z.ZodUUID;
63
+ kind: z.ZodEnum<{
64
+ zoom_oauth: "zoom_oauth";
65
+ zoom_s2s: "zoom_s2s";
66
+ webex_oauth: "webex_oauth";
67
+ webex_service_app: "webex_service_app";
68
+ }>;
69
+ service: z.ZodEnum<{
70
+ zoom: "zoom";
71
+ webex: "webex";
72
+ }>;
73
+ name: z.ZodString;
74
+ clientId: z.ZodString;
75
+ zoomAccountId: z.ZodNullable<z.ZodString>;
76
+ status: z.ZodNullable<z.ZodEnum<{
77
+ active: "active";
78
+ unverified: "unverified";
79
+ failing: "failing";
80
+ }>>;
81
+ statusDetail: z.ZodNullable<z.ZodString>;
82
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
83
+ scopes: z.ZodArray<z.ZodString>;
84
+ redirectUri: z.ZodNullable<z.ZodString>;
85
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
86
+ }, z.core.$strip>;
87
+ export type MeetingApp = z.infer<typeof MeetingApp>;
88
+ export declare const MeetingAppList: z.ZodObject<{
89
+ items: z.ZodArray<z.ZodObject<{
90
+ id: z.ZodUUID;
91
+ kind: z.ZodEnum<{
92
+ zoom_oauth: "zoom_oauth";
93
+ zoom_s2s: "zoom_s2s";
94
+ webex_oauth: "webex_oauth";
95
+ webex_service_app: "webex_service_app";
96
+ }>;
97
+ service: z.ZodEnum<{
98
+ zoom: "zoom";
99
+ webex: "webex";
100
+ }>;
101
+ name: z.ZodString;
102
+ clientId: z.ZodString;
103
+ zoomAccountId: z.ZodNullable<z.ZodString>;
104
+ status: z.ZodNullable<z.ZodEnum<{
105
+ active: "active";
106
+ unverified: "unverified";
107
+ failing: "failing";
108
+ }>>;
109
+ statusDetail: z.ZodNullable<z.ZodString>;
110
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
111
+ scopes: z.ZodArray<z.ZodString>;
112
+ redirectUri: z.ZodNullable<z.ZodString>;
113
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>;
116
+ export type MeetingAppList = z.infer<typeof MeetingAppList>;
117
+ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
118
+ z.ZodObject<{
119
+ kind: z.ZodLiteral<"zoom_oauth">;
120
+ name: z.ZodString;
121
+ clientId: z.ZodString;
122
+ clientSecret: z.ZodString;
123
+ }, z.core.$strip>,
124
+ z.ZodObject<{
125
+ kind: z.ZodLiteral<"zoom_s2s">;
126
+ name: z.ZodString;
127
+ accountId: z.ZodString;
128
+ clientId: z.ZodString;
129
+ clientSecret: z.ZodString;
130
+ }, z.core.$strip>,
131
+ z.ZodObject<{
132
+ kind: z.ZodLiteral<"webex_oauth">;
133
+ name: z.ZodString;
134
+ clientId: z.ZodString;
135
+ clientSecret: z.ZodString;
136
+ }, z.core.$strip>,
137
+ z.ZodObject<{
138
+ kind: z.ZodLiteral<"webex_service_app">;
139
+ name: z.ZodString;
140
+ clientId: z.ZodString;
141
+ clientSecret: z.ZodString;
142
+ refreshToken: z.ZodString;
143
+ }, z.core.$strip>
144
+ ], "kind">;
145
+ export type CreateMeetingApp = z.infer<typeof CreateMeetingApp>;
146
+ export declare const MeetingAppCheck: z.ZodObject<{
147
+ name: z.ZodString;
148
+ isOk: z.ZodBoolean;
149
+ detail: z.ZodString;
150
+ }, z.core.$strip>;
151
+ export type MeetingAppCheck = z.infer<typeof MeetingAppCheck>;
152
+ export declare const MeetingAppTestResult: z.ZodObject<{
153
+ app: z.ZodObject<{
154
+ id: z.ZodUUID;
155
+ kind: z.ZodEnum<{
156
+ zoom_oauth: "zoom_oauth";
157
+ zoom_s2s: "zoom_s2s";
158
+ webex_oauth: "webex_oauth";
159
+ webex_service_app: "webex_service_app";
160
+ }>;
161
+ service: z.ZodEnum<{
162
+ zoom: "zoom";
163
+ webex: "webex";
164
+ }>;
165
+ name: z.ZodString;
166
+ clientId: z.ZodString;
167
+ zoomAccountId: z.ZodNullable<z.ZodString>;
168
+ status: z.ZodNullable<z.ZodEnum<{
169
+ active: "active";
170
+ unverified: "unverified";
171
+ failing: "failing";
172
+ }>>;
173
+ statusDetail: z.ZodNullable<z.ZodString>;
174
+ checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
175
+ scopes: z.ZodArray<z.ZodString>;
176
+ redirectUri: z.ZodNullable<z.ZodString>;
177
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
178
+ }, z.core.$strip>;
179
+ checks: z.ZodArray<z.ZodObject<{
180
+ name: z.ZodString;
181
+ isOk: z.ZodBoolean;
182
+ detail: z.ZodString;
183
+ }, z.core.$strip>>;
184
+ }, z.core.$strip>;
185
+ export type MeetingAppTestResult = z.infer<typeof MeetingAppTestResult>;
186
+ export declare const MeetingConnectSessionPublic: z.ZodObject<{
187
+ tenantName: z.ZodString;
188
+ service: z.ZodEnum<{
189
+ zoom: "zoom";
190
+ webex: "webex";
191
+ }>;
192
+ accountEmail: z.ZodString;
193
+ status: z.ZodEnum<{
194
+ pending: "pending";
195
+ completed: "completed";
196
+ failed: "failed";
197
+ }>;
198
+ expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
199
+ }, z.core.$strip>;
200
+ export type MeetingConnectSessionPublic = z.infer<typeof MeetingConnectSessionPublic>;
201
+ export declare const MeetingAppIdInput: z.ZodObject<{
202
+ appId: z.ZodUUID;
203
+ }, z.core.$strip>;
204
+ export type MeetingAppIdInput = z.infer<typeof MeetingAppIdInput>;
205
+ export declare const TestMeetingAppRequest: z.ZodObject<{
206
+ user: z.ZodOptional<z.ZodEmail>;
207
+ }, z.core.$strip>;
208
+ export type TestMeetingAppRequest = z.infer<typeof TestMeetingAppRequest>;
209
+ export declare const MeetingConnectionInput: z.ZodObject<{
210
+ accountId: z.ZodUUID;
211
+ service: z.ZodEnum<{
212
+ zoom: "zoom";
213
+ webex: "webex";
214
+ }>;
215
+ }, z.core.$strip>;
216
+ export type MeetingConnectionInput = z.infer<typeof MeetingConnectionInput>;
217
+ export declare const CreateMeetingConnectSession: z.ZodObject<{
218
+ service: z.ZodEnum<{
219
+ zoom: "zoom";
220
+ webex: "webex";
221
+ }>;
222
+ redirectUri: z.ZodOptional<z.ZodURL>;
223
+ meetingAppId: z.ZodOptional<z.ZodUUID>;
224
+ state: z.ZodOptional<z.ZodString>;
225
+ ttlSeconds: z.ZodDefault<z.ZodNumber>;
226
+ }, z.core.$strip>;
227
+ export type CreateMeetingConnectSession = z.infer<typeof CreateMeetingConnectSession>;