apps 0.0.1-beta.1 → 0.0.1-beta.100
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 +112 -72
- package/framework-reference.json +1 -1
- package/js/browser-XIPJGLH2.js +65 -0
- package/js/chunk-2CURR5Y7.js +264 -0
- package/js/chunk-2LSGC7XY.js +42 -0
- package/js/{chunk-YEJOQEII.js → chunk-4PIQKACY.js} +65 -10
- package/js/chunk-4UPC36ZL.js +5185 -0
- package/js/{chunk-4LPG6RCH.js → chunk-4X2UI4R2.js} +7 -27
- package/js/chunk-5C6RAGAS.js +335 -0
- package/js/chunk-62NVUKED.js +39 -0
- package/js/chunk-74H25C4X.js +95 -0
- package/js/chunk-7HG422GB.js +90 -0
- package/js/chunk-7STIP5CS.js +171 -0
- package/js/{chunk-QKHR7BMF.js → chunk-ACQXVKVQ.js} +87 -51
- package/js/{chunk-OHRT55C4.js → chunk-DILSCQPJ.js} +226 -265
- package/js/chunk-ILYCJ3HV.js +449 -0
- package/js/chunk-K6TSCYAO.js +712 -0
- package/js/{chunk-EVJUVWN2.js → chunk-KLSEU35Y.js} +463 -218
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/chunk-OWN3DP2W.js +88 -0
- package/js/{chunk-ZTFQHGEB.js → chunk-PBGPES67.js} +3 -5
- package/js/chunk-QI66R4FP.js +786 -0
- package/js/chunk-RN4YB4JT.js +1922 -0
- package/js/{chunk-ZCAMUXSG.js → chunk-URKOTNDA.js} +795 -177
- package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
- package/js/{chunk-2HHMABB6.js → chunk-VAI3EVCS.js} +700 -78
- package/js/chunk-VCYWAA4N.js +49 -0
- package/js/{chunk-HDJH3RPR.js → chunk-YDW7DX3A.js} +4 -4
- package/js/chunk-YWVISRZD.js +268 -0
- package/js/{chunk-FW5HBOIK.js → chunk-ZKDXML77.js} +19272 -18299
- package/js/client.js +148 -100
- package/js/contracts.js +208 -24
- package/js/effect.js +18 -19
- package/js/es-DIULA3ZF.js +39371 -0
- package/js/graphql.js +62 -58
- package/js/host.js +83 -60
- package/js/index.js +381 -263
- package/js/mcp/effect.js +21 -21
- package/js/mcp.js +117 -74
- package/js/openapi.js +4613 -42691
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -4
- package/js/skills.js +233 -70
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +8 -9
- package/js/ui/auth.js +16 -14
- package/js/ui/contracts.js +9 -8
- package/js/ui/serving.js +8609 -227
- package/package.json +3 -8
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +60 -2
- package/types/app-cache/src/index.d.ts +92 -2
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +63 -17
- package/types/apps/src/contracts/cache.d.ts +24 -1
- 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 +54 -0
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +1325 -534
- 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 +97 -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-document.d.ts +1 -1
- package/types/apps/src/contracts/openapi.d.ts +51 -9
- package/types/apps/src/contracts/operations.d.ts +14 -12
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +6 -0
- package/types/apps/src/contracts/protocols/1.d.ts +2241 -0
- 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 +711 -0
- package/types/apps/src/contracts/protocols/3.d.ts +776 -0
- package/types/apps/src/contracts/protocols/4.d.ts +1306 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1200 -0
- 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 +6857 -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 +140 -10
- package/types/apps/src/contracts/router.d.ts +59 -0
- 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/shared-catalog.d.ts +11 -0
- package/types/apps/src/contracts/skills.d.ts +60 -14
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui-auth.d.ts +6 -14
- package/types/apps/src/contracts/ui.d.ts +70 -30
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +89 -36
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +13 -0
- package/types/apps/src/implementation/app.d.ts +44 -16
- 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 +32 -3
- package/types/apps/src/implementation/catalog-cache.d.ts +43 -5
- 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 +48 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +4 -7
- 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 +7 -8
- package/types/apps/src/implementation/mcp-client.d.ts +49 -25
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +52 -25
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +30 -8
- package/types/apps/src/implementation/openapi-document.d.ts +46 -21
- package/types/apps/src/implementation/openapi-names.d.ts +23 -0
- package/types/apps/src/implementation/openapi-request.d.ts +10 -3
- package/types/apps/src/implementation/openapi-source.d.ts +30 -8
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +84 -10
- 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 +6 -4
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +26 -6
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +227 -0
- package/types/apps/src/implementation/router.d.ts +78 -0
- 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 +111 -15
- 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/swagger-client.d.ts +28 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +12 -6
- package/types/apps/src/implementation/ui-client.d.ts +3 -3
- 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 +31 -12
- 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 +17 -5
- package/types/apps/src/implementation/workflows.d.ts +11 -4
- package/types/apps/src/index.d.ts +71 -21
- package/types/apps/src/mcp.d.ts +25 -5
- package/types/apps/src/openapi.d.ts +11 -6
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +13 -8
- package/types/apps/src/ui-auth.d.ts +2 -2
- 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 +7 -4
- 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/legacy-keys.d.ts +20 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/schema-definitions.d.ts +13 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-6IIO4NPI.js +0 -29
- package/js/chunk-6YBRWRK3.js +0 -160
- package/js/chunk-BMOIAIVR.js +0 -138
- package/js/chunk-FZJOYIZO.js +0 -19
- package/js/chunk-G7IE6BKC.js +0 -224
- package/js/chunk-IHQ4ML7K.js +0 -2193
- package/js/chunk-KOXMLKTM.js +0 -1288
- package/js/chunk-M6ZRRIBI.js +0 -877
- package/js/chunk-PLCMJREA.js +0 -590
- package/js/chunk-PZ36XMXW.js +0 -93
- package/js/chunk-RBAC33PQ.js +0 -267
- package/js/chunk-SATWJKN6.js +0 -34
- package/js/chunk-SWPD52J7.js +0 -35
- package/js/chunk-TE4KO4HI.js +0 -47
- package/js/chunk-W7D7WVSY.js +0 -18
- package/js/chunk-X7SFGU4Q.js +0 -280
- package/js/chunk-ZJWDMTE3.js +0 -63
- 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 -33
- 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/dynamic-tools.d.ts +0 -13
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/implementation/storage.d.ts +0 -13
- package/types/apps/src/mcp-stdio.d.ts +0 -8
|
@@ -0,0 +1,2241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host protocol 1: the messages that cross between a host and a retained app bundle.
|
|
3
|
+
*
|
|
4
|
+
* This protocol is released and frozen. Retained builds and published `apps` versions speak it,
|
|
5
|
+
* and every later host must keep running and rebuilding them unchanged. `bun run check` compares
|
|
6
|
+
* `protocol1` with `packages/apps/protocols/1.json` and fails on any difference. The module imports
|
|
7
|
+
* only `effect` and the frozen OAuth sibling `./oauth.ts`, so no change elsewhere in the repository
|
|
8
|
+
* can alter it. Do not edit it to change the wire format: define the next protocol instead and
|
|
9
|
+
* give the host an adapter for this one. See notes/apps-publishing.md.
|
|
10
|
+
*/
|
|
11
|
+
import { Schema } from "effect";
|
|
12
|
+
import * as McpSchema from "effect/ai/McpSchema";
|
|
13
|
+
/** JSON values carried by remote protocols such as MCP. */
|
|
14
|
+
export declare const JsonValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
15
|
+
export type JsonValue = Schema.Json;
|
|
16
|
+
/** A JSON object, distinct from an authored value schema. */
|
|
17
|
+
export declare const JsonObject: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18
|
+
export type JsonObject = typeof JsonObject.Type;
|
|
19
|
+
/** Stable saved account identity supplied by a host, unchanged across refreshes. */
|
|
20
|
+
export declare const AccountId: Schema.brand<Schema.String, "acc">;
|
|
21
|
+
/** Parsed saved account identity. */
|
|
22
|
+
export type AccountId = typeof AccountId.Type;
|
|
23
|
+
declare const CacheError_base: Schema.Class<CacheError, Schema.TaggedStruct<"CacheError", {
|
|
24
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "storage", "invalid", "capacity", "timeout"]>;
|
|
25
|
+
}>, import("effect/Cause").YieldableError>;
|
|
26
|
+
/** Expected cache failures never include keys, values or upstream exception text. */
|
|
27
|
+
export declare class CacheError extends CacheError_base {
|
|
28
|
+
}
|
|
29
|
+
/** Stored values carry a version independent of their freshness clock. */
|
|
30
|
+
export declare const CacheEntry: Schema.Struct<{
|
|
31
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
32
|
+
readonly version: Schema.String;
|
|
33
|
+
readonly freshUntil: Schema.Finite;
|
|
34
|
+
readonly staleUntil: Schema.Finite;
|
|
35
|
+
}>;
|
|
36
|
+
/** Decoded cache value envelope. */
|
|
37
|
+
export type CacheEntry = typeof CacheEntry.Type;
|
|
38
|
+
/**
|
|
39
|
+
* Publication requires the lease acquired against the previously observed version.
|
|
40
|
+
* `acquire` reads one entry and claims its load in the same transaction, so a cache
|
|
41
|
+
* miss costs one round trip. `read` and `claim` remain for builds retained before it.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
44
|
+
readonly operation: Schema.Literal<"read">;
|
|
45
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
46
|
+
}>, Schema.Struct<{
|
|
47
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
48
|
+
readonly key: Schema.String;
|
|
49
|
+
/** Claim even a fresh entry, as an explicit refresh does. */
|
|
50
|
+
readonly refresh: Schema.Boolean;
|
|
51
|
+
/** Claim only while the entry still has this version. Absent accepts the current one. */
|
|
52
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly operation: Schema.Literal<"claim">;
|
|
55
|
+
readonly key: Schema.String;
|
|
56
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly operation: Schema.Literal<"publish">;
|
|
59
|
+
readonly key: Schema.String;
|
|
60
|
+
readonly lease: Schema.String;
|
|
61
|
+
readonly entry: Schema.Struct<{
|
|
62
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
63
|
+
readonly version: Schema.String;
|
|
64
|
+
readonly freshUntil: Schema.Finite;
|
|
65
|
+
readonly staleUntil: Schema.Finite;
|
|
66
|
+
}>;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
readonly operation: Schema.Literal<"release">;
|
|
69
|
+
readonly key: Schema.String;
|
|
70
|
+
readonly lease: Schema.String;
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
readonly operation: Schema.Literal<"renew">;
|
|
73
|
+
readonly key: Schema.String;
|
|
74
|
+
readonly lease: Schema.String;
|
|
75
|
+
}>, Schema.Struct<{
|
|
76
|
+
readonly operation: Schema.Literal<"write">;
|
|
77
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
78
|
+
readonly key: Schema.String;
|
|
79
|
+
readonly entry: Schema.Struct<{
|
|
80
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
81
|
+
readonly version: Schema.String;
|
|
82
|
+
readonly freshUntil: Schema.Finite;
|
|
83
|
+
readonly staleUntil: Schema.Finite;
|
|
84
|
+
}>;
|
|
85
|
+
}>>;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
88
|
+
readonly key: Schema.String;
|
|
89
|
+
}>]>;
|
|
90
|
+
/** Parsed host command; namespaces cannot be selected by app code. */
|
|
91
|
+
export type CacheCommand = typeof CacheCommand.Type;
|
|
92
|
+
/** Safe protocol envelope used at process boundaries. */
|
|
93
|
+
export declare const CacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
94
|
+
readonly ok: Schema.Literal<true>;
|
|
95
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly ok: Schema.Literal<false>;
|
|
98
|
+
readonly error: typeof CacheError;
|
|
99
|
+
}>]>;
|
|
100
|
+
/** Names have Lakebed's identifier shape and are always bound SQL values, never raw SQL. */
|
|
101
|
+
export declare const DataName: Schema.String;
|
|
102
|
+
/** Stored fields and index terms use finite scalar values; absent optional fields are represented by null in transport. */
|
|
103
|
+
export declare const Scalar: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
104
|
+
export type Scalar = typeof Scalar.Type;
|
|
105
|
+
export declare const Field: Schema.Struct<{
|
|
106
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
107
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
108
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
109
|
+
readonly references: Schema.optional<Schema.String>;
|
|
110
|
+
}>;
|
|
111
|
+
export type Field = typeof Field.Type;
|
|
112
|
+
export declare const Index: Schema.Struct<{
|
|
113
|
+
readonly name: Schema.String;
|
|
114
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const Table: Schema.Struct<{
|
|
117
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
118
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
119
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
120
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
121
|
+
readonly references: Schema.optional<Schema.String>;
|
|
122
|
+
}>>;
|
|
123
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
124
|
+
readonly name: Schema.String;
|
|
125
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
126
|
+
}>>;
|
|
127
|
+
}>;
|
|
128
|
+
export type Table = typeof Table.Type;
|
|
129
|
+
export declare const DatabaseSchema: Schema.$Record<Schema.String, Schema.Struct<{
|
|
130
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
131
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
132
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
133
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
134
|
+
readonly references: Schema.optional<Schema.String>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
137
|
+
readonly name: Schema.String;
|
|
138
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
139
|
+
}>>;
|
|
140
|
+
}>>;
|
|
141
|
+
export type DatabaseSchema = typeof DatabaseSchema.Type;
|
|
142
|
+
/** Longest agent guidance an API error's recovery carries. */
|
|
143
|
+
export declare const maxApiErrorInstructionsLength = 4096;
|
|
144
|
+
/** Bounded recovery a declared API error published for its caller: a short next step and agent guidance. */
|
|
145
|
+
export declare const ApiErrorRecovery: Schema.Struct<{
|
|
146
|
+
readonly action: Schema.NonEmptyString;
|
|
147
|
+
readonly instructions: Schema.NonEmptyString;
|
|
148
|
+
}>;
|
|
149
|
+
/** Recovery copied from an error response body; extra keys are dropped on decode. */
|
|
150
|
+
export type ApiErrorRecovery = typeof ApiErrorRecovery.Type;
|
|
151
|
+
/** Longest message an API error response carries. */
|
|
152
|
+
export declare const maxApiErrorMessageLength = 4096;
|
|
153
|
+
/** Bounded public fields from a response matching its declared API error schema. */
|
|
154
|
+
export declare const ApiErrorResponse: Schema.Struct<{
|
|
155
|
+
readonly code: Schema.NonEmptyString;
|
|
156
|
+
readonly status: Schema.Int;
|
|
157
|
+
readonly message: Schema.NonEmptyString;
|
|
158
|
+
readonly recovery: Schema.optionalKey<Schema.Struct<{
|
|
159
|
+
readonly action: Schema.NonEmptyString;
|
|
160
|
+
readonly instructions: Schema.NonEmptyString;
|
|
161
|
+
}>>;
|
|
162
|
+
}>;
|
|
163
|
+
/** Safe projection of a response matching a declared API error schema. */
|
|
164
|
+
export type ApiErrorResponse = typeof ApiErrorResponse.Type;
|
|
165
|
+
declare const OpenapiResponseError_base: Schema.Class<OpenapiResponseError, Schema.TaggedStruct<"OpenapiResponseError", {
|
|
166
|
+
readonly code: Schema.NonEmptyString;
|
|
167
|
+
readonly status: Schema.Int;
|
|
168
|
+
readonly message: Schema.NonEmptyString;
|
|
169
|
+
readonly recovery: Schema.optionalKey<Schema.Struct<{
|
|
170
|
+
readonly action: Schema.NonEmptyString;
|
|
171
|
+
readonly instructions: Schema.NonEmptyString;
|
|
172
|
+
}>>;
|
|
173
|
+
}>, import("effect/Cause").YieldableError>;
|
|
174
|
+
/** A validated OpenAPI failure with its declared message or static schema explanation. */
|
|
175
|
+
export declare class OpenapiResponseError extends OpenapiResponseError_base {
|
|
176
|
+
}
|
|
177
|
+
/** Plain-data form request derived from the pinned MCP protocol schema. */
|
|
178
|
+
export declare const FormElicitation: Schema.Struct<{
|
|
179
|
+
readonly mode: Schema.Literal<"form">;
|
|
180
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
181
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
182
|
+
readonly type: Schema.tag<"object">;
|
|
183
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
|
|
184
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
185
|
+
}>>;
|
|
186
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
|
+
readonly message: Schema.String;
|
|
188
|
+
}>;
|
|
189
|
+
export type FormElicitation = typeof FormElicitation.Type;
|
|
190
|
+
/** MCP accept/decline/cancel response, without imposing a client or transport on app code. */
|
|
191
|
+
export declare const ElicitationResponse: Schema.Union<readonly [Schema.Struct<{
|
|
192
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
193
|
+
readonly action: Schema.Literal<"accept">;
|
|
194
|
+
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>;
|
|
195
|
+
}>, Schema.Struct<{
|
|
196
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
197
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
198
|
+
}>]>;
|
|
199
|
+
export type ElicitationResponse = typeof ElicitationResponse.Type;
|
|
200
|
+
declare const ElicitationFailed_base: Schema.Class<ElicitationFailed, Schema.TaggedStruct<"ElicitationFailed", {
|
|
201
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "transaction", "invalid-request", "invalid-response", "transport", "expired", "forbidden"]>;
|
|
202
|
+
}>, import("effect/Cause").YieldableError>;
|
|
203
|
+
/** A tool interaction could not be delivered or its request/response was invalid. No private payload is retained. */
|
|
204
|
+
export declare class ElicitationFailed extends ElicitationFailed_base {
|
|
205
|
+
}
|
|
206
|
+
/** Safe reply for a runtime that crosses an RPC boundary. */
|
|
207
|
+
export declare const ElicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
208
|
+
readonly ok: Schema.Literal<true>;
|
|
209
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
210
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
211
|
+
readonly action: Schema.Literal<"accept">;
|
|
212
|
+
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>;
|
|
213
|
+
}>, Schema.Struct<{
|
|
214
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
215
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
216
|
+
}>]>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly ok: Schema.Literal<false>;
|
|
219
|
+
readonly error: typeof ElicitationFailed;
|
|
220
|
+
}>]>;
|
|
221
|
+
export type ElicitationReply = typeof ElicitationReply.Type;
|
|
222
|
+
/** Invocation consent requests no additional fields; arguments are reviewed, never edited in the form. */
|
|
223
|
+
export declare const ApprovalElicitation: Schema.Struct<{
|
|
224
|
+
readonly requestedSchema: Schema.Struct<{
|
|
225
|
+
readonly type: Schema.Literal<"object">;
|
|
226
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Never>;
|
|
227
|
+
}>;
|
|
228
|
+
readonly mode: Schema.Literal<"form">;
|
|
229
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
230
|
+
readonly message: Schema.String;
|
|
231
|
+
}>;
|
|
232
|
+
export type ApprovalElicitation = typeof ApprovalElicitation.Type;
|
|
233
|
+
/** Dispatch coalesces overdue ticks, so sub-minute intervals promise a cadence the runner cannot keep. */
|
|
234
|
+
export declare const minimumIntervalMilliseconds = 60000;
|
|
235
|
+
/** Calendar schedules use five cron fields and an explicit IANA time zone. */
|
|
236
|
+
export declare const CalendarSchedule: Schema.Struct<{
|
|
237
|
+
readonly expression: Schema.NonEmptyString;
|
|
238
|
+
readonly timezone: Schema.NonEmptyString;
|
|
239
|
+
}>;
|
|
240
|
+
/** Validated timing crosses all runtime and persistence boundaries as data. */
|
|
241
|
+
export declare const ScheduleTiming: Schema.Union<readonly [Schema.Struct<{
|
|
242
|
+
readonly kind: Schema.Literal<"interval">;
|
|
243
|
+
readonly milliseconds: Schema.Int;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
readonly kind: Schema.Literal<"cron">;
|
|
246
|
+
readonly calendar: Schema.Struct<{
|
|
247
|
+
readonly expression: Schema.NonEmptyString;
|
|
248
|
+
readonly timezone: Schema.NonEmptyString;
|
|
249
|
+
}>;
|
|
250
|
+
}>]>;
|
|
251
|
+
export type ScheduleTiming = typeof ScheduleTiming.Type;
|
|
252
|
+
/** A named trigger attached to the mutation it invokes, including schema-validated arguments. */
|
|
253
|
+
export declare const OperationSchedule: Schema.Struct<{
|
|
254
|
+
readonly name: Schema.NonEmptyString;
|
|
255
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
256
|
+
readonly kind: Schema.Literal<"interval">;
|
|
257
|
+
readonly milliseconds: Schema.Int;
|
|
258
|
+
}>, Schema.Struct<{
|
|
259
|
+
readonly kind: Schema.Literal<"cron">;
|
|
260
|
+
readonly calendar: Schema.Struct<{
|
|
261
|
+
readonly expression: Schema.NonEmptyString;
|
|
262
|
+
readonly timezone: Schema.NonEmptyString;
|
|
263
|
+
}>;
|
|
264
|
+
}>]>;
|
|
265
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
266
|
+
}>;
|
|
267
|
+
export type OperationSchedule = typeof OperationSchedule.Type;
|
|
268
|
+
/** Canonical resource path within one skill. */
|
|
269
|
+
export declare const SkillFilePath: Schema.NonEmptyString;
|
|
270
|
+
/** UTF-8 text resource. Reading a resource never executes it. */
|
|
271
|
+
export declare const SkillFile: Schema.Struct<{
|
|
272
|
+
readonly path: Schema.NonEmptyString;
|
|
273
|
+
readonly content: Schema.String;
|
|
274
|
+
}>;
|
|
275
|
+
export type SkillFile = typeof SkillFile.Type;
|
|
276
|
+
/** Agent Skills format constraints, not Executor execution or storage budgets. */
|
|
277
|
+
export declare const skillFormatLimits: {
|
|
278
|
+
readonly nameCharacters: 64;
|
|
279
|
+
readonly descriptionCharacters: 1024;
|
|
280
|
+
readonly compatibilityCharacters: 500;
|
|
281
|
+
};
|
|
282
|
+
/** A lowercase alphanumeric skill directory name with single separating hyphens. */
|
|
283
|
+
export declare const AppSkillName: Schema.NonEmptyString;
|
|
284
|
+
/** Frontmatter is metadata only. In particular, allowed-tools never grants execution authority. */
|
|
285
|
+
export declare const AppSkillMetadata: Schema.Struct<{
|
|
286
|
+
readonly name: Schema.NonEmptyString;
|
|
287
|
+
readonly description: Schema.String;
|
|
288
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
290
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
291
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
292
|
+
}>;
|
|
293
|
+
export type AppSkillMetadata = typeof AppSkillMetadata.Type;
|
|
294
|
+
/** Files use paths relative to this skill directory; reading one never executes its contents. */
|
|
295
|
+
export declare const AppSkillSource: Schema.Struct<{
|
|
296
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
297
|
+
readonly path: Schema.NonEmptyString;
|
|
298
|
+
readonly content: Schema.String;
|
|
299
|
+
}>>;
|
|
300
|
+
readonly name: Schema.NonEmptyString;
|
|
301
|
+
readonly description: Schema.String;
|
|
302
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
303
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
304
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
305
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
306
|
+
}>;
|
|
307
|
+
export type AppSkillSource = typeof AppSkillSource.Type;
|
|
308
|
+
/** One evaluated catalog cannot contain ambiguous names. */
|
|
309
|
+
export declare const AppSkills: Schema.$Array<Schema.Struct<{
|
|
310
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
311
|
+
readonly path: Schema.NonEmptyString;
|
|
312
|
+
readonly content: Schema.String;
|
|
313
|
+
}>>;
|
|
314
|
+
readonly name: Schema.NonEmptyString;
|
|
315
|
+
readonly description: Schema.String;
|
|
316
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
317
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
318
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
319
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
320
|
+
}>>;
|
|
321
|
+
/** Advisory tool hints; neither the framework nor these declarations enforce access. */
|
|
322
|
+
export declare const ToolAnnotations: Schema.Struct<{
|
|
323
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
324
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
325
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
326
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
327
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
328
|
+
}>;
|
|
329
|
+
export type ToolAnnotations = typeof ToolAnnotations.Type;
|
|
330
|
+
/** Raw-byte ceiling shared by callback HTTP, app execution and the encoded host protocol. */
|
|
331
|
+
export declare const WebhookTransportLimits: Schema.Struct<{
|
|
332
|
+
readonly maxBodyBytes: Schema.Int;
|
|
333
|
+
}>;
|
|
334
|
+
export type WebhookTransportLimits = typeof WebhookTransportLimits.Type;
|
|
335
|
+
/** Requests and responses use the same existing transport bound. */
|
|
336
|
+
export declare const defaultWebhookTransportLimits: {
|
|
337
|
+
readonly maxBodyBytes: number;
|
|
338
|
+
};
|
|
339
|
+
/** Bounded callback transport. Headers and base64 bytes preserve the provider signature input. */
|
|
340
|
+
export declare const WebhookRequestData: Schema.Struct<{
|
|
341
|
+
readonly url: Schema.String;
|
|
342
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
343
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
344
|
+
readonly body: Schema.String;
|
|
345
|
+
}>;
|
|
346
|
+
/** Each command runs with a fresh factory and the subscription's saved account selections. */
|
|
347
|
+
export declare const WebhookCommand: Schema.Union<readonly [Schema.Struct<{
|
|
348
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
349
|
+
}>, Schema.Struct<{
|
|
350
|
+
readonly name: Schema.NonEmptyString;
|
|
351
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
352
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
353
|
+
readonly callbackUrl: Schema.String;
|
|
354
|
+
readonly secret: Schema.String;
|
|
355
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
356
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
357
|
+
}>, Schema.Struct<{
|
|
358
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
359
|
+
readonly name: Schema.NonEmptyString;
|
|
360
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
361
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
362
|
+
readonly callbackUrl: Schema.String;
|
|
363
|
+
readonly secret: Schema.String;
|
|
364
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
365
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
366
|
+
}>, Schema.Struct<{
|
|
367
|
+
readonly name: Schema.NonEmptyString;
|
|
368
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
369
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
370
|
+
readonly callbackUrl: Schema.String;
|
|
371
|
+
readonly secret: Schema.String;
|
|
372
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
373
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
374
|
+
}>, Schema.Struct<{
|
|
375
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
376
|
+
readonly name: Schema.NonEmptyString;
|
|
377
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
378
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
379
|
+
readonly callbackUrl: Schema.String;
|
|
380
|
+
readonly secret: Schema.String;
|
|
381
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
382
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
383
|
+
}>, Schema.Struct<{
|
|
384
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
385
|
+
readonly request: Schema.Struct<{
|
|
386
|
+
readonly url: Schema.String;
|
|
387
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
388
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
389
|
+
readonly body: Schema.String;
|
|
390
|
+
}>;
|
|
391
|
+
readonly name: Schema.NonEmptyString;
|
|
392
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
393
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
394
|
+
readonly callbackUrl: Schema.String;
|
|
395
|
+
readonly secret: Schema.String;
|
|
396
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
397
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
398
|
+
}>]>;
|
|
399
|
+
/** Parsed framework command; contains private host inputs and must not be logged. */
|
|
400
|
+
export type WebhookCommand = typeof WebhookCommand.Type;
|
|
401
|
+
/** Run identity is opaque and shared by author and SDK interfaces. */
|
|
402
|
+
export declare const WorkflowRunId: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
403
|
+
export type WorkflowRunId = typeof WorkflowRunId.Type;
|
|
404
|
+
/** Stable names identify declarations and replay steps. */
|
|
405
|
+
export declare const WorkflowName: Schema.NonEmptyString;
|
|
406
|
+
/** Convert portable duration syntax to milliseconds; invalid or overflowing values are rejected. */
|
|
407
|
+
export declare const workflowDurationMillis: (value: number | string) => number | undefined;
|
|
408
|
+
/** Numbers are milliseconds; strings use a quantity and full unit, such as "5 minutes". */
|
|
409
|
+
export declare const WorkflowDuration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
410
|
+
export type WorkflowDuration = typeof WorkflowDuration.Type;
|
|
411
|
+
/** Author retry and timeout options are passed to the durable engine. */
|
|
412
|
+
export declare const WorkflowStepOptions: Schema.Struct<{
|
|
413
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
414
|
+
readonly limit: Schema.Int;
|
|
415
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
416
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
417
|
+
}>>;
|
|
418
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
419
|
+
}>;
|
|
420
|
+
export type WorkflowStepOptions = typeof WorkflowStepOptions.Type;
|
|
421
|
+
/** Step outputs must fit the engine's persisted JSON result limit. */
|
|
422
|
+
export declare const WorkflowValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
423
|
+
/** Private replay metadata is attached by the host, never accepted in author input. */
|
|
424
|
+
export declare const WorkflowReplay: Schema.Struct<{
|
|
425
|
+
readonly key: Schema.NonEmptyString;
|
|
426
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
427
|
+
}>;
|
|
428
|
+
export type WorkflowReplay = typeof WorkflowReplay.Type;
|
|
429
|
+
/** Portable discovery, input validation and execution commands. */
|
|
430
|
+
export declare const WorkflowCommand: Schema.Union<readonly [Schema.Struct<{
|
|
431
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
432
|
+
}>, Schema.Struct<{
|
|
433
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
434
|
+
readonly name: Schema.NonEmptyString;
|
|
435
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
436
|
+
}>, Schema.Struct<{
|
|
437
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
438
|
+
readonly name: Schema.NonEmptyString;
|
|
439
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
440
|
+
}>]>;
|
|
441
|
+
export type WorkflowCommand = typeof WorkflowCommand.Type;
|
|
442
|
+
/** Private invocation RPC protocol shared by the host and isolated app bundle. */
|
|
443
|
+
export declare const WorkflowRpcCommand: Schema.Union<readonly [Schema.Struct<{
|
|
444
|
+
readonly operation: Schema.Literal<"do">;
|
|
445
|
+
readonly name: Schema.NonEmptyString;
|
|
446
|
+
readonly options: Schema.Struct<{
|
|
447
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
448
|
+
readonly limit: Schema.Int;
|
|
449
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
450
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
451
|
+
}>>;
|
|
452
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
453
|
+
}>;
|
|
454
|
+
}>, Schema.Struct<{
|
|
455
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
456
|
+
readonly name: Schema.NonEmptyString;
|
|
457
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
458
|
+
}>, Schema.Struct<{
|
|
459
|
+
readonly operation: Schema.Literal<"until">;
|
|
460
|
+
readonly name: Schema.NonEmptyString;
|
|
461
|
+
readonly timestamp: Schema.Finite;
|
|
462
|
+
}>, Schema.Struct<{
|
|
463
|
+
readonly operation: Schema.Literal<"context">;
|
|
464
|
+
}>, Schema.Struct<{
|
|
465
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
466
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
467
|
+
readonly name: Schema.NonEmptyString;
|
|
468
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
469
|
+
readonly stepId: Schema.NonEmptyString;
|
|
470
|
+
readonly timeout: Schema.Finite;
|
|
471
|
+
}>]>;
|
|
472
|
+
/** Serializable requests do not contain an app ID; authority is captured in the supplied capability. */
|
|
473
|
+
export declare const WorkflowControlCommand: Schema.Union<readonly [Schema.Struct<{
|
|
474
|
+
readonly operation: Schema.Literal<"start">;
|
|
475
|
+
readonly workflow: Schema.NonEmptyString;
|
|
476
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
477
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
478
|
+
}>, Schema.Struct<{
|
|
479
|
+
readonly operation: Schema.Literal<"get">;
|
|
480
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
481
|
+
}>, Schema.Struct<{
|
|
482
|
+
readonly operation: Schema.Literal<"list">;
|
|
483
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
484
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
485
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
486
|
+
}>, Schema.Struct<{
|
|
487
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
488
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
489
|
+
}>]>;
|
|
490
|
+
declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
|
|
491
|
+
readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
|
|
492
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
493
|
+
readonly accountId: Schema.optional<Schema.brand<Schema.String, "acc">>;
|
|
494
|
+
}>, import("effect/Cause").YieldableError>;
|
|
495
|
+
/** Protocol 1's provider failure, as released: a reason, an HTTP status and the account used. */
|
|
496
|
+
export declare class ProviderError extends ProviderError_base {
|
|
497
|
+
}
|
|
498
|
+
declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
|
|
499
|
+
readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
|
|
500
|
+
readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
|
|
501
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
502
|
+
}>, import("effect/Cause").YieldableError>;
|
|
503
|
+
/** Protocol 1's MCP failure, as released: a phase, a reason and an HTTP status. */
|
|
504
|
+
export declare class McpError extends McpError_base {
|
|
505
|
+
}
|
|
506
|
+
declare const SkillLoadFailed_base: Schema.Class<SkillLoadFailed, Schema.TaggedStruct<"SkillLoadFailed", {
|
|
507
|
+
readonly reason: Schema.Literals<readonly ["source", "request", "rate_limited", "document", "limit", "changed", "encoding"]>;
|
|
508
|
+
readonly message: Schema.optional<Schema.String>;
|
|
509
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
510
|
+
}>, import("effect/Cause").YieldableError>;
|
|
511
|
+
/** Protocols 1 to 8's skill loader failure, as released: a reason, a message and an HTTP status. */
|
|
512
|
+
export declare class SkillLoadFailed extends SkillLoadFailed_base {
|
|
513
|
+
}
|
|
514
|
+
declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
|
|
515
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
|
|
516
|
+
readonly retryable: Schema.Boolean;
|
|
517
|
+
}>, import("effect/Cause").YieldableError>;
|
|
518
|
+
/** Protocol 1's workflow failure: a reason code only, as released. */
|
|
519
|
+
export declare class WorkflowFailure extends WorkflowFailure_base {
|
|
520
|
+
}
|
|
521
|
+
/** Protocol 1's workflow step reply, carrying its own failure. */
|
|
522
|
+
export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
|
|
523
|
+
readonly ok: Schema.Literal<true>;
|
|
524
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
525
|
+
}>, Schema.Struct<{
|
|
526
|
+
readonly ok: Schema.Literal<false>;
|
|
527
|
+
readonly error: typeof WorkflowFailure;
|
|
528
|
+
}>]>;
|
|
529
|
+
/** Serializable auth methods shared with SDK hosts; protocol configuration has one schema. */
|
|
530
|
+
export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
531
|
+
readonly type: Schema.Literal<"secrets">;
|
|
532
|
+
readonly label: Schema.String;
|
|
533
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
534
|
+
}>, Schema.Struct<{
|
|
535
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
536
|
+
readonly discover: Schema.String;
|
|
537
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
538
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
539
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
540
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
541
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
542
|
+
readonly path: Schema.String;
|
|
543
|
+
}>>;
|
|
544
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
545
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
546
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
547
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
548
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
549
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
550
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
551
|
+
}>, Schema.Struct<{
|
|
552
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
553
|
+
readonly authorizationUrl: Schema.String;
|
|
554
|
+
readonly tokenUrl: Schema.String;
|
|
555
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
556
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
557
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
558
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
559
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
560
|
+
readonly path: Schema.String;
|
|
561
|
+
}>>;
|
|
562
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
563
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
564
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
565
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
566
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
567
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
568
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
569
|
+
}>, Schema.Struct<{
|
|
570
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
571
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
572
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
573
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
574
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
575
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
576
|
+
readonly discover: Schema.String;
|
|
577
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
578
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
579
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
580
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
581
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
582
|
+
}>, Schema.Struct<{
|
|
583
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
584
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
585
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
586
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
587
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
588
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
589
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
590
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
591
|
+
readonly tokenUrl: Schema.String;
|
|
592
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
593
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
594
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
595
|
+
}>]>;
|
|
596
|
+
/** Serializable declaration of a provider's named authentication methods. */
|
|
597
|
+
export declare const DeclaredProvider: Schema.Struct<{
|
|
598
|
+
readonly name: Schema.NonEmptyString;
|
|
599
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
600
|
+
readonly type: Schema.Literal<"secrets">;
|
|
601
|
+
readonly label: Schema.String;
|
|
602
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
603
|
+
}>, Schema.Struct<{
|
|
604
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
605
|
+
readonly discover: Schema.String;
|
|
606
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
607
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
608
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
609
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
610
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
611
|
+
readonly path: Schema.String;
|
|
612
|
+
}>>;
|
|
613
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
614
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
615
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
616
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
617
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
618
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
619
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
620
|
+
}>, Schema.Struct<{
|
|
621
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
622
|
+
readonly authorizationUrl: Schema.String;
|
|
623
|
+
readonly tokenUrl: Schema.String;
|
|
624
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
625
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
626
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
627
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
628
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
629
|
+
readonly path: Schema.String;
|
|
630
|
+
}>>;
|
|
631
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
632
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
633
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
634
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
635
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
636
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
637
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
638
|
+
}>, Schema.Struct<{
|
|
639
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
640
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
641
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
642
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
643
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
644
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
645
|
+
readonly discover: Schema.String;
|
|
646
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
647
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
648
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
649
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
650
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
651
|
+
}>, Schema.Struct<{
|
|
652
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
653
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
654
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
655
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
656
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
657
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
658
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
659
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
660
|
+
readonly tokenUrl: Schema.String;
|
|
661
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
662
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
663
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
664
|
+
}>]>>;
|
|
665
|
+
}>;
|
|
666
|
+
/** Credential-free provider declaration; content matching remains host policy. */
|
|
667
|
+
export type DeclaredProvider = typeof DeclaredProvider.Type;
|
|
668
|
+
/** Account slots available without binding accounts or evaluating the app factory. */
|
|
669
|
+
export declare const DeclaredRequirements: Schema.Struct<{
|
|
670
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
671
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
672
|
+
readonly skills: Schema.Literal<true>;
|
|
673
|
+
/** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
|
|
674
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
675
|
+
/** Accepts skills sources and reports whether the catalog includes a live loader. */
|
|
676
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
677
|
+
/** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
|
|
678
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
679
|
+
}>>;
|
|
680
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
681
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
682
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
683
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
684
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
685
|
+
readonly references: Schema.optional<Schema.String>;
|
|
686
|
+
}>>;
|
|
687
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
688
|
+
readonly name: Schema.String;
|
|
689
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
690
|
+
}>>;
|
|
691
|
+
}>>>;
|
|
692
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
693
|
+
readonly definition: Schema.Struct<{
|
|
694
|
+
readonly name: Schema.NonEmptyString;
|
|
695
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
696
|
+
readonly type: Schema.Literal<"secrets">;
|
|
697
|
+
readonly label: Schema.String;
|
|
698
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
699
|
+
}>, Schema.Struct<{
|
|
700
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
701
|
+
readonly discover: Schema.String;
|
|
702
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
703
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
704
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
705
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
706
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
707
|
+
readonly path: Schema.String;
|
|
708
|
+
}>>;
|
|
709
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
710
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
711
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
712
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
713
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
714
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
715
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
716
|
+
}>, Schema.Struct<{
|
|
717
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
718
|
+
readonly authorizationUrl: Schema.String;
|
|
719
|
+
readonly tokenUrl: Schema.String;
|
|
720
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
721
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
722
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
723
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
724
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
725
|
+
readonly path: Schema.String;
|
|
726
|
+
}>>;
|
|
727
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
728
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
729
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
730
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
731
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
732
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
733
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
734
|
+
}>, Schema.Struct<{
|
|
735
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
736
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
737
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
738
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
739
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
740
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
741
|
+
readonly discover: Schema.String;
|
|
742
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
743
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
744
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
745
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
746
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
747
|
+
}>, Schema.Struct<{
|
|
748
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
749
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
750
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
751
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
752
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
753
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
754
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
755
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
756
|
+
readonly tokenUrl: Schema.String;
|
|
757
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
758
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
759
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
760
|
+
}>]>>;
|
|
761
|
+
}>;
|
|
762
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
763
|
+
}>>;
|
|
764
|
+
}>;
|
|
765
|
+
/** Parsed declared account requirements. */
|
|
766
|
+
export type DeclaredRequirements = typeof DeclaredRequirements.Type;
|
|
767
|
+
/** Host-resolved credentials for one stable saved account. Never a request DTO. */
|
|
768
|
+
export declare const ResolvedAccount: Schema.Struct<{
|
|
769
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
770
|
+
readonly provider: Schema.Struct<{
|
|
771
|
+
readonly name: Schema.NonEmptyString;
|
|
772
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
773
|
+
readonly type: Schema.Literal<"secrets">;
|
|
774
|
+
readonly label: Schema.String;
|
|
775
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
776
|
+
}>, Schema.Struct<{
|
|
777
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
778
|
+
readonly discover: Schema.String;
|
|
779
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
780
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
781
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
782
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
783
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
784
|
+
readonly path: Schema.String;
|
|
785
|
+
}>>;
|
|
786
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
787
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
788
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
789
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
790
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
791
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
792
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
793
|
+
}>, Schema.Struct<{
|
|
794
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
795
|
+
readonly authorizationUrl: Schema.String;
|
|
796
|
+
readonly tokenUrl: Schema.String;
|
|
797
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
798
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
799
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
800
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
801
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
802
|
+
readonly path: Schema.String;
|
|
803
|
+
}>>;
|
|
804
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
805
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
806
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
807
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
808
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
809
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
810
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
811
|
+
}>, Schema.Struct<{
|
|
812
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
813
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
814
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
815
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
816
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
817
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
818
|
+
readonly discover: Schema.String;
|
|
819
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
820
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
821
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
822
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
823
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
824
|
+
}>, Schema.Struct<{
|
|
825
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
826
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
827
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
828
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
829
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
830
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
831
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
832
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
833
|
+
readonly tokenUrl: Schema.String;
|
|
834
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
835
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
836
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
837
|
+
}>]>>;
|
|
838
|
+
}>;
|
|
839
|
+
readonly method: Schema.NonEmptyString;
|
|
840
|
+
/**
|
|
841
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
842
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
843
|
+
*/
|
|
844
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
845
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
846
|
+
}>;
|
|
847
|
+
/** Parsed host account binding. */
|
|
848
|
+
export type ResolvedAccount = typeof ResolvedAccount.Type;
|
|
849
|
+
/** Full saved selection resolved by the trusted caller; [] differs from a missing slot. */
|
|
850
|
+
export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
851
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
852
|
+
readonly provider: Schema.Struct<{
|
|
853
|
+
readonly name: Schema.NonEmptyString;
|
|
854
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
855
|
+
readonly type: Schema.Literal<"secrets">;
|
|
856
|
+
readonly label: Schema.String;
|
|
857
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
858
|
+
}>, Schema.Struct<{
|
|
859
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
860
|
+
readonly discover: Schema.String;
|
|
861
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
862
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
863
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
864
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
865
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
866
|
+
readonly path: Schema.String;
|
|
867
|
+
}>>;
|
|
868
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
869
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
870
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
871
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
872
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
873
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
874
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
875
|
+
}>, Schema.Struct<{
|
|
876
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
877
|
+
readonly authorizationUrl: Schema.String;
|
|
878
|
+
readonly tokenUrl: Schema.String;
|
|
879
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
880
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
881
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
882
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
883
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
884
|
+
readonly path: Schema.String;
|
|
885
|
+
}>>;
|
|
886
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
887
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
888
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
889
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
890
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
891
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
892
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
893
|
+
}>, Schema.Struct<{
|
|
894
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
895
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
896
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
897
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
898
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
899
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
900
|
+
readonly discover: Schema.String;
|
|
901
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
902
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
903
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
904
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
905
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
906
|
+
}>, Schema.Struct<{
|
|
907
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
908
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
909
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
910
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
911
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
912
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
913
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
914
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
915
|
+
readonly tokenUrl: Schema.String;
|
|
916
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
917
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
918
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
919
|
+
}>]>>;
|
|
920
|
+
}>;
|
|
921
|
+
readonly method: Schema.NonEmptyString;
|
|
922
|
+
/**
|
|
923
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
924
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
925
|
+
*/
|
|
926
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
927
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
928
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
929
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
930
|
+
readonly provider: Schema.Struct<{
|
|
931
|
+
readonly name: Schema.NonEmptyString;
|
|
932
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
933
|
+
readonly type: Schema.Literal<"secrets">;
|
|
934
|
+
readonly label: Schema.String;
|
|
935
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
936
|
+
}>, Schema.Struct<{
|
|
937
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
938
|
+
readonly discover: Schema.String;
|
|
939
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
940
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
941
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
942
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
943
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
944
|
+
readonly path: Schema.String;
|
|
945
|
+
}>>;
|
|
946
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
947
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
948
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
949
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
950
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
951
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
952
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
953
|
+
}>, Schema.Struct<{
|
|
954
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
955
|
+
readonly authorizationUrl: Schema.String;
|
|
956
|
+
readonly tokenUrl: Schema.String;
|
|
957
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
958
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
959
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
960
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
961
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
962
|
+
readonly path: Schema.String;
|
|
963
|
+
}>>;
|
|
964
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
965
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
966
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
967
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
968
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
969
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
970
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
971
|
+
}>, Schema.Struct<{
|
|
972
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
973
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
974
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
975
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
976
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
977
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
978
|
+
readonly discover: Schema.String;
|
|
979
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
980
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
981
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
982
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
983
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
984
|
+
}>, Schema.Struct<{
|
|
985
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
986
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
987
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
988
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
989
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
990
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
991
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
992
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
993
|
+
readonly tokenUrl: Schema.String;
|
|
994
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
995
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
996
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
997
|
+
}>]>>;
|
|
998
|
+
}>;
|
|
999
|
+
readonly method: Schema.NonEmptyString;
|
|
1000
|
+
/**
|
|
1001
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1002
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1003
|
+
*/
|
|
1004
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1005
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1006
|
+
}>>]>>;
|
|
1007
|
+
/** Parsed host selections, kept redacted until native account binding. */
|
|
1008
|
+
export type ResolvedAccounts = typeof ResolvedAccounts.Type;
|
|
1009
|
+
/** Trusted approval for one decoded call. Never accepted in public command JSON. */
|
|
1010
|
+
export declare const TrustedToolApproval: Schema.Struct<{
|
|
1011
|
+
readonly tool: Schema.NonEmptyString;
|
|
1012
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1013
|
+
}>;
|
|
1014
|
+
export type TrustedToolApproval = typeof TrustedToolApproval.Type;
|
|
1015
|
+
/** Absolute Unix time in milliseconds; remote hosts enforce it inside the operation transaction. */
|
|
1016
|
+
export declare const InvocationDeadline: Schema.Finite;
|
|
1017
|
+
/** Serializable live tool metadata; executable callbacks never cross this boundary. */
|
|
1018
|
+
export declare const HostedTool: Schema.Struct<{
|
|
1019
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1020
|
+
readonly name: Schema.NonEmptyString;
|
|
1021
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1022
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1023
|
+
readonly milliseconds: Schema.Int;
|
|
1024
|
+
}>, Schema.Struct<{
|
|
1025
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1026
|
+
readonly calendar: Schema.Struct<{
|
|
1027
|
+
readonly expression: Schema.NonEmptyString;
|
|
1028
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1029
|
+
}>;
|
|
1030
|
+
}>]>;
|
|
1031
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1032
|
+
}>>>;
|
|
1033
|
+
readonly name: Schema.NonEmptyString;
|
|
1034
|
+
readonly description: Schema.String;
|
|
1035
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1036
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1037
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1038
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1039
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1040
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1041
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1042
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1043
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1044
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1045
|
+
}>>;
|
|
1046
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1047
|
+
}>;
|
|
1048
|
+
/** Parsed live tool description. */
|
|
1049
|
+
export type HostedTool = typeof HostedTool.Type;
|
|
1050
|
+
/** Catalog entry without schemas. Browsing lists these and reads one full tool on selection. */
|
|
1051
|
+
export declare const HostedToolSummary: Schema.Struct<{
|
|
1052
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1053
|
+
readonly name: Schema.NonEmptyString;
|
|
1054
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1055
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1056
|
+
readonly milliseconds: Schema.Int;
|
|
1057
|
+
}>, Schema.Struct<{
|
|
1058
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1059
|
+
readonly calendar: Schema.Struct<{
|
|
1060
|
+
readonly expression: Schema.NonEmptyString;
|
|
1061
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1062
|
+
}>;
|
|
1063
|
+
}>]>;
|
|
1064
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1065
|
+
}>>>;
|
|
1066
|
+
readonly name: Schema.NonEmptyString;
|
|
1067
|
+
readonly description: Schema.String;
|
|
1068
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1069
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1070
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1071
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1072
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1073
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1074
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1075
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1076
|
+
}>>;
|
|
1077
|
+
}>;
|
|
1078
|
+
export type HostedToolSummary = typeof HostedToolSummary.Type;
|
|
1079
|
+
/**
|
|
1080
|
+
* A skill catalog and whether any of it came from `dynamicSkills`. Without a live loader the
|
|
1081
|
+
* catalog is determined by the build and its evaluation inputs; with one it reflects a publisher.
|
|
1082
|
+
*/
|
|
1083
|
+
export declare const SkillSources: Schema.Struct<{
|
|
1084
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
1085
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1086
|
+
readonly path: Schema.NonEmptyString;
|
|
1087
|
+
readonly content: Schema.String;
|
|
1088
|
+
}>>;
|
|
1089
|
+
readonly name: Schema.NonEmptyString;
|
|
1090
|
+
readonly description: Schema.String;
|
|
1091
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1092
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1093
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1094
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1095
|
+
}>>;
|
|
1096
|
+
readonly dynamic: Schema.Boolean;
|
|
1097
|
+
}>;
|
|
1098
|
+
export type SkillSources = typeof SkillSources.Type;
|
|
1099
|
+
/** Either response shape; `dynamic` is unknown for builds that predate skillSources. */
|
|
1100
|
+
export declare const SkillCatalogResponse: Schema.Union<readonly [Schema.Struct<{
|
|
1101
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
1102
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1103
|
+
readonly path: Schema.NonEmptyString;
|
|
1104
|
+
readonly content: Schema.String;
|
|
1105
|
+
}>>;
|
|
1106
|
+
readonly name: Schema.NonEmptyString;
|
|
1107
|
+
readonly description: Schema.String;
|
|
1108
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1109
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1110
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1111
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1112
|
+
}>>;
|
|
1113
|
+
readonly dynamic: Schema.Boolean;
|
|
1114
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1115
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1116
|
+
readonly path: Schema.NonEmptyString;
|
|
1117
|
+
readonly content: Schema.String;
|
|
1118
|
+
}>>;
|
|
1119
|
+
readonly name: Schema.NonEmptyString;
|
|
1120
|
+
readonly description: Schema.String;
|
|
1121
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1122
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1123
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1124
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1125
|
+
}>>]>;
|
|
1126
|
+
/** Framework-owned dispatch, independent of app-authored HTTP routing. */
|
|
1127
|
+
export declare const HostRequest: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1128
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1129
|
+
}>, Schema.Struct<{
|
|
1130
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1131
|
+
readonly name: Schema.NonEmptyString;
|
|
1132
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1133
|
+
}>, Schema.Struct<{
|
|
1134
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1135
|
+
readonly name: Schema.NonEmptyString;
|
|
1136
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1137
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1138
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1139
|
+
}>, Schema.Struct<{
|
|
1140
|
+
readonly name: Schema.NonEmptyString;
|
|
1141
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1142
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1143
|
+
readonly callbackUrl: Schema.String;
|
|
1144
|
+
readonly secret: Schema.String;
|
|
1145
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1146
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1147
|
+
}>, Schema.Struct<{
|
|
1148
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1149
|
+
readonly name: Schema.NonEmptyString;
|
|
1150
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1151
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1152
|
+
readonly callbackUrl: Schema.String;
|
|
1153
|
+
readonly secret: Schema.String;
|
|
1154
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1155
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1156
|
+
}>, Schema.Struct<{
|
|
1157
|
+
readonly name: Schema.NonEmptyString;
|
|
1158
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1159
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1160
|
+
readonly callbackUrl: Schema.String;
|
|
1161
|
+
readonly secret: Schema.String;
|
|
1162
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1163
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1164
|
+
}>, Schema.Struct<{
|
|
1165
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1166
|
+
readonly name: Schema.NonEmptyString;
|
|
1167
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1168
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1169
|
+
readonly callbackUrl: Schema.String;
|
|
1170
|
+
readonly secret: Schema.String;
|
|
1171
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1172
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1173
|
+
}>, Schema.Struct<{
|
|
1174
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1175
|
+
readonly request: Schema.Struct<{
|
|
1176
|
+
readonly url: Schema.String;
|
|
1177
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1178
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1179
|
+
readonly body: Schema.String;
|
|
1180
|
+
}>;
|
|
1181
|
+
readonly name: Schema.NonEmptyString;
|
|
1182
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1183
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1184
|
+
readonly callbackUrl: Schema.String;
|
|
1185
|
+
readonly secret: Schema.String;
|
|
1186
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1187
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1188
|
+
}>]>, Schema.Struct<{
|
|
1189
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1190
|
+
}>, Schema.Struct<{
|
|
1191
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1192
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1193
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1194
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1195
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1198
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1201
|
+
}>, Schema.Struct<{
|
|
1202
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1203
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1204
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1205
|
+
}>, Schema.Struct<{
|
|
1206
|
+
readonly operation: Schema.Literal<"query">;
|
|
1207
|
+
readonly name: Schema.NonEmptyString;
|
|
1208
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1209
|
+
}>, Schema.Struct<{
|
|
1210
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1211
|
+
readonly name: Schema.NonEmptyString;
|
|
1212
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1213
|
+
}>, Schema.Struct<{
|
|
1214
|
+
readonly operation: Schema.Literal<"call">;
|
|
1215
|
+
readonly tool: Schema.NonEmptyString;
|
|
1216
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1217
|
+
}>]>;
|
|
1218
|
+
/** Parsed portable dispatch request. */
|
|
1219
|
+
export type HostRequest = typeof HostRequest.Type;
|
|
1220
|
+
declare const HostRequestInvalid_base: Schema.Class<HostRequestInvalid, Schema.TaggedStruct<"HostRequestInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1221
|
+
/** The dispatch request did not match the protocol. */
|
|
1222
|
+
export declare class HostRequestInvalid extends HostRequestInvalid_base {
|
|
1223
|
+
}
|
|
1224
|
+
declare const HostAccountsInvalid_base: Schema.Class<HostAccountsInvalid, Schema.TaggedStruct<"HostAccountsInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1225
|
+
/** Host-supplied accounts did not satisfy the declared slots or native method schemas. */
|
|
1226
|
+
export declare class HostAccountsInvalid extends HostAccountsInvalid_base {
|
|
1227
|
+
}
|
|
1228
|
+
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1229
|
+
/** The module or declared capability shape could not be hosted. */
|
|
1230
|
+
export declare class HostDeclarationInvalid extends HostDeclarationInvalid_base {
|
|
1231
|
+
}
|
|
1232
|
+
declare const HostEvaluationFailed_base: Schema.Class<HostEvaluationFailed, Schema.TaggedStruct<"HostEvaluationFailed", {}>, import("effect/Cause").YieldableError>;
|
|
1233
|
+
/** Fresh app evaluation failed before calling a tool. */
|
|
1234
|
+
export declare class HostEvaluationFailed extends HostEvaluationFailed_base {
|
|
1235
|
+
}
|
|
1236
|
+
declare const HostOperationNotFound_base: Schema.Class<HostOperationNotFound, Schema.TaggedStruct<"HostOperationNotFound", {}>, import("effect/Cause").YieldableError>;
|
|
1237
|
+
/** No query or mutation matched the requested name. */
|
|
1238
|
+
export declare class HostOperationNotFound extends HostOperationNotFound_base {
|
|
1239
|
+
}
|
|
1240
|
+
declare const HostOperationFailed_base: Schema.Class<HostOperationFailed, Schema.TaggedStruct<"HostOperationFailed", {}>, import("effect/Cause").YieldableError>;
|
|
1241
|
+
/** An app operation failed. Raw author failures remain private. */
|
|
1242
|
+
export declare class HostOperationFailed extends HostOperationFailed_base {
|
|
1243
|
+
}
|
|
1244
|
+
declare const HostToolNotFound_base: Schema.Class<HostToolNotFound, Schema.TaggedStruct<"HostToolNotFound", {}>, import("effect/Cause").YieldableError>;
|
|
1245
|
+
/** The freshly evaluated catalog did not contain the requested tool. */
|
|
1246
|
+
export declare class HostToolNotFound extends HostToolNotFound_base {
|
|
1247
|
+
}
|
|
1248
|
+
/** One failing input location and its expected shape; never the supplied value. */
|
|
1249
|
+
export declare const InputProblem: Schema.String;
|
|
1250
|
+
/** Input decoding reports at most this many problems. */
|
|
1251
|
+
export declare const maxInputProblems = 10;
|
|
1252
|
+
declare const HostInputInvalid_base: Schema.Class<HostInputInvalid, Schema.TaggedStruct<"HostInputInvalid", {
|
|
1253
|
+
readonly problems: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1254
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1255
|
+
/** Native input decoding failed; supplied values are omitted. Builds before problems were reported send none. */
|
|
1256
|
+
export declare class HostInputInvalid extends HostInputInvalid_base {
|
|
1257
|
+
}
|
|
1258
|
+
declare const HostToolBlocked_base: Schema.Class<HostToolBlocked, Schema.TaggedStruct<"HostToolBlocked", {}>, import("effect/Cause").YieldableError>;
|
|
1259
|
+
/** The tool's approval policy blocked this call before its tool body ran. */
|
|
1260
|
+
export declare class HostToolBlocked extends HostToolBlocked_base {
|
|
1261
|
+
}
|
|
1262
|
+
declare const HostToolApprovalRequired_base: Schema.Class<HostToolApprovalRequired, Schema.TaggedStruct<"HostToolApprovalRequired", {
|
|
1263
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1264
|
+
readonly elicitation: Schema.Struct<{
|
|
1265
|
+
readonly requestedSchema: Schema.Struct<{
|
|
1266
|
+
readonly type: Schema.Literal<"object">;
|
|
1267
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Never>;
|
|
1268
|
+
}>;
|
|
1269
|
+
readonly mode: Schema.Literal<"form">;
|
|
1270
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1271
|
+
readonly message: Schema.String;
|
|
1272
|
+
}>;
|
|
1273
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1274
|
+
/** Policy elicitation plus decoded input. No tool body ran; the host owns delivery and resumption. */
|
|
1275
|
+
export declare class HostToolApprovalRequired extends HostToolApprovalRequired_base {
|
|
1276
|
+
}
|
|
1277
|
+
declare const HostToolPolicyFailed_base: Schema.Class<HostToolPolicyFailed, Schema.TaggedStruct<"HostToolPolicyFailed", {}>, import("effect/Cause").YieldableError>;
|
|
1278
|
+
/** The tool's approval policy failed or returned an invalid decision. Author failures remain private. */
|
|
1279
|
+
export declare class HostToolPolicyFailed extends HostToolPolicyFailed_base {
|
|
1280
|
+
}
|
|
1281
|
+
declare const HostOutputInvalid_base: Schema.Class<HostOutputInvalid, Schema.TaggedStruct<"HostOutputInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1282
|
+
/** A tool result was not JSON; the result is never included in the error. */
|
|
1283
|
+
export declare class HostOutputInvalid extends HostOutputInvalid_base {
|
|
1284
|
+
}
|
|
1285
|
+
/** Safe error envelope; no author exception, source, account fields or stack is serialized. */
|
|
1286
|
+
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 HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
1287
|
+
/** Expected host failures. */
|
|
1288
|
+
export type HostError = typeof HostError.Type;
|
|
1289
|
+
/** Portable response envelope; callers parse the success value for their operation. */
|
|
1290
|
+
export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
1291
|
+
readonly ok: Schema.Literal<true>;
|
|
1292
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1293
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1294
|
+
}>, Schema.Struct<{
|
|
1295
|
+
readonly ok: Schema.Literal<false>;
|
|
1296
|
+
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 HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
1297
|
+
}>]>;
|
|
1298
|
+
/** Parsed response envelope. */
|
|
1299
|
+
export type HostResponse = typeof HostResponse.Type;
|
|
1300
|
+
/**
|
|
1301
|
+
* The JSON body the host sends to a bundle's generated server entry. The entry is compiled into
|
|
1302
|
+
* the retained build, so this shape is frozen with the protocol too.
|
|
1303
|
+
*/
|
|
1304
|
+
export declare const HostInvocation: Schema.Struct<{
|
|
1305
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1306
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1307
|
+
}>, Schema.Struct<{
|
|
1308
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1309
|
+
readonly name: Schema.NonEmptyString;
|
|
1310
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1311
|
+
}>, Schema.Struct<{
|
|
1312
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1313
|
+
readonly name: Schema.NonEmptyString;
|
|
1314
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1315
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1316
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1317
|
+
}>, Schema.Struct<{
|
|
1318
|
+
readonly name: Schema.NonEmptyString;
|
|
1319
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1320
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1321
|
+
readonly callbackUrl: Schema.String;
|
|
1322
|
+
readonly secret: Schema.String;
|
|
1323
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1324
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1325
|
+
}>, Schema.Struct<{
|
|
1326
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1327
|
+
readonly name: Schema.NonEmptyString;
|
|
1328
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1329
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1330
|
+
readonly callbackUrl: Schema.String;
|
|
1331
|
+
readonly secret: Schema.String;
|
|
1332
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1333
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1334
|
+
}>, Schema.Struct<{
|
|
1335
|
+
readonly name: Schema.NonEmptyString;
|
|
1336
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1337
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1338
|
+
readonly callbackUrl: Schema.String;
|
|
1339
|
+
readonly secret: Schema.String;
|
|
1340
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1341
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1342
|
+
}>, Schema.Struct<{
|
|
1343
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1344
|
+
readonly name: Schema.NonEmptyString;
|
|
1345
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1346
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1347
|
+
readonly callbackUrl: Schema.String;
|
|
1348
|
+
readonly secret: Schema.String;
|
|
1349
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1350
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1351
|
+
}>, Schema.Struct<{
|
|
1352
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1353
|
+
readonly request: Schema.Struct<{
|
|
1354
|
+
readonly url: Schema.String;
|
|
1355
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1356
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1357
|
+
readonly body: Schema.String;
|
|
1358
|
+
}>;
|
|
1359
|
+
readonly name: Schema.NonEmptyString;
|
|
1360
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1361
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1362
|
+
readonly callbackUrl: Schema.String;
|
|
1363
|
+
readonly secret: Schema.String;
|
|
1364
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1365
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1366
|
+
}>]>, Schema.Struct<{
|
|
1367
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1368
|
+
}>, Schema.Struct<{
|
|
1369
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1370
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1371
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1372
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1373
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1376
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1377
|
+
*/
|
|
1378
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1379
|
+
}>, Schema.Struct<{
|
|
1380
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1381
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1382
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1383
|
+
}>, Schema.Struct<{
|
|
1384
|
+
readonly operation: Schema.Literal<"query">;
|
|
1385
|
+
readonly name: Schema.NonEmptyString;
|
|
1386
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1387
|
+
}>, Schema.Struct<{
|
|
1388
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1389
|
+
readonly name: Schema.NonEmptyString;
|
|
1390
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1391
|
+
}>, Schema.Struct<{
|
|
1392
|
+
readonly operation: Schema.Literal<"call">;
|
|
1393
|
+
readonly tool: Schema.NonEmptyString;
|
|
1394
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1395
|
+
}>]>;
|
|
1396
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1397
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1398
|
+
readonly provider: Schema.Struct<{
|
|
1399
|
+
readonly name: Schema.NonEmptyString;
|
|
1400
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1401
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1402
|
+
readonly label: Schema.String;
|
|
1403
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1404
|
+
}>, Schema.Struct<{
|
|
1405
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1406
|
+
readonly discover: Schema.String;
|
|
1407
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1408
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1409
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1410
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1411
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1412
|
+
readonly path: Schema.String;
|
|
1413
|
+
}>>;
|
|
1414
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1415
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1416
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1417
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1418
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1419
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1420
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1421
|
+
}>, Schema.Struct<{
|
|
1422
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1423
|
+
readonly authorizationUrl: Schema.String;
|
|
1424
|
+
readonly tokenUrl: Schema.String;
|
|
1425
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1426
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1427
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1428
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1429
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1430
|
+
readonly path: Schema.String;
|
|
1431
|
+
}>>;
|
|
1432
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1433
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1434
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1435
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1436
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1437
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1438
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1439
|
+
}>, Schema.Struct<{
|
|
1440
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1441
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1442
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1443
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1444
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1445
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1446
|
+
readonly discover: Schema.String;
|
|
1447
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1448
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1449
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1450
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1451
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1452
|
+
}>, Schema.Struct<{
|
|
1453
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1454
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1455
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1456
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1457
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1458
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1459
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1460
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1461
|
+
readonly tokenUrl: Schema.String;
|
|
1462
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1463
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1464
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1465
|
+
}>]>>;
|
|
1466
|
+
}>;
|
|
1467
|
+
readonly method: Schema.NonEmptyString;
|
|
1468
|
+
/**
|
|
1469
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1470
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1471
|
+
*/
|
|
1472
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1473
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1474
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1475
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1476
|
+
readonly provider: Schema.Struct<{
|
|
1477
|
+
readonly name: Schema.NonEmptyString;
|
|
1478
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1479
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1480
|
+
readonly label: Schema.String;
|
|
1481
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1482
|
+
}>, Schema.Struct<{
|
|
1483
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1484
|
+
readonly discover: Schema.String;
|
|
1485
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1486
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1487
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1488
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1489
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1490
|
+
readonly path: Schema.String;
|
|
1491
|
+
}>>;
|
|
1492
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1493
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1494
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1495
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1496
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1497
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1498
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1499
|
+
}>, Schema.Struct<{
|
|
1500
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1501
|
+
readonly authorizationUrl: Schema.String;
|
|
1502
|
+
readonly tokenUrl: Schema.String;
|
|
1503
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1504
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1505
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1506
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1507
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1508
|
+
readonly path: Schema.String;
|
|
1509
|
+
}>>;
|
|
1510
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1511
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1512
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1513
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1514
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1515
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1516
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1517
|
+
}>, Schema.Struct<{
|
|
1518
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1519
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1520
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1521
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1522
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1523
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1524
|
+
readonly discover: Schema.String;
|
|
1525
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1526
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1527
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1528
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1529
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1530
|
+
}>, Schema.Struct<{
|
|
1531
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1532
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1533
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1534
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1535
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1536
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1537
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1538
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1539
|
+
readonly tokenUrl: Schema.String;
|
|
1540
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1541
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1542
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1543
|
+
}>]>>;
|
|
1544
|
+
}>;
|
|
1545
|
+
readonly method: Schema.NonEmptyString;
|
|
1546
|
+
/**
|
|
1547
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1548
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1549
|
+
*/
|
|
1550
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1551
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1552
|
+
}>>]>>;
|
|
1553
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
1554
|
+
readonly tool: Schema.NonEmptyString;
|
|
1555
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1556
|
+
}>>;
|
|
1557
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
1558
|
+
readonly key: Schema.NonEmptyString;
|
|
1559
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
1560
|
+
}>>;
|
|
1561
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
1562
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
1563
|
+
}>;
|
|
1564
|
+
export type HostInvocation = typeof HostInvocation.Type;
|
|
1565
|
+
/** Every message of protocol 1, in the order its snapshot records them. */
|
|
1566
|
+
export declare const protocol1: {
|
|
1567
|
+
readonly version: 1;
|
|
1568
|
+
readonly schemas: {
|
|
1569
|
+
readonly invocation: Schema.Struct<{
|
|
1570
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1571
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1572
|
+
}>, Schema.Struct<{
|
|
1573
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1574
|
+
readonly name: Schema.NonEmptyString;
|
|
1575
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1576
|
+
}>, Schema.Struct<{
|
|
1577
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1578
|
+
readonly name: Schema.NonEmptyString;
|
|
1579
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1580
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1581
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1582
|
+
}>, Schema.Struct<{
|
|
1583
|
+
readonly name: Schema.NonEmptyString;
|
|
1584
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1585
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1586
|
+
readonly callbackUrl: Schema.String;
|
|
1587
|
+
readonly secret: Schema.String;
|
|
1588
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1589
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1590
|
+
}>, Schema.Struct<{
|
|
1591
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1592
|
+
readonly name: Schema.NonEmptyString;
|
|
1593
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1594
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1595
|
+
readonly callbackUrl: Schema.String;
|
|
1596
|
+
readonly secret: Schema.String;
|
|
1597
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1598
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1599
|
+
}>, Schema.Struct<{
|
|
1600
|
+
readonly name: Schema.NonEmptyString;
|
|
1601
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1602
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1603
|
+
readonly callbackUrl: Schema.String;
|
|
1604
|
+
readonly secret: Schema.String;
|
|
1605
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1606
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1607
|
+
}>, Schema.Struct<{
|
|
1608
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1609
|
+
readonly name: Schema.NonEmptyString;
|
|
1610
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1611
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1612
|
+
readonly callbackUrl: Schema.String;
|
|
1613
|
+
readonly secret: Schema.String;
|
|
1614
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1615
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1616
|
+
}>, Schema.Struct<{
|
|
1617
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1618
|
+
readonly request: Schema.Struct<{
|
|
1619
|
+
readonly url: Schema.String;
|
|
1620
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1621
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1622
|
+
readonly body: Schema.String;
|
|
1623
|
+
}>;
|
|
1624
|
+
readonly name: Schema.NonEmptyString;
|
|
1625
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1626
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1627
|
+
readonly callbackUrl: Schema.String;
|
|
1628
|
+
readonly secret: Schema.String;
|
|
1629
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1630
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1631
|
+
}>]>, Schema.Struct<{
|
|
1632
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1633
|
+
}>, Schema.Struct<{
|
|
1634
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1635
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1636
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1637
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1638
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1641
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1642
|
+
*/
|
|
1643
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1644
|
+
}>, Schema.Struct<{
|
|
1645
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1646
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1647
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1648
|
+
}>, Schema.Struct<{
|
|
1649
|
+
readonly operation: Schema.Literal<"query">;
|
|
1650
|
+
readonly name: Schema.NonEmptyString;
|
|
1651
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1652
|
+
}>, Schema.Struct<{
|
|
1653
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1654
|
+
readonly name: Schema.NonEmptyString;
|
|
1655
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1656
|
+
}>, Schema.Struct<{
|
|
1657
|
+
readonly operation: Schema.Literal<"call">;
|
|
1658
|
+
readonly tool: Schema.NonEmptyString;
|
|
1659
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1660
|
+
}>]>;
|
|
1661
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1662
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1663
|
+
readonly provider: Schema.Struct<{
|
|
1664
|
+
readonly name: Schema.NonEmptyString;
|
|
1665
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1666
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1667
|
+
readonly label: Schema.String;
|
|
1668
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1669
|
+
}>, Schema.Struct<{
|
|
1670
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1671
|
+
readonly discover: Schema.String;
|
|
1672
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1673
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1674
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1675
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1676
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1677
|
+
readonly path: Schema.String;
|
|
1678
|
+
}>>;
|
|
1679
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1680
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1681
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1682
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1683
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1684
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1685
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1686
|
+
}>, Schema.Struct<{
|
|
1687
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1688
|
+
readonly authorizationUrl: Schema.String;
|
|
1689
|
+
readonly tokenUrl: Schema.String;
|
|
1690
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1691
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1692
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1693
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1694
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1695
|
+
readonly path: Schema.String;
|
|
1696
|
+
}>>;
|
|
1697
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1698
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1699
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1700
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1701
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1702
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1703
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1704
|
+
}>, Schema.Struct<{
|
|
1705
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1706
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1707
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1708
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1709
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1710
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1711
|
+
readonly discover: Schema.String;
|
|
1712
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1713
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1714
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1715
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1716
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1717
|
+
}>, Schema.Struct<{
|
|
1718
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1719
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1720
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1721
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1722
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1723
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1724
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1725
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1726
|
+
readonly tokenUrl: Schema.String;
|
|
1727
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1728
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1729
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1730
|
+
}>]>>;
|
|
1731
|
+
}>;
|
|
1732
|
+
readonly method: Schema.NonEmptyString;
|
|
1733
|
+
/**
|
|
1734
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1735
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1736
|
+
*/
|
|
1737
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1738
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1739
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1740
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1741
|
+
readonly provider: Schema.Struct<{
|
|
1742
|
+
readonly name: Schema.NonEmptyString;
|
|
1743
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1744
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1745
|
+
readonly label: Schema.String;
|
|
1746
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1747
|
+
}>, Schema.Struct<{
|
|
1748
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1749
|
+
readonly discover: Schema.String;
|
|
1750
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1751
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1752
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1753
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1754
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1755
|
+
readonly path: Schema.String;
|
|
1756
|
+
}>>;
|
|
1757
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1758
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1759
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1760
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1761
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1762
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1763
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1764
|
+
}>, Schema.Struct<{
|
|
1765
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1766
|
+
readonly authorizationUrl: Schema.String;
|
|
1767
|
+
readonly tokenUrl: Schema.String;
|
|
1768
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1769
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1770
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1771
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1772
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1773
|
+
readonly path: Schema.String;
|
|
1774
|
+
}>>;
|
|
1775
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1776
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1777
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1778
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1779
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1780
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1781
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1782
|
+
}>, Schema.Struct<{
|
|
1783
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1784
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1785
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1786
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1787
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1788
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1789
|
+
readonly discover: Schema.String;
|
|
1790
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1791
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1792
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1793
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1794
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1795
|
+
}>, Schema.Struct<{
|
|
1796
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1797
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1798
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1799
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1800
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1801
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1802
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1803
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1804
|
+
readonly tokenUrl: Schema.String;
|
|
1805
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1806
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1807
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1808
|
+
}>]>>;
|
|
1809
|
+
}>;
|
|
1810
|
+
readonly method: Schema.NonEmptyString;
|
|
1811
|
+
/**
|
|
1812
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1813
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1814
|
+
*/
|
|
1815
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1816
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1817
|
+
}>>]>>;
|
|
1818
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
1819
|
+
readonly tool: Schema.NonEmptyString;
|
|
1820
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1821
|
+
}>>;
|
|
1822
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
1823
|
+
readonly key: Schema.NonEmptyString;
|
|
1824
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
1825
|
+
}>>;
|
|
1826
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
1827
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
1828
|
+
}>;
|
|
1829
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1830
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1831
|
+
}>, Schema.Struct<{
|
|
1832
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1833
|
+
readonly name: Schema.NonEmptyString;
|
|
1834
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1835
|
+
}>, Schema.Struct<{
|
|
1836
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1837
|
+
readonly name: Schema.NonEmptyString;
|
|
1838
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1839
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1840
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1841
|
+
}>, Schema.Struct<{
|
|
1842
|
+
readonly name: Schema.NonEmptyString;
|
|
1843
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1844
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1845
|
+
readonly callbackUrl: Schema.String;
|
|
1846
|
+
readonly secret: Schema.String;
|
|
1847
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1848
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1849
|
+
}>, Schema.Struct<{
|
|
1850
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1851
|
+
readonly name: Schema.NonEmptyString;
|
|
1852
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1853
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1854
|
+
readonly callbackUrl: Schema.String;
|
|
1855
|
+
readonly secret: Schema.String;
|
|
1856
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1857
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1858
|
+
}>, Schema.Struct<{
|
|
1859
|
+
readonly name: Schema.NonEmptyString;
|
|
1860
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1861
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1862
|
+
readonly callbackUrl: Schema.String;
|
|
1863
|
+
readonly secret: Schema.String;
|
|
1864
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1865
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1866
|
+
}>, Schema.Struct<{
|
|
1867
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1868
|
+
readonly name: Schema.NonEmptyString;
|
|
1869
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1870
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1871
|
+
readonly callbackUrl: Schema.String;
|
|
1872
|
+
readonly secret: Schema.String;
|
|
1873
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1874
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1875
|
+
}>, Schema.Struct<{
|
|
1876
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1877
|
+
readonly request: Schema.Struct<{
|
|
1878
|
+
readonly url: Schema.String;
|
|
1879
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1880
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1881
|
+
readonly body: Schema.String;
|
|
1882
|
+
}>;
|
|
1883
|
+
readonly name: Schema.NonEmptyString;
|
|
1884
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1885
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1886
|
+
readonly callbackUrl: Schema.String;
|
|
1887
|
+
readonly secret: Schema.String;
|
|
1888
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1889
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1890
|
+
}>]>, Schema.Struct<{
|
|
1891
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1892
|
+
}>, Schema.Struct<{
|
|
1893
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1894
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1895
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1896
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1897
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1900
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1901
|
+
*/
|
|
1902
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1903
|
+
}>, Schema.Struct<{
|
|
1904
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1905
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1906
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1907
|
+
}>, Schema.Struct<{
|
|
1908
|
+
readonly operation: Schema.Literal<"query">;
|
|
1909
|
+
readonly name: Schema.NonEmptyString;
|
|
1910
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1911
|
+
}>, Schema.Struct<{
|
|
1912
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1913
|
+
readonly name: Schema.NonEmptyString;
|
|
1914
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1915
|
+
}>, Schema.Struct<{
|
|
1916
|
+
readonly operation: Schema.Literal<"call">;
|
|
1917
|
+
readonly tool: Schema.NonEmptyString;
|
|
1918
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1919
|
+
}>]>;
|
|
1920
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
1921
|
+
readonly ok: Schema.Literal<true>;
|
|
1922
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1923
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1924
|
+
}>, Schema.Struct<{
|
|
1925
|
+
readonly ok: Schema.Literal<false>;
|
|
1926
|
+
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 HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
1927
|
+
}>]>;
|
|
1928
|
+
readonly requirements: Schema.Struct<{
|
|
1929
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
1930
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
1931
|
+
readonly skills: Schema.Literal<true>;
|
|
1932
|
+
/** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
|
|
1933
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
1934
|
+
/** Accepts skills sources and reports whether the catalog includes a live loader. */
|
|
1935
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1936
|
+
/** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
|
|
1937
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
1938
|
+
}>>;
|
|
1939
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
1940
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
1941
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
1942
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
1943
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
1944
|
+
readonly references: Schema.optional<Schema.String>;
|
|
1945
|
+
}>>;
|
|
1946
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
1947
|
+
readonly name: Schema.String;
|
|
1948
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
1949
|
+
}>>;
|
|
1950
|
+
}>>>;
|
|
1951
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
1952
|
+
readonly definition: Schema.Struct<{
|
|
1953
|
+
readonly name: Schema.NonEmptyString;
|
|
1954
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1955
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1956
|
+
readonly label: Schema.String;
|
|
1957
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1958
|
+
}>, Schema.Struct<{
|
|
1959
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1960
|
+
readonly discover: Schema.String;
|
|
1961
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1962
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1963
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1964
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1965
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1966
|
+
readonly path: Schema.String;
|
|
1967
|
+
}>>;
|
|
1968
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1969
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1970
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1971
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1972
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1973
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1974
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1975
|
+
}>, Schema.Struct<{
|
|
1976
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1977
|
+
readonly authorizationUrl: Schema.String;
|
|
1978
|
+
readonly tokenUrl: Schema.String;
|
|
1979
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1980
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1981
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1982
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1983
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1984
|
+
readonly path: Schema.String;
|
|
1985
|
+
}>>;
|
|
1986
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1987
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1988
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1989
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1990
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1991
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1992
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1993
|
+
}>, Schema.Struct<{
|
|
1994
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1995
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1996
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1997
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1998
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1999
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2000
|
+
readonly discover: Schema.String;
|
|
2001
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2002
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2003
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2004
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2005
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2006
|
+
}>, Schema.Struct<{
|
|
2007
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2008
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2009
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2010
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2011
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2012
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2013
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2014
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2015
|
+
readonly tokenUrl: Schema.String;
|
|
2016
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2017
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2018
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2019
|
+
}>]>>;
|
|
2020
|
+
}>;
|
|
2021
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
2022
|
+
}>>;
|
|
2023
|
+
}>;
|
|
2024
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
2025
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2026
|
+
readonly name: Schema.NonEmptyString;
|
|
2027
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
2028
|
+
readonly kind: Schema.Literal<"interval">;
|
|
2029
|
+
readonly milliseconds: Schema.Int;
|
|
2030
|
+
}>, Schema.Struct<{
|
|
2031
|
+
readonly kind: Schema.Literal<"cron">;
|
|
2032
|
+
readonly calendar: Schema.Struct<{
|
|
2033
|
+
readonly expression: Schema.NonEmptyString;
|
|
2034
|
+
readonly timezone: Schema.NonEmptyString;
|
|
2035
|
+
}>;
|
|
2036
|
+
}>]>;
|
|
2037
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2038
|
+
}>>>;
|
|
2039
|
+
readonly name: Schema.NonEmptyString;
|
|
2040
|
+
readonly description: Schema.String;
|
|
2041
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2042
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
2043
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2044
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2045
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
2046
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2047
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
2048
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
2049
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
2050
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
2051
|
+
}>>;
|
|
2052
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2053
|
+
}>>;
|
|
2054
|
+
readonly toolSummaries: Schema.$Array<Schema.Struct<{
|
|
2055
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2056
|
+
readonly name: Schema.NonEmptyString;
|
|
2057
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
2058
|
+
readonly kind: Schema.Literal<"interval">;
|
|
2059
|
+
readonly milliseconds: Schema.Int;
|
|
2060
|
+
}>, Schema.Struct<{
|
|
2061
|
+
readonly kind: Schema.Literal<"cron">;
|
|
2062
|
+
readonly calendar: Schema.Struct<{
|
|
2063
|
+
readonly expression: Schema.NonEmptyString;
|
|
2064
|
+
readonly timezone: Schema.NonEmptyString;
|
|
2065
|
+
}>;
|
|
2066
|
+
}>]>;
|
|
2067
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2068
|
+
}>>>;
|
|
2069
|
+
readonly name: Schema.NonEmptyString;
|
|
2070
|
+
readonly description: Schema.String;
|
|
2071
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
2072
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2073
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
2074
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2075
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
2076
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
2077
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
2078
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
2079
|
+
}>>;
|
|
2080
|
+
}>>;
|
|
2081
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
2082
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
2083
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2084
|
+
readonly path: Schema.NonEmptyString;
|
|
2085
|
+
readonly content: Schema.String;
|
|
2086
|
+
}>>;
|
|
2087
|
+
readonly name: Schema.NonEmptyString;
|
|
2088
|
+
readonly description: Schema.String;
|
|
2089
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
2090
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
2091
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2092
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
2093
|
+
}>>;
|
|
2094
|
+
readonly dynamic: Schema.Boolean;
|
|
2095
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
2096
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2097
|
+
readonly path: Schema.NonEmptyString;
|
|
2098
|
+
readonly content: Schema.String;
|
|
2099
|
+
}>>;
|
|
2100
|
+
readonly name: Schema.NonEmptyString;
|
|
2101
|
+
readonly description: Schema.String;
|
|
2102
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
2103
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
2104
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2105
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
2106
|
+
}>>]>;
|
|
2107
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
2108
|
+
readonly mode: Schema.Literal<"form">;
|
|
2109
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
2110
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2111
|
+
readonly type: Schema.tag<"object">;
|
|
2112
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
|
|
2113
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
2114
|
+
}>>;
|
|
2115
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2116
|
+
readonly message: Schema.String;
|
|
2117
|
+
}>;
|
|
2118
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
2119
|
+
readonly ok: Schema.Literal<true>;
|
|
2120
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
2121
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2122
|
+
readonly action: Schema.Literal<"accept">;
|
|
2123
|
+
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>;
|
|
2124
|
+
}>, Schema.Struct<{
|
|
2125
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
2126
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
2127
|
+
}>]>;
|
|
2128
|
+
}>, Schema.Struct<{
|
|
2129
|
+
readonly ok: Schema.Literal<false>;
|
|
2130
|
+
readonly error: typeof ElicitationFailed;
|
|
2131
|
+
}>]>;
|
|
2132
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
2133
|
+
readonly operation: Schema.Literal<"do">;
|
|
2134
|
+
readonly name: Schema.NonEmptyString;
|
|
2135
|
+
readonly options: Schema.Struct<{
|
|
2136
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
2137
|
+
readonly limit: Schema.Int;
|
|
2138
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
2139
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
2140
|
+
}>>;
|
|
2141
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
2142
|
+
}>;
|
|
2143
|
+
}>, Schema.Struct<{
|
|
2144
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
2145
|
+
readonly name: Schema.NonEmptyString;
|
|
2146
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
2147
|
+
}>, Schema.Struct<{
|
|
2148
|
+
readonly operation: Schema.Literal<"until">;
|
|
2149
|
+
readonly name: Schema.NonEmptyString;
|
|
2150
|
+
readonly timestamp: Schema.Finite;
|
|
2151
|
+
}>, Schema.Struct<{
|
|
2152
|
+
readonly operation: Schema.Literal<"context">;
|
|
2153
|
+
}>, Schema.Struct<{
|
|
2154
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
2155
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
2156
|
+
readonly name: Schema.NonEmptyString;
|
|
2157
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2158
|
+
readonly stepId: Schema.NonEmptyString;
|
|
2159
|
+
readonly timeout: Schema.Finite;
|
|
2160
|
+
}>]>;
|
|
2161
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
2162
|
+
readonly ok: Schema.Literal<true>;
|
|
2163
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2164
|
+
}>, Schema.Struct<{
|
|
2165
|
+
readonly ok: Schema.Literal<false>;
|
|
2166
|
+
readonly error: typeof WorkflowFailure;
|
|
2167
|
+
}>]>;
|
|
2168
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
2169
|
+
readonly operation: Schema.Literal<"start">;
|
|
2170
|
+
readonly workflow: Schema.NonEmptyString;
|
|
2171
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2172
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2173
|
+
}>, Schema.Struct<{
|
|
2174
|
+
readonly operation: Schema.Literal<"get">;
|
|
2175
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
2176
|
+
}>, Schema.Struct<{
|
|
2177
|
+
readonly operation: Schema.Literal<"list">;
|
|
2178
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2179
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
2180
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2181
|
+
}>, Schema.Struct<{
|
|
2182
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
2183
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
2184
|
+
}>]>;
|
|
2185
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
2186
|
+
readonly operation: Schema.Literal<"read">;
|
|
2187
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
2188
|
+
}>, Schema.Struct<{
|
|
2189
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
2190
|
+
readonly key: Schema.String;
|
|
2191
|
+
/** Claim even a fresh entry, as an explicit refresh does. */
|
|
2192
|
+
readonly refresh: Schema.Boolean;
|
|
2193
|
+
/** Claim only while the entry still has this version. Absent accepts the current one. */
|
|
2194
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2195
|
+
}>, Schema.Struct<{
|
|
2196
|
+
readonly operation: Schema.Literal<"claim">;
|
|
2197
|
+
readonly key: Schema.String;
|
|
2198
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
2199
|
+
}>, Schema.Struct<{
|
|
2200
|
+
readonly operation: Schema.Literal<"publish">;
|
|
2201
|
+
readonly key: Schema.String;
|
|
2202
|
+
readonly lease: Schema.String;
|
|
2203
|
+
readonly entry: Schema.Struct<{
|
|
2204
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2205
|
+
readonly version: Schema.String;
|
|
2206
|
+
readonly freshUntil: Schema.Finite;
|
|
2207
|
+
readonly staleUntil: Schema.Finite;
|
|
2208
|
+
}>;
|
|
2209
|
+
}>, Schema.Struct<{
|
|
2210
|
+
readonly operation: Schema.Literal<"release">;
|
|
2211
|
+
readonly key: Schema.String;
|
|
2212
|
+
readonly lease: Schema.String;
|
|
2213
|
+
}>, Schema.Struct<{
|
|
2214
|
+
readonly operation: Schema.Literal<"renew">;
|
|
2215
|
+
readonly key: Schema.String;
|
|
2216
|
+
readonly lease: Schema.String;
|
|
2217
|
+
}>, Schema.Struct<{
|
|
2218
|
+
readonly operation: Schema.Literal<"write">;
|
|
2219
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2220
|
+
readonly key: Schema.String;
|
|
2221
|
+
readonly entry: Schema.Struct<{
|
|
2222
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2223
|
+
readonly version: Schema.String;
|
|
2224
|
+
readonly freshUntil: Schema.Finite;
|
|
2225
|
+
readonly staleUntil: Schema.Finite;
|
|
2226
|
+
}>;
|
|
2227
|
+
}>>;
|
|
2228
|
+
}>, Schema.Struct<{
|
|
2229
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
2230
|
+
readonly key: Schema.String;
|
|
2231
|
+
}>]>;
|
|
2232
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
2233
|
+
readonly ok: Schema.Literal<true>;
|
|
2234
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2235
|
+
}>, Schema.Struct<{
|
|
2236
|
+
readonly ok: Schema.Literal<false>;
|
|
2237
|
+
readonly error: typeof CacheError;
|
|
2238
|
+
}>]>;
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
export {};
|