@composio/client 2.0.0-rc.21 → 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 +51 -1
  2. package/dist/_internal-7BQNRB9A.d.mts +265 -0
  3. package/dist/{api-key-revocation-BB3FTdR3.d.mts → _internal-UUxDozdb.d.mts} +952 -268
  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-CmxYUUsW.mjs → environments-DIBy8nYx.mjs} +18 -10
  71. package/dist/{environments-BXSnADKo.d.mts → environments-Dz5jsC_v.d.mts} +1 -1
  72. package/dist/{generated-operations-BNRn8az6.mjs → generated-operations-igWp3zha.mjs} +21 -5
  73. package/dist/index.d.mts +2 -2
  74. package/dist/index.mjs +4 -2
  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
@@ -13,6 +13,196 @@ import * as Schema from "effect/Schema";
13
13
  * schema it loads: that is what the type test compares with the response type the call returns.
14
14
  */
15
15
  declare const schemaLoaders: {
16
+ '_internal.cli.createSession': () => Promise<Schema.StructWithRest<Schema.Struct<{
17
+ readonly id: Schema.String;
18
+ readonly code: Schema.String;
19
+ readonly expiresAt: Schema.String;
20
+ readonly status: Schema.Literals<readonly ["pending", "linked"]>;
21
+ readonly scope: Schema.Literals<readonly ["project", "user"]>;
22
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
23
+ '_internal.cli.getSession': () => Promise<Schema.StructWithRest<Schema.Struct<{
24
+ readonly id: Schema.String;
25
+ readonly code: Schema.String;
26
+ readonly status: Schema.Literals<readonly ["pending", "linked"]>;
27
+ readonly expiresAt: Schema.String;
28
+ readonly account: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
29
+ readonly id: Schema.String;
30
+ readonly email: Schema.String;
31
+ readonly name: Schema.String;
32
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
33
+ readonly api_key: Schema.Union<readonly [Schema.String, Schema.Null]>;
34
+ readonly scope: Schema.Union<readonly [Schema.Literals<readonly ["project", "user"]>, Schema.Null]>;
35
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
36
+ '_internal.cli.realtime.auth': () => Promise<Schema.StructWithRest<Schema.Struct<{
37
+ readonly auth: Schema.String;
38
+ readonly channel_data: Schema.optionalKey<Schema.String>;
39
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
40
+ '_internal.cli.realtime.credentials': () => Promise<Schema.StructWithRest<Schema.Struct<{
41
+ readonly pusher_key: Schema.String;
42
+ readonly pusher_cluster: Schema.String;
43
+ readonly project_id: Schema.String;
44
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
45
+ '_internal.logs.tools.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
46
+ readonly data: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
47
+ readonly id: Schema.String;
48
+ readonly actionKey: Schema.String;
49
+ readonly appKey: Schema.String;
50
+ readonly app: Schema.StructWithRest<Schema.Struct<{
51
+ readonly icon: Schema.String;
52
+ readonly name: Schema.String;
53
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
54
+ readonly connectedAccountId: Schema.String;
55
+ readonly entityId: Schema.String;
56
+ readonly status: Schema.Literals<readonly ["success", "failed"]>;
57
+ readonly executionTime: Schema.Number;
58
+ readonly minimalResponse: Schema.String;
59
+ readonly metadata: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
60
+ readonly recipe_id: Schema.optionalKey<Schema.String>;
61
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
62
+ readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
63
+ readonly instantCharge: Schema.optionalKey<Schema.String>;
64
+ readonly createdAt: Schema.Number;
65
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
66
+ readonly nextCursor: Schema.Union<readonly [Schema.Number, Schema.Null]>;
67
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
68
+ '_internal.logs.tools.listFields': () => Promise<Schema.StructWithRest<Schema.Struct<{
69
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.StructWithRest<Schema.Struct<{
70
+ readonly id: Schema.String;
71
+ readonly displayName: Schema.String;
72
+ readonly type: Schema.String;
73
+ readonly regex: Schema.optionalKey<Schema.String>;
74
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
75
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
76
+ '_internal.logs.tools.retrieve': () => Promise<Schema.StructWithRest<Schema.Struct<{
77
+ readonly actionLogId: Schema.String;
78
+ readonly actionId: Schema.String;
79
+ readonly status: Schema.Literals<readonly ["success", "error", "warning", "info"]>;
80
+ readonly app: Schema.StructWithRest<Schema.Struct<{
81
+ readonly name: Schema.String;
82
+ readonly uniqueId: Schema.String;
83
+ readonly icon: Schema.String;
84
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
85
+ readonly version: Schema.String;
86
+ readonly connection: Schema.StructWithRest<Schema.Struct<{
87
+ readonly id: Schema.String;
88
+ readonly entity: Schema.String;
89
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
90
+ readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
91
+ readonly instantCharge: Schema.optionalKey<Schema.String>;
92
+ readonly session: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
93
+ readonly executionMetadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
94
+ readonly steps: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
95
+ readonly type: Schema.Literals<readonly ["tool_execution", "fetch_connection_details"]>;
96
+ readonly startTime: Schema.Number;
97
+ readonly endTime: Schema.Number;
98
+ readonly totalDuration: Schema.Number;
99
+ readonly status: Schema.Literals<readonly ["success", "failure", "error"]>;
100
+ readonly message: Schema.String;
101
+ readonly metadata: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
102
+ readonly encryption: Schema.optionalKey<Schema.String>;
103
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
104
+ readonly logs: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
105
+ readonly type: Schema.Literals<readonly ["network", "system"]>;
106
+ readonly level: Schema.String;
107
+ readonly message: Schema.String;
108
+ readonly requestId: Schema.String;
109
+ readonly time: Schema.Number;
110
+ readonly request: Schema.StructWithRest<Schema.Struct<{
111
+ readonly method: Schema.String;
112
+ readonly url: Schema.String;
113
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
114
+ readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
115
+ readonly timeout: Schema.optionalKey<Schema.Number>;
116
+ readonly json: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
117
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
118
+ readonly response: Schema.StructWithRest<Schema.Struct<{
119
+ readonly status: Schema.Number;
120
+ readonly time: Schema.String;
121
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
122
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
123
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
124
+ readonly payloadReceived: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
125
+ readonly startTime: Schema.Number;
126
+ readonly endTime: Schema.Number;
127
+ readonly totalDuration: Schema.String;
128
+ readonly response: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>;
129
+ readonly error: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
130
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
131
+ '_internal.logs.triggers.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
132
+ readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
133
+ readonly data: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
134
+ readonly id: Schema.String;
135
+ readonly connectionId: Schema.String;
136
+ readonly clientId: Schema.String;
137
+ readonly entityId: Schema.String;
138
+ readonly status: Schema.String;
139
+ readonly appName: Schema.String;
140
+ readonly createdAt: Schema.String;
141
+ readonly type: Schema.Literals<readonly ["trigger", "action"]>;
142
+ readonly meta: Schema.StructWithRest<Schema.Struct<{
143
+ readonly id: Schema.String;
144
+ readonly type: Schema.Literals<readonly ["trigger", "action"]>;
145
+ readonly createdAt: Schema.String;
146
+ readonly updatedAt: Schema.String;
147
+ readonly provider: Schema.String;
148
+ readonly clientId: Schema.String;
149
+ readonly connectionId: Schema.String;
150
+ readonly triggerProviderPayload: Schema.optionalKey<Schema.String>;
151
+ readonly triggerClientPayload: Schema.optionalKey<Schema.String>;
152
+ readonly triggerClientError: Schema.optionalKey<Schema.String>;
153
+ readonly triggerName: Schema.optionalKey<Schema.String>;
154
+ readonly triggerClientResponse: Schema.optionalKey<Schema.String>;
155
+ readonly triggerId: Schema.optionalKey<Schema.String>;
156
+ readonly triggerNanoId: Schema.optionalKey<Schema.String>;
157
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
158
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
159
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
160
+ '_internal.logs.triggers.retrieve': () => Promise<Schema.StructWithRest<Schema.Struct<{
161
+ readonly log: Schema.StructWithRest<Schema.Struct<{
162
+ readonly id: Schema.String;
163
+ readonly connectionId: Schema.String;
164
+ readonly clientId: Schema.String;
165
+ readonly entityId: Schema.String;
166
+ readonly status: Schema.String;
167
+ readonly appName: Schema.String;
168
+ readonly createdAt: Schema.String;
169
+ readonly type: Schema.Literals<readonly ["trigger", "action"]>;
170
+ readonly meta: Schema.StructWithRest<Schema.Struct<{
171
+ readonly id: Schema.String;
172
+ readonly type: Schema.Literals<readonly ["trigger", "action"]>;
173
+ readonly createdAt: Schema.String;
174
+ readonly updatedAt: Schema.String;
175
+ readonly provider: Schema.String;
176
+ readonly clientId: Schema.String;
177
+ readonly connectionId: Schema.String;
178
+ readonly triggerProviderPayload: Schema.optionalKey<Schema.String>;
179
+ readonly triggerClientPayload: Schema.optionalKey<Schema.String>;
180
+ readonly triggerClientError: Schema.optionalKey<Schema.String>;
181
+ readonly triggerName: Schema.optionalKey<Schema.String>;
182
+ readonly triggerClientResponse: Schema.optionalKey<Schema.String>;
183
+ readonly triggerId: Schema.optionalKey<Schema.String>;
184
+ readonly triggerNanoId: Schema.optionalKey<Schema.String>;
185
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
186
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
187
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
188
+ '_internal.org.consumer.listConnectedToolkits': () => Promise<Schema.StructWithRest<Schema.Struct<{
189
+ readonly toolkits: Schema.$Array<Schema.String>;
190
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
191
+ '_internal.org.consumer.project.resolve': () => Promise<Schema.StructWithRest<Schema.Struct<{
192
+ readonly project_id: Schema.String;
193
+ readonly project_nano_id: Schema.String;
194
+ readonly project_name: Schema.String;
195
+ readonly org_id: Schema.String;
196
+ readonly project_type: Schema.Literal<"CONSUMER">;
197
+ readonly config: Schema.StructWithRest<Schema.Struct<{
198
+ readonly consumer_experience_enabled: Schema.Boolean;
199
+ readonly enhanced_controls: Schema.Boolean;
200
+ readonly enable_instant: Schema.Boolean;
201
+ readonly clanker: Schema.optionalKey<Schema.Boolean>;
202
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
203
+ readonly consumer_user_id: Schema.String;
204
+ readonly user_id: Schema.String;
205
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
16
206
  'apiKeyRevocation.create': () => Promise<Schema.StructWithRest<Schema.Struct<{
17
207
  readonly received: Schema.Boolean;
18
208
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
@@ -125,6 +315,7 @@ declare const schemaLoaders: {
125
315
  readonly tools_available_for_execution: Schema.optionalKey<Schema.$Array<Schema.String>>;
126
316
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
127
317
  readonly shared_credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
318
+ readonly shared_connection_fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
128
319
  readonly is_enabled_for_tool_router: Schema.optionalKey<Schema.Boolean>;
129
320
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
130
321
  readonly next_cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -173,6 +364,7 @@ declare const schemaLoaders: {
173
364
  readonly tools_available_for_execution: Schema.optionalKey<Schema.$Array<Schema.String>>;
174
365
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
175
366
  readonly shared_credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
367
+ readonly shared_connection_fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
176
368
  readonly is_enabled_for_tool_router: Schema.optionalKey<Schema.Boolean>;
177
369
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
178
370
  'authConfigs.update': () => Promise<Schema.StructWithRest<Schema.Struct<{
@@ -187,35 +379,6 @@ declare const schemaLoaders: {
187
379
  readonly tracked: Schema.Boolean;
188
380
  readonly id: Schema.String;
189
381
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
190
- 'cli.createSession': () => Promise<Schema.StructWithRest<Schema.Struct<{
191
- readonly id: Schema.String;
192
- readonly code: Schema.String;
193
- readonly expiresAt: Schema.String;
194
- readonly status: Schema.Literals<readonly ["pending", "linked"]>;
195
- readonly scope: Schema.Literals<readonly ["project", "user"]>;
196
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
197
- 'cli.getSession': () => Promise<Schema.StructWithRest<Schema.Struct<{
198
- readonly id: Schema.String;
199
- readonly code: Schema.String;
200
- readonly status: Schema.Literals<readonly ["pending", "linked"]>;
201
- readonly expiresAt: Schema.String;
202
- readonly account: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
203
- readonly id: Schema.String;
204
- readonly email: Schema.String;
205
- readonly name: Schema.String;
206
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
207
- readonly api_key: Schema.Union<readonly [Schema.String, Schema.Null]>;
208
- readonly scope: Schema.Union<readonly [Schema.Literals<readonly ["project", "user"]>, Schema.Null]>;
209
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
210
- 'cli.realtime.auth': () => Promise<Schema.StructWithRest<Schema.Struct<{
211
- readonly auth: Schema.String;
212
- readonly channel_data: Schema.optionalKey<Schema.String>;
213
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
214
- 'cli.realtime.credentials': () => Promise<Schema.StructWithRest<Schema.Struct<{
215
- readonly pusher_key: Schema.String;
216
- readonly pusher_cluster: Schema.String;
217
- readonly project_id: Schema.String;
218
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
219
382
  'connectedAccounts.completeAuth': () => Promise<Schema.StructWithRest<Schema.Struct<{
220
383
  readonly connected_account_id: Schema.String;
221
384
  readonly toolkit_slug: Schema.String;
@@ -7759,149 +7922,6 @@ declare const schemaLoaders: {
7759
7922
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7760
7923
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7761
7924
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7762
- 'logs.tools.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
7763
- readonly data: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7764
- readonly id: Schema.String;
7765
- readonly actionKey: Schema.String;
7766
- readonly appKey: Schema.String;
7767
- readonly app: Schema.StructWithRest<Schema.Struct<{
7768
- readonly icon: Schema.String;
7769
- readonly name: Schema.String;
7770
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7771
- readonly connectedAccountId: Schema.String;
7772
- readonly entityId: Schema.String;
7773
- readonly status: Schema.Literals<readonly ["success", "failed"]>;
7774
- readonly executionTime: Schema.Number;
7775
- readonly minimalResponse: Schema.String;
7776
- readonly metadata: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
7777
- readonly recipe_id: Schema.optionalKey<Schema.String>;
7778
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7779
- readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
7780
- readonly instantCharge: Schema.optionalKey<Schema.String>;
7781
- readonly createdAt: Schema.Number;
7782
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7783
- readonly nextCursor: Schema.Union<readonly [Schema.Number, Schema.Null]>;
7784
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7785
- 'logs.tools.listFields': () => Promise<Schema.StructWithRest<Schema.Struct<{
7786
- readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7787
- readonly id: Schema.String;
7788
- readonly displayName: Schema.String;
7789
- readonly type: Schema.String;
7790
- readonly regex: Schema.optionalKey<Schema.String>;
7791
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
7792
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7793
- 'logs.tools.retrieve': () => Promise<Schema.StructWithRest<Schema.Struct<{
7794
- readonly actionLogId: Schema.String;
7795
- readonly actionId: Schema.String;
7796
- readonly status: Schema.Literals<readonly ["success", "error", "warning", "info"]>;
7797
- readonly app: Schema.StructWithRest<Schema.Struct<{
7798
- readonly name: Schema.String;
7799
- readonly uniqueId: Schema.String;
7800
- readonly icon: Schema.String;
7801
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7802
- readonly version: Schema.String;
7803
- readonly connection: Schema.StructWithRest<Schema.Struct<{
7804
- readonly id: Schema.String;
7805
- readonly entity: Schema.String;
7806
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7807
- readonly credentialSource: Schema.optionalKey<Schema.Literals<readonly ["connected_account", "instant_account", "custom_auth", "no_auth"]>>;
7808
- readonly instantCharge: Schema.optionalKey<Schema.String>;
7809
- readonly session: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7810
- readonly executionMetadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7811
- readonly steps: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7812
- readonly type: Schema.Literals<readonly ["tool_execution", "fetch_connection_details"]>;
7813
- readonly startTime: Schema.Number;
7814
- readonly endTime: Schema.Number;
7815
- readonly totalDuration: Schema.Number;
7816
- readonly status: Schema.Literals<readonly ["success", "failure", "error"]>;
7817
- readonly message: Schema.String;
7818
- readonly metadata: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
7819
- readonly encryption: Schema.optionalKey<Schema.String>;
7820
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7821
- readonly logs: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7822
- readonly type: Schema.Literals<readonly ["network", "system"]>;
7823
- readonly level: Schema.String;
7824
- readonly message: Schema.String;
7825
- readonly requestId: Schema.String;
7826
- readonly time: Schema.Number;
7827
- readonly request: Schema.StructWithRest<Schema.Struct<{
7828
- readonly method: Schema.String;
7829
- readonly url: Schema.String;
7830
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
7831
- readonly params: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
7832
- readonly timeout: Schema.optionalKey<Schema.Number>;
7833
- readonly json: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
7834
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7835
- readonly response: Schema.StructWithRest<Schema.Struct<{
7836
- readonly status: Schema.Number;
7837
- readonly time: Schema.String;
7838
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7839
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
7840
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7841
- readonly payloadReceived: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7842
- readonly startTime: Schema.Number;
7843
- readonly endTime: Schema.Number;
7844
- readonly totalDuration: Schema.String;
7845
- readonly response: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>, Schema.Null]>;
7846
- readonly error: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
7847
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7848
- 'logs.triggers.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
7849
- readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
7850
- readonly data: Schema.optionalKey<Schema.$Array<Schema.StructWithRest<Schema.Struct<{
7851
- readonly id: Schema.String;
7852
- readonly connectionId: Schema.String;
7853
- readonly clientId: Schema.String;
7854
- readonly entityId: Schema.String;
7855
- readonly status: Schema.String;
7856
- readonly appName: Schema.String;
7857
- readonly createdAt: Schema.String;
7858
- readonly type: Schema.Literals<readonly ["trigger", "action"]>;
7859
- readonly meta: Schema.StructWithRest<Schema.Struct<{
7860
- readonly id: Schema.String;
7861
- readonly type: Schema.Literals<readonly ["trigger", "action"]>;
7862
- readonly createdAt: Schema.String;
7863
- readonly updatedAt: Schema.String;
7864
- readonly provider: Schema.String;
7865
- readonly clientId: Schema.String;
7866
- readonly connectionId: Schema.String;
7867
- readonly triggerProviderPayload: Schema.optionalKey<Schema.String>;
7868
- readonly triggerClientPayload: Schema.optionalKey<Schema.String>;
7869
- readonly triggerClientError: Schema.optionalKey<Schema.String>;
7870
- readonly triggerName: Schema.optionalKey<Schema.String>;
7871
- readonly triggerClientResponse: Schema.optionalKey<Schema.String>;
7872
- readonly triggerId: Schema.optionalKey<Schema.String>;
7873
- readonly triggerNanoId: Schema.optionalKey<Schema.String>;
7874
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7875
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>;
7876
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7877
- 'logs.triggers.retrieve': () => Promise<Schema.StructWithRest<Schema.Struct<{
7878
- readonly log: Schema.StructWithRest<Schema.Struct<{
7879
- readonly id: Schema.String;
7880
- readonly connectionId: Schema.String;
7881
- readonly clientId: Schema.String;
7882
- readonly entityId: Schema.String;
7883
- readonly status: Schema.String;
7884
- readonly appName: Schema.String;
7885
- readonly createdAt: Schema.String;
7886
- readonly type: Schema.Literals<readonly ["trigger", "action"]>;
7887
- readonly meta: Schema.StructWithRest<Schema.Struct<{
7888
- readonly id: Schema.String;
7889
- readonly type: Schema.Literals<readonly ["trigger", "action"]>;
7890
- readonly createdAt: Schema.String;
7891
- readonly updatedAt: Schema.String;
7892
- readonly provider: Schema.String;
7893
- readonly clientId: Schema.String;
7894
- readonly connectionId: Schema.String;
7895
- readonly triggerProviderPayload: Schema.optionalKey<Schema.String>;
7896
- readonly triggerClientPayload: Schema.optionalKey<Schema.String>;
7897
- readonly triggerClientError: Schema.optionalKey<Schema.String>;
7898
- readonly triggerName: Schema.optionalKey<Schema.String>;
7899
- readonly triggerClientResponse: Schema.optionalKey<Schema.String>;
7900
- readonly triggerId: Schema.optionalKey<Schema.String>;
7901
- readonly triggerNanoId: Schema.optionalKey<Schema.String>;
7902
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7903
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
7904
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
7905
7925
  'mcp.create': () => Promise<Schema.StructWithRest<Schema.Struct<{
7906
7926
  readonly id: Schema.String;
7907
7927
  readonly name: Schema.String;
@@ -8051,23 +8071,6 @@ declare const schemaLoaders: {
8051
8071
  readonly claim_slug: Schema.String;
8052
8072
  readonly expires_at: Schema.String;
8053
8073
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8054
- 'org.consumer.listConnectedToolkits': () => Promise<Schema.StructWithRest<Schema.Struct<{
8055
- readonly toolkits: Schema.$Array<Schema.String>;
8056
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8057
- 'org.consumer.project.resolve': () => Promise<Schema.StructWithRest<Schema.Struct<{
8058
- readonly project_id: Schema.String;
8059
- readonly project_nano_id: Schema.String;
8060
- readonly project_name: Schema.String;
8061
- readonly org_id: Schema.String;
8062
- readonly project_type: Schema.Literal<"CONSUMER">;
8063
- readonly config: Schema.StructWithRest<Schema.Struct<{
8064
- readonly consumer_experience_enabled: Schema.Boolean;
8065
- readonly enhanced_controls: Schema.Boolean;
8066
- readonly enable_instant: Schema.Boolean;
8067
- readonly clanker: Schema.optionalKey<Schema.Boolean>;
8068
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
8069
- readonly consumer_user_id: Schema.String;
8070
- }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8071
8074
  'org.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
8072
8075
  readonly organizations: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
8073
8076
  readonly id: Schema.String;
@@ -8220,22 +8223,33 @@ declare const schemaLoaders: {
8220
8223
  readonly config: Schema.Struct<{
8221
8224
  readonly toolkits: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
8222
8225
  readonly enable: Schema.$Array<Schema.String>;
8226
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
8223
8227
  }>, Schema.Struct<{
8224
8228
  readonly disable: Schema.$Array<Schema.String>;
8229
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
8230
+ }>, Schema.Struct<{
8231
+ readonly require_approval: Schema.$Array<Schema.String>;
8225
8232
  }>]>>;
8226
8233
  readonly tools: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
8227
8234
  readonly enable: Schema.$Array<Schema.String>;
8235
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
8228
8236
  }>, Schema.Struct<{
8229
8237
  readonly disable: Schema.$Array<Schema.String>;
8238
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
8230
8239
  }>, Schema.Struct<{
8231
8240
  readonly tags: Schema.Struct<{
8232
8241
  readonly enable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8233
8242
  readonly disable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8243
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8234
8244
  }>;
8245
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
8246
+ }>, Schema.Struct<{
8247
+ readonly require_approval: Schema.$Array<Schema.String>;
8235
8248
  }>]>>>;
8236
8249
  readonly tags: Schema.optionalKey<Schema.Struct<{
8237
8250
  readonly enable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8238
8251
  readonly disable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8252
+ readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
8239
8253
  }>>;
8240
8254
  }>;
8241
8255
  readonly created_at: Schema.String;
@@ -8316,6 +8330,34 @@ declare const schemaLoaders: {
8316
8330
  readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8317
8331
  readonly enable: Schema.Boolean;
8318
8332
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8333
+ readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
8334
+ readonly type: Schema.Literal<"before_execute">;
8335
+ readonly id: Schema.String;
8336
+ readonly name: Schema.optionalKey<Schema.String>;
8337
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8338
+ readonly toolkits: Schema.$Array<Schema.String>;
8339
+ }>]>;
8340
+ readonly handler: Schema.Struct<{
8341
+ readonly type: Schema.Literal<"condition_check">;
8342
+ readonly condition: Schema.String;
8343
+ readonly action: Schema.Literal<"block">;
8344
+ }>;
8345
+ }>, Schema.Struct<{
8346
+ readonly type: Schema.Literal<"after_execute">;
8347
+ readonly id: Schema.String;
8348
+ readonly name: Schema.optionalKey<Schema.String>;
8349
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8350
+ readonly toolkits: Schema.$Array<Schema.String>;
8351
+ }>]>;
8352
+ readonly handler: Schema.Union<readonly [Schema.Struct<{
8353
+ readonly type: Schema.Literal<"condition_check">;
8354
+ readonly condition: Schema.String;
8355
+ readonly action: Schema.Literal<"block">;
8356
+ }>, Schema.Struct<{
8357
+ readonly type: Schema.Literal<"prompt_injection_check">;
8358
+ readonly action: Schema.Literal<"block">;
8359
+ }>]>;
8360
+ }>]>>>;
8319
8361
  readonly preload: Schema.Struct<{
8320
8362
  readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
8321
8363
  }>;
@@ -8437,6 +8479,34 @@ declare const schemaLoaders: {
8437
8479
  readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8438
8480
  readonly enable: Schema.Boolean;
8439
8481
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8482
+ readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
8483
+ readonly type: Schema.Literal<"before_execute">;
8484
+ readonly id: Schema.String;
8485
+ readonly name: Schema.optionalKey<Schema.String>;
8486
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8487
+ readonly toolkits: Schema.$Array<Schema.String>;
8488
+ }>]>;
8489
+ readonly handler: Schema.Struct<{
8490
+ readonly type: Schema.Literal<"condition_check">;
8491
+ readonly condition: Schema.String;
8492
+ readonly action: Schema.Literal<"block">;
8493
+ }>;
8494
+ }>, Schema.Struct<{
8495
+ readonly type: Schema.Literal<"after_execute">;
8496
+ readonly id: Schema.String;
8497
+ readonly name: Schema.optionalKey<Schema.String>;
8498
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8499
+ readonly toolkits: Schema.$Array<Schema.String>;
8500
+ }>]>;
8501
+ readonly handler: Schema.Union<readonly [Schema.Struct<{
8502
+ readonly type: Schema.Literal<"condition_check">;
8503
+ readonly condition: Schema.String;
8504
+ readonly action: Schema.Literal<"block">;
8505
+ }>, Schema.Struct<{
8506
+ readonly type: Schema.Literal<"prompt_injection_check">;
8507
+ readonly action: Schema.Literal<"block">;
8508
+ }>]>;
8509
+ }>]>>>;
8440
8510
  readonly preload: Schema.Struct<{
8441
8511
  readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
8442
8512
  }>;
@@ -8530,6 +8600,34 @@ declare const schemaLoaders: {
8530
8600
  readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8531
8601
  readonly enable: Schema.Boolean;
8532
8602
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8603
+ readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
8604
+ readonly type: Schema.Literal<"before_execute">;
8605
+ readonly id: Schema.String;
8606
+ readonly name: Schema.optionalKey<Schema.String>;
8607
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8608
+ readonly toolkits: Schema.$Array<Schema.String>;
8609
+ }>]>;
8610
+ readonly handler: Schema.Struct<{
8611
+ readonly type: Schema.Literal<"condition_check">;
8612
+ readonly condition: Schema.String;
8613
+ readonly action: Schema.Literal<"block">;
8614
+ }>;
8615
+ }>, Schema.Struct<{
8616
+ readonly type: Schema.Literal<"after_execute">;
8617
+ readonly id: Schema.String;
8618
+ readonly name: Schema.optionalKey<Schema.String>;
8619
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8620
+ readonly toolkits: Schema.$Array<Schema.String>;
8621
+ }>]>;
8622
+ readonly handler: Schema.Union<readonly [Schema.Struct<{
8623
+ readonly type: Schema.Literal<"condition_check">;
8624
+ readonly condition: Schema.String;
8625
+ readonly action: Schema.Literal<"block">;
8626
+ }>, Schema.Struct<{
8627
+ readonly type: Schema.Literal<"prompt_injection_check">;
8628
+ readonly action: Schema.Literal<"block">;
8629
+ }>]>;
8630
+ }>]>>>;
8533
8631
  readonly preload: Schema.Struct<{
8534
8632
  readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
8535
8633
  }>;
@@ -8593,6 +8691,14 @@ declare const schemaLoaders: {
8593
8691
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
8594
8692
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
8595
8693
  readonly log_id: Schema.String;
8694
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8695
+ readonly id: Schema.String;
8696
+ readonly status: Schema.Literal<"evaluated">;
8697
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8698
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8699
+ readonly id: Schema.String;
8700
+ readonly status: Schema.Literal<"unavailable">;
8701
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8596
8702
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8597
8703
  readonly result_type: Schema.Literal<"failed">;
8598
8704
  readonly instant_charge: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
@@ -8603,6 +8709,38 @@ declare const schemaLoaders: {
8603
8709
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
8604
8710
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
8605
8711
  readonly log_id: Schema.String;
8712
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8713
+ readonly id: Schema.String;
8714
+ readonly status: Schema.Literal<"evaluated">;
8715
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8716
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8717
+ readonly id: Schema.String;
8718
+ readonly status: Schema.Literal<"unavailable">;
8719
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8720
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8721
+ readonly result_type: Schema.Literal<"blocked">;
8722
+ readonly reason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8723
+ readonly type: Schema.Literal<"request_blocked">;
8724
+ readonly hook_id: Schema.String;
8725
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8726
+ readonly type: Schema.Literal<"response_blocked">;
8727
+ readonly hook_id: Schema.String;
8728
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
8729
+ readonly message: Schema.String;
8730
+ readonly log_id: Schema.optionalKey<Schema.String>;
8731
+ readonly instant_charge: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8732
+ readonly amount: Schema.String;
8733
+ readonly currency: Schema.Literal<"USD">;
8734
+ readonly charged_by: Schema.Literal<"composio">;
8735
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8736
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8737
+ readonly id: Schema.String;
8738
+ readonly status: Schema.Literal<"evaluated">;
8739
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8740
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8741
+ readonly id: Schema.String;
8742
+ readonly status: Schema.Literal<"unavailable">;
8743
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8606
8744
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8607
8745
  readonly result_type: Schema.Literal<"input_required">;
8608
8746
  readonly input_requests: Schema.$Record<Schema.String, Schema.StructWithRest<Schema.Struct<{
@@ -8623,6 +8761,14 @@ declare const schemaLoaders: {
8623
8761
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
8624
8762
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
8625
8763
  readonly log_id: Schema.String;
8764
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8765
+ readonly id: Schema.String;
8766
+ readonly status: Schema.Literal<"evaluated">;
8767
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8768
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8769
+ readonly id: Schema.String;
8770
+ readonly status: Schema.Literal<"unavailable">;
8771
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8626
8772
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8627
8773
  readonly result_type: Schema.Literal<"failed">;
8628
8774
  readonly instant_charge: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
@@ -8633,6 +8779,38 @@ declare const schemaLoaders: {
8633
8779
  readonly data: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
8634
8780
  readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
8635
8781
  readonly log_id: Schema.String;
8782
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8783
+ readonly id: Schema.String;
8784
+ readonly status: Schema.Literal<"evaluated">;
8785
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8786
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8787
+ readonly id: Schema.String;
8788
+ readonly status: Schema.Literal<"unavailable">;
8789
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8790
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8791
+ readonly result_type: Schema.Literal<"blocked">;
8792
+ readonly reason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8793
+ readonly type: Schema.Literal<"request_blocked">;
8794
+ readonly hook_id: Schema.String;
8795
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8796
+ readonly type: Schema.Literal<"response_blocked">;
8797
+ readonly hook_id: Schema.String;
8798
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
8799
+ readonly message: Schema.String;
8800
+ readonly log_id: Schema.optionalKey<Schema.String>;
8801
+ readonly instant_charge: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8802
+ readonly amount: Schema.String;
8803
+ readonly currency: Schema.Literal<"USD">;
8804
+ readonly charged_by: Schema.Literal<"composio">;
8805
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8806
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
8807
+ readonly id: Schema.String;
8808
+ readonly status: Schema.Literal<"evaluated">;
8809
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
8810
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8811
+ readonly id: Schema.String;
8812
+ readonly status: Schema.Literal<"unavailable">;
8813
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8636
8814
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8637
8815
  readonly result_type: Schema.Literal<"input_required">;
8638
8816
  readonly input_requests: Schema.$Record<Schema.String, Schema.StructWithRest<Schema.Struct<{
@@ -8756,6 +8934,34 @@ declare const schemaLoaders: {
8756
8934
  readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8757
8935
  readonly enable: Schema.Boolean;
8758
8936
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8937
+ readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
8938
+ readonly type: Schema.Literal<"before_execute">;
8939
+ readonly id: Schema.String;
8940
+ readonly name: Schema.optionalKey<Schema.String>;
8941
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8942
+ readonly toolkits: Schema.$Array<Schema.String>;
8943
+ }>]>;
8944
+ readonly handler: Schema.Struct<{
8945
+ readonly type: Schema.Literal<"condition_check">;
8946
+ readonly condition: Schema.String;
8947
+ readonly action: Schema.Literal<"block">;
8948
+ }>;
8949
+ }>, Schema.Struct<{
8950
+ readonly type: Schema.Literal<"after_execute">;
8951
+ readonly id: Schema.String;
8952
+ readonly name: Schema.optionalKey<Schema.String>;
8953
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
8954
+ readonly toolkits: Schema.$Array<Schema.String>;
8955
+ }>]>;
8956
+ readonly handler: Schema.Union<readonly [Schema.Struct<{
8957
+ readonly type: Schema.Literal<"condition_check">;
8958
+ readonly condition: Schema.String;
8959
+ readonly action: Schema.Literal<"block">;
8960
+ }>, Schema.Struct<{
8961
+ readonly type: Schema.Literal<"prompt_injection_check">;
8962
+ readonly action: Schema.Literal<"block">;
8963
+ }>]>;
8964
+ }>]>>>;
8759
8965
  readonly preload: Schema.Struct<{
8760
8966
  readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
8761
8967
  }>;
@@ -8816,6 +9022,32 @@ declare const schemaLoaders: {
8816
9022
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
8817
9023
  readonly status: Schema.Number;
8818
9024
  readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
9025
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
9026
+ readonly id: Schema.String;
9027
+ readonly status: Schema.Literal<"evaluated">;
9028
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
9029
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
9030
+ readonly id: Schema.String;
9031
+ readonly status: Schema.Literal<"unavailable">;
9032
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
9033
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
9034
+ readonly result_type: Schema.Literal<"blocked">;
9035
+ readonly reason: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
9036
+ readonly type: Schema.Literal<"request_blocked">;
9037
+ readonly hook_id: Schema.String;
9038
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
9039
+ readonly type: Schema.Literal<"response_blocked">;
9040
+ readonly hook_id: Schema.String;
9041
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>;
9042
+ readonly message: Schema.String;
9043
+ readonly hook_results: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
9044
+ readonly id: Schema.String;
9045
+ readonly status: Schema.Literal<"evaluated">;
9046
+ readonly outcome: Schema.Literals<readonly ["continue", "block"]>;
9047
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
9048
+ readonly id: Schema.String;
9049
+ readonly status: Schema.Literal<"unavailable">;
9050
+ }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>]>>>;
8819
9051
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.StructWithRest<Schema.Struct<{
8820
9052
  readonly result_type: Schema.Literal<"input_required">;
8821
9053
  readonly input_requests: Schema.$Record<Schema.String, Schema.StructWithRest<Schema.Struct<{
@@ -8901,6 +9133,34 @@ declare const schemaLoaders: {
8901
9133
  readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
8902
9134
  readonly enable: Schema.Boolean;
8903
9135
  }>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
9136
+ readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
9137
+ readonly type: Schema.Literal<"before_execute">;
9138
+ readonly id: Schema.String;
9139
+ readonly name: Schema.optionalKey<Schema.String>;
9140
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
9141
+ readonly toolkits: Schema.$Array<Schema.String>;
9142
+ }>]>;
9143
+ readonly handler: Schema.Struct<{
9144
+ readonly type: Schema.Literal<"condition_check">;
9145
+ readonly condition: Schema.String;
9146
+ readonly action: Schema.Literal<"block">;
9147
+ }>;
9148
+ }>, Schema.Struct<{
9149
+ readonly type: Schema.Literal<"after_execute">;
9150
+ readonly id: Schema.String;
9151
+ readonly name: Schema.optionalKey<Schema.String>;
9152
+ readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
9153
+ readonly toolkits: Schema.$Array<Schema.String>;
9154
+ }>]>;
9155
+ readonly handler: Schema.Union<readonly [Schema.Struct<{
9156
+ readonly type: Schema.Literal<"condition_check">;
9157
+ readonly condition: Schema.String;
9158
+ readonly action: Schema.Literal<"block">;
9159
+ }>, Schema.Struct<{
9160
+ readonly type: Schema.Literal<"prompt_injection_check">;
9161
+ readonly action: Schema.Literal<"block">;
9162
+ }>]>;
9163
+ }>]>>>;
8904
9164
  readonly preload: Schema.Struct<{
8905
9165
  readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
8906
9166
  }>;
@@ -9513,6 +9773,7 @@ declare const schemaLoaders: {
9513
9773
  readonly description: Schema.String;
9514
9774
  readonly instructions: Schema.String;
9515
9775
  readonly type: Schema.Literals<readonly ["webhook", "poll"]>;
9776
+ readonly types: Schema.$Array<Schema.Literals<readonly ["webhook", "poll"]>>;
9516
9777
  readonly toolkit: Schema.StructWithRest<Schema.Struct<{
9517
9778
  readonly slug: Schema.String;
9518
9779
  readonly name: Schema.String;
@@ -9534,6 +9795,7 @@ declare const schemaLoaders: {
9534
9795
  readonly description: Schema.String;
9535
9796
  readonly instructions: Schema.String;
9536
9797
  readonly type: Schema.Literals<readonly ["webhook", "poll"]>;
9798
+ readonly types: Schema.$Array<Schema.Literals<readonly ["webhook", "poll"]>>;
9537
9799
  readonly toolkit: Schema.StructWithRest<Schema.Struct<{
9538
9800
  readonly slug: Schema.String;
9539
9801
  readonly name: Schema.String;