@composio/core 0.6.3 → 0.6.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/dist/{BaseProvider-C7yGAyLz.d.mts → BaseProvider-B_7Qy99Q.d.mts} +1950 -40
- package/dist/{BaseProvider-X7JCCvcK.d.cts → BaseProvider-DF03HAz3.d.cts} +1950 -40
- package/dist/{Telemetry-Bn5VseVi.mjs → Telemetry-B3HlLpMT.mjs} +4 -7
- package/dist/{Telemetry-DErMJqj0.cjs → Telemetry-DBe2oppA.cjs} +4 -7
- package/dist/{composio-uGEfnO6v.d.cts → composio-COyITeJf.d.cts} +109 -114
- package/dist/{composio-Ds1Z80p8.d.mts → composio-ClplAPbl.d.mts} +109 -114
- package/dist/index.cjs +275 -25
- package/dist/index.d.cts +4777 -3
- package/dist/index.d.mts +4777 -3
- package/dist/index.mjs +268 -26
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/dist/{types-CMQAtpc_.d.mts → types-BO1Bf2Xz.d.mts} +2 -2
- package/dist/{types-CTXCkF_v.d.cts → types-Bib0jIbg.d.cts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as McpUpdateResponse, $t as SessionExecuteMetaModifiers, A as MCPServer, An as ToolkitLatestVersionSchema, At as Oauth1InitiatedConnectionData, B as MCPToolkitConfig, Bt as Oauth2FailedConnectionData, C as MCPGenerateURLParams, Cn as ToolListResponseSchema, Ct as Oauth1ConnectionDataSchema, D as MCPInstanceParams, Dn as ToolSchema, Dt as Oauth1FailedConnectionDataSchema, E as MCPGetServerParamsSchema, En as ToolRetrievalOptions, Et as Oauth1FailedConnectionData, F as MCPServerSchema, Fn as ToolkitVersionSchema, Ft as Oauth2ActiveConnectionDataSchema, G as McpListResponse, Gt as Oauth2InitiatedConnectionDataSchema, H as MCPToolkitConfigsArraySchema, Ht as Oauth2InactiveConnectionData, I as MCPServerUpdateParams, In as ToolkitVersions, It as Oauth2ConnectionData, J as McpRetrieveResponseSchema, Jt as RedirectableAuthSchemeSchema, K as McpListResponseSchema, Kt as Oauth2InitiatingConnectionData, L as MCPServerUpdateParamsSchema, Ln as ToolkitVersionsSchema, Lt as Oauth2ConnectionDataSchema, M as MCPServerCreateResponseSchema, Mn as ToolkitVersion, Mt as Oauth1InitiatingConnectionData, N as MCPServerListResponse, Nn as ToolkitVersionParam, Nt as Oauth1InitiatingConnectionDataSchema, O as MCPMultiAppServer, On as Toolkit, Ot as Oauth1InactiveConnectionData, P as MCPServerListResponseSchema, Pn as ToolkitVersionParamSchema, Pt as Oauth2ActiveConnectionData, Q as McpToolkitConnectionStatus, Qt as ProviderOptions, R as MCPSingleAppServer, Rt as Oauth2ExpiredConnectionData, S as MCPCreateMethodResponse, Sn as ToolListResponse, St as Oauth1ConnectionData, T as MCPGetServerParams, Tn as ToolProxyParamsSchema, Tt as Oauth1ExpiredConnectionDataSchema, U as McpDeleteResponse, Ut as Oauth2InactiveConnectionDataSchema, V as MCPToolkitConfigSchema, Vt as Oauth2FailedConnectionDataSchema, W as McpDeleteResponseSchema, Wt as Oauth2InitiatedConnectionData, X as McpServerGetResponse, Xt as ExecuteToolModifiers, Y as McpServerCreateResponse, Yt as AgenticToolOptions, Z as McpServerUrlInfo, Zt as MetaToolArguments, _ as GenerateURLResponse, _n as ToolExecuteResponse, _t as CustomOauth1ConnectionDataSchema, a as ComposioGenerateURLParamsSchema, an as beforeExecuteMetaModifier, at as ExecuteToolFnOptions, b as MCPAuthOptions, bn as ToolListParams, bt as Oauth1ActiveConnectionData, c as ComposioMcpListResponseSchema, cn as CustomAuthParamsSchema, ct as BaseConnectionFields, d as ConnectionStatus, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, et as McpUpdateResponseSchema, f as CustomCreateResponse, fn as Tool, ft as ConnectionStatusEnum, g as GenerateURLParamsSchema, gn as ToolExecuteParamsSchema, gt as CustomOauth1ConnectionData, h as GenerateURLParams, hn as ToolExecuteParams, ht as CustomConnectionDataSchema, i as ComposioCustomCreateResponseSchema, in as afterExecuteModifier, it as ExecuteToolFn, j as MCPServerCreateResponse, jn as ToolkitSchema, jt as Oauth1InitiatedConnectionDataSchema, k as MCPMultiAppServerSchema, kn as ToolkitLatestVersion, kt as Oauth1InactiveConnectionDataSchema, l as ComposioMcpRetrieveResponseSchema, ln as JSONSchemaProperty, lt as BillcomAuthConnectionDataSchema, m as CustomCreateResponseValidated, mn as ToolExecuteMetaParamsSchema, mt as CustomConnectionData, n as BaseComposioProvider, nn as TransformToolSchemaModifier, nt as McpUrlResponseCamelCase, o as ComposioGenerateURLResponseSchema, on as beforeExecuteModifier, ot as GlobalExecuteToolFn, p as CustomCreateResponseSchema, pn as ToolExecuteMetaParams, pt as ConnectionStatuses, q as McpRetrieveResponse, qt as Oauth2InitiatingConnectionDataSchema, r as BaseNonAgenticProvider, rn as afterExecuteMetaModifier, rt as McpUserConnectionStatus, s as ComposioMcpDeleteResponseSchema, sn as CustomAuthParams, st as Provider, t as BaseAgenticProvider, tn as ToolOptions, tt as McpUrlResponse, u as ComposioMcpUpdateResponseSchema, un as JSONSchemaPropertySchema, ut as ConnectionData, v as GenerateURLResponseSchema, vn as ToolExecuteResponseSchema, vt as CustomOauth2ConnectionData, w as MCPGenerateURLParamsSchema, wn as ToolProxyParams, wt as Oauth1ExpiredConnectionData, x as MCPAuthOptionsSchema, xn as ToolListParamsSchema, xt as Oauth1ActiveConnectionDataSchema, y as GenerateURLResponseValidated, yn as ToolList, yt as CustomOauth2ConnectionDataSchema, z as MCPSingleAppServerSchema, zt as Oauth2ExpiredConnectionDataSchema } from "./BaseProvider-
|
|
2
|
-
import { $ as TriggerInstanceUpsertParamsSchema, $n as
|
|
1
|
+
import { $ as McpUpdateResponse, $t as SessionExecuteMetaModifiers, A as MCPServer, An as ToolkitLatestVersionSchema, At as Oauth1InitiatedConnectionData, B as MCPToolkitConfig, Bt as Oauth2FailedConnectionData, C as MCPGenerateURLParams, Cn as ToolListResponseSchema, Ct as Oauth1ConnectionDataSchema, D as MCPInstanceParams, Dn as ToolSchema, Dt as Oauth1FailedConnectionDataSchema, E as MCPGetServerParamsSchema, En as ToolRetrievalOptions, Et as Oauth1FailedConnectionData, F as MCPServerSchema, Fn as ToolkitVersionSchema, Ft as Oauth2ActiveConnectionDataSchema, G as McpListResponse, Gt as Oauth2InitiatedConnectionDataSchema, H as MCPToolkitConfigsArraySchema, Ht as Oauth2InactiveConnectionData, I as MCPServerUpdateParams, In as ToolkitVersions, It as Oauth2ConnectionData, J as McpRetrieveResponseSchema, Jt as RedirectableAuthSchemeSchema, K as McpListResponseSchema, Kt as Oauth2InitiatingConnectionData, L as MCPServerUpdateParamsSchema, Ln as ToolkitVersionsSchema, Lt as Oauth2ConnectionDataSchema, M as MCPServerCreateResponseSchema, Mn as ToolkitVersion, Mt as Oauth1InitiatingConnectionData, N as MCPServerListResponse, Nn as ToolkitVersionParam, Nt as Oauth1InitiatingConnectionDataSchema, O as MCPMultiAppServer, On as Toolkit, Ot as Oauth1InactiveConnectionData, P as MCPServerListResponseSchema, Pn as ToolkitVersionParamSchema, Pt as Oauth2ActiveConnectionData, Q as McpToolkitConnectionStatus, Qt as ProviderOptions, R as MCPSingleAppServer, Rt as Oauth2ExpiredConnectionData, S as MCPCreateMethodResponse, Sn as ToolListResponse, St as Oauth1ConnectionData, T as MCPGetServerParams, Tn as ToolProxyParamsSchema, Tt as Oauth1ExpiredConnectionDataSchema, U as McpDeleteResponse, Ut as Oauth2InactiveConnectionDataSchema, V as MCPToolkitConfigSchema, Vt as Oauth2FailedConnectionDataSchema, W as McpDeleteResponseSchema, Wt as Oauth2InitiatedConnectionData, X as McpServerGetResponse, Xt as ExecuteToolModifiers, Y as McpServerCreateResponse, Yt as AgenticToolOptions, Z as McpServerUrlInfo, Zt as MetaToolArguments, _ as GenerateURLResponse, _n as ToolExecuteResponse, _t as CustomOauth1ConnectionDataSchema, a as ComposioGenerateURLParamsSchema, an as beforeExecuteMetaModifier, at as ExecuteToolFnOptions, b as MCPAuthOptions, bn as ToolListParams, bt as Oauth1ActiveConnectionData, c as ComposioMcpListResponseSchema, cn as CustomAuthParamsSchema, ct as BaseConnectionFields, d as ConnectionStatus, dn as SchemaModifierOptions, dt as ConnectionDataSchema, en as SessionMetaToolOptions, et as McpUpdateResponseSchema, f as CustomCreateResponse, fn as Tool, ft as ConnectionStatusEnum, g as GenerateURLParamsSchema, gn as ToolExecuteParamsSchema, gt as CustomOauth1ConnectionData, h as GenerateURLParams, hn as ToolExecuteParams, ht as CustomConnectionDataSchema, i as ComposioCustomCreateResponseSchema, in as afterExecuteModifier, it as ExecuteToolFn, j as MCPServerCreateResponse, jn as ToolkitSchema, jt as Oauth1InitiatedConnectionDataSchema, k as MCPMultiAppServerSchema, kn as ToolkitLatestVersion, kt as Oauth1InactiveConnectionDataSchema, l as ComposioMcpRetrieveResponseSchema, ln as JSONSchemaProperty, lt as BillcomAuthConnectionDataSchema, m as CustomCreateResponseValidated, mn as ToolExecuteMetaParamsSchema, mt as CustomConnectionData, n as BaseComposioProvider, nn as TransformToolSchemaModifier, nt as McpUrlResponseCamelCase, o as ComposioGenerateURLResponseSchema, on as beforeExecuteModifier, ot as GlobalExecuteToolFn, p as CustomCreateResponseSchema, pn as ToolExecuteMetaParams, pt as ConnectionStatuses, q as McpRetrieveResponse, qt as Oauth2InitiatingConnectionDataSchema, r as BaseNonAgenticProvider, rn as afterExecuteMetaModifier, rt as McpUserConnectionStatus, s as ComposioMcpDeleteResponseSchema, sn as CustomAuthParams, st as Provider, t as BaseAgenticProvider, tn as ToolOptions, tt as McpUrlResponse, u as ComposioMcpUpdateResponseSchema, un as JSONSchemaPropertySchema, ut as ConnectionData, v as GenerateURLResponseSchema, vn as ToolExecuteResponseSchema, vt as CustomOauth2ConnectionData, w as MCPGenerateURLParamsSchema, wn as ToolProxyParams, wt as Oauth1ExpiredConnectionData, x as MCPAuthOptionsSchema, xn as ToolListParamsSchema, xt as Oauth1ActiveConnectionDataSchema, y as GenerateURLResponseValidated, yn as ToolList, yt as CustomOauth2ConnectionDataSchema, z as MCPSingleAppServerSchema, zt as Oauth2ExpiredConnectionDataSchema } from "./BaseProvider-DF03HAz3.cjs";
|
|
2
|
+
import { $ as TriggerInstanceUpsertParamsSchema, $n as CustomToolRegistryItem, $t as ConnectionRequestState, A as ToolkitConnectionStateSchema, An as ToolKitMeta, At as AuthConfigListParams, B as TriggerInstanceListActiveParams, Bn as ToolkitListParams, Bt as AuthConfigUpdateParamsSchema, C as ToolRouterToolkitsOptions, Cn as CreateConnectedAccountResponse, Ct as WebhookPayloadV3, D as ToolRouterToolsParam, Dn as ToolKitItemSchema, Dt as WebhookVersion, E as ToolRouterToolsFn, En as ToolKitItem, Et as WebhookTriggerPayloadV3Schema, F as IncomingTriggerPayload, Fn as ToolkitAuthFieldSchema, Ft as AuthConfigRetrieveResponseSchema, G as TriggerInstanceListActiveResponseSchema, Gn as ToolkitRetrieveResponse, Gt as AuthSchemeTypes, H as TriggerInstanceListActiveResponse, Hn as ToolkitMangedByEnumSchema, Ht as AuthDefaultConfigUpdateParamsSchema, I as IncomingTriggerPayloadSchema, In as ToolkitAuthFieldsResponse, It as AuthConfigToolAccessConfigSchema, J as TriggerInstanceManageUpdateParams, Jn as ToolkitSortByEnumSchema, Jt as CreateAuthConfigResponse, K as TriggerInstanceManageDeleteResponse, Kn as ToolkitRetrieveResponseSchema, Kt as CreateAuthConfigParams, L as TriggerData, Ln as ToolkitAuthFieldsResponseSchema, Lt as AuthConfigType, M as ToolkitConnectionsDetailsSchema, Mn as ToolkitAuthConfigDetails, Mt as AuthConfigListResponse, N as OpenAIProvider, Nn as ToolkitAuthConfigDetailsSchema, Nt as AuthConfigListResponseSchema, O as ToolRouterToolsParamSchema, On as ToolKitListResponse, Ot as WebhookVersions, P as MCP, Pn as ToolkitAuthField, Pt as AuthConfigRetrieveResponse, Q as TriggerInstanceUpsertParams, Qn as CustomToolRegistry, Qt as ConnectionRequest, R as TriggerEvent, Rn as ToolkitCategory, Rt as AuthConfigTypes, S as ToolRouterToolkitsFn, Sn as CreateConnectedAccountParamsSchema, St as WebhookPayloadV2Schema, T as ToolRouterToolkitsParamSchema, Tn as DefaultCreateConnectedAccountParamsSchema, Tt as WebhookTriggerPayloadV3, U as TriggerInstanceListActiveResponseItem, Un as ToolkitRetrieveCategoriesResponse, Ut as AuthSchemeEnum, V as TriggerInstanceListActiveParamsSchema, Vn as ToolkitMangedByEnum, Vt as AuthCustomConfigUpdateParamsSchema, W as TriggerInstanceListActiveResponseItemSchema, Wn as ToolkitRetrieveCategoriesResponseSchema, Wt as AuthSchemeType, X as TriggerInstanceManageUpdateResponse, Xn as CustomToolInputParameter, Xt as CreateComposioManagedAuthConfigParamsSchema, Y as TriggerInstanceManageUpdateParamsSchema, Yn as ToolkitsListParamsSchema, Yt as CreateAuthConfigResponseSchema, Z as TriggerInstanceManageUpdateResponseSchema, Zn as CustomToolOptions, Zt as CreateCustomAuthConfigParamsSchema, _ as ToolRouterSessionExperimental, _n as CreateConnectedAccountLinkResponse, _t as WebhookPayload, a as ToolRouterAuthorizeFn, an as ConnectedAccountListResponseItem, at as TriggerSubscribeParamSchema, b as ToolRouterToolkitsDisabledConfigSchema, bn as CreateConnectedAccountOptionsSchema, bt as WebhookPayloadV1Schema, c as ToolRouterConfigTagsSchema, cn as ConnectedAccountRefreshOptionsSchema, ct as TriggerTypeSchema, d as ToolRouterCreateSessionConfig, dn as ConnectedAccountStatus, dt as TriggersTypeListResponse, en as ConnectedAccountAuthConfig, er as ExecuteMetadata, et as TriggerInstanceUpsertResponse, f as ToolRouterCreateSessionConfigSchema, fn as ConnectedAccountStatusEnum, ft as TriggersTypeListResponseSchema, g as ToolRouterSession, gn as CreateConnectedAccountLinkOptionsSchema, gt as VerifyWebhookResult, h as ToolRouterManageConnectionsConfigSchema, hn as CreateConnectedAccountLinkOptions, ht as VerifyWebhookParamsSchema, i as MCPServerTypeSchema, in as ConnectedAccountListResponse, it as TriggerStatuses, j as ToolkitConnectionsDetails, jn as ToolKitMetaSchema, jt as AuthConfigListParamsSchema, k as ToolkitConnectionState, kn as ToolKitListResponseSchema, kt as AuthConfigCreationToolAccessConfigSchema, l as ToolRouterConfigTools, ln as ConnectedAccountRetrieveResponse, lt as TriggersTypeListParams, m as ToolRouterMCPServerConfigSchema, mn as ConnectedAccountStatuses, mt as VerifyWebhookParams, nn as ConnectedAccountListParams, nt as TriggerStatusEnum, o as ToolRouterConfigManageConnectionsSchema, on as ConnectedAccountListResponseSchema, ot as TriggerSubscribeParams, p as ToolRouterMCPServerConfig, pn as ConnectedAccountStatusSchema, pt as TriggersTypeRetrieveResponse, q as TriggerInstanceManageDeleteResponseSchema, qn as ToolkitSortByEnum, qt as CreateAuthConfigParamsSchema, r as MCPServerType, rn as ConnectedAccountListParamsSchema, rt as TriggerStatusType, s as ToolRouterConfigTags, sn as ConnectedAccountRefreshOptions, st as TriggerType, t as Composio, tn as ConnectedAccountAuthConfigSchema, tr as InputParamsSchema, tt as TriggerInstanceUpsertResponseSchema, u as ToolRouterConfigToolsSchema, un as ConnectedAccountRetrieveResponseSchema, ut as TriggersTypeListParamsSchema, v as ToolRouterTagsEnableDisableSchema, vn as CreateConnectedAccountLinkResponseSchema, vt as WebhookPayloadSchema, w as ToolRouterToolkitsOptionsSchema, wn as CreateConnectedAccountResponseSchema, wt as WebhookPayloadV3Schema, x as ToolRouterToolkitsEnabledConfigSchema, xn as CreateConnectedAccountParams, xt as WebhookPayloadV2, y as ToolRouterTagsParamSchema, yn as CreateConnectedAccountOptions, yt as WebhookPayloadV1, z as TriggerEventData, zn as ToolkitCategorySchema, zt as AuthConfigUpdateParams } from "./composio-COyITeJf.cjs";
|
|
3
3
|
import { n as FileUploadData, t as FileDownloadData } from "./files.types-nK6eTNnc.cjs";
|
|
4
4
|
import "node:module";
|
|
5
5
|
import { z } from "zod/v3";
|
|
@@ -200,6 +200,4780 @@ declare class AuthScheme {
|
|
|
200
200
|
* Connection request object with state and methods
|
|
201
201
|
*/
|
|
202
202
|
declare function createConnectionRequest(client: ComposioClient, connectedAccountId: string, status?: ConnectedAccountStatus, redirectUrl?: string | null): ConnectionRequest;
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/types/webhookEvents.types.d.ts
|
|
205
|
+
declare const WebhookEventTypes: {
|
|
206
|
+
readonly CONNECTION_EXPIRED: "composio.connected_account.expired";
|
|
207
|
+
readonly TRIGGER_MESSAGE: "composio.trigger.message";
|
|
208
|
+
};
|
|
209
|
+
type WebhookEventType = (typeof WebhookEventTypes)[keyof typeof WebhookEventTypes];
|
|
210
|
+
/**
|
|
211
|
+
* Auth config schema for webhook payloads (raw API format, snake_case).
|
|
212
|
+
*
|
|
213
|
+
* This intentionally does NOT reuse ConnectedAccountAuthConfigSchema from
|
|
214
|
+
* connectedAccounts.types.ts because:
|
|
215
|
+
* - Webhook payloads arrive in raw snake_case (is_composio_managed, is_disabled)
|
|
216
|
+
* while the SDK schema uses camelCase (isComposioManaged, isDisabled)
|
|
217
|
+
* - Webhook payloads include additional fields (auth_scheme, deprecated)
|
|
218
|
+
* not present in the SDK schema
|
|
219
|
+
*
|
|
220
|
+
* Uses .passthrough() to accept unknown fields the API may add in the future.
|
|
221
|
+
*
|
|
222
|
+
* @see ConnectedAccountAuthConfigSchema in connectedAccounts.types.ts for the camelCase SDK version
|
|
223
|
+
*/
|
|
224
|
+
declare const WebhookConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
225
|
+
/** The nano ID of the auth config */
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
/** @deprecated - use state.authScheme instead */
|
|
228
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
229
|
+
readonly OAUTH1: "OAUTH1";
|
|
230
|
+
readonly OAUTH2: "OAUTH2";
|
|
231
|
+
readonly API_KEY: "API_KEY";
|
|
232
|
+
readonly BASIC: "BASIC";
|
|
233
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
234
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
235
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
236
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
237
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
238
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
239
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
240
|
+
readonly SAML: "SAML";
|
|
241
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
242
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
243
|
+
}>;
|
|
244
|
+
/** Whether this auth config is managed by Composio */
|
|
245
|
+
is_composio_managed: z.ZodBoolean;
|
|
246
|
+
/** Whether the auth config is disabled */
|
|
247
|
+
is_disabled: z.ZodBoolean;
|
|
248
|
+
/** @deprecated */
|
|
249
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
uuid: z.ZodString;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
uuid: string;
|
|
253
|
+
}, {
|
|
254
|
+
uuid: string;
|
|
255
|
+
}>>;
|
|
256
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
257
|
+
/** The nano ID of the auth config */
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
/** @deprecated - use state.authScheme instead */
|
|
260
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
261
|
+
readonly OAUTH1: "OAUTH1";
|
|
262
|
+
readonly OAUTH2: "OAUTH2";
|
|
263
|
+
readonly API_KEY: "API_KEY";
|
|
264
|
+
readonly BASIC: "BASIC";
|
|
265
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
266
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
267
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
268
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
269
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
270
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
271
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
272
|
+
readonly SAML: "SAML";
|
|
273
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
274
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
275
|
+
}>;
|
|
276
|
+
/** Whether this auth config is managed by Composio */
|
|
277
|
+
is_composio_managed: z.ZodBoolean;
|
|
278
|
+
/** Whether the auth config is disabled */
|
|
279
|
+
is_disabled: z.ZodBoolean;
|
|
280
|
+
/** @deprecated */
|
|
281
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
uuid: z.ZodString;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
uuid: string;
|
|
285
|
+
}, {
|
|
286
|
+
uuid: string;
|
|
287
|
+
}>>;
|
|
288
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
289
|
+
/** The nano ID of the auth config */
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
/** @deprecated - use state.authScheme instead */
|
|
292
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
293
|
+
readonly OAUTH1: "OAUTH1";
|
|
294
|
+
readonly OAUTH2: "OAUTH2";
|
|
295
|
+
readonly API_KEY: "API_KEY";
|
|
296
|
+
readonly BASIC: "BASIC";
|
|
297
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
298
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
299
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
300
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
301
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
302
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
303
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
304
|
+
readonly SAML: "SAML";
|
|
305
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
306
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
307
|
+
}>;
|
|
308
|
+
/** Whether this auth config is managed by Composio */
|
|
309
|
+
is_composio_managed: z.ZodBoolean;
|
|
310
|
+
/** Whether the auth config is disabled */
|
|
311
|
+
is_disabled: z.ZodBoolean;
|
|
312
|
+
/** @deprecated */
|
|
313
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
uuid: z.ZodString;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
uuid: string;
|
|
317
|
+
}, {
|
|
318
|
+
uuid: string;
|
|
319
|
+
}>>;
|
|
320
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
321
|
+
type WebhookConnectedAccountAuthConfig = z.infer<typeof WebhookConnectedAccountAuthConfigSchema>;
|
|
322
|
+
/**
|
|
323
|
+
* Simplified connection state schema for webhook payloads (raw API format).
|
|
324
|
+
*
|
|
325
|
+
* This intentionally does NOT reuse ConnectionDataSchema from
|
|
326
|
+
* connectedAccountAuthStates.types.ts because:
|
|
327
|
+
* - ConnectionDataSchema is a discriminated union requiring typed `val`
|
|
328
|
+
* per auth scheme (e.g., Oauth2ConnectionDataSchema)
|
|
329
|
+
* - Webhook payloads need loose validation (z.record(z.unknown()))
|
|
330
|
+
* since the connection state varies and isn't the focus of event handling
|
|
331
|
+
*
|
|
332
|
+
* Uses .passthrough() to accept unknown fields the API may add in the future.
|
|
333
|
+
*
|
|
334
|
+
* @see ConnectionDataSchema in connectedAccountAuthStates.types.ts for the full typed version
|
|
335
|
+
*/
|
|
336
|
+
declare const WebhookConnectionStateSchema: z.ZodObject<{
|
|
337
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
338
|
+
authScheme: z.ZodNativeEnum<{
|
|
339
|
+
readonly OAUTH1: "OAUTH1";
|
|
340
|
+
readonly OAUTH2: "OAUTH2";
|
|
341
|
+
readonly API_KEY: "API_KEY";
|
|
342
|
+
readonly BASIC: "BASIC";
|
|
343
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
344
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
345
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
346
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
347
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
348
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
349
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
350
|
+
readonly SAML: "SAML";
|
|
351
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
352
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
353
|
+
}>;
|
|
354
|
+
/** Connection state values - varies by auth scheme */
|
|
355
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
356
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
357
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
358
|
+
authScheme: z.ZodNativeEnum<{
|
|
359
|
+
readonly OAUTH1: "OAUTH1";
|
|
360
|
+
readonly OAUTH2: "OAUTH2";
|
|
361
|
+
readonly API_KEY: "API_KEY";
|
|
362
|
+
readonly BASIC: "BASIC";
|
|
363
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
364
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
365
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
366
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
367
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
368
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
369
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
370
|
+
readonly SAML: "SAML";
|
|
371
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
372
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
373
|
+
}>;
|
|
374
|
+
/** Connection state values - varies by auth scheme */
|
|
375
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
376
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
377
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
378
|
+
authScheme: z.ZodNativeEnum<{
|
|
379
|
+
readonly OAUTH1: "OAUTH1";
|
|
380
|
+
readonly OAUTH2: "OAUTH2";
|
|
381
|
+
readonly API_KEY: "API_KEY";
|
|
382
|
+
readonly BASIC: "BASIC";
|
|
383
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
384
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
385
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
386
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
387
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
388
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
389
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
390
|
+
readonly SAML: "SAML";
|
|
391
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
392
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
393
|
+
}>;
|
|
394
|
+
/** Connection state values - varies by auth scheme */
|
|
395
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
396
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
397
|
+
type WebhookConnectionState = z.infer<typeof WebhookConnectionStateSchema>;
|
|
398
|
+
/**
|
|
399
|
+
* Connected account data schema for webhook payloads (raw API format, snake_case).
|
|
400
|
+
*
|
|
401
|
+
* This is the snake_case equivalent of ConnectedAccountRetrieveResponseSchema
|
|
402
|
+
* from connectedAccounts.types.ts. It intentionally does NOT reuse that schema because:
|
|
403
|
+
* - Webhook payloads arrive in raw snake_case (auth_config, user_id, created_at, etc.)
|
|
404
|
+
* while the SDK schema uses camelCase (authConfig, createdAt, etc.)
|
|
405
|
+
* - The SDK applies a transformation layer (utils/transformers/connectedAccounts.ts)
|
|
406
|
+
* before validation; webhooks are validated directly by the user
|
|
407
|
+
* - Webhook payloads include user_id, which the SDK schema omits
|
|
408
|
+
*
|
|
409
|
+
* Uses .passthrough() to accept unknown fields the API may add in the future.
|
|
410
|
+
*
|
|
411
|
+
* @see ConnectedAccountRetrieveResponseSchema in connectedAccounts.types.ts for the camelCase SDK version
|
|
412
|
+
* @see utils/transformers/connectedAccounts.ts for the snake-to-camel transformation
|
|
413
|
+
*/
|
|
414
|
+
declare const SingleConnectedAccountDetailedResponseSchema: z.ZodObject<{
|
|
415
|
+
/** Toolkit information */
|
|
416
|
+
toolkit: z.ZodObject<{
|
|
417
|
+
slug: z.ZodString;
|
|
418
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
419
|
+
slug: z.ZodString;
|
|
420
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
421
|
+
slug: z.ZodString;
|
|
422
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
423
|
+
/** Auth config details */
|
|
424
|
+
auth_config: z.ZodObject<{
|
|
425
|
+
/** The nano ID of the auth config */
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
/** @deprecated - use state.authScheme instead */
|
|
428
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
429
|
+
readonly OAUTH1: "OAUTH1";
|
|
430
|
+
readonly OAUTH2: "OAUTH2";
|
|
431
|
+
readonly API_KEY: "API_KEY";
|
|
432
|
+
readonly BASIC: "BASIC";
|
|
433
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
434
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
435
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
436
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
437
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
438
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
439
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
440
|
+
readonly SAML: "SAML";
|
|
441
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
442
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
443
|
+
}>;
|
|
444
|
+
/** Whether this auth config is managed by Composio */
|
|
445
|
+
is_composio_managed: z.ZodBoolean;
|
|
446
|
+
/** Whether the auth config is disabled */
|
|
447
|
+
is_disabled: z.ZodBoolean;
|
|
448
|
+
/** @deprecated */
|
|
449
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
450
|
+
uuid: z.ZodString;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
uuid: string;
|
|
453
|
+
}, {
|
|
454
|
+
uuid: string;
|
|
455
|
+
}>>;
|
|
456
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
457
|
+
/** The nano ID of the auth config */
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
/** @deprecated - use state.authScheme instead */
|
|
460
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
461
|
+
readonly OAUTH1: "OAUTH1";
|
|
462
|
+
readonly OAUTH2: "OAUTH2";
|
|
463
|
+
readonly API_KEY: "API_KEY";
|
|
464
|
+
readonly BASIC: "BASIC";
|
|
465
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
466
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
467
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
468
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
469
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
470
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
471
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
472
|
+
readonly SAML: "SAML";
|
|
473
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
474
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
475
|
+
}>;
|
|
476
|
+
/** Whether this auth config is managed by Composio */
|
|
477
|
+
is_composio_managed: z.ZodBoolean;
|
|
478
|
+
/** Whether the auth config is disabled */
|
|
479
|
+
is_disabled: z.ZodBoolean;
|
|
480
|
+
/** @deprecated */
|
|
481
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
uuid: z.ZodString;
|
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
uuid: string;
|
|
485
|
+
}, {
|
|
486
|
+
uuid: string;
|
|
487
|
+
}>>;
|
|
488
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
489
|
+
/** The nano ID of the auth config */
|
|
490
|
+
id: z.ZodString;
|
|
491
|
+
/** @deprecated - use state.authScheme instead */
|
|
492
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
493
|
+
readonly OAUTH1: "OAUTH1";
|
|
494
|
+
readonly OAUTH2: "OAUTH2";
|
|
495
|
+
readonly API_KEY: "API_KEY";
|
|
496
|
+
readonly BASIC: "BASIC";
|
|
497
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
498
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
499
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
500
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
501
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
502
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
503
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
504
|
+
readonly SAML: "SAML";
|
|
505
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
506
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
507
|
+
}>;
|
|
508
|
+
/** Whether this auth config is managed by Composio */
|
|
509
|
+
is_composio_managed: z.ZodBoolean;
|
|
510
|
+
/** Whether the auth config is disabled */
|
|
511
|
+
is_disabled: z.ZodBoolean;
|
|
512
|
+
/** @deprecated */
|
|
513
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
514
|
+
uuid: z.ZodString;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
uuid: string;
|
|
517
|
+
}, {
|
|
518
|
+
uuid: string;
|
|
519
|
+
}>>;
|
|
520
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
521
|
+
/** The nano ID of the connected account */
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
/** @deprecated - user ID of the connection owner */
|
|
524
|
+
user_id: z.ZodString;
|
|
525
|
+
/** Connection status */
|
|
526
|
+
status: z.ZodNativeEnum<{
|
|
527
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
528
|
+
readonly INITIATED: "INITIATED";
|
|
529
|
+
readonly ACTIVE: "ACTIVE";
|
|
530
|
+
readonly FAILED: "FAILED";
|
|
531
|
+
readonly EXPIRED: "EXPIRED";
|
|
532
|
+
readonly INACTIVE: "INACTIVE";
|
|
533
|
+
}>;
|
|
534
|
+
/** ISO-8601 timestamp of creation */
|
|
535
|
+
created_at: z.ZodString;
|
|
536
|
+
/** ISO-8601 timestamp of last update */
|
|
537
|
+
updated_at: z.ZodString;
|
|
538
|
+
/** Connection state data (auth scheme + state values) */
|
|
539
|
+
state: z.ZodObject<{
|
|
540
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
541
|
+
authScheme: z.ZodNativeEnum<{
|
|
542
|
+
readonly OAUTH1: "OAUTH1";
|
|
543
|
+
readonly OAUTH2: "OAUTH2";
|
|
544
|
+
readonly API_KEY: "API_KEY";
|
|
545
|
+
readonly BASIC: "BASIC";
|
|
546
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
547
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
548
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
549
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
550
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
551
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
552
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
553
|
+
readonly SAML: "SAML";
|
|
554
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
555
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
556
|
+
}>;
|
|
557
|
+
/** Connection state values - varies by auth scheme */
|
|
558
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
559
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
560
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
561
|
+
authScheme: z.ZodNativeEnum<{
|
|
562
|
+
readonly OAUTH1: "OAUTH1";
|
|
563
|
+
readonly OAUTH2: "OAUTH2";
|
|
564
|
+
readonly API_KEY: "API_KEY";
|
|
565
|
+
readonly BASIC: "BASIC";
|
|
566
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
567
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
568
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
569
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
570
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
571
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
572
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
573
|
+
readonly SAML: "SAML";
|
|
574
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
575
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
576
|
+
}>;
|
|
577
|
+
/** Connection state values - varies by auth scheme */
|
|
578
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
579
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
580
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
581
|
+
authScheme: z.ZodNativeEnum<{
|
|
582
|
+
readonly OAUTH1: "OAUTH1";
|
|
583
|
+
readonly OAUTH2: "OAUTH2";
|
|
584
|
+
readonly API_KEY: "API_KEY";
|
|
585
|
+
readonly BASIC: "BASIC";
|
|
586
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
587
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
588
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
589
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
590
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
591
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
592
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
593
|
+
readonly SAML: "SAML";
|
|
594
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
595
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
596
|
+
}>;
|
|
597
|
+
/** Connection state values - varies by auth scheme */
|
|
598
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
599
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
600
|
+
/** @deprecated - use state instead */
|
|
601
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
602
|
+
/** @deprecated - use state instead */
|
|
603
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
604
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
605
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
606
|
+
/** Whether the connection is disabled */
|
|
607
|
+
is_disabled: z.ZodBoolean;
|
|
608
|
+
/** Endpoint for making test requests */
|
|
609
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
610
|
+
/** @deprecated */
|
|
611
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
613
|
+
uuid: z.ZodString;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
|
+
uuid: string;
|
|
616
|
+
labels: string[];
|
|
617
|
+
}, {
|
|
618
|
+
uuid: string;
|
|
619
|
+
labels: string[];
|
|
620
|
+
}>>;
|
|
621
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
622
|
+
/** Toolkit information */
|
|
623
|
+
toolkit: z.ZodObject<{
|
|
624
|
+
slug: z.ZodString;
|
|
625
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
626
|
+
slug: z.ZodString;
|
|
627
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
628
|
+
slug: z.ZodString;
|
|
629
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
630
|
+
/** Auth config details */
|
|
631
|
+
auth_config: z.ZodObject<{
|
|
632
|
+
/** The nano ID of the auth config */
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
/** @deprecated - use state.authScheme instead */
|
|
635
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
636
|
+
readonly OAUTH1: "OAUTH1";
|
|
637
|
+
readonly OAUTH2: "OAUTH2";
|
|
638
|
+
readonly API_KEY: "API_KEY";
|
|
639
|
+
readonly BASIC: "BASIC";
|
|
640
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
641
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
642
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
643
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
644
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
645
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
646
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
647
|
+
readonly SAML: "SAML";
|
|
648
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
649
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
650
|
+
}>;
|
|
651
|
+
/** Whether this auth config is managed by Composio */
|
|
652
|
+
is_composio_managed: z.ZodBoolean;
|
|
653
|
+
/** Whether the auth config is disabled */
|
|
654
|
+
is_disabled: z.ZodBoolean;
|
|
655
|
+
/** @deprecated */
|
|
656
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
uuid: z.ZodString;
|
|
658
|
+
}, "strip", z.ZodTypeAny, {
|
|
659
|
+
uuid: string;
|
|
660
|
+
}, {
|
|
661
|
+
uuid: string;
|
|
662
|
+
}>>;
|
|
663
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
664
|
+
/** The nano ID of the auth config */
|
|
665
|
+
id: z.ZodString;
|
|
666
|
+
/** @deprecated - use state.authScheme instead */
|
|
667
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
668
|
+
readonly OAUTH1: "OAUTH1";
|
|
669
|
+
readonly OAUTH2: "OAUTH2";
|
|
670
|
+
readonly API_KEY: "API_KEY";
|
|
671
|
+
readonly BASIC: "BASIC";
|
|
672
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
673
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
674
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
675
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
676
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
677
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
678
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
679
|
+
readonly SAML: "SAML";
|
|
680
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
681
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
682
|
+
}>;
|
|
683
|
+
/** Whether this auth config is managed by Composio */
|
|
684
|
+
is_composio_managed: z.ZodBoolean;
|
|
685
|
+
/** Whether the auth config is disabled */
|
|
686
|
+
is_disabled: z.ZodBoolean;
|
|
687
|
+
/** @deprecated */
|
|
688
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
689
|
+
uuid: z.ZodString;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
uuid: string;
|
|
692
|
+
}, {
|
|
693
|
+
uuid: string;
|
|
694
|
+
}>>;
|
|
695
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
696
|
+
/** The nano ID of the auth config */
|
|
697
|
+
id: z.ZodString;
|
|
698
|
+
/** @deprecated - use state.authScheme instead */
|
|
699
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
700
|
+
readonly OAUTH1: "OAUTH1";
|
|
701
|
+
readonly OAUTH2: "OAUTH2";
|
|
702
|
+
readonly API_KEY: "API_KEY";
|
|
703
|
+
readonly BASIC: "BASIC";
|
|
704
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
705
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
706
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
707
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
708
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
709
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
710
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
711
|
+
readonly SAML: "SAML";
|
|
712
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
713
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
714
|
+
}>;
|
|
715
|
+
/** Whether this auth config is managed by Composio */
|
|
716
|
+
is_composio_managed: z.ZodBoolean;
|
|
717
|
+
/** Whether the auth config is disabled */
|
|
718
|
+
is_disabled: z.ZodBoolean;
|
|
719
|
+
/** @deprecated */
|
|
720
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
uuid: z.ZodString;
|
|
722
|
+
}, "strip", z.ZodTypeAny, {
|
|
723
|
+
uuid: string;
|
|
724
|
+
}, {
|
|
725
|
+
uuid: string;
|
|
726
|
+
}>>;
|
|
727
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
728
|
+
/** The nano ID of the connected account */
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
/** @deprecated - user ID of the connection owner */
|
|
731
|
+
user_id: z.ZodString;
|
|
732
|
+
/** Connection status */
|
|
733
|
+
status: z.ZodNativeEnum<{
|
|
734
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
735
|
+
readonly INITIATED: "INITIATED";
|
|
736
|
+
readonly ACTIVE: "ACTIVE";
|
|
737
|
+
readonly FAILED: "FAILED";
|
|
738
|
+
readonly EXPIRED: "EXPIRED";
|
|
739
|
+
readonly INACTIVE: "INACTIVE";
|
|
740
|
+
}>;
|
|
741
|
+
/** ISO-8601 timestamp of creation */
|
|
742
|
+
created_at: z.ZodString;
|
|
743
|
+
/** ISO-8601 timestamp of last update */
|
|
744
|
+
updated_at: z.ZodString;
|
|
745
|
+
/** Connection state data (auth scheme + state values) */
|
|
746
|
+
state: z.ZodObject<{
|
|
747
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
748
|
+
authScheme: z.ZodNativeEnum<{
|
|
749
|
+
readonly OAUTH1: "OAUTH1";
|
|
750
|
+
readonly OAUTH2: "OAUTH2";
|
|
751
|
+
readonly API_KEY: "API_KEY";
|
|
752
|
+
readonly BASIC: "BASIC";
|
|
753
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
754
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
755
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
756
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
757
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
758
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
759
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
760
|
+
readonly SAML: "SAML";
|
|
761
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
762
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
763
|
+
}>;
|
|
764
|
+
/** Connection state values - varies by auth scheme */
|
|
765
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
766
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
767
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
768
|
+
authScheme: z.ZodNativeEnum<{
|
|
769
|
+
readonly OAUTH1: "OAUTH1";
|
|
770
|
+
readonly OAUTH2: "OAUTH2";
|
|
771
|
+
readonly API_KEY: "API_KEY";
|
|
772
|
+
readonly BASIC: "BASIC";
|
|
773
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
774
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
775
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
776
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
777
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
778
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
779
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
780
|
+
readonly SAML: "SAML";
|
|
781
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
782
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
783
|
+
}>;
|
|
784
|
+
/** Connection state values - varies by auth scheme */
|
|
785
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
786
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
787
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
788
|
+
authScheme: z.ZodNativeEnum<{
|
|
789
|
+
readonly OAUTH1: "OAUTH1";
|
|
790
|
+
readonly OAUTH2: "OAUTH2";
|
|
791
|
+
readonly API_KEY: "API_KEY";
|
|
792
|
+
readonly BASIC: "BASIC";
|
|
793
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
794
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
795
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
796
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
797
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
798
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
799
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
800
|
+
readonly SAML: "SAML";
|
|
801
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
802
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
803
|
+
}>;
|
|
804
|
+
/** Connection state values - varies by auth scheme */
|
|
805
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
806
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
807
|
+
/** @deprecated - use state instead */
|
|
808
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
809
|
+
/** @deprecated - use state instead */
|
|
810
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
811
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
812
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
813
|
+
/** Whether the connection is disabled */
|
|
814
|
+
is_disabled: z.ZodBoolean;
|
|
815
|
+
/** Endpoint for making test requests */
|
|
816
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
817
|
+
/** @deprecated */
|
|
818
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
820
|
+
uuid: z.ZodString;
|
|
821
|
+
}, "strip", z.ZodTypeAny, {
|
|
822
|
+
uuid: string;
|
|
823
|
+
labels: string[];
|
|
824
|
+
}, {
|
|
825
|
+
uuid: string;
|
|
826
|
+
labels: string[];
|
|
827
|
+
}>>;
|
|
828
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
829
|
+
/** Toolkit information */
|
|
830
|
+
toolkit: z.ZodObject<{
|
|
831
|
+
slug: z.ZodString;
|
|
832
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
833
|
+
slug: z.ZodString;
|
|
834
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
835
|
+
slug: z.ZodString;
|
|
836
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
837
|
+
/** Auth config details */
|
|
838
|
+
auth_config: z.ZodObject<{
|
|
839
|
+
/** The nano ID of the auth config */
|
|
840
|
+
id: z.ZodString;
|
|
841
|
+
/** @deprecated - use state.authScheme instead */
|
|
842
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
843
|
+
readonly OAUTH1: "OAUTH1";
|
|
844
|
+
readonly OAUTH2: "OAUTH2";
|
|
845
|
+
readonly API_KEY: "API_KEY";
|
|
846
|
+
readonly BASIC: "BASIC";
|
|
847
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
848
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
849
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
850
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
851
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
852
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
853
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
854
|
+
readonly SAML: "SAML";
|
|
855
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
856
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
857
|
+
}>;
|
|
858
|
+
/** Whether this auth config is managed by Composio */
|
|
859
|
+
is_composio_managed: z.ZodBoolean;
|
|
860
|
+
/** Whether the auth config is disabled */
|
|
861
|
+
is_disabled: z.ZodBoolean;
|
|
862
|
+
/** @deprecated */
|
|
863
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
864
|
+
uuid: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
uuid: string;
|
|
867
|
+
}, {
|
|
868
|
+
uuid: string;
|
|
869
|
+
}>>;
|
|
870
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
871
|
+
/** The nano ID of the auth config */
|
|
872
|
+
id: z.ZodString;
|
|
873
|
+
/** @deprecated - use state.authScheme instead */
|
|
874
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
875
|
+
readonly OAUTH1: "OAUTH1";
|
|
876
|
+
readonly OAUTH2: "OAUTH2";
|
|
877
|
+
readonly API_KEY: "API_KEY";
|
|
878
|
+
readonly BASIC: "BASIC";
|
|
879
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
880
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
881
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
882
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
883
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
884
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
885
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
886
|
+
readonly SAML: "SAML";
|
|
887
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
888
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
889
|
+
}>;
|
|
890
|
+
/** Whether this auth config is managed by Composio */
|
|
891
|
+
is_composio_managed: z.ZodBoolean;
|
|
892
|
+
/** Whether the auth config is disabled */
|
|
893
|
+
is_disabled: z.ZodBoolean;
|
|
894
|
+
/** @deprecated */
|
|
895
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
896
|
+
uuid: z.ZodString;
|
|
897
|
+
}, "strip", z.ZodTypeAny, {
|
|
898
|
+
uuid: string;
|
|
899
|
+
}, {
|
|
900
|
+
uuid: string;
|
|
901
|
+
}>>;
|
|
902
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
903
|
+
/** The nano ID of the auth config */
|
|
904
|
+
id: z.ZodString;
|
|
905
|
+
/** @deprecated - use state.authScheme instead */
|
|
906
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
907
|
+
readonly OAUTH1: "OAUTH1";
|
|
908
|
+
readonly OAUTH2: "OAUTH2";
|
|
909
|
+
readonly API_KEY: "API_KEY";
|
|
910
|
+
readonly BASIC: "BASIC";
|
|
911
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
912
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
913
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
914
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
915
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
916
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
917
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
918
|
+
readonly SAML: "SAML";
|
|
919
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
920
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
921
|
+
}>;
|
|
922
|
+
/** Whether this auth config is managed by Composio */
|
|
923
|
+
is_composio_managed: z.ZodBoolean;
|
|
924
|
+
/** Whether the auth config is disabled */
|
|
925
|
+
is_disabled: z.ZodBoolean;
|
|
926
|
+
/** @deprecated */
|
|
927
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
uuid: z.ZodString;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
uuid: string;
|
|
931
|
+
}, {
|
|
932
|
+
uuid: string;
|
|
933
|
+
}>>;
|
|
934
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
935
|
+
/** The nano ID of the connected account */
|
|
936
|
+
id: z.ZodString;
|
|
937
|
+
/** @deprecated - user ID of the connection owner */
|
|
938
|
+
user_id: z.ZodString;
|
|
939
|
+
/** Connection status */
|
|
940
|
+
status: z.ZodNativeEnum<{
|
|
941
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
942
|
+
readonly INITIATED: "INITIATED";
|
|
943
|
+
readonly ACTIVE: "ACTIVE";
|
|
944
|
+
readonly FAILED: "FAILED";
|
|
945
|
+
readonly EXPIRED: "EXPIRED";
|
|
946
|
+
readonly INACTIVE: "INACTIVE";
|
|
947
|
+
}>;
|
|
948
|
+
/** ISO-8601 timestamp of creation */
|
|
949
|
+
created_at: z.ZodString;
|
|
950
|
+
/** ISO-8601 timestamp of last update */
|
|
951
|
+
updated_at: z.ZodString;
|
|
952
|
+
/** Connection state data (auth scheme + state values) */
|
|
953
|
+
state: z.ZodObject<{
|
|
954
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
955
|
+
authScheme: z.ZodNativeEnum<{
|
|
956
|
+
readonly OAUTH1: "OAUTH1";
|
|
957
|
+
readonly OAUTH2: "OAUTH2";
|
|
958
|
+
readonly API_KEY: "API_KEY";
|
|
959
|
+
readonly BASIC: "BASIC";
|
|
960
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
961
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
962
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
963
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
964
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
965
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
966
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
967
|
+
readonly SAML: "SAML";
|
|
968
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
969
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
970
|
+
}>;
|
|
971
|
+
/** Connection state values - varies by auth scheme */
|
|
972
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
973
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
974
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
975
|
+
authScheme: z.ZodNativeEnum<{
|
|
976
|
+
readonly OAUTH1: "OAUTH1";
|
|
977
|
+
readonly OAUTH2: "OAUTH2";
|
|
978
|
+
readonly API_KEY: "API_KEY";
|
|
979
|
+
readonly BASIC: "BASIC";
|
|
980
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
981
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
982
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
983
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
984
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
985
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
986
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
987
|
+
readonly SAML: "SAML";
|
|
988
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
989
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
990
|
+
}>;
|
|
991
|
+
/** Connection state values - varies by auth scheme */
|
|
992
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
993
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
994
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
995
|
+
authScheme: z.ZodNativeEnum<{
|
|
996
|
+
readonly OAUTH1: "OAUTH1";
|
|
997
|
+
readonly OAUTH2: "OAUTH2";
|
|
998
|
+
readonly API_KEY: "API_KEY";
|
|
999
|
+
readonly BASIC: "BASIC";
|
|
1000
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1001
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1002
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1003
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1004
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1005
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1006
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1007
|
+
readonly SAML: "SAML";
|
|
1008
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1009
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1010
|
+
}>;
|
|
1011
|
+
/** Connection state values - varies by auth scheme */
|
|
1012
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1013
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1014
|
+
/** @deprecated - use state instead */
|
|
1015
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1016
|
+
/** @deprecated - use state instead */
|
|
1017
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1018
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
1019
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
1020
|
+
/** Whether the connection is disabled */
|
|
1021
|
+
is_disabled: z.ZodBoolean;
|
|
1022
|
+
/** Endpoint for making test requests */
|
|
1023
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
/** @deprecated */
|
|
1025
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1026
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
1027
|
+
uuid: z.ZodString;
|
|
1028
|
+
}, "strip", z.ZodTypeAny, {
|
|
1029
|
+
uuid: string;
|
|
1030
|
+
labels: string[];
|
|
1031
|
+
}, {
|
|
1032
|
+
uuid: string;
|
|
1033
|
+
labels: string[];
|
|
1034
|
+
}>>;
|
|
1035
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1036
|
+
type SingleConnectedAccountDetailedResponse = z.infer<typeof SingleConnectedAccountDetailedResponseSchema>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Webhook metadata for connection events.
|
|
1039
|
+
* Note: This differs from the trigger webhook metadata in WebhookTriggerPayloadV3Schema.
|
|
1040
|
+
*
|
|
1041
|
+
* Uses .passthrough() to accept unknown fields the API may add in the future.
|
|
1042
|
+
*/
|
|
1043
|
+
declare const WebhookConnectionMetadataSchema: z.ZodObject<{
|
|
1044
|
+
/** Project nano ID */
|
|
1045
|
+
project_id: z.ZodString;
|
|
1046
|
+
/** Organization UUID */
|
|
1047
|
+
org_id: z.ZodString;
|
|
1048
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1049
|
+
/** Project nano ID */
|
|
1050
|
+
project_id: z.ZodString;
|
|
1051
|
+
/** Organization UUID */
|
|
1052
|
+
org_id: z.ZodString;
|
|
1053
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1054
|
+
/** Project nano ID */
|
|
1055
|
+
project_id: z.ZodString;
|
|
1056
|
+
/** Organization UUID */
|
|
1057
|
+
org_id: z.ZodString;
|
|
1058
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1059
|
+
type WebhookConnectionMetadata = z.infer<typeof WebhookConnectionMetadataSchema>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Connection expired webhook event payload.
|
|
1062
|
+
* Emitted when a connected account expires due to authentication refresh failure.
|
|
1063
|
+
*
|
|
1064
|
+
* Uses .passthrough() to accept unknown fields the API may add in the future.
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* ```typescript
|
|
1068
|
+
* import { ConnectionExpiredEventSchema } from '@composio/core';
|
|
1069
|
+
*
|
|
1070
|
+
* // In your webhook handler
|
|
1071
|
+
* const result = ConnectionExpiredEventSchema.safeParse(webhookPayload);
|
|
1072
|
+
* if (result.success) {
|
|
1073
|
+
* const { data, metadata } = result.data;
|
|
1074
|
+
* console.log(`Connection ${data.id} expired for user ${data.user_id}`);
|
|
1075
|
+
* console.log(`Toolkit: ${data.toolkit.slug}`);
|
|
1076
|
+
* console.log(`Project: ${metadata.project_id}`);
|
|
1077
|
+
* }
|
|
1078
|
+
* ```
|
|
1079
|
+
*/
|
|
1080
|
+
declare const ConnectionExpiredEventSchema: z.ZodObject<{
|
|
1081
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
1082
|
+
id: z.ZodString;
|
|
1083
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
1084
|
+
timestamp: z.ZodString;
|
|
1085
|
+
/** Event type identifier */
|
|
1086
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
1087
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
1088
|
+
data: z.ZodObject<{
|
|
1089
|
+
/** Toolkit information */
|
|
1090
|
+
toolkit: z.ZodObject<{
|
|
1091
|
+
slug: z.ZodString;
|
|
1092
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1093
|
+
slug: z.ZodString;
|
|
1094
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1095
|
+
slug: z.ZodString;
|
|
1096
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1097
|
+
/** Auth config details */
|
|
1098
|
+
auth_config: z.ZodObject<{
|
|
1099
|
+
/** The nano ID of the auth config */
|
|
1100
|
+
id: z.ZodString;
|
|
1101
|
+
/** @deprecated - use state.authScheme instead */
|
|
1102
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1103
|
+
readonly OAUTH1: "OAUTH1";
|
|
1104
|
+
readonly OAUTH2: "OAUTH2";
|
|
1105
|
+
readonly API_KEY: "API_KEY";
|
|
1106
|
+
readonly BASIC: "BASIC";
|
|
1107
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1108
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1109
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1110
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1111
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1112
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1113
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1114
|
+
readonly SAML: "SAML";
|
|
1115
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1116
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1117
|
+
}>;
|
|
1118
|
+
/** Whether this auth config is managed by Composio */
|
|
1119
|
+
is_composio_managed: z.ZodBoolean;
|
|
1120
|
+
/** Whether the auth config is disabled */
|
|
1121
|
+
is_disabled: z.ZodBoolean;
|
|
1122
|
+
/** @deprecated */
|
|
1123
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1124
|
+
uuid: z.ZodString;
|
|
1125
|
+
}, "strip", z.ZodTypeAny, {
|
|
1126
|
+
uuid: string;
|
|
1127
|
+
}, {
|
|
1128
|
+
uuid: string;
|
|
1129
|
+
}>>;
|
|
1130
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1131
|
+
/** The nano ID of the auth config */
|
|
1132
|
+
id: z.ZodString;
|
|
1133
|
+
/** @deprecated - use state.authScheme instead */
|
|
1134
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1135
|
+
readonly OAUTH1: "OAUTH1";
|
|
1136
|
+
readonly OAUTH2: "OAUTH2";
|
|
1137
|
+
readonly API_KEY: "API_KEY";
|
|
1138
|
+
readonly BASIC: "BASIC";
|
|
1139
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1140
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1141
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1142
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1143
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1144
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1145
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1146
|
+
readonly SAML: "SAML";
|
|
1147
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1148
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1149
|
+
}>;
|
|
1150
|
+
/** Whether this auth config is managed by Composio */
|
|
1151
|
+
is_composio_managed: z.ZodBoolean;
|
|
1152
|
+
/** Whether the auth config is disabled */
|
|
1153
|
+
is_disabled: z.ZodBoolean;
|
|
1154
|
+
/** @deprecated */
|
|
1155
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1156
|
+
uuid: z.ZodString;
|
|
1157
|
+
}, "strip", z.ZodTypeAny, {
|
|
1158
|
+
uuid: string;
|
|
1159
|
+
}, {
|
|
1160
|
+
uuid: string;
|
|
1161
|
+
}>>;
|
|
1162
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1163
|
+
/** The nano ID of the auth config */
|
|
1164
|
+
id: z.ZodString;
|
|
1165
|
+
/** @deprecated - use state.authScheme instead */
|
|
1166
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1167
|
+
readonly OAUTH1: "OAUTH1";
|
|
1168
|
+
readonly OAUTH2: "OAUTH2";
|
|
1169
|
+
readonly API_KEY: "API_KEY";
|
|
1170
|
+
readonly BASIC: "BASIC";
|
|
1171
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1172
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1173
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1174
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1175
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1176
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1177
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1178
|
+
readonly SAML: "SAML";
|
|
1179
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1180
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1181
|
+
}>;
|
|
1182
|
+
/** Whether this auth config is managed by Composio */
|
|
1183
|
+
is_composio_managed: z.ZodBoolean;
|
|
1184
|
+
/** Whether the auth config is disabled */
|
|
1185
|
+
is_disabled: z.ZodBoolean;
|
|
1186
|
+
/** @deprecated */
|
|
1187
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1188
|
+
uuid: z.ZodString;
|
|
1189
|
+
}, "strip", z.ZodTypeAny, {
|
|
1190
|
+
uuid: string;
|
|
1191
|
+
}, {
|
|
1192
|
+
uuid: string;
|
|
1193
|
+
}>>;
|
|
1194
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1195
|
+
/** The nano ID of the connected account */
|
|
1196
|
+
id: z.ZodString;
|
|
1197
|
+
/** @deprecated - user ID of the connection owner */
|
|
1198
|
+
user_id: z.ZodString;
|
|
1199
|
+
/** Connection status */
|
|
1200
|
+
status: z.ZodNativeEnum<{
|
|
1201
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
1202
|
+
readonly INITIATED: "INITIATED";
|
|
1203
|
+
readonly ACTIVE: "ACTIVE";
|
|
1204
|
+
readonly FAILED: "FAILED";
|
|
1205
|
+
readonly EXPIRED: "EXPIRED";
|
|
1206
|
+
readonly INACTIVE: "INACTIVE";
|
|
1207
|
+
}>;
|
|
1208
|
+
/** ISO-8601 timestamp of creation */
|
|
1209
|
+
created_at: z.ZodString;
|
|
1210
|
+
/** ISO-8601 timestamp of last update */
|
|
1211
|
+
updated_at: z.ZodString;
|
|
1212
|
+
/** Connection state data (auth scheme + state values) */
|
|
1213
|
+
state: z.ZodObject<{
|
|
1214
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1215
|
+
authScheme: z.ZodNativeEnum<{
|
|
1216
|
+
readonly OAUTH1: "OAUTH1";
|
|
1217
|
+
readonly OAUTH2: "OAUTH2";
|
|
1218
|
+
readonly API_KEY: "API_KEY";
|
|
1219
|
+
readonly BASIC: "BASIC";
|
|
1220
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1221
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1222
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1223
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1224
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1225
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1226
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1227
|
+
readonly SAML: "SAML";
|
|
1228
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1229
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1230
|
+
}>;
|
|
1231
|
+
/** Connection state values - varies by auth scheme */
|
|
1232
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1233
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1234
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1235
|
+
authScheme: z.ZodNativeEnum<{
|
|
1236
|
+
readonly OAUTH1: "OAUTH1";
|
|
1237
|
+
readonly OAUTH2: "OAUTH2";
|
|
1238
|
+
readonly API_KEY: "API_KEY";
|
|
1239
|
+
readonly BASIC: "BASIC";
|
|
1240
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1241
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1242
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1243
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1244
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1245
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1246
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1247
|
+
readonly SAML: "SAML";
|
|
1248
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1249
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1250
|
+
}>;
|
|
1251
|
+
/** Connection state values - varies by auth scheme */
|
|
1252
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1253
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1254
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1255
|
+
authScheme: z.ZodNativeEnum<{
|
|
1256
|
+
readonly OAUTH1: "OAUTH1";
|
|
1257
|
+
readonly OAUTH2: "OAUTH2";
|
|
1258
|
+
readonly API_KEY: "API_KEY";
|
|
1259
|
+
readonly BASIC: "BASIC";
|
|
1260
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1261
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1262
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1263
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1264
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1265
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1266
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1267
|
+
readonly SAML: "SAML";
|
|
1268
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1269
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1270
|
+
}>;
|
|
1271
|
+
/** Connection state values - varies by auth scheme */
|
|
1272
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1273
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1274
|
+
/** @deprecated - use state instead */
|
|
1275
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1276
|
+
/** @deprecated - use state instead */
|
|
1277
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1278
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
1279
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
/** Whether the connection is disabled */
|
|
1281
|
+
is_disabled: z.ZodBoolean;
|
|
1282
|
+
/** Endpoint for making test requests */
|
|
1283
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
/** @deprecated */
|
|
1285
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1286
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
1287
|
+
uuid: z.ZodString;
|
|
1288
|
+
}, "strip", z.ZodTypeAny, {
|
|
1289
|
+
uuid: string;
|
|
1290
|
+
labels: string[];
|
|
1291
|
+
}, {
|
|
1292
|
+
uuid: string;
|
|
1293
|
+
labels: string[];
|
|
1294
|
+
}>>;
|
|
1295
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1296
|
+
/** Toolkit information */
|
|
1297
|
+
toolkit: z.ZodObject<{
|
|
1298
|
+
slug: z.ZodString;
|
|
1299
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1300
|
+
slug: z.ZodString;
|
|
1301
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1302
|
+
slug: z.ZodString;
|
|
1303
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1304
|
+
/** Auth config details */
|
|
1305
|
+
auth_config: z.ZodObject<{
|
|
1306
|
+
/** The nano ID of the auth config */
|
|
1307
|
+
id: z.ZodString;
|
|
1308
|
+
/** @deprecated - use state.authScheme instead */
|
|
1309
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1310
|
+
readonly OAUTH1: "OAUTH1";
|
|
1311
|
+
readonly OAUTH2: "OAUTH2";
|
|
1312
|
+
readonly API_KEY: "API_KEY";
|
|
1313
|
+
readonly BASIC: "BASIC";
|
|
1314
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1315
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1316
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1317
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1318
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1319
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1320
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1321
|
+
readonly SAML: "SAML";
|
|
1322
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1323
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1324
|
+
}>;
|
|
1325
|
+
/** Whether this auth config is managed by Composio */
|
|
1326
|
+
is_composio_managed: z.ZodBoolean;
|
|
1327
|
+
/** Whether the auth config is disabled */
|
|
1328
|
+
is_disabled: z.ZodBoolean;
|
|
1329
|
+
/** @deprecated */
|
|
1330
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1331
|
+
uuid: z.ZodString;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
uuid: string;
|
|
1334
|
+
}, {
|
|
1335
|
+
uuid: string;
|
|
1336
|
+
}>>;
|
|
1337
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1338
|
+
/** The nano ID of the auth config */
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
/** @deprecated - use state.authScheme instead */
|
|
1341
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1342
|
+
readonly OAUTH1: "OAUTH1";
|
|
1343
|
+
readonly OAUTH2: "OAUTH2";
|
|
1344
|
+
readonly API_KEY: "API_KEY";
|
|
1345
|
+
readonly BASIC: "BASIC";
|
|
1346
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1347
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1348
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1349
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1350
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1351
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1352
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1353
|
+
readonly SAML: "SAML";
|
|
1354
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1355
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1356
|
+
}>;
|
|
1357
|
+
/** Whether this auth config is managed by Composio */
|
|
1358
|
+
is_composio_managed: z.ZodBoolean;
|
|
1359
|
+
/** Whether the auth config is disabled */
|
|
1360
|
+
is_disabled: z.ZodBoolean;
|
|
1361
|
+
/** @deprecated */
|
|
1362
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1363
|
+
uuid: z.ZodString;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
uuid: string;
|
|
1366
|
+
}, {
|
|
1367
|
+
uuid: string;
|
|
1368
|
+
}>>;
|
|
1369
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1370
|
+
/** The nano ID of the auth config */
|
|
1371
|
+
id: z.ZodString;
|
|
1372
|
+
/** @deprecated - use state.authScheme instead */
|
|
1373
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1374
|
+
readonly OAUTH1: "OAUTH1";
|
|
1375
|
+
readonly OAUTH2: "OAUTH2";
|
|
1376
|
+
readonly API_KEY: "API_KEY";
|
|
1377
|
+
readonly BASIC: "BASIC";
|
|
1378
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1379
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1380
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1381
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1382
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1383
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1384
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1385
|
+
readonly SAML: "SAML";
|
|
1386
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1387
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1388
|
+
}>;
|
|
1389
|
+
/** Whether this auth config is managed by Composio */
|
|
1390
|
+
is_composio_managed: z.ZodBoolean;
|
|
1391
|
+
/** Whether the auth config is disabled */
|
|
1392
|
+
is_disabled: z.ZodBoolean;
|
|
1393
|
+
/** @deprecated */
|
|
1394
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1395
|
+
uuid: z.ZodString;
|
|
1396
|
+
}, "strip", z.ZodTypeAny, {
|
|
1397
|
+
uuid: string;
|
|
1398
|
+
}, {
|
|
1399
|
+
uuid: string;
|
|
1400
|
+
}>>;
|
|
1401
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1402
|
+
/** The nano ID of the connected account */
|
|
1403
|
+
id: z.ZodString;
|
|
1404
|
+
/** @deprecated - user ID of the connection owner */
|
|
1405
|
+
user_id: z.ZodString;
|
|
1406
|
+
/** Connection status */
|
|
1407
|
+
status: z.ZodNativeEnum<{
|
|
1408
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
1409
|
+
readonly INITIATED: "INITIATED";
|
|
1410
|
+
readonly ACTIVE: "ACTIVE";
|
|
1411
|
+
readonly FAILED: "FAILED";
|
|
1412
|
+
readonly EXPIRED: "EXPIRED";
|
|
1413
|
+
readonly INACTIVE: "INACTIVE";
|
|
1414
|
+
}>;
|
|
1415
|
+
/** ISO-8601 timestamp of creation */
|
|
1416
|
+
created_at: z.ZodString;
|
|
1417
|
+
/** ISO-8601 timestamp of last update */
|
|
1418
|
+
updated_at: z.ZodString;
|
|
1419
|
+
/** Connection state data (auth scheme + state values) */
|
|
1420
|
+
state: z.ZodObject<{
|
|
1421
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1422
|
+
authScheme: z.ZodNativeEnum<{
|
|
1423
|
+
readonly OAUTH1: "OAUTH1";
|
|
1424
|
+
readonly OAUTH2: "OAUTH2";
|
|
1425
|
+
readonly API_KEY: "API_KEY";
|
|
1426
|
+
readonly BASIC: "BASIC";
|
|
1427
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1428
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1429
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1430
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1431
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1432
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1433
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1434
|
+
readonly SAML: "SAML";
|
|
1435
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1436
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1437
|
+
}>;
|
|
1438
|
+
/** Connection state values - varies by auth scheme */
|
|
1439
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1440
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1441
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1442
|
+
authScheme: z.ZodNativeEnum<{
|
|
1443
|
+
readonly OAUTH1: "OAUTH1";
|
|
1444
|
+
readonly OAUTH2: "OAUTH2";
|
|
1445
|
+
readonly API_KEY: "API_KEY";
|
|
1446
|
+
readonly BASIC: "BASIC";
|
|
1447
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1448
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1449
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1450
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1451
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1452
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1453
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1454
|
+
readonly SAML: "SAML";
|
|
1455
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1456
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1457
|
+
}>;
|
|
1458
|
+
/** Connection state values - varies by auth scheme */
|
|
1459
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1460
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1461
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1462
|
+
authScheme: z.ZodNativeEnum<{
|
|
1463
|
+
readonly OAUTH1: "OAUTH1";
|
|
1464
|
+
readonly OAUTH2: "OAUTH2";
|
|
1465
|
+
readonly API_KEY: "API_KEY";
|
|
1466
|
+
readonly BASIC: "BASIC";
|
|
1467
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1468
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1469
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1470
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1471
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1472
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1473
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1474
|
+
readonly SAML: "SAML";
|
|
1475
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1476
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1477
|
+
}>;
|
|
1478
|
+
/** Connection state values - varies by auth scheme */
|
|
1479
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1480
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1481
|
+
/** @deprecated - use state instead */
|
|
1482
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1483
|
+
/** @deprecated - use state instead */
|
|
1484
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1485
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
1486
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
1487
|
+
/** Whether the connection is disabled */
|
|
1488
|
+
is_disabled: z.ZodBoolean;
|
|
1489
|
+
/** Endpoint for making test requests */
|
|
1490
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
1491
|
+
/** @deprecated */
|
|
1492
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
1494
|
+
uuid: z.ZodString;
|
|
1495
|
+
}, "strip", z.ZodTypeAny, {
|
|
1496
|
+
uuid: string;
|
|
1497
|
+
labels: string[];
|
|
1498
|
+
}, {
|
|
1499
|
+
uuid: string;
|
|
1500
|
+
labels: string[];
|
|
1501
|
+
}>>;
|
|
1502
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1503
|
+
/** Toolkit information */
|
|
1504
|
+
toolkit: z.ZodObject<{
|
|
1505
|
+
slug: z.ZodString;
|
|
1506
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1507
|
+
slug: z.ZodString;
|
|
1508
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1509
|
+
slug: z.ZodString;
|
|
1510
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1511
|
+
/** Auth config details */
|
|
1512
|
+
auth_config: z.ZodObject<{
|
|
1513
|
+
/** The nano ID of the auth config */
|
|
1514
|
+
id: z.ZodString;
|
|
1515
|
+
/** @deprecated - use state.authScheme instead */
|
|
1516
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1517
|
+
readonly OAUTH1: "OAUTH1";
|
|
1518
|
+
readonly OAUTH2: "OAUTH2";
|
|
1519
|
+
readonly API_KEY: "API_KEY";
|
|
1520
|
+
readonly BASIC: "BASIC";
|
|
1521
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1522
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1523
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1524
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1525
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1526
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1527
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1528
|
+
readonly SAML: "SAML";
|
|
1529
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1530
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1531
|
+
}>;
|
|
1532
|
+
/** Whether this auth config is managed by Composio */
|
|
1533
|
+
is_composio_managed: z.ZodBoolean;
|
|
1534
|
+
/** Whether the auth config is disabled */
|
|
1535
|
+
is_disabled: z.ZodBoolean;
|
|
1536
|
+
/** @deprecated */
|
|
1537
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1538
|
+
uuid: z.ZodString;
|
|
1539
|
+
}, "strip", z.ZodTypeAny, {
|
|
1540
|
+
uuid: string;
|
|
1541
|
+
}, {
|
|
1542
|
+
uuid: string;
|
|
1543
|
+
}>>;
|
|
1544
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1545
|
+
/** The nano ID of the auth config */
|
|
1546
|
+
id: z.ZodString;
|
|
1547
|
+
/** @deprecated - use state.authScheme instead */
|
|
1548
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1549
|
+
readonly OAUTH1: "OAUTH1";
|
|
1550
|
+
readonly OAUTH2: "OAUTH2";
|
|
1551
|
+
readonly API_KEY: "API_KEY";
|
|
1552
|
+
readonly BASIC: "BASIC";
|
|
1553
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1554
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1555
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1556
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1557
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1558
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1559
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1560
|
+
readonly SAML: "SAML";
|
|
1561
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1562
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1563
|
+
}>;
|
|
1564
|
+
/** Whether this auth config is managed by Composio */
|
|
1565
|
+
is_composio_managed: z.ZodBoolean;
|
|
1566
|
+
/** Whether the auth config is disabled */
|
|
1567
|
+
is_disabled: z.ZodBoolean;
|
|
1568
|
+
/** @deprecated */
|
|
1569
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1570
|
+
uuid: z.ZodString;
|
|
1571
|
+
}, "strip", z.ZodTypeAny, {
|
|
1572
|
+
uuid: string;
|
|
1573
|
+
}, {
|
|
1574
|
+
uuid: string;
|
|
1575
|
+
}>>;
|
|
1576
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1577
|
+
/** The nano ID of the auth config */
|
|
1578
|
+
id: z.ZodString;
|
|
1579
|
+
/** @deprecated - use state.authScheme instead */
|
|
1580
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1581
|
+
readonly OAUTH1: "OAUTH1";
|
|
1582
|
+
readonly OAUTH2: "OAUTH2";
|
|
1583
|
+
readonly API_KEY: "API_KEY";
|
|
1584
|
+
readonly BASIC: "BASIC";
|
|
1585
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1586
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1587
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1588
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1589
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1590
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1591
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1592
|
+
readonly SAML: "SAML";
|
|
1593
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1594
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1595
|
+
}>;
|
|
1596
|
+
/** Whether this auth config is managed by Composio */
|
|
1597
|
+
is_composio_managed: z.ZodBoolean;
|
|
1598
|
+
/** Whether the auth config is disabled */
|
|
1599
|
+
is_disabled: z.ZodBoolean;
|
|
1600
|
+
/** @deprecated */
|
|
1601
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1602
|
+
uuid: z.ZodString;
|
|
1603
|
+
}, "strip", z.ZodTypeAny, {
|
|
1604
|
+
uuid: string;
|
|
1605
|
+
}, {
|
|
1606
|
+
uuid: string;
|
|
1607
|
+
}>>;
|
|
1608
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1609
|
+
/** The nano ID of the connected account */
|
|
1610
|
+
id: z.ZodString;
|
|
1611
|
+
/** @deprecated - user ID of the connection owner */
|
|
1612
|
+
user_id: z.ZodString;
|
|
1613
|
+
/** Connection status */
|
|
1614
|
+
status: z.ZodNativeEnum<{
|
|
1615
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
1616
|
+
readonly INITIATED: "INITIATED";
|
|
1617
|
+
readonly ACTIVE: "ACTIVE";
|
|
1618
|
+
readonly FAILED: "FAILED";
|
|
1619
|
+
readonly EXPIRED: "EXPIRED";
|
|
1620
|
+
readonly INACTIVE: "INACTIVE";
|
|
1621
|
+
}>;
|
|
1622
|
+
/** ISO-8601 timestamp of creation */
|
|
1623
|
+
created_at: z.ZodString;
|
|
1624
|
+
/** ISO-8601 timestamp of last update */
|
|
1625
|
+
updated_at: z.ZodString;
|
|
1626
|
+
/** Connection state data (auth scheme + state values) */
|
|
1627
|
+
state: z.ZodObject<{
|
|
1628
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1629
|
+
authScheme: z.ZodNativeEnum<{
|
|
1630
|
+
readonly OAUTH1: "OAUTH1";
|
|
1631
|
+
readonly OAUTH2: "OAUTH2";
|
|
1632
|
+
readonly API_KEY: "API_KEY";
|
|
1633
|
+
readonly BASIC: "BASIC";
|
|
1634
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1635
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1636
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1637
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1638
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1639
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1640
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1641
|
+
readonly SAML: "SAML";
|
|
1642
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1643
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1644
|
+
}>;
|
|
1645
|
+
/** Connection state values - varies by auth scheme */
|
|
1646
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1647
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1648
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1649
|
+
authScheme: z.ZodNativeEnum<{
|
|
1650
|
+
readonly OAUTH1: "OAUTH1";
|
|
1651
|
+
readonly OAUTH2: "OAUTH2";
|
|
1652
|
+
readonly API_KEY: "API_KEY";
|
|
1653
|
+
readonly BASIC: "BASIC";
|
|
1654
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1655
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1656
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1657
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1658
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1659
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1660
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1661
|
+
readonly SAML: "SAML";
|
|
1662
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1663
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1664
|
+
}>;
|
|
1665
|
+
/** Connection state values - varies by auth scheme */
|
|
1666
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1667
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1668
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1669
|
+
authScheme: z.ZodNativeEnum<{
|
|
1670
|
+
readonly OAUTH1: "OAUTH1";
|
|
1671
|
+
readonly OAUTH2: "OAUTH2";
|
|
1672
|
+
readonly API_KEY: "API_KEY";
|
|
1673
|
+
readonly BASIC: "BASIC";
|
|
1674
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1675
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1676
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1677
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1678
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1679
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1680
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1681
|
+
readonly SAML: "SAML";
|
|
1682
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1683
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1684
|
+
}>;
|
|
1685
|
+
/** Connection state values - varies by auth scheme */
|
|
1686
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1687
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1688
|
+
/** @deprecated - use state instead */
|
|
1689
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1690
|
+
/** @deprecated - use state instead */
|
|
1691
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1692
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
1693
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
/** Whether the connection is disabled */
|
|
1695
|
+
is_disabled: z.ZodBoolean;
|
|
1696
|
+
/** Endpoint for making test requests */
|
|
1697
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
/** @deprecated */
|
|
1699
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1700
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
1701
|
+
uuid: z.ZodString;
|
|
1702
|
+
}, "strip", z.ZodTypeAny, {
|
|
1703
|
+
uuid: string;
|
|
1704
|
+
labels: string[];
|
|
1705
|
+
}, {
|
|
1706
|
+
uuid: string;
|
|
1707
|
+
labels: string[];
|
|
1708
|
+
}>>;
|
|
1709
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1710
|
+
/** Event metadata */
|
|
1711
|
+
metadata: z.ZodObject<{
|
|
1712
|
+
/** Project nano ID */
|
|
1713
|
+
project_id: z.ZodString;
|
|
1714
|
+
/** Organization UUID */
|
|
1715
|
+
org_id: z.ZodString;
|
|
1716
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1717
|
+
/** Project nano ID */
|
|
1718
|
+
project_id: z.ZodString;
|
|
1719
|
+
/** Organization UUID */
|
|
1720
|
+
org_id: z.ZodString;
|
|
1721
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1722
|
+
/** Project nano ID */
|
|
1723
|
+
project_id: z.ZodString;
|
|
1724
|
+
/** Organization UUID */
|
|
1725
|
+
org_id: z.ZodString;
|
|
1726
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1727
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1728
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
1729
|
+
id: z.ZodString;
|
|
1730
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
1731
|
+
timestamp: z.ZodString;
|
|
1732
|
+
/** Event type identifier */
|
|
1733
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
1734
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
1735
|
+
data: z.ZodObject<{
|
|
1736
|
+
/** Toolkit information */
|
|
1737
|
+
toolkit: z.ZodObject<{
|
|
1738
|
+
slug: z.ZodString;
|
|
1739
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1740
|
+
slug: z.ZodString;
|
|
1741
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1742
|
+
slug: z.ZodString;
|
|
1743
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1744
|
+
/** Auth config details */
|
|
1745
|
+
auth_config: z.ZodObject<{
|
|
1746
|
+
/** The nano ID of the auth config */
|
|
1747
|
+
id: z.ZodString;
|
|
1748
|
+
/** @deprecated - use state.authScheme instead */
|
|
1749
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1750
|
+
readonly OAUTH1: "OAUTH1";
|
|
1751
|
+
readonly OAUTH2: "OAUTH2";
|
|
1752
|
+
readonly API_KEY: "API_KEY";
|
|
1753
|
+
readonly BASIC: "BASIC";
|
|
1754
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1755
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1756
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1757
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1758
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1759
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1760
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1761
|
+
readonly SAML: "SAML";
|
|
1762
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1763
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1764
|
+
}>;
|
|
1765
|
+
/** Whether this auth config is managed by Composio */
|
|
1766
|
+
is_composio_managed: z.ZodBoolean;
|
|
1767
|
+
/** Whether the auth config is disabled */
|
|
1768
|
+
is_disabled: z.ZodBoolean;
|
|
1769
|
+
/** @deprecated */
|
|
1770
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1771
|
+
uuid: z.ZodString;
|
|
1772
|
+
}, "strip", z.ZodTypeAny, {
|
|
1773
|
+
uuid: string;
|
|
1774
|
+
}, {
|
|
1775
|
+
uuid: string;
|
|
1776
|
+
}>>;
|
|
1777
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1778
|
+
/** The nano ID of the auth config */
|
|
1779
|
+
id: z.ZodString;
|
|
1780
|
+
/** @deprecated - use state.authScheme instead */
|
|
1781
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1782
|
+
readonly OAUTH1: "OAUTH1";
|
|
1783
|
+
readonly OAUTH2: "OAUTH2";
|
|
1784
|
+
readonly API_KEY: "API_KEY";
|
|
1785
|
+
readonly BASIC: "BASIC";
|
|
1786
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1787
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1788
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1789
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1790
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1791
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1792
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1793
|
+
readonly SAML: "SAML";
|
|
1794
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1795
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1796
|
+
}>;
|
|
1797
|
+
/** Whether this auth config is managed by Composio */
|
|
1798
|
+
is_composio_managed: z.ZodBoolean;
|
|
1799
|
+
/** Whether the auth config is disabled */
|
|
1800
|
+
is_disabled: z.ZodBoolean;
|
|
1801
|
+
/** @deprecated */
|
|
1802
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1803
|
+
uuid: z.ZodString;
|
|
1804
|
+
}, "strip", z.ZodTypeAny, {
|
|
1805
|
+
uuid: string;
|
|
1806
|
+
}, {
|
|
1807
|
+
uuid: string;
|
|
1808
|
+
}>>;
|
|
1809
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1810
|
+
/** The nano ID of the auth config */
|
|
1811
|
+
id: z.ZodString;
|
|
1812
|
+
/** @deprecated - use state.authScheme instead */
|
|
1813
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1814
|
+
readonly OAUTH1: "OAUTH1";
|
|
1815
|
+
readonly OAUTH2: "OAUTH2";
|
|
1816
|
+
readonly API_KEY: "API_KEY";
|
|
1817
|
+
readonly BASIC: "BASIC";
|
|
1818
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1819
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1820
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1821
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1822
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1823
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1824
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1825
|
+
readonly SAML: "SAML";
|
|
1826
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1827
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1828
|
+
}>;
|
|
1829
|
+
/** Whether this auth config is managed by Composio */
|
|
1830
|
+
is_composio_managed: z.ZodBoolean;
|
|
1831
|
+
/** Whether the auth config is disabled */
|
|
1832
|
+
is_disabled: z.ZodBoolean;
|
|
1833
|
+
/** @deprecated */
|
|
1834
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1835
|
+
uuid: z.ZodString;
|
|
1836
|
+
}, "strip", z.ZodTypeAny, {
|
|
1837
|
+
uuid: string;
|
|
1838
|
+
}, {
|
|
1839
|
+
uuid: string;
|
|
1840
|
+
}>>;
|
|
1841
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1842
|
+
/** The nano ID of the connected account */
|
|
1843
|
+
id: z.ZodString;
|
|
1844
|
+
/** @deprecated - user ID of the connection owner */
|
|
1845
|
+
user_id: z.ZodString;
|
|
1846
|
+
/** Connection status */
|
|
1847
|
+
status: z.ZodNativeEnum<{
|
|
1848
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
1849
|
+
readonly INITIATED: "INITIATED";
|
|
1850
|
+
readonly ACTIVE: "ACTIVE";
|
|
1851
|
+
readonly FAILED: "FAILED";
|
|
1852
|
+
readonly EXPIRED: "EXPIRED";
|
|
1853
|
+
readonly INACTIVE: "INACTIVE";
|
|
1854
|
+
}>;
|
|
1855
|
+
/** ISO-8601 timestamp of creation */
|
|
1856
|
+
created_at: z.ZodString;
|
|
1857
|
+
/** ISO-8601 timestamp of last update */
|
|
1858
|
+
updated_at: z.ZodString;
|
|
1859
|
+
/** Connection state data (auth scheme + state values) */
|
|
1860
|
+
state: z.ZodObject<{
|
|
1861
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1862
|
+
authScheme: z.ZodNativeEnum<{
|
|
1863
|
+
readonly OAUTH1: "OAUTH1";
|
|
1864
|
+
readonly OAUTH2: "OAUTH2";
|
|
1865
|
+
readonly API_KEY: "API_KEY";
|
|
1866
|
+
readonly BASIC: "BASIC";
|
|
1867
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1868
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1869
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1870
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1871
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1872
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1873
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1874
|
+
readonly SAML: "SAML";
|
|
1875
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1876
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1877
|
+
}>;
|
|
1878
|
+
/** Connection state values - varies by auth scheme */
|
|
1879
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1880
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1881
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1882
|
+
authScheme: z.ZodNativeEnum<{
|
|
1883
|
+
readonly OAUTH1: "OAUTH1";
|
|
1884
|
+
readonly OAUTH2: "OAUTH2";
|
|
1885
|
+
readonly API_KEY: "API_KEY";
|
|
1886
|
+
readonly BASIC: "BASIC";
|
|
1887
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1888
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1889
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1890
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1891
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1892
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1893
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1894
|
+
readonly SAML: "SAML";
|
|
1895
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1896
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1897
|
+
}>;
|
|
1898
|
+
/** Connection state values - varies by auth scheme */
|
|
1899
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1900
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1901
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
1902
|
+
authScheme: z.ZodNativeEnum<{
|
|
1903
|
+
readonly OAUTH1: "OAUTH1";
|
|
1904
|
+
readonly OAUTH2: "OAUTH2";
|
|
1905
|
+
readonly API_KEY: "API_KEY";
|
|
1906
|
+
readonly BASIC: "BASIC";
|
|
1907
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1908
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1909
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1910
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1911
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1912
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1913
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1914
|
+
readonly SAML: "SAML";
|
|
1915
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1916
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1917
|
+
}>;
|
|
1918
|
+
/** Connection state values - varies by auth scheme */
|
|
1919
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1920
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1921
|
+
/** @deprecated - use state instead */
|
|
1922
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1923
|
+
/** @deprecated - use state instead */
|
|
1924
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1925
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
1926
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
1927
|
+
/** Whether the connection is disabled */
|
|
1928
|
+
is_disabled: z.ZodBoolean;
|
|
1929
|
+
/** Endpoint for making test requests */
|
|
1930
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
/** @deprecated */
|
|
1932
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1933
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
1934
|
+
uuid: z.ZodString;
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
uuid: string;
|
|
1937
|
+
labels: string[];
|
|
1938
|
+
}, {
|
|
1939
|
+
uuid: string;
|
|
1940
|
+
labels: string[];
|
|
1941
|
+
}>>;
|
|
1942
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1943
|
+
/** Toolkit information */
|
|
1944
|
+
toolkit: z.ZodObject<{
|
|
1945
|
+
slug: z.ZodString;
|
|
1946
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1947
|
+
slug: z.ZodString;
|
|
1948
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1949
|
+
slug: z.ZodString;
|
|
1950
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1951
|
+
/** Auth config details */
|
|
1952
|
+
auth_config: z.ZodObject<{
|
|
1953
|
+
/** The nano ID of the auth config */
|
|
1954
|
+
id: z.ZodString;
|
|
1955
|
+
/** @deprecated - use state.authScheme instead */
|
|
1956
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1957
|
+
readonly OAUTH1: "OAUTH1";
|
|
1958
|
+
readonly OAUTH2: "OAUTH2";
|
|
1959
|
+
readonly API_KEY: "API_KEY";
|
|
1960
|
+
readonly BASIC: "BASIC";
|
|
1961
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1962
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1963
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1964
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1965
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1966
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1967
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
1968
|
+
readonly SAML: "SAML";
|
|
1969
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
1970
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
1971
|
+
}>;
|
|
1972
|
+
/** Whether this auth config is managed by Composio */
|
|
1973
|
+
is_composio_managed: z.ZodBoolean;
|
|
1974
|
+
/** Whether the auth config is disabled */
|
|
1975
|
+
is_disabled: z.ZodBoolean;
|
|
1976
|
+
/** @deprecated */
|
|
1977
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
1978
|
+
uuid: z.ZodString;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
|
+
uuid: string;
|
|
1981
|
+
}, {
|
|
1982
|
+
uuid: string;
|
|
1983
|
+
}>>;
|
|
1984
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1985
|
+
/** The nano ID of the auth config */
|
|
1986
|
+
id: z.ZodString;
|
|
1987
|
+
/** @deprecated - use state.authScheme instead */
|
|
1988
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
1989
|
+
readonly OAUTH1: "OAUTH1";
|
|
1990
|
+
readonly OAUTH2: "OAUTH2";
|
|
1991
|
+
readonly API_KEY: "API_KEY";
|
|
1992
|
+
readonly BASIC: "BASIC";
|
|
1993
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
1994
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
1995
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
1996
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
1997
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
1998
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
1999
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2000
|
+
readonly SAML: "SAML";
|
|
2001
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2002
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2003
|
+
}>;
|
|
2004
|
+
/** Whether this auth config is managed by Composio */
|
|
2005
|
+
is_composio_managed: z.ZodBoolean;
|
|
2006
|
+
/** Whether the auth config is disabled */
|
|
2007
|
+
is_disabled: z.ZodBoolean;
|
|
2008
|
+
/** @deprecated */
|
|
2009
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2010
|
+
uuid: z.ZodString;
|
|
2011
|
+
}, "strip", z.ZodTypeAny, {
|
|
2012
|
+
uuid: string;
|
|
2013
|
+
}, {
|
|
2014
|
+
uuid: string;
|
|
2015
|
+
}>>;
|
|
2016
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2017
|
+
/** The nano ID of the auth config */
|
|
2018
|
+
id: z.ZodString;
|
|
2019
|
+
/** @deprecated - use state.authScheme instead */
|
|
2020
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2021
|
+
readonly OAUTH1: "OAUTH1";
|
|
2022
|
+
readonly OAUTH2: "OAUTH2";
|
|
2023
|
+
readonly API_KEY: "API_KEY";
|
|
2024
|
+
readonly BASIC: "BASIC";
|
|
2025
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2026
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2027
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2028
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2029
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2030
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2031
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2032
|
+
readonly SAML: "SAML";
|
|
2033
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2034
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2035
|
+
}>;
|
|
2036
|
+
/** Whether this auth config is managed by Composio */
|
|
2037
|
+
is_composio_managed: z.ZodBoolean;
|
|
2038
|
+
/** Whether the auth config is disabled */
|
|
2039
|
+
is_disabled: z.ZodBoolean;
|
|
2040
|
+
/** @deprecated */
|
|
2041
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2042
|
+
uuid: z.ZodString;
|
|
2043
|
+
}, "strip", z.ZodTypeAny, {
|
|
2044
|
+
uuid: string;
|
|
2045
|
+
}, {
|
|
2046
|
+
uuid: string;
|
|
2047
|
+
}>>;
|
|
2048
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2049
|
+
/** The nano ID of the connected account */
|
|
2050
|
+
id: z.ZodString;
|
|
2051
|
+
/** @deprecated - user ID of the connection owner */
|
|
2052
|
+
user_id: z.ZodString;
|
|
2053
|
+
/** Connection status */
|
|
2054
|
+
status: z.ZodNativeEnum<{
|
|
2055
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
2056
|
+
readonly INITIATED: "INITIATED";
|
|
2057
|
+
readonly ACTIVE: "ACTIVE";
|
|
2058
|
+
readonly FAILED: "FAILED";
|
|
2059
|
+
readonly EXPIRED: "EXPIRED";
|
|
2060
|
+
readonly INACTIVE: "INACTIVE";
|
|
2061
|
+
}>;
|
|
2062
|
+
/** ISO-8601 timestamp of creation */
|
|
2063
|
+
created_at: z.ZodString;
|
|
2064
|
+
/** ISO-8601 timestamp of last update */
|
|
2065
|
+
updated_at: z.ZodString;
|
|
2066
|
+
/** Connection state data (auth scheme + state values) */
|
|
2067
|
+
state: z.ZodObject<{
|
|
2068
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2069
|
+
authScheme: z.ZodNativeEnum<{
|
|
2070
|
+
readonly OAUTH1: "OAUTH1";
|
|
2071
|
+
readonly OAUTH2: "OAUTH2";
|
|
2072
|
+
readonly API_KEY: "API_KEY";
|
|
2073
|
+
readonly BASIC: "BASIC";
|
|
2074
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2075
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2076
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2077
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2078
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2079
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2080
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2081
|
+
readonly SAML: "SAML";
|
|
2082
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2083
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2084
|
+
}>;
|
|
2085
|
+
/** Connection state values - varies by auth scheme */
|
|
2086
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2087
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2088
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2089
|
+
authScheme: z.ZodNativeEnum<{
|
|
2090
|
+
readonly OAUTH1: "OAUTH1";
|
|
2091
|
+
readonly OAUTH2: "OAUTH2";
|
|
2092
|
+
readonly API_KEY: "API_KEY";
|
|
2093
|
+
readonly BASIC: "BASIC";
|
|
2094
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2095
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2096
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2097
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2098
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2099
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2100
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2101
|
+
readonly SAML: "SAML";
|
|
2102
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2103
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2104
|
+
}>;
|
|
2105
|
+
/** Connection state values - varies by auth scheme */
|
|
2106
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2107
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2108
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2109
|
+
authScheme: z.ZodNativeEnum<{
|
|
2110
|
+
readonly OAUTH1: "OAUTH1";
|
|
2111
|
+
readonly OAUTH2: "OAUTH2";
|
|
2112
|
+
readonly API_KEY: "API_KEY";
|
|
2113
|
+
readonly BASIC: "BASIC";
|
|
2114
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2115
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2116
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2117
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2118
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2119
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2120
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2121
|
+
readonly SAML: "SAML";
|
|
2122
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2123
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2124
|
+
}>;
|
|
2125
|
+
/** Connection state values - varies by auth scheme */
|
|
2126
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2127
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2128
|
+
/** @deprecated - use state instead */
|
|
2129
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2130
|
+
/** @deprecated - use state instead */
|
|
2131
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2132
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
2133
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
2134
|
+
/** Whether the connection is disabled */
|
|
2135
|
+
is_disabled: z.ZodBoolean;
|
|
2136
|
+
/** Endpoint for making test requests */
|
|
2137
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
/** @deprecated */
|
|
2139
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
2141
|
+
uuid: z.ZodString;
|
|
2142
|
+
}, "strip", z.ZodTypeAny, {
|
|
2143
|
+
uuid: string;
|
|
2144
|
+
labels: string[];
|
|
2145
|
+
}, {
|
|
2146
|
+
uuid: string;
|
|
2147
|
+
labels: string[];
|
|
2148
|
+
}>>;
|
|
2149
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2150
|
+
/** Toolkit information */
|
|
2151
|
+
toolkit: z.ZodObject<{
|
|
2152
|
+
slug: z.ZodString;
|
|
2153
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2154
|
+
slug: z.ZodString;
|
|
2155
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2156
|
+
slug: z.ZodString;
|
|
2157
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2158
|
+
/** Auth config details */
|
|
2159
|
+
auth_config: z.ZodObject<{
|
|
2160
|
+
/** The nano ID of the auth config */
|
|
2161
|
+
id: z.ZodString;
|
|
2162
|
+
/** @deprecated - use state.authScheme instead */
|
|
2163
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2164
|
+
readonly OAUTH1: "OAUTH1";
|
|
2165
|
+
readonly OAUTH2: "OAUTH2";
|
|
2166
|
+
readonly API_KEY: "API_KEY";
|
|
2167
|
+
readonly BASIC: "BASIC";
|
|
2168
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2169
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2170
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2171
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2172
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2173
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2174
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2175
|
+
readonly SAML: "SAML";
|
|
2176
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2177
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2178
|
+
}>;
|
|
2179
|
+
/** Whether this auth config is managed by Composio */
|
|
2180
|
+
is_composio_managed: z.ZodBoolean;
|
|
2181
|
+
/** Whether the auth config is disabled */
|
|
2182
|
+
is_disabled: z.ZodBoolean;
|
|
2183
|
+
/** @deprecated */
|
|
2184
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2185
|
+
uuid: z.ZodString;
|
|
2186
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
|
+
uuid: string;
|
|
2188
|
+
}, {
|
|
2189
|
+
uuid: string;
|
|
2190
|
+
}>>;
|
|
2191
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2192
|
+
/** The nano ID of the auth config */
|
|
2193
|
+
id: z.ZodString;
|
|
2194
|
+
/** @deprecated - use state.authScheme instead */
|
|
2195
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2196
|
+
readonly OAUTH1: "OAUTH1";
|
|
2197
|
+
readonly OAUTH2: "OAUTH2";
|
|
2198
|
+
readonly API_KEY: "API_KEY";
|
|
2199
|
+
readonly BASIC: "BASIC";
|
|
2200
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2201
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2202
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2203
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2204
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2205
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2206
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2207
|
+
readonly SAML: "SAML";
|
|
2208
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2209
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2210
|
+
}>;
|
|
2211
|
+
/** Whether this auth config is managed by Composio */
|
|
2212
|
+
is_composio_managed: z.ZodBoolean;
|
|
2213
|
+
/** Whether the auth config is disabled */
|
|
2214
|
+
is_disabled: z.ZodBoolean;
|
|
2215
|
+
/** @deprecated */
|
|
2216
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2217
|
+
uuid: z.ZodString;
|
|
2218
|
+
}, "strip", z.ZodTypeAny, {
|
|
2219
|
+
uuid: string;
|
|
2220
|
+
}, {
|
|
2221
|
+
uuid: string;
|
|
2222
|
+
}>>;
|
|
2223
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2224
|
+
/** The nano ID of the auth config */
|
|
2225
|
+
id: z.ZodString;
|
|
2226
|
+
/** @deprecated - use state.authScheme instead */
|
|
2227
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2228
|
+
readonly OAUTH1: "OAUTH1";
|
|
2229
|
+
readonly OAUTH2: "OAUTH2";
|
|
2230
|
+
readonly API_KEY: "API_KEY";
|
|
2231
|
+
readonly BASIC: "BASIC";
|
|
2232
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2233
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2234
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2235
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2236
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2237
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2238
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2239
|
+
readonly SAML: "SAML";
|
|
2240
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2241
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2242
|
+
}>;
|
|
2243
|
+
/** Whether this auth config is managed by Composio */
|
|
2244
|
+
is_composio_managed: z.ZodBoolean;
|
|
2245
|
+
/** Whether the auth config is disabled */
|
|
2246
|
+
is_disabled: z.ZodBoolean;
|
|
2247
|
+
/** @deprecated */
|
|
2248
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
uuid: z.ZodString;
|
|
2250
|
+
}, "strip", z.ZodTypeAny, {
|
|
2251
|
+
uuid: string;
|
|
2252
|
+
}, {
|
|
2253
|
+
uuid: string;
|
|
2254
|
+
}>>;
|
|
2255
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2256
|
+
/** The nano ID of the connected account */
|
|
2257
|
+
id: z.ZodString;
|
|
2258
|
+
/** @deprecated - user ID of the connection owner */
|
|
2259
|
+
user_id: z.ZodString;
|
|
2260
|
+
/** Connection status */
|
|
2261
|
+
status: z.ZodNativeEnum<{
|
|
2262
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
2263
|
+
readonly INITIATED: "INITIATED";
|
|
2264
|
+
readonly ACTIVE: "ACTIVE";
|
|
2265
|
+
readonly FAILED: "FAILED";
|
|
2266
|
+
readonly EXPIRED: "EXPIRED";
|
|
2267
|
+
readonly INACTIVE: "INACTIVE";
|
|
2268
|
+
}>;
|
|
2269
|
+
/** ISO-8601 timestamp of creation */
|
|
2270
|
+
created_at: z.ZodString;
|
|
2271
|
+
/** ISO-8601 timestamp of last update */
|
|
2272
|
+
updated_at: z.ZodString;
|
|
2273
|
+
/** Connection state data (auth scheme + state values) */
|
|
2274
|
+
state: z.ZodObject<{
|
|
2275
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2276
|
+
authScheme: z.ZodNativeEnum<{
|
|
2277
|
+
readonly OAUTH1: "OAUTH1";
|
|
2278
|
+
readonly OAUTH2: "OAUTH2";
|
|
2279
|
+
readonly API_KEY: "API_KEY";
|
|
2280
|
+
readonly BASIC: "BASIC";
|
|
2281
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2282
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2283
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2284
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2285
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2286
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2287
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2288
|
+
readonly SAML: "SAML";
|
|
2289
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2290
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2291
|
+
}>;
|
|
2292
|
+
/** Connection state values - varies by auth scheme */
|
|
2293
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2294
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2295
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2296
|
+
authScheme: z.ZodNativeEnum<{
|
|
2297
|
+
readonly OAUTH1: "OAUTH1";
|
|
2298
|
+
readonly OAUTH2: "OAUTH2";
|
|
2299
|
+
readonly API_KEY: "API_KEY";
|
|
2300
|
+
readonly BASIC: "BASIC";
|
|
2301
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2302
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2303
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2304
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2305
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2306
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2307
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2308
|
+
readonly SAML: "SAML";
|
|
2309
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2310
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2311
|
+
}>;
|
|
2312
|
+
/** Connection state values - varies by auth scheme */
|
|
2313
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2314
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2315
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2316
|
+
authScheme: z.ZodNativeEnum<{
|
|
2317
|
+
readonly OAUTH1: "OAUTH1";
|
|
2318
|
+
readonly OAUTH2: "OAUTH2";
|
|
2319
|
+
readonly API_KEY: "API_KEY";
|
|
2320
|
+
readonly BASIC: "BASIC";
|
|
2321
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2322
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2323
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2324
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2325
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2326
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2327
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2328
|
+
readonly SAML: "SAML";
|
|
2329
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2330
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2331
|
+
}>;
|
|
2332
|
+
/** Connection state values - varies by auth scheme */
|
|
2333
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2334
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2335
|
+
/** @deprecated - use state instead */
|
|
2336
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2337
|
+
/** @deprecated - use state instead */
|
|
2338
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2339
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
2340
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
2341
|
+
/** Whether the connection is disabled */
|
|
2342
|
+
is_disabled: z.ZodBoolean;
|
|
2343
|
+
/** Endpoint for making test requests */
|
|
2344
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
/** @deprecated */
|
|
2346
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2347
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
2348
|
+
uuid: z.ZodString;
|
|
2349
|
+
}, "strip", z.ZodTypeAny, {
|
|
2350
|
+
uuid: string;
|
|
2351
|
+
labels: string[];
|
|
2352
|
+
}, {
|
|
2353
|
+
uuid: string;
|
|
2354
|
+
labels: string[];
|
|
2355
|
+
}>>;
|
|
2356
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2357
|
+
/** Event metadata */
|
|
2358
|
+
metadata: z.ZodObject<{
|
|
2359
|
+
/** Project nano ID */
|
|
2360
|
+
project_id: z.ZodString;
|
|
2361
|
+
/** Organization UUID */
|
|
2362
|
+
org_id: z.ZodString;
|
|
2363
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2364
|
+
/** Project nano ID */
|
|
2365
|
+
project_id: z.ZodString;
|
|
2366
|
+
/** Organization UUID */
|
|
2367
|
+
org_id: z.ZodString;
|
|
2368
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2369
|
+
/** Project nano ID */
|
|
2370
|
+
project_id: z.ZodString;
|
|
2371
|
+
/** Organization UUID */
|
|
2372
|
+
org_id: z.ZodString;
|
|
2373
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2374
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2375
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
2376
|
+
id: z.ZodString;
|
|
2377
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
2378
|
+
timestamp: z.ZodString;
|
|
2379
|
+
/** Event type identifier */
|
|
2380
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
2381
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
2382
|
+
data: z.ZodObject<{
|
|
2383
|
+
/** Toolkit information */
|
|
2384
|
+
toolkit: z.ZodObject<{
|
|
2385
|
+
slug: z.ZodString;
|
|
2386
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2387
|
+
slug: z.ZodString;
|
|
2388
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2389
|
+
slug: z.ZodString;
|
|
2390
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2391
|
+
/** Auth config details */
|
|
2392
|
+
auth_config: z.ZodObject<{
|
|
2393
|
+
/** The nano ID of the auth config */
|
|
2394
|
+
id: z.ZodString;
|
|
2395
|
+
/** @deprecated - use state.authScheme instead */
|
|
2396
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2397
|
+
readonly OAUTH1: "OAUTH1";
|
|
2398
|
+
readonly OAUTH2: "OAUTH2";
|
|
2399
|
+
readonly API_KEY: "API_KEY";
|
|
2400
|
+
readonly BASIC: "BASIC";
|
|
2401
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2402
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2403
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2404
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2405
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2406
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2407
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2408
|
+
readonly SAML: "SAML";
|
|
2409
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2410
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2411
|
+
}>;
|
|
2412
|
+
/** Whether this auth config is managed by Composio */
|
|
2413
|
+
is_composio_managed: z.ZodBoolean;
|
|
2414
|
+
/** Whether the auth config is disabled */
|
|
2415
|
+
is_disabled: z.ZodBoolean;
|
|
2416
|
+
/** @deprecated */
|
|
2417
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2418
|
+
uuid: z.ZodString;
|
|
2419
|
+
}, "strip", z.ZodTypeAny, {
|
|
2420
|
+
uuid: string;
|
|
2421
|
+
}, {
|
|
2422
|
+
uuid: string;
|
|
2423
|
+
}>>;
|
|
2424
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2425
|
+
/** The nano ID of the auth config */
|
|
2426
|
+
id: z.ZodString;
|
|
2427
|
+
/** @deprecated - use state.authScheme instead */
|
|
2428
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2429
|
+
readonly OAUTH1: "OAUTH1";
|
|
2430
|
+
readonly OAUTH2: "OAUTH2";
|
|
2431
|
+
readonly API_KEY: "API_KEY";
|
|
2432
|
+
readonly BASIC: "BASIC";
|
|
2433
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2434
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2435
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2436
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2437
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2438
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2439
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2440
|
+
readonly SAML: "SAML";
|
|
2441
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2442
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2443
|
+
}>;
|
|
2444
|
+
/** Whether this auth config is managed by Composio */
|
|
2445
|
+
is_composio_managed: z.ZodBoolean;
|
|
2446
|
+
/** Whether the auth config is disabled */
|
|
2447
|
+
is_disabled: z.ZodBoolean;
|
|
2448
|
+
/** @deprecated */
|
|
2449
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2450
|
+
uuid: z.ZodString;
|
|
2451
|
+
}, "strip", z.ZodTypeAny, {
|
|
2452
|
+
uuid: string;
|
|
2453
|
+
}, {
|
|
2454
|
+
uuid: string;
|
|
2455
|
+
}>>;
|
|
2456
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2457
|
+
/** The nano ID of the auth config */
|
|
2458
|
+
id: z.ZodString;
|
|
2459
|
+
/** @deprecated - use state.authScheme instead */
|
|
2460
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2461
|
+
readonly OAUTH1: "OAUTH1";
|
|
2462
|
+
readonly OAUTH2: "OAUTH2";
|
|
2463
|
+
readonly API_KEY: "API_KEY";
|
|
2464
|
+
readonly BASIC: "BASIC";
|
|
2465
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2466
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2467
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2468
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2469
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2470
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2471
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2472
|
+
readonly SAML: "SAML";
|
|
2473
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2474
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2475
|
+
}>;
|
|
2476
|
+
/** Whether this auth config is managed by Composio */
|
|
2477
|
+
is_composio_managed: z.ZodBoolean;
|
|
2478
|
+
/** Whether the auth config is disabled */
|
|
2479
|
+
is_disabled: z.ZodBoolean;
|
|
2480
|
+
/** @deprecated */
|
|
2481
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2482
|
+
uuid: z.ZodString;
|
|
2483
|
+
}, "strip", z.ZodTypeAny, {
|
|
2484
|
+
uuid: string;
|
|
2485
|
+
}, {
|
|
2486
|
+
uuid: string;
|
|
2487
|
+
}>>;
|
|
2488
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2489
|
+
/** The nano ID of the connected account */
|
|
2490
|
+
id: z.ZodString;
|
|
2491
|
+
/** @deprecated - user ID of the connection owner */
|
|
2492
|
+
user_id: z.ZodString;
|
|
2493
|
+
/** Connection status */
|
|
2494
|
+
status: z.ZodNativeEnum<{
|
|
2495
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
2496
|
+
readonly INITIATED: "INITIATED";
|
|
2497
|
+
readonly ACTIVE: "ACTIVE";
|
|
2498
|
+
readonly FAILED: "FAILED";
|
|
2499
|
+
readonly EXPIRED: "EXPIRED";
|
|
2500
|
+
readonly INACTIVE: "INACTIVE";
|
|
2501
|
+
}>;
|
|
2502
|
+
/** ISO-8601 timestamp of creation */
|
|
2503
|
+
created_at: z.ZodString;
|
|
2504
|
+
/** ISO-8601 timestamp of last update */
|
|
2505
|
+
updated_at: z.ZodString;
|
|
2506
|
+
/** Connection state data (auth scheme + state values) */
|
|
2507
|
+
state: z.ZodObject<{
|
|
2508
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2509
|
+
authScheme: z.ZodNativeEnum<{
|
|
2510
|
+
readonly OAUTH1: "OAUTH1";
|
|
2511
|
+
readonly OAUTH2: "OAUTH2";
|
|
2512
|
+
readonly API_KEY: "API_KEY";
|
|
2513
|
+
readonly BASIC: "BASIC";
|
|
2514
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2515
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2516
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2517
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2518
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2519
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2520
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2521
|
+
readonly SAML: "SAML";
|
|
2522
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2523
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2524
|
+
}>;
|
|
2525
|
+
/** Connection state values - varies by auth scheme */
|
|
2526
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2527
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2528
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2529
|
+
authScheme: z.ZodNativeEnum<{
|
|
2530
|
+
readonly OAUTH1: "OAUTH1";
|
|
2531
|
+
readonly OAUTH2: "OAUTH2";
|
|
2532
|
+
readonly API_KEY: "API_KEY";
|
|
2533
|
+
readonly BASIC: "BASIC";
|
|
2534
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2535
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2536
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2537
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2538
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2539
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2540
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2541
|
+
readonly SAML: "SAML";
|
|
2542
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2543
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2544
|
+
}>;
|
|
2545
|
+
/** Connection state values - varies by auth scheme */
|
|
2546
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2547
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2548
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2549
|
+
authScheme: z.ZodNativeEnum<{
|
|
2550
|
+
readonly OAUTH1: "OAUTH1";
|
|
2551
|
+
readonly OAUTH2: "OAUTH2";
|
|
2552
|
+
readonly API_KEY: "API_KEY";
|
|
2553
|
+
readonly BASIC: "BASIC";
|
|
2554
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2555
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2556
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2557
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2558
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2559
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2560
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2561
|
+
readonly SAML: "SAML";
|
|
2562
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2563
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2564
|
+
}>;
|
|
2565
|
+
/** Connection state values - varies by auth scheme */
|
|
2566
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2567
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2568
|
+
/** @deprecated - use state instead */
|
|
2569
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2570
|
+
/** @deprecated - use state instead */
|
|
2571
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2572
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
2573
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
2574
|
+
/** Whether the connection is disabled */
|
|
2575
|
+
is_disabled: z.ZodBoolean;
|
|
2576
|
+
/** Endpoint for making test requests */
|
|
2577
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
2578
|
+
/** @deprecated */
|
|
2579
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2580
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
2581
|
+
uuid: z.ZodString;
|
|
2582
|
+
}, "strip", z.ZodTypeAny, {
|
|
2583
|
+
uuid: string;
|
|
2584
|
+
labels: string[];
|
|
2585
|
+
}, {
|
|
2586
|
+
uuid: string;
|
|
2587
|
+
labels: string[];
|
|
2588
|
+
}>>;
|
|
2589
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2590
|
+
/** Toolkit information */
|
|
2591
|
+
toolkit: z.ZodObject<{
|
|
2592
|
+
slug: z.ZodString;
|
|
2593
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2594
|
+
slug: z.ZodString;
|
|
2595
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2596
|
+
slug: z.ZodString;
|
|
2597
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2598
|
+
/** Auth config details */
|
|
2599
|
+
auth_config: z.ZodObject<{
|
|
2600
|
+
/** The nano ID of the auth config */
|
|
2601
|
+
id: z.ZodString;
|
|
2602
|
+
/** @deprecated - use state.authScheme instead */
|
|
2603
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2604
|
+
readonly OAUTH1: "OAUTH1";
|
|
2605
|
+
readonly OAUTH2: "OAUTH2";
|
|
2606
|
+
readonly API_KEY: "API_KEY";
|
|
2607
|
+
readonly BASIC: "BASIC";
|
|
2608
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2609
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2610
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2611
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2612
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2613
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2614
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2615
|
+
readonly SAML: "SAML";
|
|
2616
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2617
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2618
|
+
}>;
|
|
2619
|
+
/** Whether this auth config is managed by Composio */
|
|
2620
|
+
is_composio_managed: z.ZodBoolean;
|
|
2621
|
+
/** Whether the auth config is disabled */
|
|
2622
|
+
is_disabled: z.ZodBoolean;
|
|
2623
|
+
/** @deprecated */
|
|
2624
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2625
|
+
uuid: z.ZodString;
|
|
2626
|
+
}, "strip", z.ZodTypeAny, {
|
|
2627
|
+
uuid: string;
|
|
2628
|
+
}, {
|
|
2629
|
+
uuid: string;
|
|
2630
|
+
}>>;
|
|
2631
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2632
|
+
/** The nano ID of the auth config */
|
|
2633
|
+
id: z.ZodString;
|
|
2634
|
+
/** @deprecated - use state.authScheme instead */
|
|
2635
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2636
|
+
readonly OAUTH1: "OAUTH1";
|
|
2637
|
+
readonly OAUTH2: "OAUTH2";
|
|
2638
|
+
readonly API_KEY: "API_KEY";
|
|
2639
|
+
readonly BASIC: "BASIC";
|
|
2640
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2641
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2642
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2643
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2644
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2645
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2646
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2647
|
+
readonly SAML: "SAML";
|
|
2648
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2649
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2650
|
+
}>;
|
|
2651
|
+
/** Whether this auth config is managed by Composio */
|
|
2652
|
+
is_composio_managed: z.ZodBoolean;
|
|
2653
|
+
/** Whether the auth config is disabled */
|
|
2654
|
+
is_disabled: z.ZodBoolean;
|
|
2655
|
+
/** @deprecated */
|
|
2656
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2657
|
+
uuid: z.ZodString;
|
|
2658
|
+
}, "strip", z.ZodTypeAny, {
|
|
2659
|
+
uuid: string;
|
|
2660
|
+
}, {
|
|
2661
|
+
uuid: string;
|
|
2662
|
+
}>>;
|
|
2663
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2664
|
+
/** The nano ID of the auth config */
|
|
2665
|
+
id: z.ZodString;
|
|
2666
|
+
/** @deprecated - use state.authScheme instead */
|
|
2667
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2668
|
+
readonly OAUTH1: "OAUTH1";
|
|
2669
|
+
readonly OAUTH2: "OAUTH2";
|
|
2670
|
+
readonly API_KEY: "API_KEY";
|
|
2671
|
+
readonly BASIC: "BASIC";
|
|
2672
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2673
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2674
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2675
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2676
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2677
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2678
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2679
|
+
readonly SAML: "SAML";
|
|
2680
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2681
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2682
|
+
}>;
|
|
2683
|
+
/** Whether this auth config is managed by Composio */
|
|
2684
|
+
is_composio_managed: z.ZodBoolean;
|
|
2685
|
+
/** Whether the auth config is disabled */
|
|
2686
|
+
is_disabled: z.ZodBoolean;
|
|
2687
|
+
/** @deprecated */
|
|
2688
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2689
|
+
uuid: z.ZodString;
|
|
2690
|
+
}, "strip", z.ZodTypeAny, {
|
|
2691
|
+
uuid: string;
|
|
2692
|
+
}, {
|
|
2693
|
+
uuid: string;
|
|
2694
|
+
}>>;
|
|
2695
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2696
|
+
/** The nano ID of the connected account */
|
|
2697
|
+
id: z.ZodString;
|
|
2698
|
+
/** @deprecated - user ID of the connection owner */
|
|
2699
|
+
user_id: z.ZodString;
|
|
2700
|
+
/** Connection status */
|
|
2701
|
+
status: z.ZodNativeEnum<{
|
|
2702
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
2703
|
+
readonly INITIATED: "INITIATED";
|
|
2704
|
+
readonly ACTIVE: "ACTIVE";
|
|
2705
|
+
readonly FAILED: "FAILED";
|
|
2706
|
+
readonly EXPIRED: "EXPIRED";
|
|
2707
|
+
readonly INACTIVE: "INACTIVE";
|
|
2708
|
+
}>;
|
|
2709
|
+
/** ISO-8601 timestamp of creation */
|
|
2710
|
+
created_at: z.ZodString;
|
|
2711
|
+
/** ISO-8601 timestamp of last update */
|
|
2712
|
+
updated_at: z.ZodString;
|
|
2713
|
+
/** Connection state data (auth scheme + state values) */
|
|
2714
|
+
state: z.ZodObject<{
|
|
2715
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2716
|
+
authScheme: z.ZodNativeEnum<{
|
|
2717
|
+
readonly OAUTH1: "OAUTH1";
|
|
2718
|
+
readonly OAUTH2: "OAUTH2";
|
|
2719
|
+
readonly API_KEY: "API_KEY";
|
|
2720
|
+
readonly BASIC: "BASIC";
|
|
2721
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2722
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2723
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2724
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2725
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2726
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2727
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2728
|
+
readonly SAML: "SAML";
|
|
2729
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2730
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2731
|
+
}>;
|
|
2732
|
+
/** Connection state values - varies by auth scheme */
|
|
2733
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2734
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2735
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2736
|
+
authScheme: z.ZodNativeEnum<{
|
|
2737
|
+
readonly OAUTH1: "OAUTH1";
|
|
2738
|
+
readonly OAUTH2: "OAUTH2";
|
|
2739
|
+
readonly API_KEY: "API_KEY";
|
|
2740
|
+
readonly BASIC: "BASIC";
|
|
2741
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2742
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2743
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2744
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2745
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2746
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2747
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2748
|
+
readonly SAML: "SAML";
|
|
2749
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2750
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2751
|
+
}>;
|
|
2752
|
+
/** Connection state values - varies by auth scheme */
|
|
2753
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2754
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2755
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2756
|
+
authScheme: z.ZodNativeEnum<{
|
|
2757
|
+
readonly OAUTH1: "OAUTH1";
|
|
2758
|
+
readonly OAUTH2: "OAUTH2";
|
|
2759
|
+
readonly API_KEY: "API_KEY";
|
|
2760
|
+
readonly BASIC: "BASIC";
|
|
2761
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2762
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2763
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2764
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2765
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2766
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2767
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2768
|
+
readonly SAML: "SAML";
|
|
2769
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2770
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2771
|
+
}>;
|
|
2772
|
+
/** Connection state values - varies by auth scheme */
|
|
2773
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2774
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2775
|
+
/** @deprecated - use state instead */
|
|
2776
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2777
|
+
/** @deprecated - use state instead */
|
|
2778
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2779
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
2780
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
2781
|
+
/** Whether the connection is disabled */
|
|
2782
|
+
is_disabled: z.ZodBoolean;
|
|
2783
|
+
/** Endpoint for making test requests */
|
|
2784
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
2785
|
+
/** @deprecated */
|
|
2786
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2787
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
2788
|
+
uuid: z.ZodString;
|
|
2789
|
+
}, "strip", z.ZodTypeAny, {
|
|
2790
|
+
uuid: string;
|
|
2791
|
+
labels: string[];
|
|
2792
|
+
}, {
|
|
2793
|
+
uuid: string;
|
|
2794
|
+
labels: string[];
|
|
2795
|
+
}>>;
|
|
2796
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2797
|
+
/** Toolkit information */
|
|
2798
|
+
toolkit: z.ZodObject<{
|
|
2799
|
+
slug: z.ZodString;
|
|
2800
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2801
|
+
slug: z.ZodString;
|
|
2802
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2803
|
+
slug: z.ZodString;
|
|
2804
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2805
|
+
/** Auth config details */
|
|
2806
|
+
auth_config: z.ZodObject<{
|
|
2807
|
+
/** The nano ID of the auth config */
|
|
2808
|
+
id: z.ZodString;
|
|
2809
|
+
/** @deprecated - use state.authScheme instead */
|
|
2810
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2811
|
+
readonly OAUTH1: "OAUTH1";
|
|
2812
|
+
readonly OAUTH2: "OAUTH2";
|
|
2813
|
+
readonly API_KEY: "API_KEY";
|
|
2814
|
+
readonly BASIC: "BASIC";
|
|
2815
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2816
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2817
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2818
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2819
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2820
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2821
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2822
|
+
readonly SAML: "SAML";
|
|
2823
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2824
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2825
|
+
}>;
|
|
2826
|
+
/** Whether this auth config is managed by Composio */
|
|
2827
|
+
is_composio_managed: z.ZodBoolean;
|
|
2828
|
+
/** Whether the auth config is disabled */
|
|
2829
|
+
is_disabled: z.ZodBoolean;
|
|
2830
|
+
/** @deprecated */
|
|
2831
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2832
|
+
uuid: z.ZodString;
|
|
2833
|
+
}, "strip", z.ZodTypeAny, {
|
|
2834
|
+
uuid: string;
|
|
2835
|
+
}, {
|
|
2836
|
+
uuid: string;
|
|
2837
|
+
}>>;
|
|
2838
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2839
|
+
/** The nano ID of the auth config */
|
|
2840
|
+
id: z.ZodString;
|
|
2841
|
+
/** @deprecated - use state.authScheme instead */
|
|
2842
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2843
|
+
readonly OAUTH1: "OAUTH1";
|
|
2844
|
+
readonly OAUTH2: "OAUTH2";
|
|
2845
|
+
readonly API_KEY: "API_KEY";
|
|
2846
|
+
readonly BASIC: "BASIC";
|
|
2847
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2848
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2849
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2850
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2851
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2852
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2853
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2854
|
+
readonly SAML: "SAML";
|
|
2855
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2856
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2857
|
+
}>;
|
|
2858
|
+
/** Whether this auth config is managed by Composio */
|
|
2859
|
+
is_composio_managed: z.ZodBoolean;
|
|
2860
|
+
/** Whether the auth config is disabled */
|
|
2861
|
+
is_disabled: z.ZodBoolean;
|
|
2862
|
+
/** @deprecated */
|
|
2863
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2864
|
+
uuid: z.ZodString;
|
|
2865
|
+
}, "strip", z.ZodTypeAny, {
|
|
2866
|
+
uuid: string;
|
|
2867
|
+
}, {
|
|
2868
|
+
uuid: string;
|
|
2869
|
+
}>>;
|
|
2870
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2871
|
+
/** The nano ID of the auth config */
|
|
2872
|
+
id: z.ZodString;
|
|
2873
|
+
/** @deprecated - use state.authScheme instead */
|
|
2874
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
2875
|
+
readonly OAUTH1: "OAUTH1";
|
|
2876
|
+
readonly OAUTH2: "OAUTH2";
|
|
2877
|
+
readonly API_KEY: "API_KEY";
|
|
2878
|
+
readonly BASIC: "BASIC";
|
|
2879
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2880
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2881
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2882
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2883
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2884
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2885
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2886
|
+
readonly SAML: "SAML";
|
|
2887
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2888
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2889
|
+
}>;
|
|
2890
|
+
/** Whether this auth config is managed by Composio */
|
|
2891
|
+
is_composio_managed: z.ZodBoolean;
|
|
2892
|
+
/** Whether the auth config is disabled */
|
|
2893
|
+
is_disabled: z.ZodBoolean;
|
|
2894
|
+
/** @deprecated */
|
|
2895
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2896
|
+
uuid: z.ZodString;
|
|
2897
|
+
}, "strip", z.ZodTypeAny, {
|
|
2898
|
+
uuid: string;
|
|
2899
|
+
}, {
|
|
2900
|
+
uuid: string;
|
|
2901
|
+
}>>;
|
|
2902
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2903
|
+
/** The nano ID of the connected account */
|
|
2904
|
+
id: z.ZodString;
|
|
2905
|
+
/** @deprecated - user ID of the connection owner */
|
|
2906
|
+
user_id: z.ZodString;
|
|
2907
|
+
/** Connection status */
|
|
2908
|
+
status: z.ZodNativeEnum<{
|
|
2909
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
2910
|
+
readonly INITIATED: "INITIATED";
|
|
2911
|
+
readonly ACTIVE: "ACTIVE";
|
|
2912
|
+
readonly FAILED: "FAILED";
|
|
2913
|
+
readonly EXPIRED: "EXPIRED";
|
|
2914
|
+
readonly INACTIVE: "INACTIVE";
|
|
2915
|
+
}>;
|
|
2916
|
+
/** ISO-8601 timestamp of creation */
|
|
2917
|
+
created_at: z.ZodString;
|
|
2918
|
+
/** ISO-8601 timestamp of last update */
|
|
2919
|
+
updated_at: z.ZodString;
|
|
2920
|
+
/** Connection state data (auth scheme + state values) */
|
|
2921
|
+
state: z.ZodObject<{
|
|
2922
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2923
|
+
authScheme: z.ZodNativeEnum<{
|
|
2924
|
+
readonly OAUTH1: "OAUTH1";
|
|
2925
|
+
readonly OAUTH2: "OAUTH2";
|
|
2926
|
+
readonly API_KEY: "API_KEY";
|
|
2927
|
+
readonly BASIC: "BASIC";
|
|
2928
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2929
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2930
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2931
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2932
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2933
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2934
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2935
|
+
readonly SAML: "SAML";
|
|
2936
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2937
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2938
|
+
}>;
|
|
2939
|
+
/** Connection state values - varies by auth scheme */
|
|
2940
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2941
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2942
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2943
|
+
authScheme: z.ZodNativeEnum<{
|
|
2944
|
+
readonly OAUTH1: "OAUTH1";
|
|
2945
|
+
readonly OAUTH2: "OAUTH2";
|
|
2946
|
+
readonly API_KEY: "API_KEY";
|
|
2947
|
+
readonly BASIC: "BASIC";
|
|
2948
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2949
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2950
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2951
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2952
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2953
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2954
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2955
|
+
readonly SAML: "SAML";
|
|
2956
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2957
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2958
|
+
}>;
|
|
2959
|
+
/** Connection state values - varies by auth scheme */
|
|
2960
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2961
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2962
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
2963
|
+
authScheme: z.ZodNativeEnum<{
|
|
2964
|
+
readonly OAUTH1: "OAUTH1";
|
|
2965
|
+
readonly OAUTH2: "OAUTH2";
|
|
2966
|
+
readonly API_KEY: "API_KEY";
|
|
2967
|
+
readonly BASIC: "BASIC";
|
|
2968
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
2969
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
2970
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
2971
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
2972
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
2973
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
2974
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
2975
|
+
readonly SAML: "SAML";
|
|
2976
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
2977
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
2978
|
+
}>;
|
|
2979
|
+
/** Connection state values - varies by auth scheme */
|
|
2980
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2981
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2982
|
+
/** @deprecated - use state instead */
|
|
2983
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2984
|
+
/** @deprecated - use state instead */
|
|
2985
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2986
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
2987
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
2988
|
+
/** Whether the connection is disabled */
|
|
2989
|
+
is_disabled: z.ZodBoolean;
|
|
2990
|
+
/** Endpoint for making test requests */
|
|
2991
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
2992
|
+
/** @deprecated */
|
|
2993
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
2994
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
2995
|
+
uuid: z.ZodString;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
uuid: string;
|
|
2998
|
+
labels: string[];
|
|
2999
|
+
}, {
|
|
3000
|
+
uuid: string;
|
|
3001
|
+
labels: string[];
|
|
3002
|
+
}>>;
|
|
3003
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3004
|
+
/** Event metadata */
|
|
3005
|
+
metadata: z.ZodObject<{
|
|
3006
|
+
/** Project nano ID */
|
|
3007
|
+
project_id: z.ZodString;
|
|
3008
|
+
/** Organization UUID */
|
|
3009
|
+
org_id: z.ZodString;
|
|
3010
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3011
|
+
/** Project nano ID */
|
|
3012
|
+
project_id: z.ZodString;
|
|
3013
|
+
/** Organization UUID */
|
|
3014
|
+
org_id: z.ZodString;
|
|
3015
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3016
|
+
/** Project nano ID */
|
|
3017
|
+
project_id: z.ZodString;
|
|
3018
|
+
/** Organization UUID */
|
|
3019
|
+
org_id: z.ZodString;
|
|
3020
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3021
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3022
|
+
type ConnectionExpiredEvent = z.infer<typeof ConnectionExpiredEventSchema>;
|
|
3023
|
+
/**
|
|
3024
|
+
* Union of all typed webhook event schemas.
|
|
3025
|
+
* Extend this as new event types are added.
|
|
3026
|
+
*
|
|
3027
|
+
* Note: This covers specific known event types with strict validation.
|
|
3028
|
+
* For unknown or new event types, use WebhookPayloadV3Schema from
|
|
3029
|
+
* triggers.types.ts which accepts any composio.* event with loose validation.
|
|
3030
|
+
*
|
|
3031
|
+
* Trigger events (composio.trigger.message) are handled through the
|
|
3032
|
+
* WebhookTriggerPayloadV3Schema in triggers.types.ts and the TriggerEvent type.
|
|
3033
|
+
*/
|
|
3034
|
+
declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3035
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
3036
|
+
id: z.ZodString;
|
|
3037
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
3038
|
+
timestamp: z.ZodString;
|
|
3039
|
+
/** Event type identifier */
|
|
3040
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
3041
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
3042
|
+
data: z.ZodObject<{
|
|
3043
|
+
/** Toolkit information */
|
|
3044
|
+
toolkit: z.ZodObject<{
|
|
3045
|
+
slug: z.ZodString;
|
|
3046
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3047
|
+
slug: z.ZodString;
|
|
3048
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3049
|
+
slug: z.ZodString;
|
|
3050
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3051
|
+
/** Auth config details */
|
|
3052
|
+
auth_config: z.ZodObject<{
|
|
3053
|
+
/** The nano ID of the auth config */
|
|
3054
|
+
id: z.ZodString;
|
|
3055
|
+
/** @deprecated - use state.authScheme instead */
|
|
3056
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3057
|
+
readonly OAUTH1: "OAUTH1";
|
|
3058
|
+
readonly OAUTH2: "OAUTH2";
|
|
3059
|
+
readonly API_KEY: "API_KEY";
|
|
3060
|
+
readonly BASIC: "BASIC";
|
|
3061
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3062
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3063
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3064
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3065
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3066
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3067
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3068
|
+
readonly SAML: "SAML";
|
|
3069
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3070
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3071
|
+
}>;
|
|
3072
|
+
/** Whether this auth config is managed by Composio */
|
|
3073
|
+
is_composio_managed: z.ZodBoolean;
|
|
3074
|
+
/** Whether the auth config is disabled */
|
|
3075
|
+
is_disabled: z.ZodBoolean;
|
|
3076
|
+
/** @deprecated */
|
|
3077
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3078
|
+
uuid: z.ZodString;
|
|
3079
|
+
}, "strip", z.ZodTypeAny, {
|
|
3080
|
+
uuid: string;
|
|
3081
|
+
}, {
|
|
3082
|
+
uuid: string;
|
|
3083
|
+
}>>;
|
|
3084
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3085
|
+
/** The nano ID of the auth config */
|
|
3086
|
+
id: z.ZodString;
|
|
3087
|
+
/** @deprecated - use state.authScheme instead */
|
|
3088
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3089
|
+
readonly OAUTH1: "OAUTH1";
|
|
3090
|
+
readonly OAUTH2: "OAUTH2";
|
|
3091
|
+
readonly API_KEY: "API_KEY";
|
|
3092
|
+
readonly BASIC: "BASIC";
|
|
3093
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3094
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3095
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3096
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3097
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3098
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3099
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3100
|
+
readonly SAML: "SAML";
|
|
3101
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3102
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3103
|
+
}>;
|
|
3104
|
+
/** Whether this auth config is managed by Composio */
|
|
3105
|
+
is_composio_managed: z.ZodBoolean;
|
|
3106
|
+
/** Whether the auth config is disabled */
|
|
3107
|
+
is_disabled: z.ZodBoolean;
|
|
3108
|
+
/** @deprecated */
|
|
3109
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3110
|
+
uuid: z.ZodString;
|
|
3111
|
+
}, "strip", z.ZodTypeAny, {
|
|
3112
|
+
uuid: string;
|
|
3113
|
+
}, {
|
|
3114
|
+
uuid: string;
|
|
3115
|
+
}>>;
|
|
3116
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3117
|
+
/** The nano ID of the auth config */
|
|
3118
|
+
id: z.ZodString;
|
|
3119
|
+
/** @deprecated - use state.authScheme instead */
|
|
3120
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3121
|
+
readonly OAUTH1: "OAUTH1";
|
|
3122
|
+
readonly OAUTH2: "OAUTH2";
|
|
3123
|
+
readonly API_KEY: "API_KEY";
|
|
3124
|
+
readonly BASIC: "BASIC";
|
|
3125
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3126
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3127
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3128
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3129
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3130
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3131
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3132
|
+
readonly SAML: "SAML";
|
|
3133
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3134
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3135
|
+
}>;
|
|
3136
|
+
/** Whether this auth config is managed by Composio */
|
|
3137
|
+
is_composio_managed: z.ZodBoolean;
|
|
3138
|
+
/** Whether the auth config is disabled */
|
|
3139
|
+
is_disabled: z.ZodBoolean;
|
|
3140
|
+
/** @deprecated */
|
|
3141
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3142
|
+
uuid: z.ZodString;
|
|
3143
|
+
}, "strip", z.ZodTypeAny, {
|
|
3144
|
+
uuid: string;
|
|
3145
|
+
}, {
|
|
3146
|
+
uuid: string;
|
|
3147
|
+
}>>;
|
|
3148
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3149
|
+
/** The nano ID of the connected account */
|
|
3150
|
+
id: z.ZodString;
|
|
3151
|
+
/** @deprecated - user ID of the connection owner */
|
|
3152
|
+
user_id: z.ZodString;
|
|
3153
|
+
/** Connection status */
|
|
3154
|
+
status: z.ZodNativeEnum<{
|
|
3155
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
3156
|
+
readonly INITIATED: "INITIATED";
|
|
3157
|
+
readonly ACTIVE: "ACTIVE";
|
|
3158
|
+
readonly FAILED: "FAILED";
|
|
3159
|
+
readonly EXPIRED: "EXPIRED";
|
|
3160
|
+
readonly INACTIVE: "INACTIVE";
|
|
3161
|
+
}>;
|
|
3162
|
+
/** ISO-8601 timestamp of creation */
|
|
3163
|
+
created_at: z.ZodString;
|
|
3164
|
+
/** ISO-8601 timestamp of last update */
|
|
3165
|
+
updated_at: z.ZodString;
|
|
3166
|
+
/** Connection state data (auth scheme + state values) */
|
|
3167
|
+
state: z.ZodObject<{
|
|
3168
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3169
|
+
authScheme: z.ZodNativeEnum<{
|
|
3170
|
+
readonly OAUTH1: "OAUTH1";
|
|
3171
|
+
readonly OAUTH2: "OAUTH2";
|
|
3172
|
+
readonly API_KEY: "API_KEY";
|
|
3173
|
+
readonly BASIC: "BASIC";
|
|
3174
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3175
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3176
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3177
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3178
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3179
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3180
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3181
|
+
readonly SAML: "SAML";
|
|
3182
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3183
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3184
|
+
}>;
|
|
3185
|
+
/** Connection state values - varies by auth scheme */
|
|
3186
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3187
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3188
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3189
|
+
authScheme: z.ZodNativeEnum<{
|
|
3190
|
+
readonly OAUTH1: "OAUTH1";
|
|
3191
|
+
readonly OAUTH2: "OAUTH2";
|
|
3192
|
+
readonly API_KEY: "API_KEY";
|
|
3193
|
+
readonly BASIC: "BASIC";
|
|
3194
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3195
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3196
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3197
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3198
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3199
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3200
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3201
|
+
readonly SAML: "SAML";
|
|
3202
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3203
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3204
|
+
}>;
|
|
3205
|
+
/** Connection state values - varies by auth scheme */
|
|
3206
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3207
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3208
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3209
|
+
authScheme: z.ZodNativeEnum<{
|
|
3210
|
+
readonly OAUTH1: "OAUTH1";
|
|
3211
|
+
readonly OAUTH2: "OAUTH2";
|
|
3212
|
+
readonly API_KEY: "API_KEY";
|
|
3213
|
+
readonly BASIC: "BASIC";
|
|
3214
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3215
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3216
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3217
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3218
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3219
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3220
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3221
|
+
readonly SAML: "SAML";
|
|
3222
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3223
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3224
|
+
}>;
|
|
3225
|
+
/** Connection state values - varies by auth scheme */
|
|
3226
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3227
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3228
|
+
/** @deprecated - use state instead */
|
|
3229
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3230
|
+
/** @deprecated - use state instead */
|
|
3231
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3232
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
3233
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
3234
|
+
/** Whether the connection is disabled */
|
|
3235
|
+
is_disabled: z.ZodBoolean;
|
|
3236
|
+
/** Endpoint for making test requests */
|
|
3237
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
3238
|
+
/** @deprecated */
|
|
3239
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3240
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
3241
|
+
uuid: z.ZodString;
|
|
3242
|
+
}, "strip", z.ZodTypeAny, {
|
|
3243
|
+
uuid: string;
|
|
3244
|
+
labels: string[];
|
|
3245
|
+
}, {
|
|
3246
|
+
uuid: string;
|
|
3247
|
+
labels: string[];
|
|
3248
|
+
}>>;
|
|
3249
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3250
|
+
/** Toolkit information */
|
|
3251
|
+
toolkit: z.ZodObject<{
|
|
3252
|
+
slug: z.ZodString;
|
|
3253
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3254
|
+
slug: z.ZodString;
|
|
3255
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3256
|
+
slug: z.ZodString;
|
|
3257
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3258
|
+
/** Auth config details */
|
|
3259
|
+
auth_config: z.ZodObject<{
|
|
3260
|
+
/** The nano ID of the auth config */
|
|
3261
|
+
id: z.ZodString;
|
|
3262
|
+
/** @deprecated - use state.authScheme instead */
|
|
3263
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3264
|
+
readonly OAUTH1: "OAUTH1";
|
|
3265
|
+
readonly OAUTH2: "OAUTH2";
|
|
3266
|
+
readonly API_KEY: "API_KEY";
|
|
3267
|
+
readonly BASIC: "BASIC";
|
|
3268
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3269
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3270
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3271
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3272
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3273
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3274
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3275
|
+
readonly SAML: "SAML";
|
|
3276
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3277
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3278
|
+
}>;
|
|
3279
|
+
/** Whether this auth config is managed by Composio */
|
|
3280
|
+
is_composio_managed: z.ZodBoolean;
|
|
3281
|
+
/** Whether the auth config is disabled */
|
|
3282
|
+
is_disabled: z.ZodBoolean;
|
|
3283
|
+
/** @deprecated */
|
|
3284
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3285
|
+
uuid: z.ZodString;
|
|
3286
|
+
}, "strip", z.ZodTypeAny, {
|
|
3287
|
+
uuid: string;
|
|
3288
|
+
}, {
|
|
3289
|
+
uuid: string;
|
|
3290
|
+
}>>;
|
|
3291
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3292
|
+
/** The nano ID of the auth config */
|
|
3293
|
+
id: z.ZodString;
|
|
3294
|
+
/** @deprecated - use state.authScheme instead */
|
|
3295
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3296
|
+
readonly OAUTH1: "OAUTH1";
|
|
3297
|
+
readonly OAUTH2: "OAUTH2";
|
|
3298
|
+
readonly API_KEY: "API_KEY";
|
|
3299
|
+
readonly BASIC: "BASIC";
|
|
3300
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3301
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3302
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3303
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3304
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3305
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3306
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3307
|
+
readonly SAML: "SAML";
|
|
3308
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3309
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3310
|
+
}>;
|
|
3311
|
+
/** Whether this auth config is managed by Composio */
|
|
3312
|
+
is_composio_managed: z.ZodBoolean;
|
|
3313
|
+
/** Whether the auth config is disabled */
|
|
3314
|
+
is_disabled: z.ZodBoolean;
|
|
3315
|
+
/** @deprecated */
|
|
3316
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3317
|
+
uuid: z.ZodString;
|
|
3318
|
+
}, "strip", z.ZodTypeAny, {
|
|
3319
|
+
uuid: string;
|
|
3320
|
+
}, {
|
|
3321
|
+
uuid: string;
|
|
3322
|
+
}>>;
|
|
3323
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3324
|
+
/** The nano ID of the auth config */
|
|
3325
|
+
id: z.ZodString;
|
|
3326
|
+
/** @deprecated - use state.authScheme instead */
|
|
3327
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3328
|
+
readonly OAUTH1: "OAUTH1";
|
|
3329
|
+
readonly OAUTH2: "OAUTH2";
|
|
3330
|
+
readonly API_KEY: "API_KEY";
|
|
3331
|
+
readonly BASIC: "BASIC";
|
|
3332
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3333
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3334
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3335
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3336
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3337
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3338
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3339
|
+
readonly SAML: "SAML";
|
|
3340
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3341
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3342
|
+
}>;
|
|
3343
|
+
/** Whether this auth config is managed by Composio */
|
|
3344
|
+
is_composio_managed: z.ZodBoolean;
|
|
3345
|
+
/** Whether the auth config is disabled */
|
|
3346
|
+
is_disabled: z.ZodBoolean;
|
|
3347
|
+
/** @deprecated */
|
|
3348
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3349
|
+
uuid: z.ZodString;
|
|
3350
|
+
}, "strip", z.ZodTypeAny, {
|
|
3351
|
+
uuid: string;
|
|
3352
|
+
}, {
|
|
3353
|
+
uuid: string;
|
|
3354
|
+
}>>;
|
|
3355
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3356
|
+
/** The nano ID of the connected account */
|
|
3357
|
+
id: z.ZodString;
|
|
3358
|
+
/** @deprecated - user ID of the connection owner */
|
|
3359
|
+
user_id: z.ZodString;
|
|
3360
|
+
/** Connection status */
|
|
3361
|
+
status: z.ZodNativeEnum<{
|
|
3362
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
3363
|
+
readonly INITIATED: "INITIATED";
|
|
3364
|
+
readonly ACTIVE: "ACTIVE";
|
|
3365
|
+
readonly FAILED: "FAILED";
|
|
3366
|
+
readonly EXPIRED: "EXPIRED";
|
|
3367
|
+
readonly INACTIVE: "INACTIVE";
|
|
3368
|
+
}>;
|
|
3369
|
+
/** ISO-8601 timestamp of creation */
|
|
3370
|
+
created_at: z.ZodString;
|
|
3371
|
+
/** ISO-8601 timestamp of last update */
|
|
3372
|
+
updated_at: z.ZodString;
|
|
3373
|
+
/** Connection state data (auth scheme + state values) */
|
|
3374
|
+
state: z.ZodObject<{
|
|
3375
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3376
|
+
authScheme: z.ZodNativeEnum<{
|
|
3377
|
+
readonly OAUTH1: "OAUTH1";
|
|
3378
|
+
readonly OAUTH2: "OAUTH2";
|
|
3379
|
+
readonly API_KEY: "API_KEY";
|
|
3380
|
+
readonly BASIC: "BASIC";
|
|
3381
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3382
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3383
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3384
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3385
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3386
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3387
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3388
|
+
readonly SAML: "SAML";
|
|
3389
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3390
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3391
|
+
}>;
|
|
3392
|
+
/** Connection state values - varies by auth scheme */
|
|
3393
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3394
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3395
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3396
|
+
authScheme: z.ZodNativeEnum<{
|
|
3397
|
+
readonly OAUTH1: "OAUTH1";
|
|
3398
|
+
readonly OAUTH2: "OAUTH2";
|
|
3399
|
+
readonly API_KEY: "API_KEY";
|
|
3400
|
+
readonly BASIC: "BASIC";
|
|
3401
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3402
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3403
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3404
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3405
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3406
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3407
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3408
|
+
readonly SAML: "SAML";
|
|
3409
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3410
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3411
|
+
}>;
|
|
3412
|
+
/** Connection state values - varies by auth scheme */
|
|
3413
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3414
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3415
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3416
|
+
authScheme: z.ZodNativeEnum<{
|
|
3417
|
+
readonly OAUTH1: "OAUTH1";
|
|
3418
|
+
readonly OAUTH2: "OAUTH2";
|
|
3419
|
+
readonly API_KEY: "API_KEY";
|
|
3420
|
+
readonly BASIC: "BASIC";
|
|
3421
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3422
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3423
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3424
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3425
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3426
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3427
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3428
|
+
readonly SAML: "SAML";
|
|
3429
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3430
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3431
|
+
}>;
|
|
3432
|
+
/** Connection state values - varies by auth scheme */
|
|
3433
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3434
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3435
|
+
/** @deprecated - use state instead */
|
|
3436
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3437
|
+
/** @deprecated - use state instead */
|
|
3438
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3439
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
3440
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
3441
|
+
/** Whether the connection is disabled */
|
|
3442
|
+
is_disabled: z.ZodBoolean;
|
|
3443
|
+
/** Endpoint for making test requests */
|
|
3444
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
3445
|
+
/** @deprecated */
|
|
3446
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3447
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
3448
|
+
uuid: z.ZodString;
|
|
3449
|
+
}, "strip", z.ZodTypeAny, {
|
|
3450
|
+
uuid: string;
|
|
3451
|
+
labels: string[];
|
|
3452
|
+
}, {
|
|
3453
|
+
uuid: string;
|
|
3454
|
+
labels: string[];
|
|
3455
|
+
}>>;
|
|
3456
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3457
|
+
/** Toolkit information */
|
|
3458
|
+
toolkit: z.ZodObject<{
|
|
3459
|
+
slug: z.ZodString;
|
|
3460
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3461
|
+
slug: z.ZodString;
|
|
3462
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3463
|
+
slug: z.ZodString;
|
|
3464
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3465
|
+
/** Auth config details */
|
|
3466
|
+
auth_config: z.ZodObject<{
|
|
3467
|
+
/** The nano ID of the auth config */
|
|
3468
|
+
id: z.ZodString;
|
|
3469
|
+
/** @deprecated - use state.authScheme instead */
|
|
3470
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3471
|
+
readonly OAUTH1: "OAUTH1";
|
|
3472
|
+
readonly OAUTH2: "OAUTH2";
|
|
3473
|
+
readonly API_KEY: "API_KEY";
|
|
3474
|
+
readonly BASIC: "BASIC";
|
|
3475
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3476
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3477
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3478
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3479
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3480
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3481
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3482
|
+
readonly SAML: "SAML";
|
|
3483
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3484
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3485
|
+
}>;
|
|
3486
|
+
/** Whether this auth config is managed by Composio */
|
|
3487
|
+
is_composio_managed: z.ZodBoolean;
|
|
3488
|
+
/** Whether the auth config is disabled */
|
|
3489
|
+
is_disabled: z.ZodBoolean;
|
|
3490
|
+
/** @deprecated */
|
|
3491
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3492
|
+
uuid: z.ZodString;
|
|
3493
|
+
}, "strip", z.ZodTypeAny, {
|
|
3494
|
+
uuid: string;
|
|
3495
|
+
}, {
|
|
3496
|
+
uuid: string;
|
|
3497
|
+
}>>;
|
|
3498
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3499
|
+
/** The nano ID of the auth config */
|
|
3500
|
+
id: z.ZodString;
|
|
3501
|
+
/** @deprecated - use state.authScheme instead */
|
|
3502
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3503
|
+
readonly OAUTH1: "OAUTH1";
|
|
3504
|
+
readonly OAUTH2: "OAUTH2";
|
|
3505
|
+
readonly API_KEY: "API_KEY";
|
|
3506
|
+
readonly BASIC: "BASIC";
|
|
3507
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3508
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3509
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3510
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3511
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3512
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3513
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3514
|
+
readonly SAML: "SAML";
|
|
3515
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3516
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3517
|
+
}>;
|
|
3518
|
+
/** Whether this auth config is managed by Composio */
|
|
3519
|
+
is_composio_managed: z.ZodBoolean;
|
|
3520
|
+
/** Whether the auth config is disabled */
|
|
3521
|
+
is_disabled: z.ZodBoolean;
|
|
3522
|
+
/** @deprecated */
|
|
3523
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3524
|
+
uuid: z.ZodString;
|
|
3525
|
+
}, "strip", z.ZodTypeAny, {
|
|
3526
|
+
uuid: string;
|
|
3527
|
+
}, {
|
|
3528
|
+
uuid: string;
|
|
3529
|
+
}>>;
|
|
3530
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3531
|
+
/** The nano ID of the auth config */
|
|
3532
|
+
id: z.ZodString;
|
|
3533
|
+
/** @deprecated - use state.authScheme instead */
|
|
3534
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3535
|
+
readonly OAUTH1: "OAUTH1";
|
|
3536
|
+
readonly OAUTH2: "OAUTH2";
|
|
3537
|
+
readonly API_KEY: "API_KEY";
|
|
3538
|
+
readonly BASIC: "BASIC";
|
|
3539
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3540
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3541
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3542
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3543
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3544
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3545
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3546
|
+
readonly SAML: "SAML";
|
|
3547
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3548
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3549
|
+
}>;
|
|
3550
|
+
/** Whether this auth config is managed by Composio */
|
|
3551
|
+
is_composio_managed: z.ZodBoolean;
|
|
3552
|
+
/** Whether the auth config is disabled */
|
|
3553
|
+
is_disabled: z.ZodBoolean;
|
|
3554
|
+
/** @deprecated */
|
|
3555
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3556
|
+
uuid: z.ZodString;
|
|
3557
|
+
}, "strip", z.ZodTypeAny, {
|
|
3558
|
+
uuid: string;
|
|
3559
|
+
}, {
|
|
3560
|
+
uuid: string;
|
|
3561
|
+
}>>;
|
|
3562
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3563
|
+
/** The nano ID of the connected account */
|
|
3564
|
+
id: z.ZodString;
|
|
3565
|
+
/** @deprecated - user ID of the connection owner */
|
|
3566
|
+
user_id: z.ZodString;
|
|
3567
|
+
/** Connection status */
|
|
3568
|
+
status: z.ZodNativeEnum<{
|
|
3569
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
3570
|
+
readonly INITIATED: "INITIATED";
|
|
3571
|
+
readonly ACTIVE: "ACTIVE";
|
|
3572
|
+
readonly FAILED: "FAILED";
|
|
3573
|
+
readonly EXPIRED: "EXPIRED";
|
|
3574
|
+
readonly INACTIVE: "INACTIVE";
|
|
3575
|
+
}>;
|
|
3576
|
+
/** ISO-8601 timestamp of creation */
|
|
3577
|
+
created_at: z.ZodString;
|
|
3578
|
+
/** ISO-8601 timestamp of last update */
|
|
3579
|
+
updated_at: z.ZodString;
|
|
3580
|
+
/** Connection state data (auth scheme + state values) */
|
|
3581
|
+
state: z.ZodObject<{
|
|
3582
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3583
|
+
authScheme: z.ZodNativeEnum<{
|
|
3584
|
+
readonly OAUTH1: "OAUTH1";
|
|
3585
|
+
readonly OAUTH2: "OAUTH2";
|
|
3586
|
+
readonly API_KEY: "API_KEY";
|
|
3587
|
+
readonly BASIC: "BASIC";
|
|
3588
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3589
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3590
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3591
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3592
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3593
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3594
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3595
|
+
readonly SAML: "SAML";
|
|
3596
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3597
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3598
|
+
}>;
|
|
3599
|
+
/** Connection state values - varies by auth scheme */
|
|
3600
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3601
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3602
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3603
|
+
authScheme: z.ZodNativeEnum<{
|
|
3604
|
+
readonly OAUTH1: "OAUTH1";
|
|
3605
|
+
readonly OAUTH2: "OAUTH2";
|
|
3606
|
+
readonly API_KEY: "API_KEY";
|
|
3607
|
+
readonly BASIC: "BASIC";
|
|
3608
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3609
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3610
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3611
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3612
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3613
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3614
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3615
|
+
readonly SAML: "SAML";
|
|
3616
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3617
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3618
|
+
}>;
|
|
3619
|
+
/** Connection state values - varies by auth scheme */
|
|
3620
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3621
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3622
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3623
|
+
authScheme: z.ZodNativeEnum<{
|
|
3624
|
+
readonly OAUTH1: "OAUTH1";
|
|
3625
|
+
readonly OAUTH2: "OAUTH2";
|
|
3626
|
+
readonly API_KEY: "API_KEY";
|
|
3627
|
+
readonly BASIC: "BASIC";
|
|
3628
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3629
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3630
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3631
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3632
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3633
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3634
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3635
|
+
readonly SAML: "SAML";
|
|
3636
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3637
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3638
|
+
}>;
|
|
3639
|
+
/** Connection state values - varies by auth scheme */
|
|
3640
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3641
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3642
|
+
/** @deprecated - use state instead */
|
|
3643
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3644
|
+
/** @deprecated - use state instead */
|
|
3645
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3646
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
3647
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
3648
|
+
/** Whether the connection is disabled */
|
|
3649
|
+
is_disabled: z.ZodBoolean;
|
|
3650
|
+
/** Endpoint for making test requests */
|
|
3651
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
/** @deprecated */
|
|
3653
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3654
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
3655
|
+
uuid: z.ZodString;
|
|
3656
|
+
}, "strip", z.ZodTypeAny, {
|
|
3657
|
+
uuid: string;
|
|
3658
|
+
labels: string[];
|
|
3659
|
+
}, {
|
|
3660
|
+
uuid: string;
|
|
3661
|
+
labels: string[];
|
|
3662
|
+
}>>;
|
|
3663
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3664
|
+
/** Event metadata */
|
|
3665
|
+
metadata: z.ZodObject<{
|
|
3666
|
+
/** Project nano ID */
|
|
3667
|
+
project_id: z.ZodString;
|
|
3668
|
+
/** Organization UUID */
|
|
3669
|
+
org_id: z.ZodString;
|
|
3670
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3671
|
+
/** Project nano ID */
|
|
3672
|
+
project_id: z.ZodString;
|
|
3673
|
+
/** Organization UUID */
|
|
3674
|
+
org_id: z.ZodString;
|
|
3675
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3676
|
+
/** Project nano ID */
|
|
3677
|
+
project_id: z.ZodString;
|
|
3678
|
+
/** Organization UUID */
|
|
3679
|
+
org_id: z.ZodString;
|
|
3680
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3681
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3682
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
3683
|
+
id: z.ZodString;
|
|
3684
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
3685
|
+
timestamp: z.ZodString;
|
|
3686
|
+
/** Event type identifier */
|
|
3687
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
3688
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
3689
|
+
data: z.ZodObject<{
|
|
3690
|
+
/** Toolkit information */
|
|
3691
|
+
toolkit: z.ZodObject<{
|
|
3692
|
+
slug: z.ZodString;
|
|
3693
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3694
|
+
slug: z.ZodString;
|
|
3695
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3696
|
+
slug: z.ZodString;
|
|
3697
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3698
|
+
/** Auth config details */
|
|
3699
|
+
auth_config: z.ZodObject<{
|
|
3700
|
+
/** The nano ID of the auth config */
|
|
3701
|
+
id: z.ZodString;
|
|
3702
|
+
/** @deprecated - use state.authScheme instead */
|
|
3703
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3704
|
+
readonly OAUTH1: "OAUTH1";
|
|
3705
|
+
readonly OAUTH2: "OAUTH2";
|
|
3706
|
+
readonly API_KEY: "API_KEY";
|
|
3707
|
+
readonly BASIC: "BASIC";
|
|
3708
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3709
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3710
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3711
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3712
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3713
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3714
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3715
|
+
readonly SAML: "SAML";
|
|
3716
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3717
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3718
|
+
}>;
|
|
3719
|
+
/** Whether this auth config is managed by Composio */
|
|
3720
|
+
is_composio_managed: z.ZodBoolean;
|
|
3721
|
+
/** Whether the auth config is disabled */
|
|
3722
|
+
is_disabled: z.ZodBoolean;
|
|
3723
|
+
/** @deprecated */
|
|
3724
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3725
|
+
uuid: z.ZodString;
|
|
3726
|
+
}, "strip", z.ZodTypeAny, {
|
|
3727
|
+
uuid: string;
|
|
3728
|
+
}, {
|
|
3729
|
+
uuid: string;
|
|
3730
|
+
}>>;
|
|
3731
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3732
|
+
/** The nano ID of the auth config */
|
|
3733
|
+
id: z.ZodString;
|
|
3734
|
+
/** @deprecated - use state.authScheme instead */
|
|
3735
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3736
|
+
readonly OAUTH1: "OAUTH1";
|
|
3737
|
+
readonly OAUTH2: "OAUTH2";
|
|
3738
|
+
readonly API_KEY: "API_KEY";
|
|
3739
|
+
readonly BASIC: "BASIC";
|
|
3740
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3741
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3742
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3743
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3744
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3745
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3746
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3747
|
+
readonly SAML: "SAML";
|
|
3748
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3749
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3750
|
+
}>;
|
|
3751
|
+
/** Whether this auth config is managed by Composio */
|
|
3752
|
+
is_composio_managed: z.ZodBoolean;
|
|
3753
|
+
/** Whether the auth config is disabled */
|
|
3754
|
+
is_disabled: z.ZodBoolean;
|
|
3755
|
+
/** @deprecated */
|
|
3756
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3757
|
+
uuid: z.ZodString;
|
|
3758
|
+
}, "strip", z.ZodTypeAny, {
|
|
3759
|
+
uuid: string;
|
|
3760
|
+
}, {
|
|
3761
|
+
uuid: string;
|
|
3762
|
+
}>>;
|
|
3763
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3764
|
+
/** The nano ID of the auth config */
|
|
3765
|
+
id: z.ZodString;
|
|
3766
|
+
/** @deprecated - use state.authScheme instead */
|
|
3767
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3768
|
+
readonly OAUTH1: "OAUTH1";
|
|
3769
|
+
readonly OAUTH2: "OAUTH2";
|
|
3770
|
+
readonly API_KEY: "API_KEY";
|
|
3771
|
+
readonly BASIC: "BASIC";
|
|
3772
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3773
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3774
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3775
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3776
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3777
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3778
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3779
|
+
readonly SAML: "SAML";
|
|
3780
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3781
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3782
|
+
}>;
|
|
3783
|
+
/** Whether this auth config is managed by Composio */
|
|
3784
|
+
is_composio_managed: z.ZodBoolean;
|
|
3785
|
+
/** Whether the auth config is disabled */
|
|
3786
|
+
is_disabled: z.ZodBoolean;
|
|
3787
|
+
/** @deprecated */
|
|
3788
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3789
|
+
uuid: z.ZodString;
|
|
3790
|
+
}, "strip", z.ZodTypeAny, {
|
|
3791
|
+
uuid: string;
|
|
3792
|
+
}, {
|
|
3793
|
+
uuid: string;
|
|
3794
|
+
}>>;
|
|
3795
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3796
|
+
/** The nano ID of the connected account */
|
|
3797
|
+
id: z.ZodString;
|
|
3798
|
+
/** @deprecated - user ID of the connection owner */
|
|
3799
|
+
user_id: z.ZodString;
|
|
3800
|
+
/** Connection status */
|
|
3801
|
+
status: z.ZodNativeEnum<{
|
|
3802
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
3803
|
+
readonly INITIATED: "INITIATED";
|
|
3804
|
+
readonly ACTIVE: "ACTIVE";
|
|
3805
|
+
readonly FAILED: "FAILED";
|
|
3806
|
+
readonly EXPIRED: "EXPIRED";
|
|
3807
|
+
readonly INACTIVE: "INACTIVE";
|
|
3808
|
+
}>;
|
|
3809
|
+
/** ISO-8601 timestamp of creation */
|
|
3810
|
+
created_at: z.ZodString;
|
|
3811
|
+
/** ISO-8601 timestamp of last update */
|
|
3812
|
+
updated_at: z.ZodString;
|
|
3813
|
+
/** Connection state data (auth scheme + state values) */
|
|
3814
|
+
state: z.ZodObject<{
|
|
3815
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3816
|
+
authScheme: z.ZodNativeEnum<{
|
|
3817
|
+
readonly OAUTH1: "OAUTH1";
|
|
3818
|
+
readonly OAUTH2: "OAUTH2";
|
|
3819
|
+
readonly API_KEY: "API_KEY";
|
|
3820
|
+
readonly BASIC: "BASIC";
|
|
3821
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3822
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3823
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3824
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3825
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3826
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3827
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3828
|
+
readonly SAML: "SAML";
|
|
3829
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3830
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3831
|
+
}>;
|
|
3832
|
+
/** Connection state values - varies by auth scheme */
|
|
3833
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3834
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3835
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3836
|
+
authScheme: z.ZodNativeEnum<{
|
|
3837
|
+
readonly OAUTH1: "OAUTH1";
|
|
3838
|
+
readonly OAUTH2: "OAUTH2";
|
|
3839
|
+
readonly API_KEY: "API_KEY";
|
|
3840
|
+
readonly BASIC: "BASIC";
|
|
3841
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3842
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3843
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3844
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3845
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3846
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3847
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3848
|
+
readonly SAML: "SAML";
|
|
3849
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3850
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3851
|
+
}>;
|
|
3852
|
+
/** Connection state values - varies by auth scheme */
|
|
3853
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3854
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3855
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
3856
|
+
authScheme: z.ZodNativeEnum<{
|
|
3857
|
+
readonly OAUTH1: "OAUTH1";
|
|
3858
|
+
readonly OAUTH2: "OAUTH2";
|
|
3859
|
+
readonly API_KEY: "API_KEY";
|
|
3860
|
+
readonly BASIC: "BASIC";
|
|
3861
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3862
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3863
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3864
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3865
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3866
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3867
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3868
|
+
readonly SAML: "SAML";
|
|
3869
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3870
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3871
|
+
}>;
|
|
3872
|
+
/** Connection state values - varies by auth scheme */
|
|
3873
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3874
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3875
|
+
/** @deprecated - use state instead */
|
|
3876
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3877
|
+
/** @deprecated - use state instead */
|
|
3878
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3879
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
3880
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
3881
|
+
/** Whether the connection is disabled */
|
|
3882
|
+
is_disabled: z.ZodBoolean;
|
|
3883
|
+
/** Endpoint for making test requests */
|
|
3884
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
3885
|
+
/** @deprecated */
|
|
3886
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3887
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
3888
|
+
uuid: z.ZodString;
|
|
3889
|
+
}, "strip", z.ZodTypeAny, {
|
|
3890
|
+
uuid: string;
|
|
3891
|
+
labels: string[];
|
|
3892
|
+
}, {
|
|
3893
|
+
uuid: string;
|
|
3894
|
+
labels: string[];
|
|
3895
|
+
}>>;
|
|
3896
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3897
|
+
/** Toolkit information */
|
|
3898
|
+
toolkit: z.ZodObject<{
|
|
3899
|
+
slug: z.ZodString;
|
|
3900
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3901
|
+
slug: z.ZodString;
|
|
3902
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3903
|
+
slug: z.ZodString;
|
|
3904
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3905
|
+
/** Auth config details */
|
|
3906
|
+
auth_config: z.ZodObject<{
|
|
3907
|
+
/** The nano ID of the auth config */
|
|
3908
|
+
id: z.ZodString;
|
|
3909
|
+
/** @deprecated - use state.authScheme instead */
|
|
3910
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3911
|
+
readonly OAUTH1: "OAUTH1";
|
|
3912
|
+
readonly OAUTH2: "OAUTH2";
|
|
3913
|
+
readonly API_KEY: "API_KEY";
|
|
3914
|
+
readonly BASIC: "BASIC";
|
|
3915
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3916
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3917
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3918
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3919
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3920
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3921
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3922
|
+
readonly SAML: "SAML";
|
|
3923
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3924
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3925
|
+
}>;
|
|
3926
|
+
/** Whether this auth config is managed by Composio */
|
|
3927
|
+
is_composio_managed: z.ZodBoolean;
|
|
3928
|
+
/** Whether the auth config is disabled */
|
|
3929
|
+
is_disabled: z.ZodBoolean;
|
|
3930
|
+
/** @deprecated */
|
|
3931
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3932
|
+
uuid: z.ZodString;
|
|
3933
|
+
}, "strip", z.ZodTypeAny, {
|
|
3934
|
+
uuid: string;
|
|
3935
|
+
}, {
|
|
3936
|
+
uuid: string;
|
|
3937
|
+
}>>;
|
|
3938
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3939
|
+
/** The nano ID of the auth config */
|
|
3940
|
+
id: z.ZodString;
|
|
3941
|
+
/** @deprecated - use state.authScheme instead */
|
|
3942
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3943
|
+
readonly OAUTH1: "OAUTH1";
|
|
3944
|
+
readonly OAUTH2: "OAUTH2";
|
|
3945
|
+
readonly API_KEY: "API_KEY";
|
|
3946
|
+
readonly BASIC: "BASIC";
|
|
3947
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3948
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3949
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3950
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3951
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3952
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3953
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3954
|
+
readonly SAML: "SAML";
|
|
3955
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3956
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3957
|
+
}>;
|
|
3958
|
+
/** Whether this auth config is managed by Composio */
|
|
3959
|
+
is_composio_managed: z.ZodBoolean;
|
|
3960
|
+
/** Whether the auth config is disabled */
|
|
3961
|
+
is_disabled: z.ZodBoolean;
|
|
3962
|
+
/** @deprecated */
|
|
3963
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3964
|
+
uuid: z.ZodString;
|
|
3965
|
+
}, "strip", z.ZodTypeAny, {
|
|
3966
|
+
uuid: string;
|
|
3967
|
+
}, {
|
|
3968
|
+
uuid: string;
|
|
3969
|
+
}>>;
|
|
3970
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3971
|
+
/** The nano ID of the auth config */
|
|
3972
|
+
id: z.ZodString;
|
|
3973
|
+
/** @deprecated - use state.authScheme instead */
|
|
3974
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
3975
|
+
readonly OAUTH1: "OAUTH1";
|
|
3976
|
+
readonly OAUTH2: "OAUTH2";
|
|
3977
|
+
readonly API_KEY: "API_KEY";
|
|
3978
|
+
readonly BASIC: "BASIC";
|
|
3979
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
3980
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
3981
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
3982
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
3983
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
3984
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
3985
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
3986
|
+
readonly SAML: "SAML";
|
|
3987
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
3988
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
3989
|
+
}>;
|
|
3990
|
+
/** Whether this auth config is managed by Composio */
|
|
3991
|
+
is_composio_managed: z.ZodBoolean;
|
|
3992
|
+
/** Whether the auth config is disabled */
|
|
3993
|
+
is_disabled: z.ZodBoolean;
|
|
3994
|
+
/** @deprecated */
|
|
3995
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
3996
|
+
uuid: z.ZodString;
|
|
3997
|
+
}, "strip", z.ZodTypeAny, {
|
|
3998
|
+
uuid: string;
|
|
3999
|
+
}, {
|
|
4000
|
+
uuid: string;
|
|
4001
|
+
}>>;
|
|
4002
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4003
|
+
/** The nano ID of the connected account */
|
|
4004
|
+
id: z.ZodString;
|
|
4005
|
+
/** @deprecated - user ID of the connection owner */
|
|
4006
|
+
user_id: z.ZodString;
|
|
4007
|
+
/** Connection status */
|
|
4008
|
+
status: z.ZodNativeEnum<{
|
|
4009
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
4010
|
+
readonly INITIATED: "INITIATED";
|
|
4011
|
+
readonly ACTIVE: "ACTIVE";
|
|
4012
|
+
readonly FAILED: "FAILED";
|
|
4013
|
+
readonly EXPIRED: "EXPIRED";
|
|
4014
|
+
readonly INACTIVE: "INACTIVE";
|
|
4015
|
+
}>;
|
|
4016
|
+
/** ISO-8601 timestamp of creation */
|
|
4017
|
+
created_at: z.ZodString;
|
|
4018
|
+
/** ISO-8601 timestamp of last update */
|
|
4019
|
+
updated_at: z.ZodString;
|
|
4020
|
+
/** Connection state data (auth scheme + state values) */
|
|
4021
|
+
state: z.ZodObject<{
|
|
4022
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4023
|
+
authScheme: z.ZodNativeEnum<{
|
|
4024
|
+
readonly OAUTH1: "OAUTH1";
|
|
4025
|
+
readonly OAUTH2: "OAUTH2";
|
|
4026
|
+
readonly API_KEY: "API_KEY";
|
|
4027
|
+
readonly BASIC: "BASIC";
|
|
4028
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4029
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4030
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4031
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4032
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4033
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4034
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4035
|
+
readonly SAML: "SAML";
|
|
4036
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4037
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4038
|
+
}>;
|
|
4039
|
+
/** Connection state values - varies by auth scheme */
|
|
4040
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4041
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4042
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4043
|
+
authScheme: z.ZodNativeEnum<{
|
|
4044
|
+
readonly OAUTH1: "OAUTH1";
|
|
4045
|
+
readonly OAUTH2: "OAUTH2";
|
|
4046
|
+
readonly API_KEY: "API_KEY";
|
|
4047
|
+
readonly BASIC: "BASIC";
|
|
4048
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4049
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4050
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4051
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4052
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4053
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4054
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4055
|
+
readonly SAML: "SAML";
|
|
4056
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4057
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4058
|
+
}>;
|
|
4059
|
+
/** Connection state values - varies by auth scheme */
|
|
4060
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4061
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4062
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4063
|
+
authScheme: z.ZodNativeEnum<{
|
|
4064
|
+
readonly OAUTH1: "OAUTH1";
|
|
4065
|
+
readonly OAUTH2: "OAUTH2";
|
|
4066
|
+
readonly API_KEY: "API_KEY";
|
|
4067
|
+
readonly BASIC: "BASIC";
|
|
4068
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4069
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4070
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4071
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4072
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4073
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4074
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4075
|
+
readonly SAML: "SAML";
|
|
4076
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4077
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4078
|
+
}>;
|
|
4079
|
+
/** Connection state values - varies by auth scheme */
|
|
4080
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4081
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4082
|
+
/** @deprecated - use state instead */
|
|
4083
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4084
|
+
/** @deprecated - use state instead */
|
|
4085
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4086
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
4087
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
4088
|
+
/** Whether the connection is disabled */
|
|
4089
|
+
is_disabled: z.ZodBoolean;
|
|
4090
|
+
/** Endpoint for making test requests */
|
|
4091
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
4092
|
+
/** @deprecated */
|
|
4093
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4094
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
4095
|
+
uuid: z.ZodString;
|
|
4096
|
+
}, "strip", z.ZodTypeAny, {
|
|
4097
|
+
uuid: string;
|
|
4098
|
+
labels: string[];
|
|
4099
|
+
}, {
|
|
4100
|
+
uuid: string;
|
|
4101
|
+
labels: string[];
|
|
4102
|
+
}>>;
|
|
4103
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4104
|
+
/** Toolkit information */
|
|
4105
|
+
toolkit: z.ZodObject<{
|
|
4106
|
+
slug: z.ZodString;
|
|
4107
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4108
|
+
slug: z.ZodString;
|
|
4109
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4110
|
+
slug: z.ZodString;
|
|
4111
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4112
|
+
/** Auth config details */
|
|
4113
|
+
auth_config: z.ZodObject<{
|
|
4114
|
+
/** The nano ID of the auth config */
|
|
4115
|
+
id: z.ZodString;
|
|
4116
|
+
/** @deprecated - use state.authScheme instead */
|
|
4117
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4118
|
+
readonly OAUTH1: "OAUTH1";
|
|
4119
|
+
readonly OAUTH2: "OAUTH2";
|
|
4120
|
+
readonly API_KEY: "API_KEY";
|
|
4121
|
+
readonly BASIC: "BASIC";
|
|
4122
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4123
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4124
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4125
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4126
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4127
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4128
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4129
|
+
readonly SAML: "SAML";
|
|
4130
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4131
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4132
|
+
}>;
|
|
4133
|
+
/** Whether this auth config is managed by Composio */
|
|
4134
|
+
is_composio_managed: z.ZodBoolean;
|
|
4135
|
+
/** Whether the auth config is disabled */
|
|
4136
|
+
is_disabled: z.ZodBoolean;
|
|
4137
|
+
/** @deprecated */
|
|
4138
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4139
|
+
uuid: z.ZodString;
|
|
4140
|
+
}, "strip", z.ZodTypeAny, {
|
|
4141
|
+
uuid: string;
|
|
4142
|
+
}, {
|
|
4143
|
+
uuid: string;
|
|
4144
|
+
}>>;
|
|
4145
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4146
|
+
/** The nano ID of the auth config */
|
|
4147
|
+
id: z.ZodString;
|
|
4148
|
+
/** @deprecated - use state.authScheme instead */
|
|
4149
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4150
|
+
readonly OAUTH1: "OAUTH1";
|
|
4151
|
+
readonly OAUTH2: "OAUTH2";
|
|
4152
|
+
readonly API_KEY: "API_KEY";
|
|
4153
|
+
readonly BASIC: "BASIC";
|
|
4154
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4155
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4156
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4157
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4158
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4159
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4160
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4161
|
+
readonly SAML: "SAML";
|
|
4162
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4163
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4164
|
+
}>;
|
|
4165
|
+
/** Whether this auth config is managed by Composio */
|
|
4166
|
+
is_composio_managed: z.ZodBoolean;
|
|
4167
|
+
/** Whether the auth config is disabled */
|
|
4168
|
+
is_disabled: z.ZodBoolean;
|
|
4169
|
+
/** @deprecated */
|
|
4170
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4171
|
+
uuid: z.ZodString;
|
|
4172
|
+
}, "strip", z.ZodTypeAny, {
|
|
4173
|
+
uuid: string;
|
|
4174
|
+
}, {
|
|
4175
|
+
uuid: string;
|
|
4176
|
+
}>>;
|
|
4177
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4178
|
+
/** The nano ID of the auth config */
|
|
4179
|
+
id: z.ZodString;
|
|
4180
|
+
/** @deprecated - use state.authScheme instead */
|
|
4181
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4182
|
+
readonly OAUTH1: "OAUTH1";
|
|
4183
|
+
readonly OAUTH2: "OAUTH2";
|
|
4184
|
+
readonly API_KEY: "API_KEY";
|
|
4185
|
+
readonly BASIC: "BASIC";
|
|
4186
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4187
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4188
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4189
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4190
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4191
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4192
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4193
|
+
readonly SAML: "SAML";
|
|
4194
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4195
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4196
|
+
}>;
|
|
4197
|
+
/** Whether this auth config is managed by Composio */
|
|
4198
|
+
is_composio_managed: z.ZodBoolean;
|
|
4199
|
+
/** Whether the auth config is disabled */
|
|
4200
|
+
is_disabled: z.ZodBoolean;
|
|
4201
|
+
/** @deprecated */
|
|
4202
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4203
|
+
uuid: z.ZodString;
|
|
4204
|
+
}, "strip", z.ZodTypeAny, {
|
|
4205
|
+
uuid: string;
|
|
4206
|
+
}, {
|
|
4207
|
+
uuid: string;
|
|
4208
|
+
}>>;
|
|
4209
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4210
|
+
/** The nano ID of the connected account */
|
|
4211
|
+
id: z.ZodString;
|
|
4212
|
+
/** @deprecated - user ID of the connection owner */
|
|
4213
|
+
user_id: z.ZodString;
|
|
4214
|
+
/** Connection status */
|
|
4215
|
+
status: z.ZodNativeEnum<{
|
|
4216
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
4217
|
+
readonly INITIATED: "INITIATED";
|
|
4218
|
+
readonly ACTIVE: "ACTIVE";
|
|
4219
|
+
readonly FAILED: "FAILED";
|
|
4220
|
+
readonly EXPIRED: "EXPIRED";
|
|
4221
|
+
readonly INACTIVE: "INACTIVE";
|
|
4222
|
+
}>;
|
|
4223
|
+
/** ISO-8601 timestamp of creation */
|
|
4224
|
+
created_at: z.ZodString;
|
|
4225
|
+
/** ISO-8601 timestamp of last update */
|
|
4226
|
+
updated_at: z.ZodString;
|
|
4227
|
+
/** Connection state data (auth scheme + state values) */
|
|
4228
|
+
state: z.ZodObject<{
|
|
4229
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4230
|
+
authScheme: z.ZodNativeEnum<{
|
|
4231
|
+
readonly OAUTH1: "OAUTH1";
|
|
4232
|
+
readonly OAUTH2: "OAUTH2";
|
|
4233
|
+
readonly API_KEY: "API_KEY";
|
|
4234
|
+
readonly BASIC: "BASIC";
|
|
4235
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4236
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4237
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4238
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4239
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4240
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4241
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4242
|
+
readonly SAML: "SAML";
|
|
4243
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4244
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4245
|
+
}>;
|
|
4246
|
+
/** Connection state values - varies by auth scheme */
|
|
4247
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4248
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4249
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4250
|
+
authScheme: z.ZodNativeEnum<{
|
|
4251
|
+
readonly OAUTH1: "OAUTH1";
|
|
4252
|
+
readonly OAUTH2: "OAUTH2";
|
|
4253
|
+
readonly API_KEY: "API_KEY";
|
|
4254
|
+
readonly BASIC: "BASIC";
|
|
4255
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4256
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4257
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4258
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4259
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4260
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4261
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4262
|
+
readonly SAML: "SAML";
|
|
4263
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4264
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4265
|
+
}>;
|
|
4266
|
+
/** Connection state values - varies by auth scheme */
|
|
4267
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4268
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4269
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4270
|
+
authScheme: z.ZodNativeEnum<{
|
|
4271
|
+
readonly OAUTH1: "OAUTH1";
|
|
4272
|
+
readonly OAUTH2: "OAUTH2";
|
|
4273
|
+
readonly API_KEY: "API_KEY";
|
|
4274
|
+
readonly BASIC: "BASIC";
|
|
4275
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4276
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4277
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4278
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4279
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4280
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4281
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4282
|
+
readonly SAML: "SAML";
|
|
4283
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4284
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4285
|
+
}>;
|
|
4286
|
+
/** Connection state values - varies by auth scheme */
|
|
4287
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4288
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4289
|
+
/** @deprecated - use state instead */
|
|
4290
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4291
|
+
/** @deprecated - use state instead */
|
|
4292
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4293
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
4294
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
4295
|
+
/** Whether the connection is disabled */
|
|
4296
|
+
is_disabled: z.ZodBoolean;
|
|
4297
|
+
/** Endpoint for making test requests */
|
|
4298
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
4299
|
+
/** @deprecated */
|
|
4300
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4301
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
4302
|
+
uuid: z.ZodString;
|
|
4303
|
+
}, "strip", z.ZodTypeAny, {
|
|
4304
|
+
uuid: string;
|
|
4305
|
+
labels: string[];
|
|
4306
|
+
}, {
|
|
4307
|
+
uuid: string;
|
|
4308
|
+
labels: string[];
|
|
4309
|
+
}>>;
|
|
4310
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4311
|
+
/** Event metadata */
|
|
4312
|
+
metadata: z.ZodObject<{
|
|
4313
|
+
/** Project nano ID */
|
|
4314
|
+
project_id: z.ZodString;
|
|
4315
|
+
/** Organization UUID */
|
|
4316
|
+
org_id: z.ZodString;
|
|
4317
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4318
|
+
/** Project nano ID */
|
|
4319
|
+
project_id: z.ZodString;
|
|
4320
|
+
/** Organization UUID */
|
|
4321
|
+
org_id: z.ZodString;
|
|
4322
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4323
|
+
/** Project nano ID */
|
|
4324
|
+
project_id: z.ZodString;
|
|
4325
|
+
/** Organization UUID */
|
|
4326
|
+
org_id: z.ZodString;
|
|
4327
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4328
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4329
|
+
/** Unique message ID (e.g., "msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a") */
|
|
4330
|
+
id: z.ZodString;
|
|
4331
|
+
/** ISO-8601 timestamp of when the event was emitted */
|
|
4332
|
+
timestamp: z.ZodString;
|
|
4333
|
+
/** Event type identifier */
|
|
4334
|
+
type: z.ZodLiteral<"composio.connected_account.expired">;
|
|
4335
|
+
/** Connected account data (same as GET /api/v3/connected_accounts/{id}) */
|
|
4336
|
+
data: z.ZodObject<{
|
|
4337
|
+
/** Toolkit information */
|
|
4338
|
+
toolkit: z.ZodObject<{
|
|
4339
|
+
slug: z.ZodString;
|
|
4340
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4341
|
+
slug: z.ZodString;
|
|
4342
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4343
|
+
slug: z.ZodString;
|
|
4344
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4345
|
+
/** Auth config details */
|
|
4346
|
+
auth_config: z.ZodObject<{
|
|
4347
|
+
/** The nano ID of the auth config */
|
|
4348
|
+
id: z.ZodString;
|
|
4349
|
+
/** @deprecated - use state.authScheme instead */
|
|
4350
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4351
|
+
readonly OAUTH1: "OAUTH1";
|
|
4352
|
+
readonly OAUTH2: "OAUTH2";
|
|
4353
|
+
readonly API_KEY: "API_KEY";
|
|
4354
|
+
readonly BASIC: "BASIC";
|
|
4355
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4356
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4357
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4358
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4359
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4360
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4361
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4362
|
+
readonly SAML: "SAML";
|
|
4363
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4364
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4365
|
+
}>;
|
|
4366
|
+
/** Whether this auth config is managed by Composio */
|
|
4367
|
+
is_composio_managed: z.ZodBoolean;
|
|
4368
|
+
/** Whether the auth config is disabled */
|
|
4369
|
+
is_disabled: z.ZodBoolean;
|
|
4370
|
+
/** @deprecated */
|
|
4371
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4372
|
+
uuid: z.ZodString;
|
|
4373
|
+
}, "strip", z.ZodTypeAny, {
|
|
4374
|
+
uuid: string;
|
|
4375
|
+
}, {
|
|
4376
|
+
uuid: string;
|
|
4377
|
+
}>>;
|
|
4378
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4379
|
+
/** The nano ID of the auth config */
|
|
4380
|
+
id: z.ZodString;
|
|
4381
|
+
/** @deprecated - use state.authScheme instead */
|
|
4382
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4383
|
+
readonly OAUTH1: "OAUTH1";
|
|
4384
|
+
readonly OAUTH2: "OAUTH2";
|
|
4385
|
+
readonly API_KEY: "API_KEY";
|
|
4386
|
+
readonly BASIC: "BASIC";
|
|
4387
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4388
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4389
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4390
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4391
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4392
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4393
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4394
|
+
readonly SAML: "SAML";
|
|
4395
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4396
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4397
|
+
}>;
|
|
4398
|
+
/** Whether this auth config is managed by Composio */
|
|
4399
|
+
is_composio_managed: z.ZodBoolean;
|
|
4400
|
+
/** Whether the auth config is disabled */
|
|
4401
|
+
is_disabled: z.ZodBoolean;
|
|
4402
|
+
/** @deprecated */
|
|
4403
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4404
|
+
uuid: z.ZodString;
|
|
4405
|
+
}, "strip", z.ZodTypeAny, {
|
|
4406
|
+
uuid: string;
|
|
4407
|
+
}, {
|
|
4408
|
+
uuid: string;
|
|
4409
|
+
}>>;
|
|
4410
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4411
|
+
/** The nano ID of the auth config */
|
|
4412
|
+
id: z.ZodString;
|
|
4413
|
+
/** @deprecated - use state.authScheme instead */
|
|
4414
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4415
|
+
readonly OAUTH1: "OAUTH1";
|
|
4416
|
+
readonly OAUTH2: "OAUTH2";
|
|
4417
|
+
readonly API_KEY: "API_KEY";
|
|
4418
|
+
readonly BASIC: "BASIC";
|
|
4419
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4420
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4421
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4422
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4423
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4424
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4425
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4426
|
+
readonly SAML: "SAML";
|
|
4427
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4428
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4429
|
+
}>;
|
|
4430
|
+
/** Whether this auth config is managed by Composio */
|
|
4431
|
+
is_composio_managed: z.ZodBoolean;
|
|
4432
|
+
/** Whether the auth config is disabled */
|
|
4433
|
+
is_disabled: z.ZodBoolean;
|
|
4434
|
+
/** @deprecated */
|
|
4435
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4436
|
+
uuid: z.ZodString;
|
|
4437
|
+
}, "strip", z.ZodTypeAny, {
|
|
4438
|
+
uuid: string;
|
|
4439
|
+
}, {
|
|
4440
|
+
uuid: string;
|
|
4441
|
+
}>>;
|
|
4442
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4443
|
+
/** The nano ID of the connected account */
|
|
4444
|
+
id: z.ZodString;
|
|
4445
|
+
/** @deprecated - user ID of the connection owner */
|
|
4446
|
+
user_id: z.ZodString;
|
|
4447
|
+
/** Connection status */
|
|
4448
|
+
status: z.ZodNativeEnum<{
|
|
4449
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
4450
|
+
readonly INITIATED: "INITIATED";
|
|
4451
|
+
readonly ACTIVE: "ACTIVE";
|
|
4452
|
+
readonly FAILED: "FAILED";
|
|
4453
|
+
readonly EXPIRED: "EXPIRED";
|
|
4454
|
+
readonly INACTIVE: "INACTIVE";
|
|
4455
|
+
}>;
|
|
4456
|
+
/** ISO-8601 timestamp of creation */
|
|
4457
|
+
created_at: z.ZodString;
|
|
4458
|
+
/** ISO-8601 timestamp of last update */
|
|
4459
|
+
updated_at: z.ZodString;
|
|
4460
|
+
/** Connection state data (auth scheme + state values) */
|
|
4461
|
+
state: z.ZodObject<{
|
|
4462
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4463
|
+
authScheme: z.ZodNativeEnum<{
|
|
4464
|
+
readonly OAUTH1: "OAUTH1";
|
|
4465
|
+
readonly OAUTH2: "OAUTH2";
|
|
4466
|
+
readonly API_KEY: "API_KEY";
|
|
4467
|
+
readonly BASIC: "BASIC";
|
|
4468
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4469
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4470
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4471
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4472
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4473
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4474
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4475
|
+
readonly SAML: "SAML";
|
|
4476
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4477
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4478
|
+
}>;
|
|
4479
|
+
/** Connection state values - varies by auth scheme */
|
|
4480
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4481
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4482
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4483
|
+
authScheme: z.ZodNativeEnum<{
|
|
4484
|
+
readonly OAUTH1: "OAUTH1";
|
|
4485
|
+
readonly OAUTH2: "OAUTH2";
|
|
4486
|
+
readonly API_KEY: "API_KEY";
|
|
4487
|
+
readonly BASIC: "BASIC";
|
|
4488
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4489
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4490
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4491
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4492
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4493
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4494
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4495
|
+
readonly SAML: "SAML";
|
|
4496
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4497
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4498
|
+
}>;
|
|
4499
|
+
/** Connection state values - varies by auth scheme */
|
|
4500
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4501
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4502
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4503
|
+
authScheme: z.ZodNativeEnum<{
|
|
4504
|
+
readonly OAUTH1: "OAUTH1";
|
|
4505
|
+
readonly OAUTH2: "OAUTH2";
|
|
4506
|
+
readonly API_KEY: "API_KEY";
|
|
4507
|
+
readonly BASIC: "BASIC";
|
|
4508
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4509
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4510
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4511
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4512
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4513
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4514
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4515
|
+
readonly SAML: "SAML";
|
|
4516
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4517
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4518
|
+
}>;
|
|
4519
|
+
/** Connection state values - varies by auth scheme */
|
|
4520
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4521
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4522
|
+
/** @deprecated - use state instead */
|
|
4523
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4524
|
+
/** @deprecated - use state instead */
|
|
4525
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4526
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
4527
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
4528
|
+
/** Whether the connection is disabled */
|
|
4529
|
+
is_disabled: z.ZodBoolean;
|
|
4530
|
+
/** Endpoint for making test requests */
|
|
4531
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
4532
|
+
/** @deprecated */
|
|
4533
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4534
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
4535
|
+
uuid: z.ZodString;
|
|
4536
|
+
}, "strip", z.ZodTypeAny, {
|
|
4537
|
+
uuid: string;
|
|
4538
|
+
labels: string[];
|
|
4539
|
+
}, {
|
|
4540
|
+
uuid: string;
|
|
4541
|
+
labels: string[];
|
|
4542
|
+
}>>;
|
|
4543
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4544
|
+
/** Toolkit information */
|
|
4545
|
+
toolkit: z.ZodObject<{
|
|
4546
|
+
slug: z.ZodString;
|
|
4547
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4548
|
+
slug: z.ZodString;
|
|
4549
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4550
|
+
slug: z.ZodString;
|
|
4551
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4552
|
+
/** Auth config details */
|
|
4553
|
+
auth_config: z.ZodObject<{
|
|
4554
|
+
/** The nano ID of the auth config */
|
|
4555
|
+
id: z.ZodString;
|
|
4556
|
+
/** @deprecated - use state.authScheme instead */
|
|
4557
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4558
|
+
readonly OAUTH1: "OAUTH1";
|
|
4559
|
+
readonly OAUTH2: "OAUTH2";
|
|
4560
|
+
readonly API_KEY: "API_KEY";
|
|
4561
|
+
readonly BASIC: "BASIC";
|
|
4562
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4563
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4564
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4565
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4566
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4567
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4568
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4569
|
+
readonly SAML: "SAML";
|
|
4570
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4571
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4572
|
+
}>;
|
|
4573
|
+
/** Whether this auth config is managed by Composio */
|
|
4574
|
+
is_composio_managed: z.ZodBoolean;
|
|
4575
|
+
/** Whether the auth config is disabled */
|
|
4576
|
+
is_disabled: z.ZodBoolean;
|
|
4577
|
+
/** @deprecated */
|
|
4578
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4579
|
+
uuid: z.ZodString;
|
|
4580
|
+
}, "strip", z.ZodTypeAny, {
|
|
4581
|
+
uuid: string;
|
|
4582
|
+
}, {
|
|
4583
|
+
uuid: string;
|
|
4584
|
+
}>>;
|
|
4585
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4586
|
+
/** The nano ID of the auth config */
|
|
4587
|
+
id: z.ZodString;
|
|
4588
|
+
/** @deprecated - use state.authScheme instead */
|
|
4589
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4590
|
+
readonly OAUTH1: "OAUTH1";
|
|
4591
|
+
readonly OAUTH2: "OAUTH2";
|
|
4592
|
+
readonly API_KEY: "API_KEY";
|
|
4593
|
+
readonly BASIC: "BASIC";
|
|
4594
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4595
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4596
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4597
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4598
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4599
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4600
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4601
|
+
readonly SAML: "SAML";
|
|
4602
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4603
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4604
|
+
}>;
|
|
4605
|
+
/** Whether this auth config is managed by Composio */
|
|
4606
|
+
is_composio_managed: z.ZodBoolean;
|
|
4607
|
+
/** Whether the auth config is disabled */
|
|
4608
|
+
is_disabled: z.ZodBoolean;
|
|
4609
|
+
/** @deprecated */
|
|
4610
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4611
|
+
uuid: z.ZodString;
|
|
4612
|
+
}, "strip", z.ZodTypeAny, {
|
|
4613
|
+
uuid: string;
|
|
4614
|
+
}, {
|
|
4615
|
+
uuid: string;
|
|
4616
|
+
}>>;
|
|
4617
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4618
|
+
/** The nano ID of the auth config */
|
|
4619
|
+
id: z.ZodString;
|
|
4620
|
+
/** @deprecated - use state.authScheme instead */
|
|
4621
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4622
|
+
readonly OAUTH1: "OAUTH1";
|
|
4623
|
+
readonly OAUTH2: "OAUTH2";
|
|
4624
|
+
readonly API_KEY: "API_KEY";
|
|
4625
|
+
readonly BASIC: "BASIC";
|
|
4626
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4627
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4628
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4629
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4630
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4631
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4632
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4633
|
+
readonly SAML: "SAML";
|
|
4634
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4635
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4636
|
+
}>;
|
|
4637
|
+
/** Whether this auth config is managed by Composio */
|
|
4638
|
+
is_composio_managed: z.ZodBoolean;
|
|
4639
|
+
/** Whether the auth config is disabled */
|
|
4640
|
+
is_disabled: z.ZodBoolean;
|
|
4641
|
+
/** @deprecated */
|
|
4642
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4643
|
+
uuid: z.ZodString;
|
|
4644
|
+
}, "strip", z.ZodTypeAny, {
|
|
4645
|
+
uuid: string;
|
|
4646
|
+
}, {
|
|
4647
|
+
uuid: string;
|
|
4648
|
+
}>>;
|
|
4649
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4650
|
+
/** The nano ID of the connected account */
|
|
4651
|
+
id: z.ZodString;
|
|
4652
|
+
/** @deprecated - user ID of the connection owner */
|
|
4653
|
+
user_id: z.ZodString;
|
|
4654
|
+
/** Connection status */
|
|
4655
|
+
status: z.ZodNativeEnum<{
|
|
4656
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
4657
|
+
readonly INITIATED: "INITIATED";
|
|
4658
|
+
readonly ACTIVE: "ACTIVE";
|
|
4659
|
+
readonly FAILED: "FAILED";
|
|
4660
|
+
readonly EXPIRED: "EXPIRED";
|
|
4661
|
+
readonly INACTIVE: "INACTIVE";
|
|
4662
|
+
}>;
|
|
4663
|
+
/** ISO-8601 timestamp of creation */
|
|
4664
|
+
created_at: z.ZodString;
|
|
4665
|
+
/** ISO-8601 timestamp of last update */
|
|
4666
|
+
updated_at: z.ZodString;
|
|
4667
|
+
/** Connection state data (auth scheme + state values) */
|
|
4668
|
+
state: z.ZodObject<{
|
|
4669
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4670
|
+
authScheme: z.ZodNativeEnum<{
|
|
4671
|
+
readonly OAUTH1: "OAUTH1";
|
|
4672
|
+
readonly OAUTH2: "OAUTH2";
|
|
4673
|
+
readonly API_KEY: "API_KEY";
|
|
4674
|
+
readonly BASIC: "BASIC";
|
|
4675
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4676
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4677
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4678
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4679
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4680
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4681
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4682
|
+
readonly SAML: "SAML";
|
|
4683
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4684
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4685
|
+
}>;
|
|
4686
|
+
/** Connection state values - varies by auth scheme */
|
|
4687
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4688
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4689
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4690
|
+
authScheme: z.ZodNativeEnum<{
|
|
4691
|
+
readonly OAUTH1: "OAUTH1";
|
|
4692
|
+
readonly OAUTH2: "OAUTH2";
|
|
4693
|
+
readonly API_KEY: "API_KEY";
|
|
4694
|
+
readonly BASIC: "BASIC";
|
|
4695
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4696
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4697
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4698
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4699
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4700
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4701
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4702
|
+
readonly SAML: "SAML";
|
|
4703
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4704
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4705
|
+
}>;
|
|
4706
|
+
/** Connection state values - varies by auth scheme */
|
|
4707
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4708
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4709
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4710
|
+
authScheme: z.ZodNativeEnum<{
|
|
4711
|
+
readonly OAUTH1: "OAUTH1";
|
|
4712
|
+
readonly OAUTH2: "OAUTH2";
|
|
4713
|
+
readonly API_KEY: "API_KEY";
|
|
4714
|
+
readonly BASIC: "BASIC";
|
|
4715
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4716
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4717
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4718
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4719
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4720
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4721
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4722
|
+
readonly SAML: "SAML";
|
|
4723
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4724
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4725
|
+
}>;
|
|
4726
|
+
/** Connection state values - varies by auth scheme */
|
|
4727
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4728
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4729
|
+
/** @deprecated - use state instead */
|
|
4730
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4731
|
+
/** @deprecated - use state instead */
|
|
4732
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4733
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
4734
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
4735
|
+
/** Whether the connection is disabled */
|
|
4736
|
+
is_disabled: z.ZodBoolean;
|
|
4737
|
+
/** Endpoint for making test requests */
|
|
4738
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
/** @deprecated */
|
|
4740
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4741
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
4742
|
+
uuid: z.ZodString;
|
|
4743
|
+
}, "strip", z.ZodTypeAny, {
|
|
4744
|
+
uuid: string;
|
|
4745
|
+
labels: string[];
|
|
4746
|
+
}, {
|
|
4747
|
+
uuid: string;
|
|
4748
|
+
labels: string[];
|
|
4749
|
+
}>>;
|
|
4750
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4751
|
+
/** Toolkit information */
|
|
4752
|
+
toolkit: z.ZodObject<{
|
|
4753
|
+
slug: z.ZodString;
|
|
4754
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4755
|
+
slug: z.ZodString;
|
|
4756
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4757
|
+
slug: z.ZodString;
|
|
4758
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4759
|
+
/** Auth config details */
|
|
4760
|
+
auth_config: z.ZodObject<{
|
|
4761
|
+
/** The nano ID of the auth config */
|
|
4762
|
+
id: z.ZodString;
|
|
4763
|
+
/** @deprecated - use state.authScheme instead */
|
|
4764
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4765
|
+
readonly OAUTH1: "OAUTH1";
|
|
4766
|
+
readonly OAUTH2: "OAUTH2";
|
|
4767
|
+
readonly API_KEY: "API_KEY";
|
|
4768
|
+
readonly BASIC: "BASIC";
|
|
4769
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4770
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4771
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4772
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4773
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4774
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4775
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4776
|
+
readonly SAML: "SAML";
|
|
4777
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4778
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4779
|
+
}>;
|
|
4780
|
+
/** Whether this auth config is managed by Composio */
|
|
4781
|
+
is_composio_managed: z.ZodBoolean;
|
|
4782
|
+
/** Whether the auth config is disabled */
|
|
4783
|
+
is_disabled: z.ZodBoolean;
|
|
4784
|
+
/** @deprecated */
|
|
4785
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4786
|
+
uuid: z.ZodString;
|
|
4787
|
+
}, "strip", z.ZodTypeAny, {
|
|
4788
|
+
uuid: string;
|
|
4789
|
+
}, {
|
|
4790
|
+
uuid: string;
|
|
4791
|
+
}>>;
|
|
4792
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4793
|
+
/** The nano ID of the auth config */
|
|
4794
|
+
id: z.ZodString;
|
|
4795
|
+
/** @deprecated - use state.authScheme instead */
|
|
4796
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4797
|
+
readonly OAUTH1: "OAUTH1";
|
|
4798
|
+
readonly OAUTH2: "OAUTH2";
|
|
4799
|
+
readonly API_KEY: "API_KEY";
|
|
4800
|
+
readonly BASIC: "BASIC";
|
|
4801
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4802
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4803
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4804
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4805
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4806
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4807
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4808
|
+
readonly SAML: "SAML";
|
|
4809
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4810
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4811
|
+
}>;
|
|
4812
|
+
/** Whether this auth config is managed by Composio */
|
|
4813
|
+
is_composio_managed: z.ZodBoolean;
|
|
4814
|
+
/** Whether the auth config is disabled */
|
|
4815
|
+
is_disabled: z.ZodBoolean;
|
|
4816
|
+
/** @deprecated */
|
|
4817
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4818
|
+
uuid: z.ZodString;
|
|
4819
|
+
}, "strip", z.ZodTypeAny, {
|
|
4820
|
+
uuid: string;
|
|
4821
|
+
}, {
|
|
4822
|
+
uuid: string;
|
|
4823
|
+
}>>;
|
|
4824
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4825
|
+
/** The nano ID of the auth config */
|
|
4826
|
+
id: z.ZodString;
|
|
4827
|
+
/** @deprecated - use state.authScheme instead */
|
|
4828
|
+
auth_scheme: z.ZodNativeEnum<{
|
|
4829
|
+
readonly OAUTH1: "OAUTH1";
|
|
4830
|
+
readonly OAUTH2: "OAUTH2";
|
|
4831
|
+
readonly API_KEY: "API_KEY";
|
|
4832
|
+
readonly BASIC: "BASIC";
|
|
4833
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4834
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4835
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4836
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4837
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4838
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4839
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4840
|
+
readonly SAML: "SAML";
|
|
4841
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4842
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4843
|
+
}>;
|
|
4844
|
+
/** Whether this auth config is managed by Composio */
|
|
4845
|
+
is_composio_managed: z.ZodBoolean;
|
|
4846
|
+
/** Whether the auth config is disabled */
|
|
4847
|
+
is_disabled: z.ZodBoolean;
|
|
4848
|
+
/** @deprecated */
|
|
4849
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4850
|
+
uuid: z.ZodString;
|
|
4851
|
+
}, "strip", z.ZodTypeAny, {
|
|
4852
|
+
uuid: string;
|
|
4853
|
+
}, {
|
|
4854
|
+
uuid: string;
|
|
4855
|
+
}>>;
|
|
4856
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4857
|
+
/** The nano ID of the connected account */
|
|
4858
|
+
id: z.ZodString;
|
|
4859
|
+
/** @deprecated - user ID of the connection owner */
|
|
4860
|
+
user_id: z.ZodString;
|
|
4861
|
+
/** Connection status */
|
|
4862
|
+
status: z.ZodNativeEnum<{
|
|
4863
|
+
readonly INITIALIZING: "INITIALIZING";
|
|
4864
|
+
readonly INITIATED: "INITIATED";
|
|
4865
|
+
readonly ACTIVE: "ACTIVE";
|
|
4866
|
+
readonly FAILED: "FAILED";
|
|
4867
|
+
readonly EXPIRED: "EXPIRED";
|
|
4868
|
+
readonly INACTIVE: "INACTIVE";
|
|
4869
|
+
}>;
|
|
4870
|
+
/** ISO-8601 timestamp of creation */
|
|
4871
|
+
created_at: z.ZodString;
|
|
4872
|
+
/** ISO-8601 timestamp of last update */
|
|
4873
|
+
updated_at: z.ZodString;
|
|
4874
|
+
/** Connection state data (auth scheme + state values) */
|
|
4875
|
+
state: z.ZodObject<{
|
|
4876
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4877
|
+
authScheme: z.ZodNativeEnum<{
|
|
4878
|
+
readonly OAUTH1: "OAUTH1";
|
|
4879
|
+
readonly OAUTH2: "OAUTH2";
|
|
4880
|
+
readonly API_KEY: "API_KEY";
|
|
4881
|
+
readonly BASIC: "BASIC";
|
|
4882
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4883
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4884
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4885
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4886
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4887
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4888
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4889
|
+
readonly SAML: "SAML";
|
|
4890
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4891
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4892
|
+
}>;
|
|
4893
|
+
/** Connection state values - varies by auth scheme */
|
|
4894
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4895
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4896
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4897
|
+
authScheme: z.ZodNativeEnum<{
|
|
4898
|
+
readonly OAUTH1: "OAUTH1";
|
|
4899
|
+
readonly OAUTH2: "OAUTH2";
|
|
4900
|
+
readonly API_KEY: "API_KEY";
|
|
4901
|
+
readonly BASIC: "BASIC";
|
|
4902
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4903
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4904
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4905
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4906
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4907
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4908
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4909
|
+
readonly SAML: "SAML";
|
|
4910
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4911
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4912
|
+
}>;
|
|
4913
|
+
/** Connection state values - varies by auth scheme */
|
|
4914
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4915
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4916
|
+
/** The auth scheme type (e.g., 'OAUTH2', 'API_KEY') */
|
|
4917
|
+
authScheme: z.ZodNativeEnum<{
|
|
4918
|
+
readonly OAUTH1: "OAUTH1";
|
|
4919
|
+
readonly OAUTH2: "OAUTH2";
|
|
4920
|
+
readonly API_KEY: "API_KEY";
|
|
4921
|
+
readonly BASIC: "BASIC";
|
|
4922
|
+
readonly BEARER_TOKEN: "BEARER_TOKEN";
|
|
4923
|
+
readonly BILLCOM_AUTH: "BILLCOM_AUTH";
|
|
4924
|
+
readonly GOOGLE_SERVICE_ACCOUNT: "GOOGLE_SERVICE_ACCOUNT";
|
|
4925
|
+
readonly NO_AUTH: "NO_AUTH";
|
|
4926
|
+
readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
|
|
4927
|
+
readonly CALCOM_AUTH: "CALCOM_AUTH";
|
|
4928
|
+
readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
|
|
4929
|
+
readonly SAML: "SAML";
|
|
4930
|
+
readonly DCR_OAUTH: "DCR_OAUTH";
|
|
4931
|
+
readonly S2S_OAUTH2: "S2S_OAUTH2";
|
|
4932
|
+
}>;
|
|
4933
|
+
/** Connection state values - varies by auth scheme */
|
|
4934
|
+
val: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4935
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4936
|
+
/** @deprecated - use state instead */
|
|
4937
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4938
|
+
/** @deprecated - use state instead */
|
|
4939
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4940
|
+
/** Reason for the current status (e.g., expiration reason) */
|
|
4941
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
4942
|
+
/** Whether the connection is disabled */
|
|
4943
|
+
is_disabled: z.ZodBoolean;
|
|
4944
|
+
/** Endpoint for making test requests */
|
|
4945
|
+
test_request_endpoint: z.ZodOptional<z.ZodString>;
|
|
4946
|
+
/** @deprecated */
|
|
4947
|
+
deprecated: z.ZodOptional<z.ZodObject<{
|
|
4948
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
4949
|
+
uuid: z.ZodString;
|
|
4950
|
+
}, "strip", z.ZodTypeAny, {
|
|
4951
|
+
uuid: string;
|
|
4952
|
+
labels: string[];
|
|
4953
|
+
}, {
|
|
4954
|
+
uuid: string;
|
|
4955
|
+
labels: string[];
|
|
4956
|
+
}>>;
|
|
4957
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4958
|
+
/** Event metadata */
|
|
4959
|
+
metadata: z.ZodObject<{
|
|
4960
|
+
/** Project nano ID */
|
|
4961
|
+
project_id: z.ZodString;
|
|
4962
|
+
/** Organization UUID */
|
|
4963
|
+
org_id: z.ZodString;
|
|
4964
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4965
|
+
/** Project nano ID */
|
|
4966
|
+
project_id: z.ZodString;
|
|
4967
|
+
/** Organization UUID */
|
|
4968
|
+
org_id: z.ZodString;
|
|
4969
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4970
|
+
/** Project nano ID */
|
|
4971
|
+
project_id: z.ZodString;
|
|
4972
|
+
/** Organization UUID */
|
|
4973
|
+
org_id: z.ZodString;
|
|
4974
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4975
|
+
}, z.ZodTypeAny, "passthrough">>]>;
|
|
4976
|
+
type WebhookEvent = z.infer<typeof WebhookEventSchema>;
|
|
203
4977
|
declare namespace constants_d_exports {
|
|
204
4978
|
export { CLIENT_PUSHER_KEY, COMPOSIO_DIR, COMPOSIO_LOG_LEVEL, DEFAULT_BASE_URL, DEFAULT_WEB_URL, IS_DEVELOPMENT_OR_CI, TELEMETRY_URL, TEMP_FILES_DIRECTORY_NAME, USER_DATA_FILE_NAME };
|
|
205
4979
|
}
|
|
@@ -576,4 +5350,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
|
|
|
576
5350
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
577
5351
|
}
|
|
578
5352
|
//#endregion
|
|
579
|
-
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptions, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, MetaToolArguments, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, SessionExecuteMetaModifiers, SessionMetaToolOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRetrievalOptions, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTags, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfig, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterSessionExperimental, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsFn, ToolRouterToolkitsOptions, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsFn, ToolRouterToolsParam, ToolRouterToolsParamSchema, ToolSchema, Toolkit, ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, ToolkitAuthField, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, ToolkitCategory, ToolkitCategorySchema, ToolkitConnectionState, ToolkitConnectionStateSchema, ToolkitConnectionsDetails, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersion, ToolkitLatestVersionSchema, ToolkitListParams, ToolkitMangedByEnum, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitVersion, ToolkitVersionParam, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersions, ToolkitVersionsSchema, ToolkitsListParamsSchema, TransformToolSchemaModifier, TriggerData, TriggerErrorCodes, TriggerEvent, TriggerEventData, TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponse, TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, TriggerSubscribeParams, TriggerType, TriggerTypeSchema, TriggersTypeListParams, TriggersTypeListParamsSchema, TriggersTypeListResponse, TriggersTypeListResponseSchema, TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, VerifyWebhookParams, VerifyWebhookParamsSchema, VerifyWebhookResult, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
|
5353
|
+
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptions, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionExpiredEvent, ConnectionExpiredEventSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, MetaToolArguments, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, SessionExecuteMetaModifiers, SessionMetaToolOptions, SingleConnectedAccountDetailedResponse, SingleConnectedAccountDetailedResponseSchema, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRetrievalOptions, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTags, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfig, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterSessionExperimental, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsFn, ToolRouterToolkitsOptions, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsFn, ToolRouterToolsParam, ToolRouterToolsParamSchema, ToolSchema, Toolkit, ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, ToolkitAuthField, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, ToolkitCategory, ToolkitCategorySchema, ToolkitConnectionState, ToolkitConnectionStateSchema, ToolkitConnectionsDetails, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersion, ToolkitLatestVersionSchema, ToolkitListParams, ToolkitMangedByEnum, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitVersion, ToolkitVersionParam, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersions, ToolkitVersionsSchema, ToolkitsListParamsSchema, TransformToolSchemaModifier, TriggerData, TriggerErrorCodes, TriggerEvent, TriggerEventData, TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponse, TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, TriggerSubscribeParams, TriggerType, TriggerTypeSchema, TriggersTypeListParams, TriggersTypeListParamsSchema, TriggersTypeListResponse, TriggersTypeListResponseSchema, TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, VerifyWebhookParams, VerifyWebhookParamsSchema, VerifyWebhookResult, WebhookConnectedAccountAuthConfig, WebhookConnectedAccountAuthConfigSchema, WebhookConnectionMetadata, WebhookConnectionMetadataSchema, WebhookConnectionState, WebhookConnectionStateSchema, WebhookEvent, WebhookEventSchema, WebhookEventType, WebhookEventTypes, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookTriggerPayloadV3, WebhookTriggerPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|