@composio/client 2.0.0-rc.20 → 2.0.0-rc.22

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 (184) hide show
  1. package/README.md +62 -1
  2. package/dist/_internal-7BQNRB9A.d.mts +265 -0
  3. package/dist/{api-key-revocation-DUHNHxSZ.d.mts → _internal-UUxDozdb.d.mts} +952 -279
  4. package/dist/effect/internal.d.mts +9 -0
  5. package/dist/effect/schemas/{cli → _internal/cli}/create-session.d.mts +2 -2
  6. package/dist/effect/schemas/{cli → _internal/cli}/create-session.mjs +2 -2
  7. package/dist/effect/schemas/{cli → _internal/cli}/get-session.d.mts +2 -2
  8. package/dist/effect/schemas/{cli → _internal/cli}/get-session.mjs +3 -3
  9. package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.d.mts +2 -2
  10. package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.mjs +2 -2
  11. package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.d.mts +2 -2
  12. package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.mjs +2 -2
  13. package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.d.mts +2 -2
  14. package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.mjs +2 -2
  15. package/dist/effect/schemas/{logs → _internal/logs}/tools/list.d.mts +2 -2
  16. package/dist/effect/schemas/{logs → _internal/logs}/tools/list.mjs +2 -2
  17. package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.d.mts +2 -2
  18. package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.mjs +2 -2
  19. package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.d.mts +2 -2
  20. package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.mjs +3 -3
  21. package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.d.mts +2 -2
  22. package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.mjs +3 -3
  23. package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.d.mts +2 -2
  24. package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.mjs +2 -2
  25. package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.d.mts +3 -2
  26. package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.mjs +4 -3
  27. package/dist/effect/schemas/auth-configs/list.d.mts +1 -0
  28. package/dist/effect/schemas/auth-configs/list.mjs +2 -1
  29. package/dist/effect/schemas/auth-configs/retrieve.d.mts +1 -0
  30. package/dist/effect/schemas/auth-configs/retrieve.mjs +2 -1
  31. package/dist/effect/schemas/components/block-reason.d.mts +12 -0
  32. package/dist/effect/schemas/components/block-reason.mjs +14 -0
  33. package/dist/effect/schemas/components/execute-blocked.d.mts +30 -0
  34. package/dist/effect/schemas/components/execute-blocked.mjs +24 -0
  35. package/dist/effect/schemas/components/execute-completed.d.mts +8 -0
  36. package/dist/effect/schemas/components/execute-completed.mjs +3 -1
  37. package/dist/effect/schemas/components/execute-failed.d.mts +8 -0
  38. package/dist/effect/schemas/components/execute-failed.mjs +3 -1
  39. package/dist/effect/schemas/components/hook-result.d.mts +13 -0
  40. package/dist/effect/schemas/components/hook-result.mjs +15 -0
  41. package/dist/effect/schemas/components/proxy-execute-blocked.d.mts +24 -0
  42. package/dist/effect/schemas/components/proxy-execute-blocked.mjs +18 -0
  43. package/dist/effect/schemas/components/proxy-execute-completed.d.mts +8 -0
  44. package/dist/effect/schemas/components/proxy-execute-completed.mjs +3 -1
  45. package/dist/effect/schemas/components/session-create-response-config.d.mts +28 -0
  46. package/dist/effect/schemas/components/session-create-response-config.mjs +24 -0
  47. package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts +28 -0
  48. package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +24 -0
  49. package/dist/effect/schemas/session-configs/retrieve.d.mts +11 -0
  50. package/dist/effect/schemas/session-configs/retrieve.mjs +59 -23
  51. package/dist/effect/schemas/tool-router/session/attach.d.mts +28 -0
  52. package/dist/effect/schemas/tool-router/session/config-history.d.mts +28 -0
  53. package/dist/effect/schemas/tool-router/session/create.d.mts +28 -0
  54. package/dist/effect/schemas/tool-router/session/execute-meta.d.mts +40 -0
  55. package/dist/effect/schemas/tool-router/session/execute-meta.mjs +2 -0
  56. package/dist/effect/schemas/tool-router/session/execute.d.mts +40 -0
  57. package/dist/effect/schemas/tool-router/session/execute.mjs +2 -0
  58. package/dist/effect/schemas/tool-router/session/patch.d.mts +28 -0
  59. package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +26 -0
  60. package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +6 -1
  61. package/dist/effect/schemas/tool-router/session/retrieve.d.mts +28 -0
  62. package/dist/effect/schemas/triggers-types/list.d.mts +1 -0
  63. package/dist/effect/schemas/triggers-types/list.mjs +5 -1
  64. package/dist/effect/schemas/triggers-types/retrieve.d.mts +1 -0
  65. package/dist/effect/schemas/triggers-types/retrieve.mjs +5 -1
  66. package/dist/effect/schemas.d.mts +451 -189
  67. package/dist/effect/schemas.mjs +11 -11
  68. package/dist/effect.d.mts +9 -246
  69. package/dist/effect.mjs +122 -102
  70. package/dist/{environments-BGA2C5nZ.mjs → environments-DIBy8nYx.mjs} +18 -10
  71. package/dist/{environments-xPjIJ-r7.d.mts → environments-Dz5jsC_v.d.mts} +1 -1
  72. package/dist/{generated-operations-DhZryVXy.mjs → generated-operations-igWp3zha.mjs} +21 -5
  73. package/dist/index.d.mts +2 -2
  74. package/dist/index.mjs +9 -11
  75. package/dist/internal.d.mts +9 -0
  76. package/dist/internal.mjs +1 -0
  77. package/dist/resources/_internal/_internal.d.mts +2 -0
  78. package/dist/resources/_internal/_internal.mjs +14 -0
  79. package/dist/resources/_internal/cli/cli.d.mts +2 -0
  80. package/dist/resources/_internal/cli/cli.mjs +25 -0
  81. package/dist/resources/_internal/cli/realtime.d.mts +2 -0
  82. package/dist/resources/{cli → _internal/cli}/realtime.mjs +4 -4
  83. package/dist/resources/_internal/cli.d.mts +2 -0
  84. package/dist/resources/_internal/cli.mjs +1 -0
  85. package/dist/resources/_internal/logs/logs.d.mts +2 -0
  86. package/dist/resources/_internal/logs/logs.mjs +12 -0
  87. package/dist/resources/_internal/logs/tools.d.mts +2 -0
  88. package/dist/resources/{logs → _internal/logs}/tools.mjs +5 -5
  89. package/dist/resources/_internal/logs/triggers.d.mts +2 -0
  90. package/dist/resources/{logs → _internal/logs}/triggers.mjs +4 -4
  91. package/dist/resources/_internal/logs.d.mts +2 -0
  92. package/dist/resources/_internal/logs.mjs +1 -0
  93. package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -0
  94. package/dist/resources/{org → _internal/org}/consumer/consumer.mjs +3 -3
  95. package/dist/resources/_internal/org/consumer/project.d.mts +2 -0
  96. package/dist/resources/{org → _internal/org}/consumer/project.mjs +3 -3
  97. package/dist/resources/_internal/org/consumer.d.mts +2 -0
  98. package/dist/resources/_internal/org/consumer.mjs +1 -0
  99. package/dist/resources/_internal/org/org.d.mts +2 -0
  100. package/dist/resources/_internal/org/org.mjs +8 -0
  101. package/dist/resources/_internal/org.d.mts +2 -0
  102. package/dist/resources/_internal/org.mjs +1 -0
  103. package/dist/resources/_internal.d.mts +2 -0
  104. package/dist/resources/_internal.mjs +1 -0
  105. package/dist/resources/api-key-revocation.d.mts +1 -1
  106. package/dist/resources/api-key-revocation.mjs +1 -1
  107. package/dist/resources/auth/auth.d.mts +1 -1
  108. package/dist/resources/auth/session.d.mts +1 -1
  109. package/dist/resources/auth/session.mjs +1 -1
  110. package/dist/resources/auth-configs.d.mts +1 -1
  111. package/dist/resources/auth-configs.mjs +1 -1
  112. package/dist/resources/auth.d.mts +1 -1
  113. package/dist/resources/cli/cli.d.mts +2 -2
  114. package/dist/resources/cli/cli.mjs +8 -26
  115. package/dist/resources/cli.d.mts +2 -2
  116. package/dist/resources/connected-accounts.d.mts +1 -1
  117. package/dist/resources/connected-accounts.mjs +1 -1
  118. package/dist/resources/custom.d.mts +1 -1
  119. package/dist/resources/custom.mjs +1 -1
  120. package/dist/resources/files.d.mts +1 -1
  121. package/dist/resources/files.mjs +1 -1
  122. package/dist/resources/keyring.d.mts +1 -1
  123. package/dist/resources/keyring.mjs +1 -1
  124. package/dist/resources/link.d.mts +1 -1
  125. package/dist/resources/link.mjs +1 -1
  126. package/dist/resources/logs/logs.d.mts +1 -1
  127. package/dist/resources/logs/logs.mjs +1 -5
  128. package/dist/resources/logs.d.mts +2 -2
  129. package/dist/resources/mcp/custom.d.mts +1 -1
  130. package/dist/resources/mcp/custom.mjs +1 -1
  131. package/dist/resources/mcp/generate.d.mts +1 -1
  132. package/dist/resources/mcp/generate.mjs +1 -1
  133. package/dist/resources/mcp/mcp.d.mts +1 -1
  134. package/dist/resources/mcp/mcp.mjs +1 -1
  135. package/dist/resources/mcp.d.mts +1 -1
  136. package/dist/resources/org/clanker.d.mts +1 -1
  137. package/dist/resources/org/clanker.mjs +1 -1
  138. package/dist/resources/org/org.d.mts +1 -1
  139. package/dist/resources/org/org.mjs +1 -3
  140. package/dist/resources/org/owner/owner.d.mts +1 -1
  141. package/dist/resources/org/owner/project.d.mts +1 -1
  142. package/dist/resources/org/owner/project.mjs +1 -1
  143. package/dist/resources/org/owner.d.mts +1 -1
  144. package/dist/resources/org/project.d.mts +1 -1
  145. package/dist/resources/org/project.mjs +1 -1
  146. package/dist/resources/org/usage.d.mts +1 -1
  147. package/dist/resources/org/usage.mjs +1 -1
  148. package/dist/resources/org.d.mts +2 -2
  149. package/dist/resources/project/project.d.mts +1 -1
  150. package/dist/resources/project/usage.d.mts +1 -1
  151. package/dist/resources/project/usage.mjs +1 -1
  152. package/dist/resources/project.d.mts +1 -1
  153. package/dist/resources/session-configs.d.mts +1 -1
  154. package/dist/resources/session-configs.mjs +1 -1
  155. package/dist/resources/tool-router/session/files.d.mts +1 -1
  156. package/dist/resources/tool-router/session/files.mjs +1 -1
  157. package/dist/resources/tool-router/session/session.d.mts +1 -1
  158. package/dist/resources/tool-router/session/session.mjs +1 -1
  159. package/dist/resources/tool-router/session.d.mts +1 -1
  160. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  161. package/dist/resources/tool-router.d.mts +1 -1
  162. package/dist/resources/toolkits.d.mts +1 -1
  163. package/dist/resources/toolkits.mjs +1 -1
  164. package/dist/resources/tools.d.mts +1 -1
  165. package/dist/resources/tools.mjs +1 -1
  166. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  167. package/dist/resources/trigger-instances/manage.mjs +1 -1
  168. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  169. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  170. package/dist/resources/trigger-instances.d.mts +1 -1
  171. package/dist/resources/triggers-types.d.mts +1 -1
  172. package/dist/resources/triggers-types.mjs +1 -1
  173. package/dist/resources/webhook-endpoints.d.mts +1 -1
  174. package/dist/resources/webhook-endpoints.mjs +1 -1
  175. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  176. package/dist/resources/webhook-subscriptions.mjs +1 -1
  177. package/package.json +10 -2
  178. package/dist/resources/cli/realtime.d.mts +0 -2
  179. package/dist/resources/logs/tools.d.mts +0 -2
  180. package/dist/resources/logs/triggers.d.mts +0 -2
  181. package/dist/resources/org/consumer/consumer.d.mts +0 -2
  182. package/dist/resources/org/consumer/project.d.mts +0 -2
  183. package/dist/resources/org/consumer.d.mts +0 -2
  184. /package/dist/{resources/org/consumer.mjs → effect/internal.mjs} +0 -0
@@ -0,0 +1,9 @@
1
+ import { t as Internal } from "../_internal-7BQNRB9A.mjs";
2
+ //#region src/effect/internal.d.ts
3
+ declare module '@composio/client/effect' {
4
+ interface ComposioClientShape {
5
+ readonly _internal: Internal;
6
+ }
7
+ }
8
+ //#endregion
9
+ export type { Internal };
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/cli/create-session.d.ts
3
- /** The 201 response of `POST /api/v3.1/cli/create-session`, which `client.cli.createSession` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/cli/create-session.d.ts
3
+ /** The 201 response of `POST /api/v3.1/cli/create-session`, which `client._internal.cli.createSession` answers with. */
4
4
  declare const CliCreateSessionResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly id: Schema.String;
6
6
  readonly code: Schema.String;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/cli/create-session.ts
4
- /** The 201 response of `POST /api/v3.1/cli/create-session`, which `client.cli.createSession` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/cli/create-session.ts
4
+ /** The 201 response of `POST /api/v3.1/cli/create-session`, which `client._internal.cli.createSession` answers with. */
5
5
  const CliCreateSessionResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "id": Schema.String.annotate({ "description": "Unique identifier for the CLI session. UUID v4 format used for tracking and retrieval." }),
7
7
  "code": Schema.String.annotate({
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/cli/get-session.d.ts
3
- /** The 200 response of `GET /api/v3.1/cli/get-session`, which `client.cli.getSession` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/cli/get-session.d.ts
3
+ /** The 200 response of `GET /api/v3.1/cli/get-session`, which `client._internal.cli.getSession` answers with. */
4
4
  declare const CliGetSessionResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly id: Schema.String;
6
6
  readonly code: Schema.String;
@@ -1,10 +1,10 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/cli/get-session.ts
4
- /** The 200 response of `GET /api/v3.1/cli/get-session`, which `client.cli.getSession` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/cli/get-session.ts
4
+ /** The 200 response of `GET /api/v3.1/cli/get-session`, which `client._internal.cli.getSession` answers with. */
5
5
  const CliGetSessionResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "id": Schema.String.annotate({
7
- "description": "The unique identifier for the CLI session",
7
+ "description": "The CLI session ID, or the code for a lookup by code",
8
8
  "examples": ["123e4567-e89b-12d3-a456-426614174000"]
9
9
  }),
10
10
  "code": Schema.String.annotate({
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/cli/realtime/auth.d.ts
3
- /** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client.cli.realtime.auth` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/cli/realtime/auth.d.ts
3
+ /** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client._internal.cli.realtime.auth` answers with. */
4
4
  declare const RealtimeAuthResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly auth: Schema.String;
6
6
  readonly channel_data: Schema.optionalKey<Schema.String>;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/cli/realtime/auth.ts
4
- /** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client.cli.realtime.auth` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/cli/realtime/auth.ts
4
+ /** The 200 response of `POST /api/v3.1/cli/realtime/auth`, which `client._internal.cli.realtime.auth` answers with. */
5
5
  const RealtimeAuthResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "auth": Schema.String.annotate({ "description": "The authentication string for Pusher" }),
7
7
  "channel_data": Schema.optionalKey(Schema.String.annotate({ "description": "Channel data for presence channels" }))
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/cli/realtime/credentials.d.ts
3
- /** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client.cli.realtime.credentials` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/cli/realtime/credentials.d.ts
3
+ /** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client._internal.cli.realtime.credentials` answers with. */
4
4
  declare const RealtimeCredentialsResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly pusher_key: Schema.String;
6
6
  readonly pusher_cluster: Schema.String;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/cli/realtime/credentials.ts
4
- /** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client.cli.realtime.credentials` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/cli/realtime/credentials.ts
4
+ /** The 200 response of `GET /api/v3.1/cli/realtime/credentials`, which `client._internal.cli.realtime.credentials` answers with. */
5
5
  const RealtimeCredentialsResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "pusher_key": Schema.String.annotate({ "description": "The Pusher client key for subscribing to the trigger" }),
7
7
  "pusher_cluster": Schema.String.annotate({ "description": "The Pusher cluster for subscribing to the trigger" }),
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/logs/tools/list-fields.d.ts
3
- /** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client.logs.tools.listFields` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/logs/tools/list-fields.d.ts
3
+ /** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client._internal.logs.tools.listFields` answers with. */
4
4
  declare const ToolListFieldsResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.StructWithRest<Schema.Struct<{
6
6
  readonly id: Schema.String;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/logs/tools/list-fields.ts
4
- /** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client.logs.tools.listFields` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/logs/tools/list-fields.ts
4
+ /** The 200 response of `GET /api/v3.1/internal/action_execution/fields`, which `client._internal.logs.tools.listFields` answers with. */
5
5
  const ToolListFieldsResponse = Schema.StructWithRest(Schema.Struct({ "fields": Schema.Record(Schema.String, Schema.Array(Schema.StructWithRest(Schema.Struct({
6
6
  "id": Schema.String.annotate({ "description": "The id of the field" }),
7
7
  "displayName": Schema.String.annotate({ "description": "The display name of the field" }),
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/logs/tools/list.d.ts
3
- /** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client.logs.tools.list` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/logs/tools/list.d.ts
3
+ /** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client._internal.logs.tools.list` answers with. */
4
4
  declare const ToolListResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly data: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
6
6
  readonly id: Schema.String;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/logs/tools/list.ts
4
- /** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client.logs.tools.list` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/logs/tools/list.ts
4
+ /** The 200 response of `POST /api/v3.1/internal/action_execution/logs`, which `client._internal.logs.tools.list` answers with. */
5
5
  const ToolListResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "data": Schema.Array(Schema.StructWithRest(Schema.Struct({
7
7
  "id": Schema.String,
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/logs/tools/retrieve.d.ts
3
- /** The 200 response of `GET /api/v3.1/internal/action_execution/log/{id}`, which `client.logs.tools.retrieve` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/logs/tools/retrieve.d.ts
3
+ /** The 200 response of `GET /api/v3.1/internal/action_execution/log/{id}`, which `client._internal.logs.tools.retrieve` answers with. */
4
4
  declare const ToolRetrieveResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly actionLogId: Schema.String;
6
6
  readonly actionId: Schema.String;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/logs/tools/retrieve.ts
4
- /** The 200 response of `GET /api/v3.1/internal/action_execution/log/{id}`, which `client.logs.tools.retrieve` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/logs/tools/retrieve.ts
4
+ /** The 200 response of `GET /api/v3.1/internal/action_execution/log/{id}`, which `client._internal.logs.tools.retrieve` answers with. */
5
5
  const ToolRetrieveResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "actionLogId": Schema.String,
7
7
  "actionId": Schema.String,
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/logs/triggers/list.d.ts
3
- /** The 200 response of `POST /api/v3.1/internal/trigger/logs`, which `client.logs.triggers.list` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/logs/triggers/list.d.ts
3
+ /** The 200 response of `POST /api/v3.1/internal/trigger/logs`, which `client._internal.logs.triggers.list` answers with. */
4
4
  declare const TriggerListResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
6
6
  readonly data: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
@@ -1,8 +1,8 @@
1
- import { TriggerRetrieveResponseLog } from "../../components/trigger-retrieve-response-log.mjs";
1
+ import { TriggerRetrieveResponseLog } from "../../../components/trigger-retrieve-response-log.mjs";
2
2
  import * as Schema from "effect/Schema";
3
3
 
4
- //#region src/effect/generated/schemas/logs/triggers/list.ts
5
- /** The 200 response of `POST /api/v3.1/internal/trigger/logs`, which `client.logs.triggers.list` answers with. */
4
+ //#region src/effect/generated/schemas/_internal/logs/triggers/list.ts
5
+ /** The 200 response of `POST /api/v3.1/internal/trigger/logs`, which `client._internal.logs.triggers.list` answers with. */
6
6
  const TriggerListResponse = Schema.StructWithRest(Schema.Struct({
7
7
  "nextCursor": Schema.Union([Schema.String, Schema.Null]),
8
8
  "data": Schema.optionalKey(Schema.Array(TriggerRetrieveResponseLog).annotate({ "default": [] }))
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/logs/triggers/retrieve.d.ts
3
- /** The 200 response of `GET /api/v3.1/internal/trigger/log/{id}`, which `client.logs.triggers.retrieve` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/logs/triggers/retrieve.d.ts
3
+ /** The 200 response of `GET /api/v3.1/internal/trigger/log/{id}`, which `client._internal.logs.triggers.retrieve` answers with. */
4
4
  declare const TriggerRetrieveResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly log: Schema.StructWithRest<Schema.Struct<{
6
6
  readonly id: Schema.String;
@@ -1,8 +1,8 @@
1
- import { TriggerRetrieveResponseLog } from "../../components/trigger-retrieve-response-log.mjs";
1
+ import { TriggerRetrieveResponseLog } from "../../../components/trigger-retrieve-response-log.mjs";
2
2
  import * as Schema from "effect/Schema";
3
3
 
4
- //#region src/effect/generated/schemas/logs/triggers/retrieve.ts
5
- /** The 200 response of `GET /api/v3.1/internal/trigger/log/{id}`, which `client.logs.triggers.retrieve` answers with. */
4
+ //#region src/effect/generated/schemas/_internal/logs/triggers/retrieve.ts
5
+ /** The 200 response of `GET /api/v3.1/internal/trigger/log/{id}`, which `client._internal.logs.triggers.retrieve` answers with. */
6
6
  const TriggerRetrieveResponse = Schema.StructWithRest(Schema.Struct({ "log": TriggerRetrieveResponseLog }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
7
7
 
8
8
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/org/consumer/list-connected-toolkits.d.ts
3
- /** The 200 response of `GET /api/v3.1/org/consumer/connected_toolkits`, which `client.org.consumer.listConnectedToolkits` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/org/consumer/list-connected-toolkits.d.ts
3
+ /** The 200 response of `GET /api/v3.1/org/consumer/connected_toolkits`, which `client._internal.org.consumer.listConnectedToolkits` answers with. */
4
4
  declare const ConsumerListConnectedToolkitsResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly toolkits: Schema.$Array<Schema.String>;
6
6
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/org/consumer/list-connected-toolkits.ts
4
- /** The 200 response of `GET /api/v3.1/org/consumer/connected_toolkits`, which `client.org.consumer.listConnectedToolkits` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/org/consumer/list-connected-toolkits.ts
4
+ /** The 200 response of `GET /api/v3.1/org/consumer/connected_toolkits`, which `client._internal.org.consumer.listConnectedToolkits` answers with. */
5
5
  const ConsumerListConnectedToolkitsResponse = Schema.StructWithRest(Schema.Struct({ "toolkits": Schema.Array(Schema.String).annotate({ "description": "Distinct active toolkit slugs." }) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
6
6
 
7
7
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- //#region src/effect/generated/schemas/org/consumer/project/resolve.d.ts
3
- /** The 200 response of `POST /api/v3.1/org/consumer/project/resolve`, which `client.org.consumer.project.resolve` answers with. */
2
+ //#region src/effect/generated/schemas/_internal/org/consumer/project/resolve.d.ts
3
+ /** The 200 response of `POST /api/v3.1/org/consumer/project/resolve`, which `client._internal.org.consumer.project.resolve` answers with. */
4
4
  declare const ProjectResolveResponse: Schema.StructWithRest<Schema.Struct<{
5
5
  readonly project_id: Schema.String;
6
6
  readonly project_nano_id: Schema.String;
@@ -14,6 +14,7 @@ declare const ProjectResolveResponse: Schema.StructWithRest<Schema.Struct<{
14
14
  readonly clanker: Schema.optionalKey<Schema.Boolean>;
15
15
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
16
16
  readonly consumer_user_id: Schema.String;
17
+ readonly user_id: Schema.String;
17
18
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
18
19
  //#endregion
19
20
  export { ProjectResolveResponse };
@@ -1,7 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
 
3
- //#region src/effect/generated/schemas/org/consumer/project/resolve.ts
4
- /** The 200 response of `POST /api/v3.1/org/consumer/project/resolve`, which `client.org.consumer.project.resolve` answers with. */
3
+ //#region src/effect/generated/schemas/_internal/org/consumer/project/resolve.ts
4
+ /** The 200 response of `POST /api/v3.1/org/consumer/project/resolve`, which `client._internal.org.consumer.project.resolve` answers with. */
5
5
  const ProjectResolveResponse = Schema.StructWithRest(Schema.Struct({
6
6
  "project_id": Schema.String.annotate({
7
7
  "description": "UUID of the resolved consumer project.",
@@ -23,7 +23,8 @@ const ProjectResolveResponse = Schema.StructWithRest(Schema.Struct({
23
23
  "enable_instant": Schema.Boolean.annotate({ "description": "Whether Instant Tools are enabled for this consumer project." }),
24
24
  "clanker": Schema.optionalKey(Schema.Boolean.annotate({ "description": "Whether org members share a single clanker bot identity for connected accounts." }))
25
25
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Consumer project configuration bag (consumer-experience and enhanced-controls flags, plus any provider-specific keys)." }),
26
- "consumer_user_id": Schema.String.annotate({ "description": "Derived internal Composio user ID for the authenticated user in this consumer org context." })
26
+ "consumer_user_id": Schema.String.annotate({ "description": "Derived internal Composio user ID for the authenticated user in this consumer org context." }),
27
+ "user_id": Schema.String.annotate({ "description": "ID of the authenticated user the request was made as." })
27
28
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
28
29
 
29
30
  //#endregion
@@ -43,6 +43,7 @@ declare const AuthConfigListResponse: Schema.StructWithRest<Schema.Struct<{
43
43
  readonly tools_available_for_execution: Schema.optionalKey<Schema.$Array<Schema.String>>;
44
44
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
45
45
  readonly shared_credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
46
+ readonly shared_connection_fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
46
47
  readonly is_enabled_for_tool_router: Schema.optionalKey<Schema.Boolean>;
47
48
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
48
49
  readonly next_cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -53,7 +53,8 @@ const AuthConfigListResponse = Schema.StructWithRest(Schema.Struct({
53
53
  "expected_input_fields": Schema.optionalKey(AuthConfigRetrieveResponseExpectedInputFields),
54
54
  "restrict_to_following_tools": Schema.optionalKey(Schema.Array(Schema.String).annotate({ "description": "List of tool slugs this auth config is restricted to use with. DEPRECATED: use [Get required scopes](https://docs.composio.dev/reference/api-reference/toolkits/recommendToolkitScopes) to resolve the scopes for the tools you need, then pass those scopes in `credentials.scopes`." })),
55
55
  "tool_access_config": AuthConfigRetrieveResponseToolAccessConfig,
56
- "shared_credentials": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config" })),
56
+ "shared_credentials": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way." })),
57
+ "shared_connection_fields": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted." })),
57
58
  "is_enabled_for_tool_router": Schema.optionalKey(Schema.Boolean.annotate({ "description": "Whether this auth config is enabled for tool router" }))
58
59
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])),
59
60
  "next_cursor": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -42,6 +42,7 @@ declare const AuthConfigRetrieveResponse: Schema.StructWithRest<Schema.Struct<{
42
42
  readonly tools_available_for_execution: Schema.optionalKey<Schema.$Array<Schema.String>>;
43
43
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
44
44
  readonly shared_credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
45
+ readonly shared_connection_fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
45
46
  readonly is_enabled_for_tool_router: Schema.optionalKey<Schema.Boolean>;
46
47
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
47
48
  //#endregion
@@ -52,7 +52,8 @@ const AuthConfigRetrieveResponse = Schema.StructWithRest(Schema.Struct({
52
52
  "expected_input_fields": Schema.optionalKey(AuthConfigRetrieveResponseExpectedInputFields),
53
53
  "restrict_to_following_tools": Schema.optionalKey(Schema.Array(Schema.String).annotate({ "description": "List of tool slugs this auth config is restricted to use with. DEPRECATED: use [Get required scopes](https://docs.composio.dev/reference/api-reference/toolkits/recommendToolkitScopes) to resolve the scopes for the tools you need, then pass those scopes in `credentials.scopes`." })),
54
54
  "tool_access_config": AuthConfigRetrieveResponseToolAccessConfig,
55
- "shared_credentials": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config" })),
55
+ "shared_credentials": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way." })),
56
+ "shared_connection_fields": Schema.optionalKey(Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" })).annotate({ "description": "Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted." })),
56
57
  "is_enabled_for_tool_router": Schema.optionalKey(Schema.Boolean.annotate({ "description": "Whether this auth config is enabled for tool router" }))
57
58
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
58
59
 
@@ -0,0 +1,12 @@
1
+ import * as Schema from "effect/Schema";
2
+ //#region src/effect/generated/schemas/components/block-reason.d.ts
3
+ /** The `BlockReason` component schema. */
4
+ declare const BlockReason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
5
+ readonly type: Schema.Literal<"request_blocked">;
6
+ readonly hook_id: Schema.String;
7
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8
+ readonly type: Schema.Literal<"response_blocked">;
9
+ readonly hook_id: Schema.String;
10
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
11
+ //#endregion
12
+ export { BlockReason };
@@ -0,0 +1,14 @@
1
+ import * as Schema from "effect/Schema";
2
+
3
+ //#region src/effect/generated/schemas/components/block-reason.ts
4
+ /** The `BlockReason` component schema. */
5
+ const BlockReason = Schema.Union([Schema.StructWithRest(Schema.Struct({
6
+ "type": Schema.Literal("request_blocked").annotate({ "description": "A before_execute hook stopped the call. The tool did not run." }),
7
+ "hook_id": Schema.String
8
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]), Schema.StructWithRest(Schema.Struct({
9
+ "type": Schema.Literal("response_blocked").annotate({ "description": "An after_execute hook stopped the call. The tool ran; its response was withheld." }),
10
+ "hook_id": Schema.String
11
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])], { mode: "oneOf" }).annotate({ "identifier": "BlockReason" });
12
+
13
+ //#endregion
14
+ export { BlockReason };
@@ -0,0 +1,30 @@
1
+ import * as Schema from "effect/Schema";
2
+ //#region src/effect/generated/schemas/components/execute-blocked.d.ts
3
+ /** The `ExecuteBlocked` component schema. */
4
+ declare const ExecuteBlocked: Schema.StructWithRest<Schema.Struct<{
5
+ readonly result_type: Schema.Literal<"blocked">;
6
+ readonly reason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
7
+ readonly type: Schema.Literal<"request_blocked">;
8
+ readonly hook_id: Schema.String;
9
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
10
+ readonly type: Schema.Literal<"response_blocked">;
11
+ readonly hook_id: Schema.String;
12
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
13
+ readonly message: Schema.String;
14
+ readonly log_id: Schema.optionalKey<Schema.String>;
15
+ readonly instant_charge: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
16
+ readonly amount: Schema.String;
17
+ readonly currency: Schema.Literal<"USD">;
18
+ readonly charged_by: Schema.Literal<"composio">;
19
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
20
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
21
+ readonly id: Schema.String;
22
+ readonly status: Schema.Literal<"evaluated">;
23
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
24
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
25
+ readonly id: Schema.String;
26
+ readonly status: Schema.Literal<"unavailable">;
27
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
28
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
29
+ //#endregion
30
+ export { ExecuteBlocked };
@@ -0,0 +1,24 @@
1
+ import { BlockReason } from "./block-reason.mjs";
2
+ import { HookResult } from "./hook-result.mjs";
3
+ import * as Schema from "effect/Schema";
4
+
5
+ //#region src/effect/generated/schemas/components/execute-blocked.ts
6
+ /** The `ExecuteBlocked` component schema. */
7
+ const ExecuteBlocked = Schema.StructWithRest(Schema.Struct({
8
+ "result_type": Schema.Literal("blocked").annotate({ "description": "A session hook stopped the call" }),
9
+ "reason": BlockReason,
10
+ "message": Schema.String.annotate({
11
+ "description": "A message for the agent. It includes the hook's name, when it has one; the hook id is in `reason`.",
12
+ "examples": ["Blocked by session policy: No external email"]
13
+ }),
14
+ "log_id": Schema.optionalKey(Schema.String.annotate({ "description": "The execution log ID. Only set when the tool ran and its response was blocked." })),
15
+ "instant_charge": Schema.optionalKey(Schema.StructWithRest(Schema.Struct({
16
+ "amount": Schema.String.annotate({ "description": "Instant charge in USD as an exact non-negative decimal string, with up to 12 fractional digits." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(0|[1-9]\\d*)(\\.\\d{1,12})?$", "u")).annotate({ "expected": "a string matching the RegExp ^(0|[1-9]\\d*)(\\.\\d{1,12})?$" })),
17
+ "currency": Schema.Literal("USD").annotate({ "description": "Currency of the instant charge. Always USD." }),
18
+ "charged_by": Schema.Literal("composio").annotate({ "description": "Entity charging for instant usage. Always composio." })
19
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Returned only when the session enables instant.return_instant_charge and a charge is available. Only set when the tool ran and its response was blocked." })),
20
+ "hook_results": Schema.optionalKey(Schema.Array(HookResult).annotate({ "description": "Every session hook that applied to this call. Omitted when none applied." }))
21
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "identifier": "ExecuteBlocked" });
22
+
23
+ //#endregion
24
+ export { ExecuteBlocked };
@@ -11,6 +11,14 @@ declare const ExecuteCompleted: Schema.StructWithRest<Schema.Struct<{
11
11
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
12
12
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
13
13
  readonly log_id: Schema.String;
14
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
15
+ readonly id: Schema.String;
16
+ readonly status: Schema.Literal<"evaluated">;
17
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
18
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
19
+ readonly id: Schema.String;
20
+ readonly status: Schema.Literal<"unavailable">;
21
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
14
22
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
15
23
  //#endregion
16
24
  export { ExecuteCompleted };
@@ -1,3 +1,4 @@
1
+ import { HookResult } from "./hook-result.mjs";
1
2
  import * as Schema from "effect/Schema";
2
3
 
3
4
  //#region src/effect/generated/schemas/components/execute-completed.ts
@@ -20,7 +21,8 @@ const ExecuteCompleted = Schema.StructWithRest(Schema.Struct({
20
21
  "log_id": Schema.String.annotate({
21
22
  "description": "Unique identifier for the execution log",
22
23
  "examples": ["log_abc123xyz"]
23
- })
24
+ }),
25
+ "hook_results": Schema.optionalKey(Schema.Array(HookResult).annotate({ "description": "Every session hook that applied to this call. Omitted when none applied." }))
24
26
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "identifier": "ExecuteCompleted" });
25
27
 
26
28
  //#endregion
@@ -11,6 +11,14 @@ declare const ExecuteFailed: Schema.StructWithRest<Schema.Struct<{
11
11
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
12
12
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
13
13
  readonly log_id: Schema.String;
14
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
15
+ readonly id: Schema.String;
16
+ readonly status: Schema.Literal<"evaluated">;
17
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
18
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
19
+ readonly id: Schema.String;
20
+ readonly status: Schema.Literal<"unavailable">;
21
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
14
22
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
15
23
  //#endregion
16
24
  export { ExecuteFailed };
@@ -1,3 +1,4 @@
1
+ import { HookResult } from "./hook-result.mjs";
1
2
  import * as Schema from "effect/Schema";
2
3
 
3
4
  //#region src/effect/generated/schemas/components/execute-failed.ts
@@ -20,7 +21,8 @@ const ExecuteFailed = Schema.StructWithRest(Schema.Struct({
20
21
  "log_id": Schema.String.annotate({
21
22
  "description": "Unique identifier for the execution log",
22
23
  "examples": ["log_abc123xyz"]
23
- })
24
+ }),
25
+ "hook_results": Schema.optionalKey(Schema.Array(HookResult).annotate({ "description": "Every session hook that applied to this call. Omitted when none applied." }))
24
26
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "identifier": "ExecuteFailed" });
25
27
 
26
28
  //#endregion
@@ -0,0 +1,13 @@
1
+ import * as Schema from "effect/Schema";
2
+ //#region src/effect/generated/schemas/components/hook-result.d.ts
3
+ /** The `HookResult` component schema. */
4
+ declare const HookResult: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
5
+ readonly id: Schema.String;
6
+ readonly status: Schema.Literal<"evaluated">;
7
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
9
+ readonly id: Schema.String;
10
+ readonly status: Schema.Literal<"unavailable">;
11
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
12
+ //#endregion
13
+ export { HookResult };
@@ -0,0 +1,15 @@
1
+ import * as Schema from "effect/Schema";
2
+
3
+ //#region src/effect/generated/schemas/components/hook-result.ts
4
+ /** The `HookResult` component schema. */
5
+ const HookResult = Schema.Union([Schema.StructWithRest(Schema.Struct({
6
+ "id": Schema.String.annotate({ "description": "The hook id" }),
7
+ "status": Schema.Literal("evaluated"),
8
+ "outcome": Schema.Literals(["continue", "block"]).annotate({ "description": "What the hook decided" })
9
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]), Schema.StructWithRest(Schema.Struct({
10
+ "id": Schema.String.annotate({ "description": "The hook id" }),
11
+ "status": Schema.Literal("unavailable").annotate({ "description": "The hook could not be evaluated" })
12
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))])], { mode: "oneOf" }).annotate({ "identifier": "HookResult" });
13
+
14
+ //#endregion
15
+ export { HookResult };
@@ -0,0 +1,24 @@
1
+ import * as Schema from "effect/Schema";
2
+ //#region src/effect/generated/schemas/components/proxy-execute-blocked.d.ts
3
+ /** The `ProxyExecuteBlocked` component schema. */
4
+ declare const ProxyExecuteBlocked: Schema.StructWithRest<Schema.Struct<{
5
+ readonly result_type: Schema.Literal<"blocked">;
6
+ readonly reason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
7
+ readonly type: Schema.Literal<"request_blocked">;
8
+ readonly hook_id: Schema.String;
9
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
10
+ readonly type: Schema.Literal<"response_blocked">;
11
+ readonly hook_id: Schema.String;
12
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
13
+ readonly message: Schema.String;
14
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
15
+ readonly id: Schema.String;
16
+ readonly status: Schema.Literal<"evaluated">;
17
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
18
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
19
+ readonly id: Schema.String;
20
+ readonly status: Schema.Literal<"unavailable">;
21
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
22
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
23
+ //#endregion
24
+ export { ProxyExecuteBlocked };
@@ -0,0 +1,18 @@
1
+ import { BlockReason } from "./block-reason.mjs";
2
+ import { HookResult } from "./hook-result.mjs";
3
+ import * as Schema from "effect/Schema";
4
+
5
+ //#region src/effect/generated/schemas/components/proxy-execute-blocked.ts
6
+ /** The `ProxyExecuteBlocked` component schema. */
7
+ const ProxyExecuteBlocked = Schema.StructWithRest(Schema.Struct({
8
+ "result_type": Schema.Literal("blocked").annotate({ "description": "A session hook stopped the call" }),
9
+ "reason": BlockReason,
10
+ "message": Schema.String.annotate({
11
+ "description": "A message for the agent. It includes the hook's name, when it has one; the hook id is in `reason`.",
12
+ "examples": ["Blocked by session policy: No external email"]
13
+ }),
14
+ "hook_results": Schema.optionalKey(Schema.Array(HookResult).annotate({ "description": "Every session hook that applied to this call. Omitted when none applied." }))
15
+ }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "identifier": "ProxyExecuteBlocked" });
16
+
17
+ //#endregion
18
+ export { ProxyExecuteBlocked };
@@ -12,6 +12,14 @@ declare const ProxyExecuteCompleted: Schema.StructWithRest<Schema.Struct<{
12
12
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
13
13
  readonly status: Schema.Number;
14
14
  readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
15
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
16
+ readonly id: Schema.String;
17
+ readonly status: Schema.Literal<"evaluated">;
18
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
19
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
20
+ readonly id: Schema.String;
21
+ readonly status: Schema.Literal<"unavailable">;
22
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
15
23
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
16
24
  //#endregion
17
25
  export { ProxyExecuteCompleted };
@@ -1,3 +1,4 @@
1
+ import { HookResult } from "./hook-result.mjs";
1
2
  import * as Schema from "effect/Schema";
2
3
 
3
4
  //#region src/effect/generated/schemas/components/proxy-execute-completed.ts
@@ -29,7 +30,8 @@ const ProxyExecuteCompleted = Schema.StructWithRest(Schema.Struct({
29
30
  "content-type": "application/json",
30
31
  "cache-control": "no-cache"
31
32
  }]
32
- }))
33
+ })),
34
+ "hook_results": Schema.optionalKey(Schema.Array(HookResult).annotate({ "description": "Every session hook that applied to this request. Omitted when none applied." }))
33
35
  }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "identifier": "ProxyExecuteCompleted" });
34
36
 
35
37
  //#endregion