@composio/client 2.0.0-rc.21 → 2.0.0-rc.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -3
- package/dist/{api-key-revocation-BB3FTdR3.d.mts → _internal-Cw5Ug7qY.d.mts} +1032 -313
- package/dist/_internal-ttfqtnVb.d.mts +281 -0
- package/dist/effect/internal.d.mts +9 -0
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-session.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.mjs +3 -3
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.mjs +2 -2
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.d.mts +13 -0
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.mjs +20 -0
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.mjs +3 -3
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.mjs +3 -3
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.d.mts +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.mjs +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.d.mts +3 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.mjs +4 -3
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.d.mts +10 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.mjs +18 -0
- package/dist/effect/schemas/auth-configs/list.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/list.mjs +2 -1
- package/dist/effect/schemas/auth-configs/retrieve.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/retrieve.mjs +2 -1
- package/dist/effect/schemas/components/block-reason.d.mts +12 -0
- package/dist/effect/schemas/components/block-reason.mjs +14 -0
- package/dist/effect/schemas/components/execute-blocked.d.mts +30 -0
- package/dist/effect/schemas/components/execute-blocked.mjs +24 -0
- package/dist/effect/schemas/components/execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/execute-failed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-failed.mjs +3 -1
- package/dist/effect/schemas/components/hook-result.d.mts +13 -0
- package/dist/effect/schemas/components/hook-result.mjs +15 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.d.mts +24 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.mjs +18 -0
- package/dist/effect/schemas/components/proxy-execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/proxy-execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/session-create-response-config.d.mts +28 -0
- package/dist/effect/schemas/components/session-create-response-config.mjs +24 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts +28 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +24 -0
- package/dist/effect/schemas/session-configs/retrieve.d.mts +11 -0
- package/dist/effect/schemas/session-configs/retrieve.mjs +59 -23
- package/dist/effect/schemas/tool-router/session/attach.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/config-history.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/create.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/execute.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/patch.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +26 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +6 -1
- package/dist/effect/schemas/tool-router/session/retrieve.d.mts +28 -0
- package/dist/effect/schemas/triggers-types/list.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/list.mjs +5 -1
- package/dist/effect/schemas/triggers-types/retrieve.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/retrieve.mjs +5 -1
- package/dist/effect/schemas.d.mts +468 -197
- package/dist/effect/schemas.mjs +14 -13
- package/dist/effect.d.mts +9 -260
- package/dist/effect.mjs +134 -112
- package/dist/{environments-BXSnADKo.d.mts → environments-C_HPMP7r.d.mts} +1 -1
- package/dist/{environments-CmxYUUsW.mjs → environments-QSJiwtIM.mjs} +18 -10
- package/dist/{generated-operations-BNRn8az6.mjs → generated-operations-B3PjeXjl.mjs} +48 -16
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/internal.d.mts +9 -0
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +16 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/cli.mjs +5 -5
- package/dist/resources/_internal/cli/realtime.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/realtime.mjs +4 -4
- package/dist/resources/_internal/cli.d.mts +2 -0
- package/dist/resources/_internal/cli.mjs +1 -0
- package/dist/resources/_internal/consumer/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer/consumer.mjs +8 -0
- package/dist/resources/_internal/consumer/permissions.d.mts +2 -0
- package/dist/resources/_internal/consumer/permissions.mjs +14 -0
- package/dist/resources/_internal/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer.mjs +1 -0
- package/dist/resources/_internal/logs/logs.d.mts +2 -0
- package/dist/resources/_internal/logs/logs.mjs +12 -0
- package/dist/resources/_internal/logs/tools.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/tools.mjs +5 -5
- package/dist/resources/_internal/logs/triggers.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/triggers.mjs +4 -4
- package/dist/resources/_internal/logs.d.mts +2 -0
- package/dist/resources/_internal/logs.mjs +1 -0
- package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/consumer.mjs +7 -3
- package/dist/resources/_internal/org/consumer/project.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/project.mjs +3 -3
- package/dist/resources/_internal/org/consumer.d.mts +2 -0
- package/dist/resources/_internal/org/consumer.mjs +1 -0
- package/dist/resources/_internal/org/org.d.mts +2 -0
- package/dist/resources/_internal/org/org.mjs +8 -0
- package/dist/resources/_internal/org.d.mts +2 -0
- package/dist/resources/_internal/org.mjs +1 -0
- package/dist/resources/_internal.d.mts +2 -0
- package/dist/resources/_internal.mjs +1 -0
- package/dist/resources/api-key-revocation.d.mts +1 -1
- package/dist/resources/api-key-revocation.mjs +1 -1
- package/dist/resources/auth/auth.d.mts +1 -1
- package/dist/resources/auth/session.d.mts +1 -1
- package/dist/resources/auth/session.mjs +1 -1
- package/dist/resources/auth-configs.d.mts +1 -1
- package/dist/resources/auth-configs.mjs +1 -1
- package/dist/resources/auth.d.mts +1 -1
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +1 -1
- package/dist/resources/custom.mjs +1 -1
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/keyring.d.mts +1 -1
- package/dist/resources/keyring.mjs +1 -1
- package/dist/resources/link.d.mts +1 -1
- package/dist/resources/link.mjs +1 -1
- package/dist/resources/logs/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -5
- package/dist/resources/logs.d.mts +2 -2
- package/dist/resources/mcp/custom.d.mts +1 -1
- package/dist/resources/mcp/custom.mjs +1 -1
- package/dist/resources/mcp/generate.d.mts +1 -1
- package/dist/resources/mcp/generate.mjs +1 -1
- package/dist/resources/mcp/mcp.d.mts +1 -1
- package/dist/resources/mcp/mcp.mjs +1 -1
- package/dist/resources/mcp.d.mts +1 -1
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -5
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/project.d.mts +1 -1
- package/dist/resources/org/owner/project.mjs +1 -1
- package/dist/resources/org/owner.d.mts +1 -1
- package/dist/resources/org/project.d.mts +1 -1
- package/dist/resources/org/project.mjs +1 -1
- package/dist/resources/org/usage.d.mts +1 -1
- package/dist/resources/org/usage.mjs +1 -1
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/usage.d.mts +1 -1
- package/dist/resources/project/usage.mjs +1 -1
- package/dist/resources/project.d.mts +1 -1
- package/dist/resources/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- package/dist/resources/tool-router/session/files.d.mts +1 -1
- package/dist/resources/tool-router/session/files.mjs +1 -1
- package/dist/resources/tool-router/session/session.d.mts +1 -1
- package/dist/resources/tool-router/session/session.mjs +1 -1
- package/dist/resources/tool-router/session.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/toolkits.d.mts +1 -1
- package/dist/resources/toolkits.mjs +1 -1
- package/dist/resources/tools.d.mts +1 -1
- package/dist/resources/tools.mjs +1 -1
- package/dist/resources/trigger-instances/manage.d.mts +1 -1
- package/dist/resources/trigger-instances/manage.mjs +1 -1
- package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
- package/dist/resources/trigger-instances.d.mts +1 -1
- package/dist/resources/triggers-types.d.mts +1 -1
- package/dist/resources/triggers-types.mjs +1 -1
- package/dist/resources/webhook-endpoints.d.mts +1 -1
- package/dist/resources/webhook-endpoints.mjs +1 -1
- package/dist/resources/webhook-subscriptions.d.mts +1 -1
- package/dist/resources/webhook-subscriptions.mjs +1 -1
- package/package.json +17 -4
- package/dist/effect/schemas/org/clanker/create-claim.d.mts +0 -9
- package/dist/effect/schemas/org/clanker/create-claim.mjs +0 -14
- package/dist/resources/cli/cli.d.mts +0 -2
- package/dist/resources/cli/realtime.d.mts +0 -2
- package/dist/resources/cli.d.mts +0 -2
- package/dist/resources/logs/tools.d.mts +0 -2
- package/dist/resources/logs/triggers.d.mts +0 -2
- package/dist/resources/org/clanker.d.mts +0 -2
- package/dist/resources/org/clanker.mjs +0 -14
- package/dist/resources/org/consumer/consumer.d.mts +0 -2
- package/dist/resources/org/consumer/project.d.mts +0 -2
- package/dist/resources/org/consumer.d.mts +0 -2
- /package/dist/{resources/cli.mjs → effect/internal.mjs} +0 -0
- /package/dist/{resources/org/consumer.mjs → internal.mjs} +0 -0
|
@@ -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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/org/consumer/retrieve-config.d.ts
|
|
3
|
+
/** The 200 response of `GET /api/v3.1/org/consumer/config`, which `client._internal.org.consumer.retrieveConfig` answers with. */
|
|
4
|
+
declare const ConsumerRetrieveConfigResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly org_id: Schema.String;
|
|
6
|
+
readonly consumer_experience_enabled: Schema.optionalKey<Schema.Boolean>;
|
|
7
|
+
readonly enhanced_controls: Schema.optionalKey<Schema.Boolean>;
|
|
8
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ConsumerRetrieveConfigResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/org/consumer/retrieve-config.ts
|
|
4
|
+
/** The 200 response of `GET /api/v3.1/org/consumer/config`, which `client._internal.org.consumer.retrieveConfig` answers with. */
|
|
5
|
+
const ConsumerRetrieveConfigResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"org_id": Schema.String.annotate({ "description": "Organization nano ID." }),
|
|
7
|
+
"consumer_experience_enabled": Schema.optionalKey(Schema.Boolean.annotate({
|
|
8
|
+
"description": "Whether the consumer experience is enabled for this project.",
|
|
9
|
+
"default": true
|
|
10
|
+
})),
|
|
11
|
+
"enhanced_controls": Schema.optionalKey(Schema.Boolean.annotate({
|
|
12
|
+
"description": "Whether enhanced controls are enabled for this consumer project.",
|
|
13
|
+
"default": false
|
|
14
|
+
}))
|
|
15
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ConsumerRetrieveConfigResponse };
|
|
@@ -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": "
|
|
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": "
|
|
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
|
|
@@ -69,6 +69,34 @@ declare const SessionCreateResponseConfig: Schema.StructWithRest<Schema.Struct<{
|
|
|
69
69
|
readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
70
70
|
readonly enable: Schema.Boolean;
|
|
71
71
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
72
|
+
readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
73
|
+
readonly type: Schema.Literal<"before_execute">;
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
|
|
77
|
+
readonly toolkits: Schema.$Array<Schema.String>;
|
|
78
|
+
}>]>;
|
|
79
|
+
readonly handler: Schema.Struct<{
|
|
80
|
+
readonly type: Schema.Literal<"condition_check">;
|
|
81
|
+
readonly condition: Schema.String;
|
|
82
|
+
readonly action: Schema.Literal<"block">;
|
|
83
|
+
}>;
|
|
84
|
+
}>, Schema.Struct<{
|
|
85
|
+
readonly type: Schema.Literal<"after_execute">;
|
|
86
|
+
readonly id: Schema.String;
|
|
87
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
88
|
+
readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
|
|
89
|
+
readonly toolkits: Schema.$Array<Schema.String>;
|
|
90
|
+
}>]>;
|
|
91
|
+
readonly handler: Schema.Union<readonly [Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"condition_check">;
|
|
93
|
+
readonly condition: Schema.String;
|
|
94
|
+
readonly action: Schema.Literal<"block">;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly type: Schema.Literal<"prompt_injection_check">;
|
|
97
|
+
readonly action: Schema.Literal<"block">;
|
|
98
|
+
}>]>;
|
|
99
|
+
}>]>>>;
|
|
72
100
|
readonly preload: Schema.Struct<{
|
|
73
101
|
readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
|
|
74
102
|
}>;
|
|
@@ -130,6 +130,30 @@ const SessionCreateResponseConfig = Schema.StructWithRest(Schema.Struct({
|
|
|
130
130
|
"require_explicit_selection": Schema.optionalKey(Schema.Boolean.annotate({ "description": "When true, require explicit account selection when multiple accounts are connected. When false (default), use the first/default account." }))
|
|
131
131
|
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Multi-account configuration for this session." })),
|
|
132
132
|
"proxy_execute": Schema.optionalKey(Schema.StructWithRest(Schema.Struct({ "enable": Schema.Boolean.annotate({ "description": "When true, enables proxy execute outside the workbench. When false, also disables proxy execution inside the workbench." }) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Proxy execute configuration for this session. Omitted when not set." })),
|
|
133
|
+
"hooks": Schema.optionalKey(Schema.Array(Schema.Union([Schema.Struct({
|
|
134
|
+
"type": Schema.Literal("before_execute"),
|
|
135
|
+
"id": Schema.String.annotate({ "description": "Unique within the session. Shows up in results and logs." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9_-]{1,64}$", "u")).annotate({ "expected": "a string matching the RegExp ^[a-z0-9_-]{1,64}$" })),
|
|
136
|
+
"name": Schema.optionalKey(Schema.String.annotate({ "description": "A readable name. The agent sees it when this hook blocks a call." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ "expected": "a string with at most 120 code points" }))),
|
|
137
|
+
"applies_to": Schema.Union([Schema.Literal("all"), Schema.Struct({ "toolkits": Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Toolkit slugs" }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })) })]).annotate({ "description": "Which tools the hook covers: \"all\" for all of them, or only the listed toolkits." }),
|
|
138
|
+
"handler": Schema.Struct({
|
|
139
|
+
"type": Schema.Literal("condition_check"),
|
|
140
|
+
"condition": Schema.String.annotate({ "description": "What to block, written as a plain sentence. For example: \"Sending email to anyone outside example.org\"." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ "expected": "a string with at most 2000 code points" })),
|
|
141
|
+
"action": Schema.Literal("block")
|
|
142
|
+
})
|
|
143
|
+
}), Schema.Struct({
|
|
144
|
+
"type": Schema.Literal("after_execute"),
|
|
145
|
+
"id": Schema.String.annotate({ "description": "Unique within the session. Shows up in results and logs." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9_-]{1,64}$", "u")).annotate({ "expected": "a string matching the RegExp ^[a-z0-9_-]{1,64}$" })),
|
|
146
|
+
"name": Schema.optionalKey(Schema.String.annotate({ "description": "A readable name. The agent sees it when this hook blocks a call." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ "expected": "a string with at most 120 code points" }))),
|
|
147
|
+
"applies_to": Schema.Union([Schema.Literal("all"), Schema.Struct({ "toolkits": Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Toolkit slugs" }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })) })]).annotate({ "description": "Which tools the hook covers: \"all\" for all of them, or only the listed toolkits." }),
|
|
148
|
+
"handler": Schema.Union([Schema.Struct({
|
|
149
|
+
"type": Schema.Literal("condition_check"),
|
|
150
|
+
"condition": Schema.String.annotate({ "description": "What to block, written as a plain sentence. For example: \"Sending email to anyone outside example.org\"." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ "expected": "a string with at most 2000 code points" })),
|
|
151
|
+
"action": Schema.Literal("block")
|
|
152
|
+
}), Schema.Struct({
|
|
153
|
+
"type": Schema.Literal("prompt_injection_check"),
|
|
154
|
+
"action": Schema.Literal("block")
|
|
155
|
+
}).annotate({ "description": "Blocks a tool response that tries to manipulate the agent: override its instructions, change its role, or make it take actions the user didn't ask for." })], { mode: "oneOf" })
|
|
156
|
+
})], { mode: "oneOf" })).annotate({ "description": "Hooks that run on this session's tool calls." }).check(Schema.isMaxLength(20).annotate({ "expected": "a value with a length of at most 20" }))),
|
|
133
157
|
"preload": Schema.Struct({ "tools": Schema.Union([Schema.Array(Schema.String), Schema.Literal("all")]).annotate({ "description": "Explicit preloaded tool slugs, or \"all\" when the session dynamically exposes all app tools allowed by its filters." }) }).annotate({ "description": "Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as \"all\"." }),
|
|
134
158
|
"connected_accounts": Schema.optionalKey(Schema.Record(Schema.String, Schema.Array(Schema.String.annotate({ "format": "connectedAccountId" })).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Per-toolkit connected account overrides (array of nano-IDs). Multi-account sessions can pin more than one account per toolkit; otherwise length is 1." })),
|
|
135
159
|
"search": Schema.StructWithRest(Schema.Struct({ "enable": Schema.optionalKey(Schema.Boolean.annotate({ "default": true })) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Search helper configuration" }),
|
package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts
CHANGED
|
@@ -73,6 +73,34 @@ declare const ToolRouterSessionV31ConfigHistoryListResponse: Schema.StructWithRe
|
|
|
73
73
|
readonly proxy_execute: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
74
74
|
readonly enable: Schema.Boolean;
|
|
75
75
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
76
|
+
readonly hooks: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
77
|
+
readonly type: Schema.Literal<"before_execute">;
|
|
78
|
+
readonly id: Schema.String;
|
|
79
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
80
|
+
readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
|
|
81
|
+
readonly toolkits: Schema.$Array<Schema.String>;
|
|
82
|
+
}>]>;
|
|
83
|
+
readonly handler: Schema.Struct<{
|
|
84
|
+
readonly type: Schema.Literal<"condition_check">;
|
|
85
|
+
readonly condition: Schema.String;
|
|
86
|
+
readonly action: Schema.Literal<"block">;
|
|
87
|
+
}>;
|
|
88
|
+
}>, Schema.Struct<{
|
|
89
|
+
readonly type: Schema.Literal<"after_execute">;
|
|
90
|
+
readonly id: Schema.String;
|
|
91
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
92
|
+
readonly applies_to: Schema.Union<readonly [Schema.Literal<"all">, Schema.Struct<{
|
|
93
|
+
readonly toolkits: Schema.$Array<Schema.String>;
|
|
94
|
+
}>]>;
|
|
95
|
+
readonly handler: Schema.Union<readonly [Schema.Struct<{
|
|
96
|
+
readonly type: Schema.Literal<"condition_check">;
|
|
97
|
+
readonly condition: Schema.String;
|
|
98
|
+
readonly action: Schema.Literal<"block">;
|
|
99
|
+
}>, Schema.Struct<{
|
|
100
|
+
readonly type: Schema.Literal<"prompt_injection_check">;
|
|
101
|
+
readonly action: Schema.Literal<"block">;
|
|
102
|
+
}>]>;
|
|
103
|
+
}>]>>>;
|
|
76
104
|
readonly preload: Schema.Struct<{
|
|
77
105
|
readonly tools: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Literal<"all">]>;
|
|
78
106
|
}>;
|
package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs
CHANGED
|
@@ -137,6 +137,30 @@ const ToolRouterSessionV31ConfigHistoryListResponse = Schema.StructWithRest(Sche
|
|
|
137
137
|
"require_explicit_selection": Schema.optionalKey(Schema.Boolean.annotate({ "description": "When true, require explicit account selection when multiple accounts are connected. When false (default), use the first/default account." }))
|
|
138
138
|
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Multi-account configuration for this session." })),
|
|
139
139
|
"proxy_execute": Schema.optionalKey(Schema.StructWithRest(Schema.Struct({ "enable": Schema.Boolean.annotate({ "description": "When true, enables proxy execute outside the workbench. When false, also disables proxy execution inside the workbench." }) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Proxy execute configuration for this session. Omitted when not set." })),
|
|
140
|
+
"hooks": Schema.optionalKey(Schema.Array(Schema.Union([Schema.Struct({
|
|
141
|
+
"type": Schema.Literal("before_execute"),
|
|
142
|
+
"id": Schema.String.annotate({ "description": "Unique within the session. Shows up in results and logs." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9_-]{1,64}$", "u")).annotate({ "expected": "a string matching the RegExp ^[a-z0-9_-]{1,64}$" })),
|
|
143
|
+
"name": Schema.optionalKey(Schema.String.annotate({ "description": "A readable name. The agent sees it when this hook blocks a call." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ "expected": "a string with at most 120 code points" }))),
|
|
144
|
+
"applies_to": Schema.Union([Schema.Literal("all"), Schema.Struct({ "toolkits": Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Toolkit slugs" }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })) })]).annotate({ "description": "Which tools the hook covers: \"all\" for all of them, or only the listed toolkits." }),
|
|
145
|
+
"handler": Schema.Struct({
|
|
146
|
+
"type": Schema.Literal("condition_check"),
|
|
147
|
+
"condition": Schema.String.annotate({ "description": "What to block, written as a plain sentence. For example: \"Sending email to anyone outside example.org\"." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ "expected": "a string with at most 2000 code points" })),
|
|
148
|
+
"action": Schema.Literal("block")
|
|
149
|
+
})
|
|
150
|
+
}), Schema.Struct({
|
|
151
|
+
"type": Schema.Literal("after_execute"),
|
|
152
|
+
"id": Schema.String.annotate({ "description": "Unique within the session. Shows up in results and logs." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z0-9_-]{1,64}$", "u")).annotate({ "expected": "a string matching the RegExp ^[a-z0-9_-]{1,64}$" })),
|
|
153
|
+
"name": Schema.optionalKey(Schema.String.annotate({ "description": "A readable name. The agent sees it when this hook blocks a call." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ "expected": "a string with at most 120 code points" }))),
|
|
154
|
+
"applies_to": Schema.Union([Schema.Literal("all"), Schema.Struct({ "toolkits": Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Toolkit slugs" }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })) })]).annotate({ "description": "Which tools the hook covers: \"all\" for all of them, or only the listed toolkits." }),
|
|
155
|
+
"handler": Schema.Union([Schema.Struct({
|
|
156
|
+
"type": Schema.Literal("condition_check"),
|
|
157
|
+
"condition": Schema.String.annotate({ "description": "What to block, written as a plain sentence. For example: \"Sending email to anyone outside example.org\"." }).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ "expected": "a string with at most 2000 code points" })),
|
|
158
|
+
"action": Schema.Literal("block")
|
|
159
|
+
}), Schema.Struct({
|
|
160
|
+
"type": Schema.Literal("prompt_injection_check"),
|
|
161
|
+
"action": Schema.Literal("block")
|
|
162
|
+
}).annotate({ "description": "Blocks a tool response that tries to manipulate the agent: override its instructions, change its role, or make it take actions the user didn't ask for." })], { mode: "oneOf" })
|
|
163
|
+
})], { mode: "oneOf" })).annotate({ "description": "Hooks that run on this session's tool calls." }).check(Schema.isMaxLength(20).annotate({ "expected": "a value with a length of at most 20" }))),
|
|
140
164
|
"preload": Schema.Struct({ "tools": Schema.Union([Schema.Array(Schema.String), Schema.Literal("all")]).annotate({ "description": "Explicit preloaded tool slugs, or \"all\" when the session dynamically exposes all app tools allowed by its filters." }) }).annotate({ "description": "Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as \"all\"." }),
|
|
141
165
|
"connected_accounts": Schema.optionalKey(Schema.Record(Schema.String, Schema.Array(Schema.String.annotate({ "format": "connectedAccountId" })).check(Schema.isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "description": "Per-toolkit connected account overrides (array of nano-IDs). Multi-account sessions can pin more than one account per toolkit; otherwise length is 1." })),
|
|
142
166
|
"search": Schema.StructWithRest(Schema.Struct({ "enable": Schema.optionalKey(Schema.Boolean.annotate({ "default": true })) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]).annotate({ "description": "Search helper configuration" }),
|
|
@@ -9,22 +9,33 @@ declare const SessionConfigsRetrieveResponse: Schema.StructWithRest<Schema.Struc
|
|
|
9
9
|
readonly config: Schema.Struct<{
|
|
10
10
|
readonly toolkits: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
11
11
|
readonly enable: Schema.$Array<Schema.String>;
|
|
12
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
12
13
|
}>, Schema.Struct<{
|
|
13
14
|
readonly disable: Schema.$Array<Schema.String>;
|
|
15
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
16
|
+
}>, Schema.Struct<{
|
|
17
|
+
readonly require_approval: Schema.$Array<Schema.String>;
|
|
14
18
|
}>]>>;
|
|
15
19
|
readonly tools: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
16
20
|
readonly enable: Schema.$Array<Schema.String>;
|
|
21
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
17
22
|
}>, Schema.Struct<{
|
|
18
23
|
readonly disable: Schema.$Array<Schema.String>;
|
|
24
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
19
25
|
}>, Schema.Struct<{
|
|
20
26
|
readonly tags: Schema.Struct<{
|
|
21
27
|
readonly enable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
22
28
|
readonly disable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
29
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
23
30
|
}>;
|
|
31
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
readonly require_approval: Schema.$Array<Schema.String>;
|
|
24
34
|
}>]>>>;
|
|
25
35
|
readonly tags: Schema.optionalKey<Schema.Struct<{
|
|
26
36
|
readonly enable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
27
37
|
readonly disable: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
38
|
+
readonly require_approval: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>>>;
|
|
28
39
|
}>>;
|
|
29
40
|
}>;
|
|
30
41
|
readonly created_at: Schema.String;
|