@composio/client 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/MIGRATION.md +13 -0
  2. package/README.md +4 -4
  3. package/dist/{_internal-C4ZzriQ6.d.mts → _internal-1d0QoPQ3.d.mts} +178 -13
  4. package/dist/{_internal-ChynSuwG.d.mts → _internal-uub7kBfy.d.mts} +4 -2
  5. package/dist/effect/internal.d.mts +1 -1
  6. package/dist/effect/schemas/_internal/logs/tools/retrieve.d.mts +1 -0
  7. package/dist/effect/schemas/_internal/logs/tools/retrieve.mjs +1 -0
  8. package/dist/effect/schemas/components/session-link-response-experimental.d.mts +2 -2
  9. package/dist/effect/schemas/components/session-link-response-experimental.mjs +2 -2
  10. package/dist/effect/schemas/connected-accounts/create.d.mts +2 -2
  11. package/dist/effect/schemas/connected-accounts/list.d.mts +3 -3
  12. package/dist/effect/schemas/connected-accounts/list.mjs +1 -1
  13. package/dist/effect/schemas/connected-accounts/retrieve.d.mts +3 -3
  14. package/dist/effect/schemas/connected-accounts/retrieve.mjs +1 -1
  15. package/dist/effect/schemas/link/create.d.mts +2 -2
  16. package/dist/effect/schemas/logs/create-tool-execution.d.mts +5 -0
  17. package/dist/effect/schemas/logs/create-tool-execution.mjs +5 -2
  18. package/dist/effect/schemas/logs/retrieve-tool-execution.d.mts +2 -0
  19. package/dist/effect/schemas/logs/retrieve-tool-execution.mjs +3 -1
  20. package/dist/effect/schemas/tool-router/session/link.d.mts +2 -2
  21. package/dist/effect/schemas/toolkits/list-scopes.d.mts +13 -0
  22. package/dist/effect/schemas/toolkits/list-scopes.mjs +17 -0
  23. package/dist/effect/schemas/toolkits/retrieve.d.mts +1 -0
  24. package/dist/effect/schemas/toolkits/retrieve.mjs +8 -0
  25. package/dist/effect/schemas.d.mts +32 -12
  26. package/dist/effect/schemas.mjs +1 -0
  27. package/dist/effect.d.mts +5 -4
  28. package/dist/effect.mjs +12 -5
  29. package/dist/{environments-C90r_t8M.mjs → environments-BoZhRNmR.mjs} +2 -2
  30. package/dist/{environments-j3Mor1h6.d.mts → environments-CuyJ-4ao.d.mts} +1 -1
  31. package/dist/{error-hMgVE2qc.mjs → error-Ch0f9xi8.mjs} +4 -1
  32. package/dist/{generated-operations-Btwe6bGR.mjs → generated-operations-DjDuvWLu.mjs} +8 -2
  33. package/dist/index.d.mts +3 -3
  34. package/dist/index.mjs +4 -4
  35. package/dist/internal.d.mts +1 -1
  36. package/dist/{pagination-rules-DMTBYzG_.mjs → pagination-rules-4iuoHqVk.mjs} +1 -1
  37. package/dist/pagination.mjs +1 -1
  38. package/dist/resources/_internal/_internal.d.mts +1 -1
  39. package/dist/resources/_internal/cli/cli.d.mts +1 -1
  40. package/dist/resources/_internal/cli/cli.mjs +1 -1
  41. package/dist/resources/_internal/cli/realtime.d.mts +1 -1
  42. package/dist/resources/_internal/cli/realtime.mjs +1 -1
  43. package/dist/resources/_internal/cli.d.mts +1 -1
  44. package/dist/resources/_internal/consumer/consumer.d.mts +1 -1
  45. package/dist/resources/_internal/consumer/permissions.d.mts +1 -1
  46. package/dist/resources/_internal/consumer/permissions.mjs +1 -1
  47. package/dist/resources/_internal/consumer.d.mts +1 -1
  48. package/dist/resources/_internal/logs/logs.d.mts +1 -1
  49. package/dist/resources/_internal/logs/tools.d.mts +1 -1
  50. package/dist/resources/_internal/logs/tools.mjs +1 -1
  51. package/dist/resources/_internal/logs/triggers.d.mts +1 -1
  52. package/dist/resources/_internal/logs/triggers.mjs +1 -1
  53. package/dist/resources/_internal/logs.d.mts +1 -1
  54. package/dist/resources/_internal/org/consumer/consumer.d.mts +1 -1
  55. package/dist/resources/_internal/org/consumer/consumer.mjs +1 -1
  56. package/dist/resources/_internal/org/consumer/project.d.mts +1 -1
  57. package/dist/resources/_internal/org/consumer/project.mjs +1 -1
  58. package/dist/resources/_internal/org/consumer.d.mts +1 -1
  59. package/dist/resources/_internal/org/org.d.mts +1 -1
  60. package/dist/resources/_internal/org.d.mts +1 -1
  61. package/dist/resources/_internal.d.mts +1 -1
  62. package/dist/resources/api-key-revocation.d.mts +1 -1
  63. package/dist/resources/api-key-revocation.mjs +1 -1
  64. package/dist/resources/auth/auth.d.mts +1 -1
  65. package/dist/resources/auth/session.d.mts +1 -1
  66. package/dist/resources/auth/session.mjs +1 -1
  67. package/dist/resources/auth-configs.d.mts +1 -1
  68. package/dist/resources/auth-configs.mjs +1 -1
  69. package/dist/resources/auth.d.mts +1 -1
  70. package/dist/resources/connected-accounts.d.mts +1 -1
  71. package/dist/resources/connected-accounts.mjs +1 -1
  72. package/dist/resources/custom.d.mts +1 -1
  73. package/dist/resources/custom.mjs +1 -1
  74. package/dist/resources/files.d.mts +1 -1
  75. package/dist/resources/files.mjs +1 -1
  76. package/dist/resources/keyring.d.mts +1 -1
  77. package/dist/resources/keyring.mjs +1 -1
  78. package/dist/resources/link.d.mts +1 -1
  79. package/dist/resources/link.mjs +1 -1
  80. package/dist/resources/logs/logs.d.mts +1 -1
  81. package/dist/resources/logs/logs.mjs +1 -1
  82. package/dist/resources/logs.d.mts +1 -1
  83. package/dist/resources/mcp/custom.d.mts +1 -1
  84. package/dist/resources/mcp/custom.mjs +1 -1
  85. package/dist/resources/mcp/generate.d.mts +1 -1
  86. package/dist/resources/mcp/generate.mjs +1 -1
  87. package/dist/resources/mcp/mcp.d.mts +1 -1
  88. package/dist/resources/mcp/mcp.mjs +1 -1
  89. package/dist/resources/mcp.d.mts +1 -1
  90. package/dist/resources/org/org.d.mts +1 -1
  91. package/dist/resources/org/org.mjs +1 -1
  92. package/dist/resources/org/owner/owner.d.mts +1 -1
  93. package/dist/resources/org/owner/project.d.mts +1 -1
  94. package/dist/resources/org/owner/project.mjs +1 -1
  95. package/dist/resources/org/owner.d.mts +1 -1
  96. package/dist/resources/org/project.d.mts +1 -1
  97. package/dist/resources/org/project.mjs +1 -1
  98. package/dist/resources/org/usage.d.mts +1 -1
  99. package/dist/resources/org/usage.mjs +1 -1
  100. package/dist/resources/org.d.mts +1 -1
  101. package/dist/resources/project/project.d.mts +1 -1
  102. package/dist/resources/project/usage.d.mts +1 -1
  103. package/dist/resources/project/usage.mjs +1 -1
  104. package/dist/resources/project.d.mts +1 -1
  105. package/dist/resources/session-configs.d.mts +1 -1
  106. package/dist/resources/session-configs.mjs +1 -1
  107. package/dist/resources/tool-router/session/files.d.mts +1 -1
  108. package/dist/resources/tool-router/session/files.mjs +1 -1
  109. package/dist/resources/tool-router/session/session.d.mts +1 -1
  110. package/dist/resources/tool-router/session/session.mjs +1 -1
  111. package/dist/resources/tool-router/session.d.mts +1 -1
  112. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  113. package/dist/resources/tool-router.d.mts +1 -1
  114. package/dist/resources/toolkits.d.mts +2 -2
  115. package/dist/resources/toolkits.mjs +8 -1
  116. package/dist/resources/tools.d.mts +1 -1
  117. package/dist/resources/tools.mjs +1 -1
  118. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  119. package/dist/resources/trigger-instances/manage.mjs +1 -1
  120. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  121. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  122. package/dist/resources/trigger-instances.d.mts +1 -1
  123. package/dist/resources/triggers-types.d.mts +1 -1
  124. package/dist/resources/triggers-types.mjs +1 -1
  125. package/dist/resources/webhook-endpoints.d.mts +1 -1
  126. package/dist/resources/webhook-endpoints.mjs +1 -1
  127. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  128. package/dist/resources/webhook-subscriptions.mjs +1 -1
  129. package/package.json +3 -3
@@ -23,7 +23,9 @@ const LogRetrieveToolExecutionResponse = Schema.StructWithRest(Schema.Struct({
23
23
  "custom_auth",
24
24
  "no_auth"
25
25
  ]).annotate({ "description": "Credential used for this execution. instant_account means a Composio Instant account. Omitted when no credential source was recorded." })),
26
- "instant_charge": Schema.optionalKey(Schema.String.annotate({ "description": "Instant charge in USD for this tool, as an exact decimal string. Omitted when no charge was recorded; zero is returned as the string 0." }))
26
+ "instant_charge": Schema.optionalKey(Schema.String.annotate({ "description": "Instant charge in USD for this tool, as an exact decimal string. Omitted when no charge was recorded; zero is returned as the string 0." })),
27
+ "auth_config_id": Schema.optionalKey(Schema.String.annotate({ "description": "Auth config of the connected account the execution used. Omitted when it used none." })),
28
+ "session_id": Schema.optionalKey(Schema.String.annotate({ "description": "Tool router session the execution ran in. Omitted when it ran outside a session." }))
27
29
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]),
28
30
  "metrics": Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })),
29
31
  "parent": Schema.Union([Schema.StructWithRest(Schema.Struct({
@@ -8,8 +8,8 @@ export declare const SessionLinkResponse: Schema.StructWithRest<Schema.Struct<{
8
8
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
9
9
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
10
10
  readonly allow_all_users: Schema.Boolean;
11
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
12
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
11
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
12
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
13
13
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
14
14
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
15
15
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
@@ -0,0 +1,13 @@
1
+ import * as Schema from "effect/Schema";
2
+ /** The 200 response of `GET /api/v3.1/toolkits/{toolkit_slug}/scopes`, which `client.toolkits.listScopes` answers with. */
3
+ export declare const ToolkitListScopesResponse: Schema.StructWithRest<Schema.Struct<{
4
+ readonly auth_scheme: Schema.String;
5
+ readonly toolkit_version: Schema.String;
6
+ readonly scopes: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7
+ readonly scope: Schema.String;
8
+ readonly description: Schema.String;
9
+ readonly deprecated: Schema.Boolean;
10
+ readonly grantable_when: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
11
+ readonly implied_by: Schema.$Array<Schema.String>;
12
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
13
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
@@ -0,0 +1,17 @@
1
+ import * as Schema from "effect/Schema";
2
+
3
+ // src/effect/generated/schemas/toolkits/list-scopes.ts
4
+ /** The 200 response of `GET /api/v3.1/toolkits/{toolkit_slug}/scopes`, which `client.toolkits.listScopes` answers with. */
5
+ const ToolkitListScopesResponse = Schema.StructWithRest(Schema.Struct({
6
+ "auth_scheme": Schema.String.annotate({ "description": "Auth scheme whose scope catalog is listed." }),
7
+ "toolkit_version": Schema.String.annotate({ "description": "Concrete toolkit version the catalog was read from; pass it back as toolkit_version to pin." }),
8
+ "scopes": Schema.Array(Schema.StructWithRest(Schema.Struct({
9
+ "scope": Schema.String.annotate({ "description": "Scope name exactly as the provider spells it." }),
10
+ "description": Schema.String.annotate({ "description": "What the scope grants, in the provider's wording." }),
11
+ "deprecated": Schema.Boolean.annotate({ "description": "Whether the provider has deprecated this scope." }),
12
+ "grantable_when": Schema.Record(Schema.String, Schema.Array(Schema.String)).annotate({ "description": "Grant contexts in which the provider grants this scope: dimension to its allowed values, using the dimensions listed by GET /api/v3.1/toolkits/{toolkit_slug}/scopes/grant_context. {} means every grant context can grant it." }),
13
+ "implied_by": Schema.Array(Schema.String).annotate({ "description": "Scopes that directly imply this one: granting any of them also grants this scope. Direct impliers only, not transitive: follow implied_by of each implier for chains." })
14
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])).annotate({ "description": "Every scope in the auth scheme's catalog, in catalog order; [] only when the catalog has no scopes." })
15
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
16
+
17
+ export { ToolkitListScopesResponse };
@@ -82,6 +82,7 @@ export declare const ToolkitRetrieveResponse: Schema.StructWithRest<Schema.Struc
82
82
  readonly name: Schema.String;
83
83
  readonly auth_hint_url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
84
84
  readonly is_connection_revoke_supported: Schema.Boolean;
85
+ readonly all_scopes: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
85
86
  readonly deprecated_auth_provider_details: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
86
87
  readonly authorization_url: Schema.optionalKey<Schema.String>;
87
88
  readonly token_url: Schema.optionalKey<Schema.String>;
@@ -146,6 +146,14 @@ const ToolkitRetrieveResponse = Schema.StructWithRest(Schema.Struct({
146
146
  "examples": ["https://github.com/settings/tokens"]
147
147
  })),
148
148
  "is_connection_revoke_supported": Schema.Boolean.annotate({ "description": "Whether a connection made with this authentication method can be revoked at the provider" }),
149
+ "all_scopes": Schema.Union([Schema.Array(Schema.String), Schema.Null]).annotate({
150
+ "description": "Every scope in this auth scheme's scope catalog. Null when the auth scheme has no scope catalog: not added for this toolkit yet, or the auth scheme has no scopes. An empty array means the catalog has no scopes. GET /api/v3.1/toolkits/{toolkit_slug}/scopes returns each scope's description and grant conditions.",
151
+ "examples": [[
152
+ "Mail.Read",
153
+ "Mail.Read.Shared",
154
+ "Mail.ReadWrite"
155
+ ]]
156
+ }),
149
157
  "deprecated_auth_provider_details": Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
150
158
  "authorization_url": Schema.optionalKey(Schema.String),
151
159
  "token_url": Schema.optionalKey(Schema.String)
@@ -99,6 +99,7 @@ export declare const schemaLoaders: {
99
99
  readonly id: Schema.String;
100
100
  readonly entity: Schema.String;
101
101
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
102
+ readonly authConfigId: Schema.optionalKey<Schema.String>;
102
103
  readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
103
104
  readonly instantCharge: Schema.optionalKey<Schema.String>;
104
105
  readonly session: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -2847,8 +2848,8 @@ export declare const schemaLoaders: {
2847
2848
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
2848
2849
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2849
2850
  readonly allow_all_users: Schema.Boolean;
2850
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
2851
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
2851
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
2852
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
2852
2853
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2853
2854
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2854
2855
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
@@ -2871,14 +2872,14 @@ export declare const schemaLoaders: {
2871
2872
  readonly authScheme: Schema.optionalKey<Schema.Literals<readonly ["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
2872
2873
  readonly word_id: Schema.Union<readonly [Schema.String, Schema.Null]>;
2873
2874
  readonly alias: Schema.Union<readonly [Schema.String, Schema.Null]>;
2874
- readonly user_id: Schema.String;
2875
+ readonly user_id: Schema.optionalKey<Schema.String>;
2875
2876
  readonly status: Schema.Literals<readonly ["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
2876
2877
  readonly experimental: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2877
2878
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
2878
2879
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2879
2880
  readonly allow_all_users: Schema.Boolean;
2880
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
2881
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
2881
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
2882
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
2882
2883
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2883
2884
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2884
2885
  readonly created_at: Schema.String;
@@ -5355,14 +5356,14 @@ export declare const schemaLoaders: {
5355
5356
  readonly authScheme: Schema.optionalKey<Schema.Literals<readonly ["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
5356
5357
  readonly word_id: Schema.Union<readonly [Schema.String, Schema.Null]>;
5357
5358
  readonly alias: Schema.Union<readonly [Schema.String, Schema.Null]>;
5358
- readonly user_id: Schema.String;
5359
+ readonly user_id: Schema.optionalKey<Schema.String>;
5359
5360
  readonly status: Schema.Literals<readonly ["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
5360
5361
  readonly experimental: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5361
5362
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
5362
5363
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5363
5364
  readonly allow_all_users: Schema.Boolean;
5364
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
5365
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
5365
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
5366
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
5366
5367
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
5367
5368
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
5368
5369
  readonly created_at: Schema.String;
@@ -7893,8 +7894,8 @@ export declare const schemaLoaders: {
7893
7894
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
7894
7895
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
7895
7896
  readonly allow_all_users: Schema.Boolean;
7896
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
7897
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
7897
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
7898
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
7898
7899
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7899
7900
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7900
7901
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
@@ -7909,12 +7910,17 @@ export declare const schemaLoaders: {
7909
7910
  readonly metadata: Schema.StructWithRest<Schema.Struct<{
7910
7911
  readonly credential_source: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
7911
7912
  readonly instant_charge: Schema.optionalKey<Schema.String>;
7913
+ readonly auth_config_id: Schema.optionalKey<Schema.String>;
7914
+ readonly session_id: Schema.optionalKey<Schema.String>;
7912
7915
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7913
7916
  readonly metrics: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7914
7917
  readonly parent: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
7915
7918
  readonly log_id: Schema.String;
7916
7919
  readonly tool_slug: Schema.String;
7917
7920
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
7921
+ readonly timings: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
7922
+ readonly start_time: Schema.Number;
7923
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7918
7924
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7919
7925
  readonly next_cursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
7920
7926
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
@@ -7928,6 +7934,8 @@ export declare const schemaLoaders: {
7928
7934
  readonly metadata: Schema.StructWithRest<Schema.Struct<{
7929
7935
  readonly credential_source: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
7930
7936
  readonly instant_charge: Schema.optionalKey<Schema.String>;
7937
+ readonly auth_config_id: Schema.optionalKey<Schema.String>;
7938
+ readonly session_id: Schema.optionalKey<Schema.String>;
7931
7939
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7932
7940
  readonly metrics: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7933
7941
  readonly parent: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
@@ -8915,8 +8923,8 @@ export declare const schemaLoaders: {
8915
8923
  readonly account_type: Schema.Literals<readonly ["PRIVATE", "SHARED"]>;
8916
8924
  readonly acl_config_for_shared: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8917
8925
  readonly allow_all_users: Schema.Boolean;
8918
- readonly allowed_user_ids: Schema.$Array<Schema.String>;
8919
- readonly not_allowed_user_ids: Schema.$Array<Schema.String>;
8926
+ readonly allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
8927
+ readonly not_allowed_user_ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
8920
8928
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8921
8929
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8922
8930
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
@@ -9484,6 +9492,17 @@ export declare const schemaLoaders: {
9484
9492
  readonly current_page: Schema.Finite;
9485
9493
  readonly total_items: Schema.Finite;
9486
9494
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
9495
+ 'toolkits.listScopes': () => Promise<Schema.StructWithRest<Schema.Struct<{
9496
+ readonly auth_scheme: Schema.String;
9497
+ readonly toolkit_version: Schema.String;
9498
+ readonly scopes: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
9499
+ readonly scope: Schema.String;
9500
+ readonly description: Schema.String;
9501
+ readonly deprecated: Schema.Boolean;
9502
+ readonly grantable_when: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
9503
+ readonly implied_by: Schema.$Array<Schema.String>;
9504
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
9505
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
9487
9506
  'toolkits.recommendScopes': () => Promise<Schema.StructWithRest<Schema.Struct<{
9488
9507
  readonly auth_scheme: Schema.String;
9489
9508
  readonly toolkit_version: Schema.String;
@@ -9580,6 +9599,7 @@ export declare const schemaLoaders: {
9580
9599
  readonly name: Schema.String;
9581
9600
  readonly auth_hint_url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9582
9601
  readonly is_connection_revoke_supported: Schema.Boolean;
9602
+ readonly all_scopes: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
9583
9603
  readonly deprecated_auth_provider_details: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
9584
9604
  readonly authorization_url: Schema.optionalKey<Schema.String>;
9585
9605
  readonly token_url: Schema.optionalKey<Schema.String>;
@@ -96,6 +96,7 @@ const schemaLoaders = {
96
96
  "toolRouter.session.toolkits": async () => (await import("./schemas/tool-router/session/toolkits.mjs")).SessionToolkitsResponse,
97
97
  "toolRouter.session.tools": async () => (await import("./schemas/tool-router/session/tools.mjs")).SessionToolsResponse,
98
98
  "toolkits.list": async () => (await import("./schemas/toolkits/list.mjs")).ToolkitListResponse,
99
+ "toolkits.listScopes": async () => (await import("./schemas/toolkits/list-scopes.mjs")).ToolkitListScopesResponse,
99
100
  "toolkits.recommendScopes": async () => (await import("./schemas/toolkits/recommend-scopes.mjs")).ToolkitRecommendScopesResponse,
100
101
  "toolkits.retrieve": async () => (await import("./schemas/toolkits/retrieve.mjs")).ToolkitRetrieveResponse,
101
102
  "toolkits.retrieveCategories": async () => (await import("./schemas/toolkits/retrieve-categories.mjs")).ToolkitRetrieveCategoriesResponse,
package/dist/effect.d.mts CHANGED
@@ -6,11 +6,11 @@
6
6
  * call as an `Effect` whose failures are tagged errors. The root entry and the
7
7
  * `./pagination` and `./resources/*` subpaths never reach this module.
8
8
  */
9
- import { n as VERSION, t as ENVIRONMENTS } from "./environments-j3Mor1h6.mjs";
10
- import { $ as SessionConfigsRetrieveResponse, $i as SessionExecuteResponse, $n as GenerateURLResponse, $r as LinkCreateResponse, $t as WebhookEndpointListParams, Aa as Scope, Ai as ToolListResponse, An as LogRetrieveToolExecutionResponse, Ar as AuthConfigUpdateParams, At as UsageRetrieveParams$1, Bn as McpDeleteResponse, Br as ToolkitRetrieveCategoriesResponse, Cn as UsageRetrieveParams, Cr as AuthConfigCreateParams, Ct as SessionRetrieveInfoResponse, Di as ToolGetInputParams, Dr as AuthConfigListParams, Dt as OrgListResponse, Ei as ToolExecuteResponse, En as UsageRetrieveSummaryResponse, Er as AuthConfigDeleteResponse, Et as OrgListParams, Fi as ToolRetrieveRequiredScopesParams, Fn as McpCreateInstanceResponse, Gi as SessionConfigHistoryParams, Gn as McpRetrieveAppParams, Gr as ToolkitRetrieveParams, Gt as ProjectDeleteResponse, Hn as McpListInstancesResponse, Hr as ToolkitRetrieveChangelogResponse, Ht as ProjectCreateParams, Ii as ToolRetrieveRequiredScopesResponse, In as McpCreateParams, Ir as ToolkitListParams, It as ProjectListParams$1, Ji as SessionCreateResponse, Jn as McpUpdateParams, Jr as ToolkitRetrieveScopesGrantContextResponse, Jt as ProjectRegenerateAPIKeyResponse, Ki as SessionConfigHistoryResponse, Kn as McpRetrieveAppResponse, Kr as ToolkitRetrieveResponse, Kt as ProjectListParams, Li as ToolRetrieveResponse, Ln as McpCreateResponse, Lr as ToolkitListResponse, Lt as ProjectListResponse$1, Mi as ToolProxyResponse, Mr as AuthConfigUpdateStatusParams, Mt as UsageRetrieveSummaryParams$1, Ni as ToolRetrieveEnumResponse, Nr as AuthConfigUpdateStatusResponse, Nt as UsageRetrieveSummaryResponse$1, Oa as AutoCredentials, Oi as ToolGetInputResponse, On as LogCreateToolExecutionParams, Or as AuthConfigListResponse, Pa as APIErrorBody, Pi as ToolRetrieveParams, Pn as McpCreateInstanceParams, Q as SessionConfigsListResponse, Qi as SessionExecuteParams, Qn as GenerateURLParams, Qr as LinkCreateParams, Qt as WebhookEndpointCreateResponse, Rn as McpDeleteInstanceParams, Rr as ToolkitRecommendScopesParams, Si as FileListResponse$1, Ta as AuthConstructors, Ti as ToolExecuteParams, Tn as UsageRetrieveSummaryParams, Tr as AuthConfigDeleteParams, Ui as SessionAttachParams, Un as McpListParams, Ur as ToolkitRetrieveMultiParams, Ut as ProjectCreateResponse, Vn as McpListInstancesParams, Vr as ToolkitRetrieveChangelogParams, Wi as SessionAttachResponse, Wn as McpListResponse, Wr as ToolkitRetrieveMultiResponse, Wt as ProjectDeleteParams, Xa as HeadersLike, Xi as SessionExecuteMetaParams, Ya as ClientIdentity, Yi as SessionDeleteResponse, Yn as McpUpdateResponse, Yt as ProjectRetrieveResponse, Z as SessionConfigsListParams, Zi as SessionExecuteMetaResponse, Zt as WebhookEndpointCreateParams, _a as FileCreateUploadURLResponse, _n as WebhookSubscriptionUpdateResponse, _r as TriggersTypeListResponse, _t as ApiKeyRevocationCreateParams, aa as SessionProxyExecuteResponse, ai as ConnectedAccountDeleteParams, an as WebhookEndpointUpdateResponse, ar as TriggerInstanceListActiveParams, at as CustomCreateToolkitParams, ba as FileListParams, bi as FileCreatePresignedURLResponse, br as TriggersTypeRetrieveResponse, ca as SessionSearchResponse, ci as ConnectedAccountListResponse, cn as WebhookSubscriptionCreateParams, cr as TriggerInstanceUpsertResponse, ct as CustomDeleteToolkitResponse, da as SessionToolsParams, di as ConnectedAccountRefreshParams, dn as WebhookSubscriptionListEventTypesResponse, dt as CustomUpdateToolkitsParams, ea as SessionLinkParams, en as WebhookEndpointListResponse, fa as SessionToolsResponse, fi as ConnectedAccountRefreshResponse, fn as WebhookSubscriptionListParams, fr as ManageDeleteResponse, ft as CustomUpdateToolkitsResponse, ga as FileCreateUploadURLParams, gi as ConnectedAccountUpdateStatusResponse, gn as WebhookSubscriptionUpdateParams, gr as TriggersTypeListParams, ha as FileCreateDownloadURLResponse, hi as ConnectedAccountUpdateStatusParams, hn as WebhookSubscriptionRotateSecretResponse, ia as SessionProxyExecuteParams, ii as ConnectedAccountCreateResponse, in as WebhookEndpointUpdateParams, ji as ToolProxyParams, jr as AuthConfigUpdateResponse, jt as UsageRetrieveResponse$1, ki as ToolListParams, kn as LogCreateToolExecutionResponse, kr as AuthConfigRetrieveResponse, la as SessionToolkitsParams, li as ConnectedAccountPatchParams, ln as WebhookSubscriptionCreateResponse, lt as CustomSyncParams, ma as FileCreateDownloadURLParams, mi as ConnectedAccountRevokeResponse, mn as WebhookSubscriptionRetrieveResponse, mr as ManageUpdateResponse, mt as CustomUpsertResponse, na as SessionPatchParams, ni as ConnectedAccountCompleteAuthResponse, nn as WebhookEndpointReplaceResponse, nr as CustomCreateParams, nt as KeyringListTransferKeysResponse, oa as SessionRetrieveResponse, oi as ConnectedAccountDeleteResponse, or as TriggerInstanceListActiveResponse, ot as CustomCreateToolkitResponse, pi as ConnectedAccountRetrieveResponse, pn as WebhookSubscriptionListResponse, pr as ManageUpdateParams, pt as CustomUpsertParams, qi as SessionCreateParams, qn as McpRetrieveResponse, qr as ToolkitRetrieveScopesGrantContextParams, qt as ProjectListResponse, ra as SessionPatchResponse, ri as ConnectedAccountCreateParams, rn as WebhookEndpointRetrieveResponse, rr as CustomCreateResponse, sa as SessionSearchParams, si as ConnectedAccountListParams, sr as TriggerInstanceUpsertParams, st as CustomDeleteToolkitParams, ta as SessionLinkResponse, ti as ConnectedAccountCompleteAuthParams, tn as WebhookEndpointReplaceParams, ua as SessionToolkitsResponse, ui as ConnectedAccountPatchResponse, un as WebhookSubscriptionDeleteResponse, ut as CustomSyncResponse, va as FileDeleteParams, vr as TriggersTypeRetrieveEnumResponse, vt as ApiKeyRevocationCreateResponse, wn as UsageRetrieveResponse, wr as AuthConfigCreateResponse, xa as FileListResponse, xi as FileListParams$1, ya as FileDeleteResponse, yi as FileCreatePresignedURLParams, yr as TriggersTypeRetrieveParams, zn as McpDeleteInstanceResponse, zr as ToolkitRecommendScopesResponse } from "./_internal-C4ZzriQ6.mjs";
9
+ import { n as VERSION, t as ENVIRONMENTS } from "./environments-CuyJ-4ao.mjs";
10
+ import { $ as SessionConfigsRetrieveResponse, $a as ClientIdentity, $i as SessionExecuteMetaResponse, $n as GenerateURLResponse, $t as WebhookEndpointListParams, Aa as AutoCredentials, Ai as ToolGetInputResponse, An as LogRetrieveToolExecutionResponse, Ar as AuthConfigUpdateParams, At as UsageRetrieveParams$1, Bn as McpDeleteResponse, Br as ToolkitRecommendScopesParams, Ca as FileListResponse, Ci as FileListParams$1, Cn as UsageRetrieveParams, Cr as AuthConfigCreateParams, Ct as SessionRetrieveInfoResponse, Da as AuthConstructors, Di as ToolExecuteParams, Dr as AuthConfigListParams, Dt as OrgListResponse, En as UsageRetrieveSummaryResponse, Er as AuthConfigDeleteResponse, Et as OrgListParams, Fi as ToolRetrieveEnumResponse, Fn as McpCreateInstanceResponse, Gi as SessionAttachParams, Gn as McpRetrieveAppParams, Gr as ToolkitRetrieveMultiParams, Gt as ProjectDeleteResponse, Hn as McpListInstancesResponse, Hr as ToolkitRetrieveCategoriesResponse, Ht as ProjectCreateParams, Ia as APIErrorBody, Ii as ToolRetrieveParams, In as McpCreateParams, Ir as ToolkitListParams, It as ProjectListParams$1, Ji as SessionConfigHistoryResponse, Jn as McpUpdateParams, Jr as ToolkitRetrieveResponse, Jt as ProjectRegenerateAPIKeyResponse, Ki as SessionAttachResponse, Kn as McpRetrieveAppResponse, Kr as ToolkitRetrieveMultiResponse, Kt as ProjectListParams, Li as ToolRetrieveRequiredScopesParams, Ln as McpCreateResponse, Lr as ToolkitListResponse, Lt as ProjectListResponse$1, Ma as Scope, Mi as ToolListResponse, Mr as AuthConfigUpdateStatusParams, Mt as UsageRetrieveSummaryParams$1, Ni as ToolProxyParams, Nr as AuthConfigUpdateStatusResponse, Nt as UsageRetrieveSummaryResponse$1, Oi as ToolExecuteResponse, On as LogCreateToolExecutionParams, Or as AuthConfigListResponse, Pi as ToolProxyResponse, Pn as McpCreateInstanceParams, Q as SessionConfigsListResponse, Qi as SessionExecuteMetaParams, Qn as GenerateURLParams, Qt as WebhookEndpointCreateResponse, Ri as ToolRetrieveRequiredScopesResponse, Rn as McpDeleteInstanceParams, Rr as ToolkitListScopesParams, Sa as FileListParams, Si as FileCreatePresignedURLResponse, Tn as UsageRetrieveSummaryParams, Tr as AuthConfigDeleteParams, Un as McpListParams, Ur as ToolkitRetrieveChangelogParams, Ut as ProjectCreateResponse, Vn as McpListInstancesParams, Vr as ToolkitRecommendScopesResponse, Wn as McpListResponse, Wr as ToolkitRetrieveChangelogResponse, Wt as ProjectDeleteParams, Xi as SessionCreateResponse, Xr as ToolkitRetrieveScopesGrantContextResponse, Yi as SessionCreateParams, Yn as McpUpdateResponse, Yr as ToolkitRetrieveScopesGrantContextParams, Yt as ProjectRetrieveResponse, Z as SessionConfigsListParams, Zi as SessionDeleteResponse, Zt as WebhookEndpointCreateParams, _a as FileCreateDownloadURLResponse, _i as ConnectedAccountUpdateStatusParams, _n as WebhookSubscriptionUpdateResponse, _r as TriggersTypeListResponse, _t as ApiKeyRevocationCreateParams, aa as SessionPatchResponse, ai as ConnectedAccountCreateParams, an as WebhookEndpointUpdateResponse, ar as TriggerInstanceListActiveParams, at as CustomCreateToolkitParams, ba as FileDeleteParams, br as TriggersTypeRetrieveResponse, ca as SessionRetrieveResponse, ci as ConnectedAccountDeleteResponse, cn as WebhookSubscriptionCreateParams, cr as TriggerInstanceUpsertResponse, ct as CustomDeleteToolkitResponse, da as SessionToolkitsParams, di as ConnectedAccountPatchParams, dn as WebhookSubscriptionListEventTypesResponse, dt as CustomUpdateToolkitsParams, ea as SessionExecuteParams, ei as LinkCreateParams, en as WebhookEndpointListResponse, eo as HeadersLike, fa as SessionToolkitsResponse, fi as ConnectedAccountPatchResponse, fn as WebhookSubscriptionListParams, fr as ManageDeleteResponse, ft as CustomUpdateToolkitsResponse, ga as FileCreateDownloadURLParams, gi as ConnectedAccountRevokeResponse, gn as WebhookSubscriptionUpdateParams, gr as TriggersTypeListParams, hi as ConnectedAccountRetrieveResponse, hn as WebhookSubscriptionRotateSecretResponse, ia as SessionPatchParams, ii as ConnectedAccountCompleteAuthResponse, in as WebhookEndpointUpdateParams, ji as ToolListParams, jr as AuthConfigUpdateResponse, jt as UsageRetrieveResponse$1, ki as ToolGetInputParams, kn as LogCreateToolExecutionResponse, kr as AuthConfigRetrieveResponse, la as SessionSearchParams, li as ConnectedAccountListParams, ln as WebhookSubscriptionCreateResponse, lt as CustomSyncParams, ma as SessionToolsResponse, mi as ConnectedAccountRefreshResponse, mn as WebhookSubscriptionRetrieveResponse, mr as ManageUpdateResponse, mt as CustomUpsertResponse, na as SessionLinkParams, nn as WebhookEndpointReplaceResponse, nr as CustomCreateParams, nt as KeyringListTransferKeysResponse, oa as SessionProxyExecuteParams, oi as ConnectedAccountCreateResponse, or as TriggerInstanceListActiveResponse, ot as CustomCreateToolkitResponse, pa as SessionToolsParams, pi as ConnectedAccountRefreshParams, pn as WebhookSubscriptionListResponse, pr as ManageUpdateParams, pt as CustomUpsertParams, qi as SessionConfigHistoryParams, qn as McpRetrieveResponse, qr as ToolkitRetrieveParams, qt as ProjectListResponse, ra as SessionLinkResponse, ri as ConnectedAccountCompleteAuthParams, rn as WebhookEndpointRetrieveResponse, rr as CustomCreateResponse, sa as SessionProxyExecuteResponse, si as ConnectedAccountDeleteParams, sr as TriggerInstanceUpsertParams, st as CustomDeleteToolkitParams, ta as SessionExecuteResponse, ti as LinkCreateResponse, tn as WebhookEndpointReplaceParams, ua as SessionSearchResponse, ui as ConnectedAccountListResponse, un as WebhookSubscriptionDeleteResponse, ut as CustomSyncResponse, va as FileCreateUploadURLParams, vi as ConnectedAccountUpdateStatusResponse, vr as TriggersTypeRetrieveEnumResponse, vt as ApiKeyRevocationCreateResponse, wi as FileListResponse$1, wn as UsageRetrieveResponse, wr as AuthConfigCreateResponse, xa as FileDeleteResponse, xi as FileCreatePresignedURLParams, ya as FileCreateUploadURLResponse, yr as TriggersTypeRetrieveParams, zi as ToolRetrieveResponse, zn as McpDeleteInstanceResponse, zr as ToolkitListScopesResponse } from "./_internal-1d0QoPQ3.mjs";
11
11
  import { Context, Effect, Layer, Logger, Predicate, Stream } from "effect";
12
12
  import * as HttpClient from "effect/http/HttpClient";
13
- import { C as PermissionDeniedError, D as isComposioError, E as isAPIError, S as NotFoundError, T as UnprocessableEntityError, _ as ConfigurationError, a as Tracing, b as DecodeIssue, c as Credential, d as APIError, f as APIErrorFields, g as ComposioError, h as BadRequestError, i as RequestOptions, l as APIConnectionError, m as AuthenticationError, n as RawBodyRequestOptions, o as SchemaLoaders, p as APIStatusError, r as RawRequestOptions, s as Auth$2, u as APIConnectionTimeoutError, v as ConflictError, w as RateLimitError, x as InternalServerError, y as DecodeError } from "./_internal-ChynSuwG.mjs";
13
+ import { C as PermissionDeniedError, D as isComposioError, E as isAPIError, O as isWalletBalanceExhausted, S as NotFoundError, T as UnprocessableEntityError, _ as ConfigurationError, a as Tracing, b as DecodeIssue, c as Credential, d as APIError, f as APIErrorFields, g as ComposioError, h as BadRequestError, i as RequestOptions, l as APIConnectionError, m as AuthenticationError, n as RawBodyRequestOptions, o as SchemaLoaders, p as APIStatusError, r as RawRequestOptions, s as Auth$2, u as APIConnectionTimeoutError, v as ConflictError, w as RateLimitError, x as InternalServerError, y as DecodeError } from "./_internal-uub7kBfy.mjs";
14
14
  /** `client.toolRouter.session.files` on the Effect surface. */
15
15
  interface Files$1 {
16
16
  readonly list: (mountID: string, params: FileListParams, options?: RequestOptions) => Effect.Effect<FileListResponse, ComposioError>;
@@ -121,6 +121,7 @@ interface Toolkits {
121
121
  * cursor the last one returned, and only once the stream is pulled that far.
122
122
  */
123
123
  readonly listStream: (query?: ToolkitListParams | null | undefined, options?: RequestOptions) => Stream.Stream<ToolkitListResponse['items'][number], ComposioError>;
124
+ readonly listScopes: (toolkitSlug: string, query?: ToolkitListScopesParams | null | undefined, options?: RequestOptions) => Effect.Effect<ToolkitListScopesResponse, ComposioError>;
124
125
  readonly recommendScopes: (toolkitSlug: string, body: ToolkitRecommendScopesParams, options?: RequestOptions) => Effect.Effect<ToolkitRecommendScopesResponse, ComposioError>;
125
126
  readonly retrieveCategories: (options?: RequestOptions) => Effect.Effect<ToolkitRetrieveCategoriesResponse, ComposioError>;
126
127
  readonly retrieveChangelog: (options?: RequestOptions & {
@@ -447,4 +448,4 @@ export declare const layer: (options: ComposioClientOptions) => Layer.Layer<Comp
447
448
  export declare const layerConfig: (overrides?: Partial<ClientSettings> & DecodingOptions) => Layer.Layer<ComposioClient, ConfigurationError, HttpClient.HttpClient>;
448
449
  /** Whether a log record is one of this client's deprecation notices, for a `Logger` that drops or routes them. */
449
450
  export declare const isDeprecationNotice: Predicate.Predicate<Logger.Options<unknown>>;
450
- export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, type APIErrorFields, type APIStatusError, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, type ComposioClientOptions, type ComposioClientShape, type ComposioError, ConfigurationError, ConflictError, type Credential, DecodeError, type DecodeIssue, ENVIRONMENTS, type HeadersLike, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, type RawBodyRequestOptions, type RawRequestOptions, type RequestOptions, type SchemaLoaders, type Scope, type Tracing, UnprocessableEntityError, VERSION, isAPIError, isComposioError };
451
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, type APIErrorFields, type APIStatusError, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, type ComposioClientOptions, type ComposioClientShape, type ComposioError, ConfigurationError, ConflictError, type Credential, DecodeError, type DecodeIssue, ENVIRONMENTS, type HeadersLike, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, type RawBodyRequestOptions, type RawRequestOptions, type RequestOptions, type SchemaLoaders, type Scope, type Tracing, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isWalletBalanceExhausted };
package/dist/effect.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { A as matchOperation, B as scopeForCall, C as reservedHeaders, D as mergeHeaders, E as buildHeaders, F as authFromCredentials, G as resolveHTTPURL, H as assertCredentialTransport, I as chooseCredential, L as credentialHeader, M as assertNoRemovedCredentialOptions, N as assertRequiredOperationHeaders, O as inspectDeprecatedInputs, P as authConstructors, R as resolveAuth, S as assertNoReservedHeaders, T as VERSION, U as carriesCredentials, V as SCHEME_HEADERS, W as parseHTTPURL, _ as safeJSON, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as rewriteForRedirect, h as retryDelayMillis, i as REDIRECT_STATUSES, k as inspectDeprecation, m as resolveMaxRetries, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as shouldRetryResponse, w as resolveIdentity, y as validatePositiveInteger, z as resolveScope } from "./generated-operations-Btwe6bGR.mjs";
1
+ import { A as matchOperation, B as scopeForCall, C as reservedHeaders, D as mergeHeaders, E as buildHeaders, F as authFromCredentials, G as resolveHTTPURL, H as assertCredentialTransport, I as chooseCredential, L as credentialHeader, M as assertNoRemovedCredentialOptions, N as assertRequiredOperationHeaders, O as inspectDeprecatedInputs, P as authConstructors, R as resolveAuth, S as assertNoReservedHeaders, T as VERSION, U as carriesCredentials, V as SCHEME_HEADERS, W as parseHTTPURL, _ as safeJSON, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as rewriteForRedirect, h as retryDelayMillis, i as REDIRECT_STATUSES, k as inspectDeprecation, m as resolveMaxRetries, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as shouldRetryResponse, w as resolveIdentity, y as validatePositiveInteger, z as resolveScope } from "./generated-operations-DjDuvWLu.mjs";
2
2
  import { Config, Context, Data, Effect, Exit, Layer, Match, Option, Predicate, Redacted, References, Result, Stream, Tracer } from "effect";
3
3
  import * as HttpClient from "effect/http/HttpClient";
4
- import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-C90r_t8M.mjs";
4
+ import { i as classifySuccessBody, n as GENERATED_DEPRECATED_INPUTS, t as ENVIRONMENTS } from "./environments-BoZhRNmR.mjs";
5
5
  import * as Headers from "effect/http/Headers";
6
- import { h as makeAPIErrorMessage, m as errorDetails, s as ComposioError } from "./error-hMgVE2qc.mjs";
6
+ import { _ as makeAPIErrorMessage, h as hasWalletBalanceExhaustedFields, m as errorDetails, s as ComposioError } from "./error-Ch0f9xi8.mjs";
7
7
  import * as Schema from "effect/Schema";
8
- import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-DMTBYzG_.mjs";
8
+ import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-4iuoHqVk.mjs";
9
9
  import * as FetchHttpClient from "effect/http/FetchHttpClient";
10
10
  import * as HttpBody from "effect/http/HttpBody";
11
11
  import { StatusCodeError, isHttpClientError } from "effect/http/HttpClientError";
@@ -113,6 +113,8 @@ const kindOf = (value) => {
113
113
  * class. Structural, so it holds across duplicated copies of this module.
114
114
  */
115
115
  const isAPIError = (value) => kindOf(value) === "status";
116
+ /** Whether the API refused an Instant tool call because the organization's wallet is exhausted. */
117
+ const isWalletBalanceExhausted = (error) => isAPIError(error) && hasWalletBalanceExhaustedFields(error);
116
118
  /** Whether a value is any error this surface produces. Structural, like {@link isAPIError}. */
117
119
  const isComposioError = (value) => kindOf(value) !== void 0;
118
120
 
@@ -1009,6 +1011,7 @@ const makeLink = (kernel) => ({ create: (body, options) => executeOperation(kern
1009
1011
  // src/effect/generated/resources/toolkits.ts
1010
1012
  const OP_RETRIEVE$11 = generatedOperation("toolkits.retrieve");
1011
1013
  const OP_LIST$11 = generatedOperation("toolkits.list");
1014
+ const OP_LIST_SCOPES = generatedOperation("toolkits.listScopes");
1012
1015
  const OP_RECOMMEND_SCOPES = generatedOperation("toolkits.recommendScopes");
1013
1016
  const OP_RETRIEVE_CATEGORIES = generatedOperation("toolkits.retrieveCategories");
1014
1017
  const OP_RETRIEVE_CHANGELOG = generatedOperation("toolkits.retrieveChangelog");
@@ -1025,6 +1028,10 @@ const makeToolkits = (kernel) => {
1025
1028
  ...query,
1026
1029
  cursor
1027
1030
  }, options)),
1031
+ listScopes: (toolkitSlug, query = {}, options) => executeOperation(kernel, OP_LIST_SCOPES, {
1032
+ path: [toolkitSlug],
1033
+ query
1034
+ }, options),
1028
1035
  recommendScopes: (toolkitSlug, body, options) => executeOperation(kernel, OP_RECOMMEND_SCOPES, {
1029
1036
  path: [toolkitSlug],
1030
1037
  body
@@ -1595,4 +1602,4 @@ const layerConfig = (overrides = {}) => Layer.effect(ComposioClient, Effect.gen(
1595
1602
  return fromKernel(kernel);
1596
1603
  }));
1597
1604
 
1598
- export { APIConnectionError, APIConnectionTimeoutError, APIError, Auth, AuthenticationError, BadRequestError, ComposioClient, ConfigurationError, ConflictError, DecodeError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, layer, layerConfig, make };
1605
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, Auth, AuthenticationError, BadRequestError, ComposioClient, ConfigurationError, ConflictError, DecodeError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, isAPIError, isComposioError, isDeprecationNotice, isWalletBalanceExhausted, layer, layerConfig, make };
@@ -1,5 +1,5 @@
1
- import { r as APIError } from "./error-hMgVE2qc.mjs";
2
- import { _ as safeJSON, l as castToError } from "./generated-operations-Btwe6bGR.mjs";
1
+ import { r as APIError } from "./error-Ch0f9xi8.mjs";
2
+ import { _ as safeJSON, l as castToError } from "./generated-operations-DjDuvWLu.mjs";
3
3
 
4
4
  // src/compat/api-promise.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- declare const VERSION = "2.2.0";
1
+ declare const VERSION = "2.4.0";
2
2
  /**
3
3
  * The built-in API origins, keyed as the `environment` option the 0.1.x
4
4
  * client took. The migration target for `environment: 'staging'` is
@@ -88,6 +88,9 @@ var APIError = class APIError extends ComposioError {
88
88
  return new APIError(status, error, message, headers);
89
89
  }
90
90
  };
91
+ const hasWalletBalanceExhaustedFields = (error) => error.status === 402 && error.details?.status === 402 && error.details.code === 5508 && error.details.slug === "Metering_WalletBalanceExhausted";
92
+ /** Whether the API refused an Instant tool call because the organization's wallet is exhausted. */
93
+ const isWalletBalanceExhausted = (error) => error instanceof APIError && hasWalletBalanceExhaustedFields(error);
91
94
  var APIUserAbortError = class extends APIError {
92
95
  constructor({ message } = {}) {
93
96
  super(void 0, void 0, message ?? "Request was aborted.", void 0);
@@ -113,4 +116,4 @@ var UnprocessableEntityError = class extends APIError {};
113
116
  var RateLimitError = class extends APIError {};
114
117
  var InternalServerError = class extends APIError {};
115
118
 
116
- export { AuthenticationError as a, ConflictError as c, PermissionDeniedError as d, RateLimitError as f, makeAPIErrorMessage as h, APIUserAbortError as i, InternalServerError as l, errorDetails as m, APIConnectionTimeoutError as n, BadRequestError as o, UnprocessableEntityError as p, APIError as r, ComposioError as s, APIConnectionError as t, NotFoundError as u };
119
+ export { makeAPIErrorMessage as _, AuthenticationError as a, ConflictError as c, PermissionDeniedError as d, RateLimitError as f, isWalletBalanceExhausted as g, hasWalletBalanceExhaustedFields as h, APIUserAbortError as i, InternalServerError as l, errorDetails as m, APIConnectionTimeoutError as n, BadRequestError as o, UnprocessableEntityError as p, APIError as r, ComposioError as s, APIConnectionError as t, NotFoundError as u };
@@ -1,4 +1,4 @@
1
- import { i as APIUserAbortError, n as APIConnectionTimeoutError, s as ComposioError, t as APIConnectionError } from "./error-hMgVE2qc.mjs";
1
+ import { i as APIUserAbortError, n as APIConnectionTimeoutError, s as ComposioError, t as APIConnectionError } from "./error-Ch0f9xi8.mjs";
2
2
 
3
3
  // src/compat/credentials.ts
4
4
  /**
@@ -1004,7 +1004,7 @@ function* headerNames(headers) {
1004
1004
  }
1005
1005
 
1006
1006
  // src/version.ts
1007
- const VERSION = "2.2.0";
1007
+ const VERSION = "2.4.0";
1008
1008
 
1009
1009
  // src/compat/identity.ts
1010
1010
  /**
@@ -2111,6 +2111,12 @@ const GENERATED_OPERATIONS = [
2111
2111
  chain: ["toolkits", "retrieve"],
2112
2112
  schemes: ["ApiKeyAuth", "UserApiKeyAuth"]
2113
2113
  },
2114
+ {
2115
+ method: "get",
2116
+ path: "/api/v3.1/toolkits/{toolkit_slug}/scopes",
2117
+ chain: ["toolkits", "listScopes"],
2118
+ schemes: ["ApiKeyAuth", "UserApiKeyAuth"]
2119
+ },
2114
2120
  {
2115
2121
  method: "get",
2116
2122
  path: "/api/v3.1/toolkits/{toolkit_slug}/scopes/grant_context",
package/dist/index.d.mts CHANGED
@@ -6,6 +6,6 @@
6
6
  * `pnpm generate` and is codegen input only — none of its runtime ships in
7
7
  * this bundle.
8
8
  */
9
- import { $i as SessionExecuteResponse, Aa as Scope, Ba as InternalServerError, Bi as ToolRouter, Ea as AuthMode, Fa as APIUserAbortError, Ga as RequestOptions, Gi as SessionConfigHistoryParams, Ha as PermissionDeniedError, Hi as Session, Ia as AuthenticationError, J as EnvironmentMap, Ja as createFetchTransport, Ji as SessionCreateResponse, K as ClientOptions, Ka as FetchTransportDefaults, Ki as SessionConfigHistoryResponse, La as BadRequestError, Ma as APIConnectionTimeoutError, Na as APIError, Oa as AutoCredentials, Pa as APIErrorBody, Qi as SessionExecuteParams, Ra as ComposioError, Sa as Files, Ua as RateLimitError, Ui as SessionAttachParams, Va as NotFoundError, Wa as UnprocessableEntityError, Wi as SessionAttachResponse, Xi as SessionExecuteMetaParams, Y as LogLevel, Ya as ClientIdentity, Yi as SessionDeleteResponse, Za as APIPromise, Zi as SessionExecuteMetaResponse, _a as FileCreateUploadURLResponse, aa as SessionProxyExecuteResponse, ba as FileListParams, ca as SessionSearchResponse, da as SessionToolsParams, ea as SessionLinkParams, fa as SessionToolsResponse, ga as FileCreateUploadURLParams, ha as FileCreateDownloadURLResponse, ia as SessionProxyExecuteParams, ja as APIConnectionError, ka as Credential, la as SessionToolkitsParams, ma as FileCreateDownloadURLParams, na as SessionPatchParams, oa as SessionRetrieveResponse, q as Composio, qa as Transport, qi as SessionCreateParams, ra as SessionPatchResponse, sa as SessionSearchParams, ta as SessionLinkResponse, ua as SessionToolkitsResponse, va as FileDeleteParams, wa as Auth, xa as FileListResponse, ya as FileDeleteResponse, za as ConflictError } from "./_internal-C4ZzriQ6.mjs";
10
- import { n as VERSION, t as ENVIRONMENTS } from "./environments-j3Mor1h6.mjs";
11
- export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, Auth, type AuthMode, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type Credential, ENVIRONMENTS, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, type Files, InternalServerError, type LogLevel, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, type Scope, type Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, type ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport };
9
+ import { $a as ClientIdentity, $i as SessionExecuteMetaResponse, Aa as AutoCredentials, Ba as ComposioError, Ca as FileListResponse, Ea as Auth, Fa as APIError, Ga as RateLimitError, Gi as SessionAttachParams, Ha as InternalServerError, Hi as ToolRouter, Ia as APIErrorBody, J as EnvironmentMap, Ja as isWalletBalanceExhausted, Ji as SessionConfigHistoryResponse, K as ClientOptions, Ka as UnprocessableEntityError, Ki as SessionAttachResponse, La as APIUserAbortError, Ma as Scope, Na as APIConnectionError, Oa as AuthMode, Pa as APIConnectionTimeoutError, Qa as createFetchTransport, Qi as SessionExecuteMetaParams, Ra as AuthenticationError, Sa as FileListParams, Ua as NotFoundError, Va as ConflictError, Wa as PermissionDeniedError, Wi as Session, Xa as FetchTransportDefaults, Xi as SessionCreateResponse, Y as LogLevel, Ya as RequestOptions, Yi as SessionCreateParams, Za as Transport, Zi as SessionDeleteResponse, _a as FileCreateDownloadURLResponse, aa as SessionPatchResponse, ba as FileDeleteParams, ca as SessionRetrieveResponse, da as SessionToolkitsParams, ea as SessionExecuteParams, fa as SessionToolkitsResponse, ga as FileCreateDownloadURLParams, ia as SessionPatchParams, ja as Credential, la as SessionSearchParams, ma as SessionToolsResponse, na as SessionLinkParams, oa as SessionProxyExecuteParams, pa as SessionToolsParams, q as Composio, qi as SessionConfigHistoryParams, ra as SessionLinkResponse, sa as SessionProxyExecuteResponse, ta as SessionExecuteResponse, to as APIPromise, ua as SessionSearchResponse, va as FileCreateUploadURLParams, wa as Files, xa as FileDeleteResponse, ya as FileCreateUploadURLResponse, za as BadRequestError } from "./_internal-1d0QoPQ3.mjs";
10
+ import { n as VERSION, t as ENVIRONMENTS } from "./environments-CuyJ-4ao.mjs";
11
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, Auth, type AuthMode, AuthenticationError, type AutoCredentials, BadRequestError, type ClientIdentity, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type Credential, ENVIRONMENTS, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, type Files, InternalServerError, type LogLevel, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, type Scope, type Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, type ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport, isWalletBalanceExhausted };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-C90r_t8M.mjs";
2
- import { C as reservedHeaders, D as mergeHeaders, F as authFromCredentials, H as assertCredentialTransport, M as assertNoRemovedCredentialOptions, O as inspectDeprecatedInputs, R as resolveAuth, S as assertNoReservedHeaders, T as VERSION, W as parseHTTPURL, j as Auth, k as inspectDeprecation, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as resolveIdentity, x as createFetchTransport, z as resolveScope } from "./generated-operations-Btwe6bGR.mjs";
3
- import { a as AuthenticationError, c as ConflictError, d as PermissionDeniedError, f as RateLimitError, i as APIUserAbortError, l as InternalServerError, n as APIConnectionTimeoutError, o as BadRequestError, p as UnprocessableEntityError, r as APIError, s as ComposioError, t as APIConnectionError, u as NotFoundError } from "./error-hMgVE2qc.mjs";
1
+ import { n as GENERATED_DEPRECATED_INPUTS, r as APIPromise, t as ENVIRONMENTS } from "./environments-BoZhRNmR.mjs";
2
+ import { C as reservedHeaders, D as mergeHeaders, F as authFromCredentials, H as assertCredentialTransport, M as assertNoRemovedCredentialOptions, O as inspectDeprecatedInputs, R as resolveAuth, S as assertNoReservedHeaders, T as VERSION, W as parseHTTPURL, j as Auth, k as inspectDeprecation, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, w as resolveIdentity, x as createFetchTransport, z as resolveScope } from "./generated-operations-DjDuvWLu.mjs";
3
+ import { a as AuthenticationError, c as ConflictError, d as PermissionDeniedError, f as RateLimitError, g as isWalletBalanceExhausted, i as APIUserAbortError, l as InternalServerError, n as APIConnectionTimeoutError, o as BadRequestError, p as UnprocessableEntityError, r as APIError, s as ComposioError, t as APIConnectionError, u as NotFoundError } from "./error-Ch0f9xi8.mjs";
4
4
  import { makeToolRouter } from "./resources/tool-router/tool-router.mjs";
5
5
  import { makeTools } from "./resources/tools.mjs";
6
6
  import { makeFiles } from "./resources/files.mjs";
@@ -273,4 +273,4 @@ var Composio = class {
273
273
  static UnprocessableEntityError = UnprocessableEntityError;
274
274
  };
275
275
 
276
- export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, Auth, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, createFetchTransport };
276
+ export { APIConnectionError, APIConnectionTimeoutError, APIError, APIPromise, APIUserAbortError, Auth, AuthenticationError, BadRequestError, Composio, Composio as default, ComposioError, ConflictError, ENVIRONMENTS, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, VERSION, createFetchTransport, isWalletBalanceExhausted };
@@ -12,7 +12,7 @@
12
12
  * const session = await client._internal.cli.getSession({ id })
13
13
  * ```
14
14
  */
15
- import { t as Internal } from "./_internal-C4ZzriQ6.mjs";
15
+ import { t as Internal } from "./_internal-1d0QoPQ3.mjs";
16
16
  declare module '@composio/client' {
17
17
  interface Composio {
18
18
  readonly _internal: Internal;
@@ -1,4 +1,4 @@
1
- import { s as ComposioError } from "./error-hMgVE2qc.mjs";
1
+ import { s as ComposioError } from "./error-Ch0f9xi8.mjs";
2
2
 
3
3
  // src/pagination-rules.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-DMTBYzG_.mjs";
1
+ import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-4iuoHqVk.mjs";
2
2
 
3
3
  // src/pagination.ts
4
4
  var PaginationTraversal = class {
@@ -1,2 +1,2 @@
1
- import { n as makeInternal, t as Internal } from "../../_internal-C4ZzriQ6.mjs";
1
+ import { n as makeInternal, t as Internal } from "../../_internal-1d0QoPQ3.mjs";
2
2
  export { Internal, makeInternal };
@@ -1,2 +1,2 @@
1
- import { B as makeCli, F as CliCreateCodactFailureResponse, I as CliCreateSessionParams, L as CliCreateSessionResponse, N as Cli, P as CliCreateCodactFailureParams, R as CliGetSessionParams, z as CliGetSessionResponse } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { B as makeCli, F as CliCreateCodactFailureResponse, I as CliCreateSessionParams, L as CliCreateSessionResponse, N as Cli, P as CliCreateCodactFailureParams, R as CliGetSessionParams, z as CliGetSessionResponse } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, makeCli };
@@ -1,4 +1,4 @@
1
- import { D as mergeHeaders, b as withOperation, n as generatedOperation } from "../../../generated-operations-Btwe6bGR.mjs";
1
+ import { D as mergeHeaders, b as withOperation, n as generatedOperation } from "../../../generated-operations-DjDuvWLu.mjs";
2
2
  import { makeRealtime } from "./realtime.mjs";
3
3
 
4
4
  // src/compat/resources/_internal/cli/cli.ts
@@ -1,2 +1,2 @@
1
- import { G as makeRealtime, H as RealtimeAuthParams, U as RealtimeAuthResponse, V as Realtime, W as RealtimeCredentialsResponse } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { G as makeRealtime, H as RealtimeAuthParams, U as RealtimeAuthResponse, V as Realtime, W as RealtimeCredentialsResponse } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse, makeRealtime };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, n as generatedOperation } from "../../../generated-operations-Btwe6bGR.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "../../../generated-operations-DjDuvWLu.mjs";
2
2
 
3
3
  // src/compat/resources/_internal/cli/realtime.ts
4
4
  const OP_AUTH = generatedOperation("_internal.cli.realtime.auth");
@@ -1,2 +1,2 @@
1
- import { F as CliCreateCodactFailureResponse, H as RealtimeAuthParams, I as CliCreateSessionParams, L as CliCreateSessionResponse, N as Cli, P as CliCreateCodactFailureParams, R as CliGetSessionParams, U as RealtimeAuthResponse, V as Realtime, W as RealtimeCredentialsResponse, z as CliGetSessionResponse } from "../../_internal-C4ZzriQ6.mjs";
1
+ import { F as CliCreateCodactFailureResponse, H as RealtimeAuthParams, I as CliCreateSessionParams, L as CliCreateSessionResponse, N as Cli, P as CliCreateCodactFailureParams, R as CliGetSessionParams, U as RealtimeAuthResponse, V as Realtime, W as RealtimeCredentialsResponse, z as CliGetSessionResponse } from "../../_internal-1d0QoPQ3.mjs";
2
2
  export type { Cli, CliCreateCodactFailureParams, CliCreateCodactFailureResponse, CliCreateSessionParams, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse, Realtime, RealtimeAuthParams, RealtimeAuthResponse, RealtimeCredentialsResponse };
@@ -1,2 +1,2 @@
1
- import { D as Consumer, O as makeConsumer } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { D as Consumer, O as makeConsumer } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Consumer, makeConsumer };
@@ -1,2 +1,2 @@
1
- import { A as PermissionsResolveParams, M as makePermissions, j as PermissionsResolveResponse, k as Permissions } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { A as PermissionsResolveParams, M as makePermissions, j as PermissionsResolveResponse, k as Permissions } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Permissions, PermissionsResolveParams, PermissionsResolveResponse, makePermissions };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, n as generatedOperation } from "../../../generated-operations-Btwe6bGR.mjs";
1
+ import { b as withOperation, n as generatedOperation } from "../../../generated-operations-DjDuvWLu.mjs";
2
2
 
3
3
  // src/compat/resources/_internal/consumer/permissions.ts
4
4
  const OP_RESOLVE = generatedOperation("_internal.consumer.permissions.resolve");
@@ -1,2 +1,2 @@
1
- import { A as PermissionsResolveParams, D as Consumer, j as PermissionsResolveResponse, k as Permissions } from "../../_internal-C4ZzriQ6.mjs";
1
+ import { A as PermissionsResolveParams, D as Consumer, j as PermissionsResolveResponse, k as Permissions } from "../../_internal-1d0QoPQ3.mjs";
2
2
  export type { Consumer, Permissions, PermissionsResolveParams, PermissionsResolveResponse };
@@ -1,2 +1,2 @@
1
- import { h as makeLogs, m as Logs } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { h as makeLogs, m as Logs } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Logs, makeLogs };
@@ -1,2 +1,2 @@
1
- import { _ as ToolListParams, b as Tools, g as ToolListFieldsResponse, v as ToolListResponse, x as makeTools, y as ToolRetrieveResponse } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { _ as ToolListParams, b as Tools, g as ToolListFieldsResponse, v as ToolListResponse, x as makeTools, y as ToolRetrieveResponse } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools, makeTools };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "../../../generated-operations-Btwe6bGR.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "../../../generated-operations-DjDuvWLu.mjs";
2
2
 
3
3
  // src/compat/resources/_internal/logs/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("_internal.logs.tools.retrieve");
@@ -1,2 +1,2 @@
1
- import { C as TriggerListResponse, E as makeTriggers, S as TriggerListParams, T as Triggers, w as TriggerRetrieveResponse } from "../../../_internal-C4ZzriQ6.mjs";
1
+ import { C as TriggerListResponse, E as makeTriggers, S as TriggerListParams, T as Triggers, w as TriggerRetrieveResponse } from "../../../_internal-1d0QoPQ3.mjs";
2
2
  export { TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, Triggers, makeTriggers };
@@ -1,4 +1,4 @@
1
- import { b as withOperation, d as path, n as generatedOperation } from "../../../generated-operations-Btwe6bGR.mjs";
1
+ import { b as withOperation, d as path, n as generatedOperation } from "../../../generated-operations-DjDuvWLu.mjs";
2
2
 
3
3
  // src/compat/resources/_internal/logs/triggers.ts
4
4
  const OP_RETRIEVE = generatedOperation("_internal.logs.triggers.retrieve");
@@ -1,2 +1,2 @@
1
- import { C as TriggerListResponse, S as TriggerListParams, T as Triggers, _ as ToolListParams, b as Tools, g as ToolListFieldsResponse, m as Logs, v as ToolListResponse, w as TriggerRetrieveResponse, y as ToolRetrieveResponse } from "../../_internal-C4ZzriQ6.mjs";
1
+ import { C as TriggerListResponse, S as TriggerListParams, T as Triggers, _ as ToolListParams, b as Tools, g as ToolListFieldsResponse, m as Logs, v as ToolListResponse, w as TriggerRetrieveResponse, y as ToolRetrieveResponse } from "../../_internal-1d0QoPQ3.mjs";
2
2
  export type { Logs, ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools, TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, Triggers };
@@ -1,2 +1,2 @@
1
- import { a as Consumer, c as ConsumerRetrieveConfigResponse, l as makeConsumer, o as ConsumerListConnectedToolkitsParams, s as ConsumerListConnectedToolkitsResponse } from "../../../../_internal-C4ZzriQ6.mjs";
1
+ import { a as Consumer, c as ConsumerRetrieveConfigResponse, l as makeConsumer, o as ConsumerListConnectedToolkitsParams, s as ConsumerListConnectedToolkitsResponse } from "../../../../_internal-1d0QoPQ3.mjs";
2
2
  export { Consumer, ConsumerListConnectedToolkitsParams, ConsumerListConnectedToolkitsResponse, ConsumerRetrieveConfigResponse, makeConsumer };