apps 0.0.1-beta.9 → 0.0.1-beta.91
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 +56 -38
- package/framework-reference.json +1 -1
- package/js/chunk-3LEVTFD4.js +712 -0
- package/js/chunk-5FHWNLCI.js +88 -0
- package/js/{chunk-FL2QR3XW.js → chunk-5MDA7MKL.js} +338 -73
- package/js/chunk-6XQLA5NC.js +5047 -0
- package/js/{chunk-M3B3DE4K.js → chunk-74YVXBKY.js} +463 -218
- package/js/chunk-7PHHWYV4.js +335 -0
- package/js/chunk-DADXWWRZ.js +449 -0
- package/js/{chunk-27F7W2LG.js → chunk-DDHBUKXX.js} +18 -2
- package/js/{chunk-UK573G7W.js → chunk-EOPQ727L.js} +87 -51
- package/js/{chunk-5T57N25Q.js → chunk-GQ33QSNB.js} +583 -69
- package/js/{chunk-JU7VHODU.js → chunk-H72MEDMN.js} +65 -10
- package/js/chunk-I5C7FD5Z.js +171 -0
- package/js/{chunk-CDL5PM2Q.js → chunk-IFJU5SYQ.js} +19082 -18402
- package/js/{chunk-VFZKSM3T.js → chunk-JPEUKEV4.js} +3 -3
- package/js/{chunk-KUMBKVJD.js → chunk-KLYSEHUD.js} +2 -2
- package/js/{chunk-RFVIONFX.js → chunk-KUCCHNVY.js} +123 -44
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/{chunk-57RKNWL2.js → chunk-PD6I2SDG.js} +4 -4
- package/js/{chunk-72JNVHPK.js → chunk-PYQLOLOC.js} +4 -3
- package/js/{chunk-ODEIDRGW.js → chunk-QWQM3CLH.js} +795 -176
- package/js/{chunk-IJX4CYZO.js → chunk-TUMGL2OC.js} +228 -264
- package/js/{chunk-IPI4MFSN.js → chunk-XBG7HHXC.js} +2 -2
- package/js/chunk-XPRZTLHD.js +1915 -0
- package/js/chunk-YNJ5CZMJ.js +93 -0
- package/js/chunk-YRGL4QEF.js +49 -0
- package/js/{chunk-Z5M2LQOZ.js → chunk-YWFUWTUJ.js} +113 -58
- package/js/client.js +142 -78
- package/js/contracts.js +142 -21
- package/js/effect.js +18 -19
- package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
- package/js/graphql.js +49 -40
- package/js/host.js +85 -62
- package/js/index.js +165 -70
- package/js/mcp/effect.js +21 -21
- package/js/mcp.js +76 -56
- package/js/openapi.js +4189 -1411
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -3
- package/js/skills.js +208 -81
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -4
- package/js/ui/serving.js +8605 -225
- package/package.json +3 -8
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +18 -0
- package/types/app-cache/src/index.d.ts +34 -2
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +60 -11
- package/types/apps/src/contracts/cache.d.ts +20 -0
- package/types/apps/src/contracts/context.d.ts +60 -17
- package/types/apps/src/contracts/elicitation.d.ts +23 -7
- package/types/apps/src/contracts/events.d.ts +94 -0
- package/types/apps/src/contracts/failure.d.ts +30 -1
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +1446 -17
- package/types/apps/src/contracts/icons.d.ts +28 -0
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/mcp.d.ts +81 -20
- package/types/apps/src/contracts/network.d.ts +120 -0
- package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
- package/types/apps/src/contracts/openapi.d.ts +41 -9
- package/types/apps/src/contracts/operations.d.ts +14 -7
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +733 -81
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
- package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
- package/types/apps/src/contracts/protocols/2.d.ts +69 -26
- package/types/apps/src/contracts/protocols/3.d.ts +133 -33
- package/types/apps/src/contracts/protocols/4.d.ts +122 -45
- package/types/apps/src/contracts/protocols/5.d.ts +157 -47
- package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
- package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
- package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
- package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
- package/types/apps/src/contracts/protocols/current.d.ts +6669 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
- package/types/apps/src/contracts/provider-error.d.ts +9 -0
- package/types/apps/src/contracts/provider.d.ts +90 -6
- package/types/apps/src/contracts/schedules.d.ts +7 -1
- package/types/apps/src/contracts/schema.d.ts +21 -0
- package/types/apps/src/contracts/skills.d.ts +50 -13
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui.d.ts +44 -14
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +19 -17
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +4 -3
- package/types/apps/src/implementation/app.d.ts +41 -14
- package/types/apps/src/implementation/authoring.d.ts +25 -5
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
- package/types/apps/src/implementation/cache.d.ts +29 -2
- package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
- package/types/apps/src/implementation/elicitation.d.ts +18 -15
- package/types/apps/src/implementation/events.d.ts +64 -0
- package/types/apps/src/implementation/failure-detail.d.ts +28 -5
- package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/input-problems.d.ts +6 -2
- package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-call.d.ts +6 -5
- package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
- package/types/apps/src/implementation/mcp-client.d.ts +17 -9
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +20 -9
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +28 -7
- package/types/apps/src/implementation/openapi-document.d.ts +46 -19
- package/types/apps/src/implementation/openapi-names.d.ts +9 -4
- package/types/apps/src/implementation/openapi-request.d.ts +10 -2
- package/types/apps/src/implementation/openapi-source.d.ts +23 -1
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +57 -7
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/placement.d.ts +60 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +19 -4
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +20 -18
- package/types/apps/src/implementation/router.d.ts +24 -5
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
- package/types/apps/src/implementation/schedules.d.ts +39 -8
- package/types/apps/src/implementation/schema.d.ts +98 -11
- package/types/apps/src/implementation/skills.d.ts +18 -24
- package/types/apps/src/implementation/sql.d.ts +71 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +2 -2
- package/types/apps/src/implementation/ui-document.d.ts +5 -0
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +26 -9
- package/types/apps/src/implementation/ui-watch.d.ts +1 -1
- package/types/apps/src/implementation/upstream-error.d.ts +7 -0
- package/types/apps/src/implementation/webhooks.d.ts +15 -6
- package/types/apps/src/implementation/workflow-context.d.ts +6 -2
- package/types/apps/src/implementation/workflows.d.ts +11 -4
- package/types/apps/src/index.d.ts +68 -19
- package/types/apps/src/mcp.d.ts +20 -1
- package/types/apps/src/openapi.d.ts +6 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +10 -8
- package/types/apps/src/ui-serving.d.ts +1 -1
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/browser-operations.d.ts +2 -2
- package/types/telemetry/src/browser.d.ts +8 -3
- package/types/telemetry/src/config.d.ts +2 -2
- package/types/telemetry/src/index.d.ts +2 -1
- package/types/telemetry/src/layer.d.ts +10 -4
- package/types/telemetry/src/measurements.d.ts +1 -1
- package/types/telemetry/src/ownership.d.ts +60 -0
- package/types/telemetry/src/recorded-failure.d.ts +29 -0
- package/types/telemetry/src/relay.d.ts +16 -6
- package/types/telemetry/src/span-attributes.d.ts +17 -1
- package/types/telemetry/src/transport.d.ts +8 -1
- package/types/utils/src/api-error.d.ts +55 -0
- package/types/utils/src/connection-failure.d.ts +33 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-7EK2JDX4.js +0 -299
- package/js/chunk-IKS2C5MQ.js +0 -224
- package/js/chunk-MKWZPDR6.js +0 -63
- package/js/chunk-N7YDVXYJ.js +0 -186
- package/js/chunk-NKLWZJLE.js +0 -172
- package/js/chunk-PJJ24GU7.js +0 -877
- package/js/chunk-PZB6T6KU.js +0 -19
- package/js/chunk-R3EV5FTO.js +0 -97
- package/js/chunk-SJFZCGXG.js +0 -1243
- package/js/chunk-WLE7WX2U.js +0 -2645
- package/js/chunk-YXQHV65J.js +0 -242
- package/js/chunk-ZQINWV4W.js +0 -630
- package/js/mcp/stdio.js +0 -128
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -18
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/implementation/storage.d.ts +0 -15
- package/types/apps/src/mcp-stdio.d.ts +0 -5
|
@@ -0,0 +1,1182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host protocol 8: protocol 7 plus upstream failure detail.
|
|
3
|
+
*
|
|
4
|
+
* Declaration, evaluation and operation failures may carry the thrown error's own scalar fields,
|
|
5
|
+
* such as a spec compiler's `reason` and `pointer`, beside its name, code and message. A provider
|
|
6
|
+
* failure may carry the phase it happened in and the error code and description the service
|
|
7
|
+
* stated, and an MCP failure the JSON-RPC error the server answered with. Older bundles never send
|
|
8
|
+
* them, so their replies are protocol 8 replies without the detail. Every other message is
|
|
9
|
+
* protocol 7's, re-exported unchanged.
|
|
10
|
+
*
|
|
11
|
+
* Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol8`
|
|
12
|
+
* with `packages/apps/protocols/8.json`. The module imports only `effect` and earlier protocol
|
|
13
|
+
* modules, so no change elsewhere can alter it. Define the next protocol instead of editing this
|
|
14
|
+
* file. See notes/apps-publishing.md.
|
|
15
|
+
*/
|
|
16
|
+
import { Schema } from "effect";
|
|
17
|
+
import { ElicitationFailed, OpenapiResponseError, SkillLoadFailed } from "./1.js";
|
|
18
|
+
import { DatabaseFieldReserved, DatabaseLimitExceeded, WorkflowFailure } from "./3.js";
|
|
19
|
+
import { HostAccountsInvalid, HostInputInvalid, HostKindMismatch, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./7.js";
|
|
20
|
+
export * from "./7.js";
|
|
21
|
+
/** Most fields of one thrown error carried across the runtime boundary. */
|
|
22
|
+
export declare const maxFailureFields = 8;
|
|
23
|
+
/** Longest text field value carried across the runtime boundary. */
|
|
24
|
+
export declare const maxFailureFieldLength = 256;
|
|
25
|
+
/** A field name as the error's code spells it, such as `reason` or `pointer`. */
|
|
26
|
+
export declare const FailureFieldName: Schema.String;
|
|
27
|
+
/** Bounded text with account secrets replaced, a finite number, or a boolean. */
|
|
28
|
+
export declare const FailureFieldValue: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
29
|
+
/**
|
|
30
|
+
* The thrown error's own scalar fields beside its name, code and message, such as the `reason`
|
|
31
|
+
* and `pointer` a spec compiler sets. Nested values, stacks and causes are never carried.
|
|
32
|
+
*/
|
|
33
|
+
export declare const FailureFields: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
34
|
+
export type FailureFields = typeof FailureFields.Type;
|
|
35
|
+
/**
|
|
36
|
+
* The error an app's own code raised, or the specific host failure it hit. Stacks and cause
|
|
37
|
+
* values stay private. Builds from before these fields existed send none.
|
|
38
|
+
*/
|
|
39
|
+
export declare const FailureDetail: {
|
|
40
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
41
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
42
|
+
code: Schema.optionalKey<Schema.String>;
|
|
43
|
+
message: Schema.optionalKey<Schema.String>;
|
|
44
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
45
|
+
};
|
|
46
|
+
/** Longest error message a service stated, as carried across the runtime boundary. */
|
|
47
|
+
export declare const maxUpstreamMessageLength = 1024;
|
|
48
|
+
/**
|
|
49
|
+
* The error a service stated in its own response: a JSON-RPC error's code and message, or an
|
|
50
|
+
* OAuth Bearer error code and description. Bounded, with the invocation's account secrets replaced.
|
|
51
|
+
*/
|
|
52
|
+
export declare const UpstreamError: Schema.Struct<{
|
|
53
|
+
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
54
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
55
|
+
}>;
|
|
56
|
+
export type UpstreamError = typeof UpstreamError.Type;
|
|
57
|
+
/** Where a service failed: setting up a session, listing tools, or running one. */
|
|
58
|
+
export declare const FailurePhase: Schema.Literals<readonly ["connect", "discover", "call"]>;
|
|
59
|
+
export type FailurePhase = typeof FailurePhase.Type;
|
|
60
|
+
declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
|
|
61
|
+
readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
|
|
62
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
63
|
+
readonly accountId: Schema.optional<Schema.brand<Schema.String, "acc">>;
|
|
64
|
+
readonly phase: Schema.optional<Schema.Literals<readonly ["connect", "discover", "call"]>>;
|
|
65
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
66
|
+
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
67
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
68
|
+
}>>;
|
|
69
|
+
}>, import("effect/Cause").YieldableError>;
|
|
70
|
+
/**
|
|
71
|
+
* Protocol 8's provider failure, as released: protocol 1's with the phase the failure happened in
|
|
72
|
+
* and the error code and description the service stated. Account secrets in that text are replaced.
|
|
73
|
+
*/
|
|
74
|
+
export declare class ProviderError extends ProviderError_base {
|
|
75
|
+
}
|
|
76
|
+
declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
|
|
77
|
+
readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
|
|
78
|
+
readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
|
|
79
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
80
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
81
|
+
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
82
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
83
|
+
}>>;
|
|
84
|
+
}>, import("effect/Cause").YieldableError>;
|
|
85
|
+
/** Protocol 8's MCP failure, as released: protocol 1's with the JSON-RPC error the server stated. */
|
|
86
|
+
export declare class McpError extends McpError_base {
|
|
87
|
+
}
|
|
88
|
+
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
89
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
90
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
91
|
+
code: Schema.optionalKey<Schema.String>;
|
|
92
|
+
message: Schema.optionalKey<Schema.String>;
|
|
93
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
94
|
+
}>, import("effect/Cause").YieldableError>;
|
|
95
|
+
/**
|
|
96
|
+
* The module or declared capability shape could not be hosted. The detail names what the app
|
|
97
|
+
* declared wrongly; declarations bind no accounts.
|
|
98
|
+
*/
|
|
99
|
+
export declare class HostDeclarationInvalid extends HostDeclarationInvalid_base {
|
|
100
|
+
}
|
|
101
|
+
declare const HostEvaluationFailed_base: Schema.Class<HostEvaluationFailed, Schema.TaggedStruct<"HostEvaluationFailed", {
|
|
102
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
103
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
104
|
+
code: Schema.optionalKey<Schema.String>;
|
|
105
|
+
message: Schema.optionalKey<Schema.String>;
|
|
106
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
107
|
+
}>, import("effect/Cause").YieldableError>;
|
|
108
|
+
/** Fresh app evaluation failed before calling a tool. */
|
|
109
|
+
export declare class HostEvaluationFailed extends HostEvaluationFailed_base {
|
|
110
|
+
}
|
|
111
|
+
declare const HostOperationFailed_base: Schema.Class<HostOperationFailed, Schema.TaggedStruct<"HostOperationFailed", {
|
|
112
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
113
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
114
|
+
code: Schema.optionalKey<Schema.String>;
|
|
115
|
+
message: Schema.optionalKey<Schema.String>;
|
|
116
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
117
|
+
}>, import("effect/Cause").YieldableError>;
|
|
118
|
+
/** An app operation failed. Carries the app's own error name, code, fields and bounded message. */
|
|
119
|
+
export declare class HostOperationFailed extends HostOperationFailed_base {
|
|
120
|
+
}
|
|
121
|
+
/** Why one router's tools could not be read. The rest of the app's catalog is unaffected. */
|
|
122
|
+
export declare const HostRouterError: Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>;
|
|
123
|
+
export type HostRouterError = typeof HostRouterError.Type;
|
|
124
|
+
/** One router in a live catalog, whose error carries protocol 8's detail. */
|
|
125
|
+
export declare const HostedRouter: Schema.Struct<{
|
|
126
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
127
|
+
readonly path: Schema.String;
|
|
128
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
129
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
130
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
131
|
+
readonly src: Schema.NonEmptyString;
|
|
132
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
133
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
134
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
135
|
+
}>>>;
|
|
136
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
137
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
138
|
+
}>;
|
|
139
|
+
export type HostedRouter = typeof HostedRouter.Type;
|
|
140
|
+
/** A live evaluation's tools and the routers that group them. */
|
|
141
|
+
export declare const HostedCatalog: Schema.Struct<{
|
|
142
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
143
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
144
|
+
readonly path: Schema.String;
|
|
145
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
146
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
147
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
148
|
+
readonly src: Schema.NonEmptyString;
|
|
149
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
150
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
151
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
152
|
+
}>>>;
|
|
153
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
154
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
155
|
+
}>>;
|
|
156
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
158
|
+
readonly name: Schema.NonEmptyString;
|
|
159
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
160
|
+
readonly kind: Schema.Literal<"interval">;
|
|
161
|
+
readonly milliseconds: Schema.Int;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
readonly kind: Schema.Literal<"cron">;
|
|
164
|
+
readonly calendar: Schema.Struct<{
|
|
165
|
+
readonly expression: Schema.NonEmptyString;
|
|
166
|
+
readonly timezone: Schema.NonEmptyString;
|
|
167
|
+
}>;
|
|
168
|
+
}>]>;
|
|
169
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
170
|
+
}>>>;
|
|
171
|
+
readonly name: Schema.NonEmptyString;
|
|
172
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
173
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
174
|
+
readonly description: Schema.String;
|
|
175
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
176
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
177
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
178
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
179
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
180
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
181
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
182
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
183
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
184
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
185
|
+
}>>;
|
|
186
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
|
+
}>>;
|
|
188
|
+
}>;
|
|
189
|
+
export type HostedCatalog = typeof HostedCatalog.Type;
|
|
190
|
+
/** A catalog without tool schemas. Browsing lists these and reads one full tool on selection. */
|
|
191
|
+
export declare const HostedCatalogSummary: Schema.Struct<{
|
|
192
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
193
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
194
|
+
readonly path: Schema.String;
|
|
195
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
196
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
197
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly src: Schema.NonEmptyString;
|
|
199
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
200
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
201
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
202
|
+
}>>>;
|
|
203
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
204
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
205
|
+
}>>;
|
|
206
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
207
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
208
|
+
readonly name: Schema.NonEmptyString;
|
|
209
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
210
|
+
readonly kind: Schema.Literal<"interval">;
|
|
211
|
+
readonly milliseconds: Schema.Int;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly kind: Schema.Literal<"cron">;
|
|
214
|
+
readonly calendar: Schema.Struct<{
|
|
215
|
+
readonly expression: Schema.NonEmptyString;
|
|
216
|
+
readonly timezone: Schema.NonEmptyString;
|
|
217
|
+
}>;
|
|
218
|
+
}>]>;
|
|
219
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
220
|
+
}>>>;
|
|
221
|
+
readonly name: Schema.NonEmptyString;
|
|
222
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
223
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
224
|
+
readonly description: Schema.String;
|
|
225
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
226
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
227
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
228
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
229
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
230
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
231
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
232
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
233
|
+
}>>;
|
|
234
|
+
}>>;
|
|
235
|
+
}>;
|
|
236
|
+
export type HostedCatalogSummary = typeof HostedCatalogSummary.Type;
|
|
237
|
+
/**
|
|
238
|
+
* Safe error envelope. Author failures carry only their name, code, scalar fields and bounded
|
|
239
|
+
* message with account secrets replaced; no stack or cause value is serialized.
|
|
240
|
+
*/
|
|
241
|
+
export declare const HostError: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
242
|
+
/** Expected host failures. */
|
|
243
|
+
export type HostError = typeof HostError.Type;
|
|
244
|
+
/** Portable response envelope; callers parse the success value for their operation. */
|
|
245
|
+
export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
246
|
+
readonly ok: Schema.Literal<true>;
|
|
247
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
248
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
249
|
+
}>, Schema.Struct<{
|
|
250
|
+
readonly ok: Schema.Literal<false>;
|
|
251
|
+
readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
252
|
+
}>]>;
|
|
253
|
+
/** Parsed response envelope. */
|
|
254
|
+
export type HostResponse = typeof HostResponse.Type;
|
|
255
|
+
/** Every message of protocol 8, in the order its snapshot records them. */
|
|
256
|
+
export declare const protocol8: {
|
|
257
|
+
readonly version: 8;
|
|
258
|
+
readonly schemas: {
|
|
259
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
260
|
+
readonly ok: Schema.Literal<true>;
|
|
261
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
262
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
263
|
+
}>, Schema.Struct<{
|
|
264
|
+
readonly ok: Schema.Literal<false>;
|
|
265
|
+
readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
266
|
+
}>]>;
|
|
267
|
+
readonly catalog: Schema.Struct<{
|
|
268
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
269
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
270
|
+
readonly path: Schema.String;
|
|
271
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
272
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
273
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
274
|
+
readonly src: Schema.NonEmptyString;
|
|
275
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
276
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
277
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
278
|
+
}>>>;
|
|
279
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
280
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
281
|
+
}>>;
|
|
282
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
283
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
284
|
+
readonly name: Schema.NonEmptyString;
|
|
285
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
286
|
+
readonly kind: Schema.Literal<"interval">;
|
|
287
|
+
readonly milliseconds: Schema.Int;
|
|
288
|
+
}>, Schema.Struct<{
|
|
289
|
+
readonly kind: Schema.Literal<"cron">;
|
|
290
|
+
readonly calendar: Schema.Struct<{
|
|
291
|
+
readonly expression: Schema.NonEmptyString;
|
|
292
|
+
readonly timezone: Schema.NonEmptyString;
|
|
293
|
+
}>;
|
|
294
|
+
}>]>;
|
|
295
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
296
|
+
}>>>;
|
|
297
|
+
readonly name: Schema.NonEmptyString;
|
|
298
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
299
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
300
|
+
readonly description: Schema.String;
|
|
301
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
302
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
303
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
304
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
305
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
306
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
307
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
308
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
309
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
310
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
311
|
+
}>>;
|
|
312
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
313
|
+
}>>;
|
|
314
|
+
}>;
|
|
315
|
+
readonly catalogSummary: Schema.Struct<{
|
|
316
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
317
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
318
|
+
readonly path: Schema.String;
|
|
319
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
320
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
321
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
322
|
+
readonly src: Schema.NonEmptyString;
|
|
323
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
324
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
325
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
326
|
+
}>>>;
|
|
327
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
328
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
329
|
+
}>>;
|
|
330
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
331
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
332
|
+
readonly name: Schema.NonEmptyString;
|
|
333
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
334
|
+
readonly kind: Schema.Literal<"interval">;
|
|
335
|
+
readonly milliseconds: Schema.Int;
|
|
336
|
+
}>, Schema.Struct<{
|
|
337
|
+
readonly kind: Schema.Literal<"cron">;
|
|
338
|
+
readonly calendar: Schema.Struct<{
|
|
339
|
+
readonly expression: Schema.NonEmptyString;
|
|
340
|
+
readonly timezone: Schema.NonEmptyString;
|
|
341
|
+
}>;
|
|
342
|
+
}>]>;
|
|
343
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
344
|
+
}>>>;
|
|
345
|
+
readonly name: Schema.NonEmptyString;
|
|
346
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
347
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
348
|
+
readonly description: Schema.String;
|
|
349
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
350
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
351
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
352
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
353
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
354
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
355
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
356
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
357
|
+
}>>;
|
|
358
|
+
}>>;
|
|
359
|
+
}>;
|
|
360
|
+
readonly requirements: Schema.Struct<{
|
|
361
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
362
|
+
readonly definition: Schema.Struct<{
|
|
363
|
+
readonly name: Schema.NonEmptyString;
|
|
364
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
365
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
366
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
367
|
+
readonly type: Schema.Literal<"secrets">;
|
|
368
|
+
readonly label: Schema.String;
|
|
369
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
370
|
+
}>, Schema.Struct<{
|
|
371
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
372
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
373
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
374
|
+
readonly discover: Schema.String;
|
|
375
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
376
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
377
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
378
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
379
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
380
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
381
|
+
readonly path: Schema.String;
|
|
382
|
+
}>>;
|
|
383
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
384
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
385
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
386
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
387
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
388
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
389
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
390
|
+
}>, Schema.Struct<{
|
|
391
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
392
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
393
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
394
|
+
readonly authorizationUrl: Schema.String;
|
|
395
|
+
readonly tokenUrl: Schema.String;
|
|
396
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
397
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
398
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
399
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
400
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
401
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
402
|
+
readonly path: Schema.String;
|
|
403
|
+
}>>;
|
|
404
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
405
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
406
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
407
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
408
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
409
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
410
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
411
|
+
}>, Schema.Struct<{
|
|
412
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
413
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
414
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
415
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
416
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
417
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
418
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
419
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
420
|
+
readonly discover: Schema.String;
|
|
421
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
422
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
423
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
424
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
425
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
426
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
427
|
+
}>, Schema.Struct<{
|
|
428
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
429
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
430
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
431
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
432
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
433
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
434
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
435
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
436
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
437
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
438
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
439
|
+
readonly tokenUrl: Schema.String;
|
|
440
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
441
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
442
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
443
|
+
}>]>>;
|
|
444
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
445
|
+
}>;
|
|
446
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
447
|
+
readonly health: Schema.optionalKey<Schema.Literal<true>>;
|
|
448
|
+
}>>;
|
|
449
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
450
|
+
readonly skills: Schema.Literal<true>;
|
|
451
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
452
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
453
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
454
|
+
}>>;
|
|
455
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
456
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
457
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
458
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
459
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
460
|
+
readonly references: Schema.optional<Schema.String>;
|
|
461
|
+
}>>;
|
|
462
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
463
|
+
readonly name: Schema.String;
|
|
464
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
465
|
+
}>>;
|
|
466
|
+
}>>>;
|
|
467
|
+
}>;
|
|
468
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
469
|
+
readonly provider: Schema.Struct<{
|
|
470
|
+
readonly name: Schema.NonEmptyString;
|
|
471
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
472
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
473
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
474
|
+
readonly type: Schema.Literal<"secrets">;
|
|
475
|
+
readonly label: Schema.String;
|
|
476
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
477
|
+
}>, Schema.Struct<{
|
|
478
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
479
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
480
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
481
|
+
readonly discover: Schema.String;
|
|
482
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
483
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
484
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
485
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
486
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
487
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
488
|
+
readonly path: Schema.String;
|
|
489
|
+
}>>;
|
|
490
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
491
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
492
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
493
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
494
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
495
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
496
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
497
|
+
}>, Schema.Struct<{
|
|
498
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
499
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
500
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
501
|
+
readonly authorizationUrl: Schema.String;
|
|
502
|
+
readonly tokenUrl: Schema.String;
|
|
503
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
504
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
505
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
506
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
507
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
508
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
509
|
+
readonly path: Schema.String;
|
|
510
|
+
}>>;
|
|
511
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
512
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
513
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
514
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
515
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
516
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
517
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
518
|
+
}>, Schema.Struct<{
|
|
519
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
520
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
521
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
522
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
523
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
524
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
525
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
526
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
527
|
+
readonly discover: Schema.String;
|
|
528
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
529
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
530
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
531
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
532
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
533
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
534
|
+
}>, Schema.Struct<{
|
|
535
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
536
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
537
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
538
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
539
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
540
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
541
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
542
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
543
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
544
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
545
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
546
|
+
readonly tokenUrl: Schema.String;
|
|
547
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
548
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
549
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
550
|
+
}>]>>;
|
|
551
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
552
|
+
}>;
|
|
553
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
554
|
+
readonly method: Schema.NonEmptyString;
|
|
555
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
556
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
557
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
558
|
+
readonly provider: Schema.Struct<{
|
|
559
|
+
readonly name: Schema.NonEmptyString;
|
|
560
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
561
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
562
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
563
|
+
readonly type: Schema.Literal<"secrets">;
|
|
564
|
+
readonly label: Schema.String;
|
|
565
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
566
|
+
}>, Schema.Struct<{
|
|
567
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
568
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
569
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
570
|
+
readonly discover: Schema.String;
|
|
571
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
572
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
573
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
574
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
575
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
576
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
577
|
+
readonly path: Schema.String;
|
|
578
|
+
}>>;
|
|
579
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
580
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
581
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
582
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
583
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
584
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
585
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
586
|
+
}>, Schema.Struct<{
|
|
587
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
588
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
589
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
590
|
+
readonly authorizationUrl: Schema.String;
|
|
591
|
+
readonly tokenUrl: Schema.String;
|
|
592
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
593
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
594
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
595
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
596
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
597
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
598
|
+
readonly path: Schema.String;
|
|
599
|
+
}>>;
|
|
600
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
601
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
602
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
603
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
604
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
605
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
606
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
607
|
+
}>, Schema.Struct<{
|
|
608
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
609
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
610
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
611
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
612
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
613
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
614
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
615
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
616
|
+
readonly discover: Schema.String;
|
|
617
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
618
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
619
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
620
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
621
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
622
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
623
|
+
}>, Schema.Struct<{
|
|
624
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
625
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
626
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
627
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
628
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
629
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
630
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
631
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
632
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
633
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
634
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
635
|
+
readonly tokenUrl: Schema.String;
|
|
636
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
637
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
638
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
639
|
+
}>]>>;
|
|
640
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
641
|
+
}>;
|
|
642
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
643
|
+
readonly method: Schema.NonEmptyString;
|
|
644
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
645
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
646
|
+
}>>]>>;
|
|
647
|
+
readonly invocation: Schema.Struct<{
|
|
648
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
649
|
+
readonly provider: Schema.Struct<{
|
|
650
|
+
readonly name: Schema.NonEmptyString;
|
|
651
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
652
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
653
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
654
|
+
readonly type: Schema.Literal<"secrets">;
|
|
655
|
+
readonly label: Schema.String;
|
|
656
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
657
|
+
}>, Schema.Struct<{
|
|
658
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
659
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
660
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
661
|
+
readonly discover: Schema.String;
|
|
662
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
663
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
664
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
665
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
666
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
667
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
668
|
+
readonly path: Schema.String;
|
|
669
|
+
}>>;
|
|
670
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
671
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
672
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
673
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
674
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
675
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
676
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
677
|
+
}>, Schema.Struct<{
|
|
678
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
679
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
680
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
681
|
+
readonly authorizationUrl: Schema.String;
|
|
682
|
+
readonly tokenUrl: Schema.String;
|
|
683
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
684
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
685
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
686
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
687
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
688
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
689
|
+
readonly path: Schema.String;
|
|
690
|
+
}>>;
|
|
691
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
692
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
693
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
694
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
695
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
696
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
697
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
698
|
+
}>, Schema.Struct<{
|
|
699
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
700
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
701
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
702
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
703
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
704
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
705
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
706
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
707
|
+
readonly discover: Schema.String;
|
|
708
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
709
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
710
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
711
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
712
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
713
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
714
|
+
}>, Schema.Struct<{
|
|
715
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
716
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
717
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
718
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
719
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
720
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
721
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
722
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
723
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
724
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
725
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
726
|
+
readonly tokenUrl: Schema.String;
|
|
727
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
728
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
729
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
730
|
+
}>]>>;
|
|
731
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
732
|
+
}>;
|
|
733
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
734
|
+
readonly method: Schema.NonEmptyString;
|
|
735
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
736
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
737
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
738
|
+
readonly provider: Schema.Struct<{
|
|
739
|
+
readonly name: Schema.NonEmptyString;
|
|
740
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
741
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
742
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
743
|
+
readonly type: Schema.Literal<"secrets">;
|
|
744
|
+
readonly label: Schema.String;
|
|
745
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
746
|
+
}>, Schema.Struct<{
|
|
747
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
748
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
749
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
750
|
+
readonly discover: Schema.String;
|
|
751
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
752
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
753
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
754
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
755
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
756
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
757
|
+
readonly path: Schema.String;
|
|
758
|
+
}>>;
|
|
759
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
760
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
761
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
762
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
763
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
764
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
765
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
766
|
+
}>, Schema.Struct<{
|
|
767
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
768
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
769
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
770
|
+
readonly authorizationUrl: Schema.String;
|
|
771
|
+
readonly tokenUrl: Schema.String;
|
|
772
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
773
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
774
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
775
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
776
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
777
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
778
|
+
readonly path: Schema.String;
|
|
779
|
+
}>>;
|
|
780
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
781
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
782
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
783
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
784
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
785
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
786
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
787
|
+
}>, Schema.Struct<{
|
|
788
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
789
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
790
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
791
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
792
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
793
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
794
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
795
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
796
|
+
readonly discover: Schema.String;
|
|
797
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
798
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
799
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
800
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
801
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
802
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
803
|
+
}>, Schema.Struct<{
|
|
804
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
805
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
806
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
807
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
808
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
809
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
810
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
811
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
812
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
813
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
814
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
815
|
+
readonly tokenUrl: Schema.String;
|
|
816
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
817
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
818
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
819
|
+
}>]>>;
|
|
820
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
821
|
+
}>;
|
|
822
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
823
|
+
readonly method: Schema.NonEmptyString;
|
|
824
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
825
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
826
|
+
}>>]>>;
|
|
827
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
828
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
829
|
+
}>, Schema.Struct<{
|
|
830
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
831
|
+
readonly name: Schema.NonEmptyString;
|
|
832
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
833
|
+
}>, Schema.Struct<{
|
|
834
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
835
|
+
readonly name: Schema.NonEmptyString;
|
|
836
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
837
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
838
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
839
|
+
}>, Schema.Struct<{
|
|
840
|
+
readonly name: Schema.NonEmptyString;
|
|
841
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
842
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
843
|
+
readonly callbackUrl: Schema.String;
|
|
844
|
+
readonly secret: Schema.String;
|
|
845
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
846
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
847
|
+
}>, Schema.Struct<{
|
|
848
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
849
|
+
readonly name: Schema.NonEmptyString;
|
|
850
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
851
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
852
|
+
readonly callbackUrl: Schema.String;
|
|
853
|
+
readonly secret: Schema.String;
|
|
854
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
855
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
856
|
+
}>, Schema.Struct<{
|
|
857
|
+
readonly name: Schema.NonEmptyString;
|
|
858
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
859
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
860
|
+
readonly callbackUrl: Schema.String;
|
|
861
|
+
readonly secret: Schema.String;
|
|
862
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
863
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
864
|
+
}>, Schema.Struct<{
|
|
865
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
866
|
+
readonly name: Schema.NonEmptyString;
|
|
867
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
868
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
869
|
+
readonly callbackUrl: Schema.String;
|
|
870
|
+
readonly secret: Schema.String;
|
|
871
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
872
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
873
|
+
}>, Schema.Struct<{
|
|
874
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
875
|
+
readonly request: Schema.Struct<{
|
|
876
|
+
readonly url: Schema.String;
|
|
877
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
878
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
879
|
+
readonly body: Schema.String;
|
|
880
|
+
}>;
|
|
881
|
+
readonly name: Schema.NonEmptyString;
|
|
882
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
883
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
884
|
+
readonly callbackUrl: Schema.String;
|
|
885
|
+
readonly secret: Schema.String;
|
|
886
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
887
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
888
|
+
}>]>, Schema.Struct<{
|
|
889
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
890
|
+
}>, Schema.Struct<{
|
|
891
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
892
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
893
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
894
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
895
|
+
}>, Schema.Struct<{
|
|
896
|
+
readonly operation: Schema.Literal<"skills">;
|
|
897
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
898
|
+
}>, Schema.Struct<{
|
|
899
|
+
readonly operation: Schema.Literal<"query">;
|
|
900
|
+
readonly name: Schema.NonEmptyString;
|
|
901
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
902
|
+
}>, Schema.Struct<{
|
|
903
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
904
|
+
readonly name: Schema.NonEmptyString;
|
|
905
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
906
|
+
}>, Schema.Struct<{
|
|
907
|
+
readonly operation: Schema.Literal<"call">;
|
|
908
|
+
readonly tool: Schema.NonEmptyString;
|
|
909
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
910
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
911
|
+
}>, Schema.Struct<{
|
|
912
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
913
|
+
readonly requirement: Schema.NonEmptyString;
|
|
914
|
+
}>]>;
|
|
915
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
916
|
+
readonly tool: Schema.NonEmptyString;
|
|
917
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
918
|
+
}>>;
|
|
919
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
920
|
+
readonly key: Schema.NonEmptyString;
|
|
921
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
922
|
+
}>>;
|
|
923
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
924
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
925
|
+
}>;
|
|
926
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
927
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
928
|
+
}>, Schema.Struct<{
|
|
929
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
930
|
+
readonly name: Schema.NonEmptyString;
|
|
931
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
932
|
+
}>, Schema.Struct<{
|
|
933
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
934
|
+
readonly name: Schema.NonEmptyString;
|
|
935
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
936
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
937
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
938
|
+
}>, Schema.Struct<{
|
|
939
|
+
readonly name: Schema.NonEmptyString;
|
|
940
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
941
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
942
|
+
readonly callbackUrl: Schema.String;
|
|
943
|
+
readonly secret: Schema.String;
|
|
944
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
945
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
946
|
+
}>, Schema.Struct<{
|
|
947
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
948
|
+
readonly name: Schema.NonEmptyString;
|
|
949
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
950
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
951
|
+
readonly callbackUrl: Schema.String;
|
|
952
|
+
readonly secret: Schema.String;
|
|
953
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
954
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
955
|
+
}>, Schema.Struct<{
|
|
956
|
+
readonly name: Schema.NonEmptyString;
|
|
957
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
958
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
959
|
+
readonly callbackUrl: Schema.String;
|
|
960
|
+
readonly secret: Schema.String;
|
|
961
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
962
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
963
|
+
}>, Schema.Struct<{
|
|
964
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
965
|
+
readonly name: Schema.NonEmptyString;
|
|
966
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
967
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
968
|
+
readonly callbackUrl: Schema.String;
|
|
969
|
+
readonly secret: Schema.String;
|
|
970
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
971
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
972
|
+
}>, Schema.Struct<{
|
|
973
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
974
|
+
readonly request: Schema.Struct<{
|
|
975
|
+
readonly url: Schema.String;
|
|
976
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
977
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
978
|
+
readonly body: Schema.String;
|
|
979
|
+
}>;
|
|
980
|
+
readonly name: Schema.NonEmptyString;
|
|
981
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
982
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
983
|
+
readonly callbackUrl: Schema.String;
|
|
984
|
+
readonly secret: Schema.String;
|
|
985
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
986
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
987
|
+
}>]>, Schema.Struct<{
|
|
988
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
989
|
+
}>, Schema.Struct<{
|
|
990
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
991
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
992
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
993
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
994
|
+
}>, Schema.Struct<{
|
|
995
|
+
readonly operation: Schema.Literal<"skills">;
|
|
996
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
997
|
+
}>, Schema.Struct<{
|
|
998
|
+
readonly operation: Schema.Literal<"query">;
|
|
999
|
+
readonly name: Schema.NonEmptyString;
|
|
1000
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1001
|
+
}>, Schema.Struct<{
|
|
1002
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1003
|
+
readonly name: Schema.NonEmptyString;
|
|
1004
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1005
|
+
}>, Schema.Struct<{
|
|
1006
|
+
readonly operation: Schema.Literal<"call">;
|
|
1007
|
+
readonly tool: Schema.NonEmptyString;
|
|
1008
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
1009
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1010
|
+
}>, Schema.Struct<{
|
|
1011
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
1012
|
+
readonly requirement: Schema.NonEmptyString;
|
|
1013
|
+
}>]>;
|
|
1014
|
+
readonly accountCheck: Schema.Struct<{
|
|
1015
|
+
readonly accountInfo: Schema.optionalKey<Schema.Struct<{
|
|
1016
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
1017
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1018
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
1019
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
1020
|
+
readonly avatarUrl: Schema.optionalKey<Schema.String>;
|
|
1021
|
+
readonly profileUrl: Schema.optionalKey<Schema.String>;
|
|
1022
|
+
}>>;
|
|
1023
|
+
}>;
|
|
1024
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
1025
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
1026
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1027
|
+
readonly path: Schema.NonEmptyString;
|
|
1028
|
+
readonly content: Schema.String;
|
|
1029
|
+
}>>;
|
|
1030
|
+
readonly name: Schema.NonEmptyString;
|
|
1031
|
+
readonly description: Schema.String;
|
|
1032
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1033
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1034
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1035
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1036
|
+
}>>;
|
|
1037
|
+
readonly dynamic: Schema.Boolean;
|
|
1038
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
1039
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1040
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1041
|
+
readonly path: Schema.NonEmptyString;
|
|
1042
|
+
readonly content: Schema.String;
|
|
1043
|
+
}>>;
|
|
1044
|
+
readonly name: Schema.NonEmptyString;
|
|
1045
|
+
readonly description: Schema.String;
|
|
1046
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1047
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1048
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1049
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1050
|
+
}>>]>;
|
|
1051
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
1052
|
+
readonly mode: Schema.Literal<"form">;
|
|
1053
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1054
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1055
|
+
readonly type: Schema.tag<"object">;
|
|
1056
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
1057
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1058
|
+
}>>;
|
|
1059
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1060
|
+
readonly message: Schema.String;
|
|
1061
|
+
}>;
|
|
1062
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
1063
|
+
readonly ok: Schema.Literal<true>;
|
|
1064
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1065
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1066
|
+
readonly action: Schema.Literal<"accept">;
|
|
1067
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
1068
|
+
}>, Schema.Struct<{
|
|
1069
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1070
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
1071
|
+
}>]>;
|
|
1072
|
+
}>, Schema.Struct<{
|
|
1073
|
+
readonly ok: Schema.Literal<false>;
|
|
1074
|
+
readonly error: typeof ElicitationFailed;
|
|
1075
|
+
}>]>;
|
|
1076
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
1077
|
+
readonly operation: Schema.Literal<"do">;
|
|
1078
|
+
readonly name: Schema.NonEmptyString;
|
|
1079
|
+
readonly options: Schema.Struct<{
|
|
1080
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
1081
|
+
readonly limit: Schema.Int;
|
|
1082
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
1083
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
1084
|
+
}>>;
|
|
1085
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
1086
|
+
}>;
|
|
1087
|
+
}>, Schema.Struct<{
|
|
1088
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
1089
|
+
readonly name: Schema.NonEmptyString;
|
|
1090
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
1091
|
+
}>, Schema.Struct<{
|
|
1092
|
+
readonly operation: Schema.Literal<"until">;
|
|
1093
|
+
readonly name: Schema.NonEmptyString;
|
|
1094
|
+
readonly timestamp: Schema.Finite;
|
|
1095
|
+
}>, Schema.Struct<{
|
|
1096
|
+
readonly operation: Schema.Literal<"context">;
|
|
1097
|
+
}>, Schema.Struct<{
|
|
1098
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
1099
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
1100
|
+
readonly name: Schema.NonEmptyString;
|
|
1101
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1102
|
+
readonly stepId: Schema.NonEmptyString;
|
|
1103
|
+
readonly timeout: Schema.Finite;
|
|
1104
|
+
}>]>;
|
|
1105
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
1106
|
+
readonly ok: Schema.Literal<true>;
|
|
1107
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1108
|
+
}>, Schema.Struct<{
|
|
1109
|
+
readonly ok: Schema.Literal<false>;
|
|
1110
|
+
readonly error: typeof WorkflowFailure;
|
|
1111
|
+
}>]>;
|
|
1112
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
1113
|
+
readonly operation: Schema.Literal<"start">;
|
|
1114
|
+
readonly workflow: Schema.NonEmptyString;
|
|
1115
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1116
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1117
|
+
}>, Schema.Struct<{
|
|
1118
|
+
readonly operation: Schema.Literal<"get">;
|
|
1119
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
1120
|
+
}>, Schema.Struct<{
|
|
1121
|
+
readonly operation: Schema.Literal<"list">;
|
|
1122
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1123
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
1124
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1125
|
+
}>, Schema.Struct<{
|
|
1126
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
1127
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
1128
|
+
}>]>;
|
|
1129
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
1130
|
+
readonly operation: Schema.Literal<"read">;
|
|
1131
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
1132
|
+
}>, Schema.Struct<{
|
|
1133
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
1134
|
+
readonly key: Schema.String;
|
|
1135
|
+
readonly refresh: Schema.Boolean;
|
|
1136
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1137
|
+
}>, Schema.Struct<{
|
|
1138
|
+
readonly operation: Schema.Literal<"claim">;
|
|
1139
|
+
readonly key: Schema.String;
|
|
1140
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
1141
|
+
}>, Schema.Struct<{
|
|
1142
|
+
readonly operation: Schema.Literal<"publish">;
|
|
1143
|
+
readonly key: Schema.String;
|
|
1144
|
+
readonly lease: Schema.String;
|
|
1145
|
+
readonly entry: Schema.Struct<{
|
|
1146
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1147
|
+
readonly version: Schema.String;
|
|
1148
|
+
readonly freshUntil: Schema.Finite;
|
|
1149
|
+
readonly staleUntil: Schema.Finite;
|
|
1150
|
+
}>;
|
|
1151
|
+
}>, Schema.Struct<{
|
|
1152
|
+
readonly operation: Schema.Literal<"release">;
|
|
1153
|
+
readonly key: Schema.String;
|
|
1154
|
+
readonly lease: Schema.String;
|
|
1155
|
+
}>, Schema.Struct<{
|
|
1156
|
+
readonly operation: Schema.Literal<"renew">;
|
|
1157
|
+
readonly key: Schema.String;
|
|
1158
|
+
readonly lease: Schema.String;
|
|
1159
|
+
}>, Schema.Struct<{
|
|
1160
|
+
readonly operation: Schema.Literal<"write">;
|
|
1161
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1162
|
+
readonly key: Schema.String;
|
|
1163
|
+
readonly entry: Schema.Struct<{
|
|
1164
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1165
|
+
readonly version: Schema.String;
|
|
1166
|
+
readonly freshUntil: Schema.Finite;
|
|
1167
|
+
readonly staleUntil: Schema.Finite;
|
|
1168
|
+
}>;
|
|
1169
|
+
}>>;
|
|
1170
|
+
}>, Schema.Struct<{
|
|
1171
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
1172
|
+
readonly key: Schema.String;
|
|
1173
|
+
}>]>;
|
|
1174
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
1175
|
+
readonly ok: Schema.Literal<true>;
|
|
1176
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1177
|
+
}>, Schema.Struct<{
|
|
1178
|
+
readonly ok: Schema.Literal<false>;
|
|
1179
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
1180
|
+
}>]>;
|
|
1181
|
+
};
|
|
1182
|
+
};
|