apps 0.0.1-beta.8 → 0.0.1-beta.81
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 +25 -22
- package/framework-reference.json +1 -1
- package/js/{chunk-72JNVHPK.js → chunk-4NFSABEA.js} +4 -3
- package/js/chunk-5FHWNLCI.js +88 -0
- package/js/chunk-5WGONRKQ.js +426 -0
- package/js/{chunk-M3B3DE4K.js → chunk-74YVXBKY.js} +463 -218
- package/js/chunk-CDXQDN7W.js +92 -0
- package/js/{chunk-UK573G7W.js → chunk-EOPQ727L.js} +87 -51
- package/js/{chunk-27F7W2LG.js → chunk-H2CJWXA3.js} +2 -2
- package/js/{chunk-JU7VHODU.js → chunk-H72MEDMN.js} +65 -10
- package/js/{chunk-FL2QR3XW.js → chunk-HJG4RBYM.js} +333 -69
- package/js/chunk-I6Q7ZPKJ.js +49 -0
- package/js/{chunk-CDL5PM2Q.js → chunk-IFJU5SYQ.js} +19082 -18402
- package/js/{chunk-VFZKSM3T.js → chunk-JPEUKEV4.js} +3 -3
- package/js/{chunk-5T57N25Q.js → chunk-KGCTYL2S.js} +511 -63
- package/js/{chunk-KUMBKVJD.js → chunk-KLYSEHUD.js} +2 -2
- package/js/{chunk-WLE7WX2U.js → chunk-NG56RPCA.js} +2348 -472
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/{chunk-Z5M2LQOZ.js → chunk-OY47QPQY.js} +67 -55
- package/js/{chunk-57RKNWL2.js → chunk-PD6I2SDG.js} +4 -4
- package/js/chunk-PL5KOEZD.js +334 -0
- package/js/chunk-Q4IZAUIF.js +285 -0
- package/js/{chunk-RJDDBDSN.js → chunk-QWQM3CLH.js} +795 -177
- package/js/{chunk-RFVIONFX.js → chunk-TE25A7D6.js} +123 -44
- package/js/{chunk-IJX4CYZO.js → chunk-TUMGL2OC.js} +228 -264
- package/js/chunk-W6XCQAXP.js +171 -0
- package/js/chunk-WCGAO3X5.js +348 -0
- package/js/{chunk-IPI4MFSN.js → chunk-XBG7HHXC.js} +2 -2
- package/js/{chunk-CMYUWAX7.js → chunk-YQUG4CES.js} +126 -31
- package/js/{chunk-UESPOTUI.js → chunk-Z2SWTZCF.js} +861 -231
- package/js/client.js +142 -94
- package/js/contracts.js +127 -26
- package/js/effect.js +19 -19
- package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
- package/js/graphql.js +50 -40
- package/js/host.js +83 -58
- package/js/index.js +131 -46
- package/js/mcp/effect.js +23 -21
- package/js/mcp/stdio.js +44 -34
- package/js/mcp.js +76 -53
- package/js/openapi.js +4071 -1357
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -3
- package/js/skills.js +208 -81
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -4
- package/js/ui/serving.js +8604 -223
- package/package.json +3 -4
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +18 -0
- package/types/app-cache/src/index.d.ts +34 -2
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +7 -3
- package/types/apps/src/contracts/cache.d.ts +20 -0
- package/types/apps/src/contracts/context.d.ts +19 -11
- package/types/apps/src/contracts/elicitation.d.ts +23 -7
- package/types/apps/src/contracts/events.d.ts +93 -0
- package/types/apps/src/contracts/failure.d.ts +30 -1
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +649 -17
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/mcp.d.ts +80 -10
- package/types/apps/src/contracts/network.d.ts +120 -0
- package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
- package/types/apps/src/contracts/openapi.d.ts +41 -9
- package/types/apps/src/contracts/operations.d.ts +8 -4
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +733 -81
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/2.d.ts +69 -26
- package/types/apps/src/contracts/protocols/3.d.ts +133 -33
- package/types/apps/src/contracts/protocols/4.d.ts +122 -45
- package/types/apps/src/contracts/protocols/5.d.ts +157 -47
- package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
- package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
- package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
- package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
- package/types/apps/src/contracts/protocols/current.d.ts +3843 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
- package/types/apps/src/contracts/provider-error.d.ts +9 -0
- package/types/apps/src/contracts/provider.d.ts +90 -6
- package/types/apps/src/contracts/skills.d.ts +50 -13
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui.d.ts +37 -3
- package/types/apps/src/contracts/workflows.d.ts +6 -0
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +4 -3
- package/types/apps/src/implementation/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 +28 -1
- package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
- package/types/apps/src/implementation/elicitation.d.ts +18 -15
- package/types/apps/src/implementation/events.d.ts +59 -0
- package/types/apps/src/implementation/failure-detail.d.ts +25 -3
- package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/input-problems.d.ts +6 -2
- package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-call.d.ts +6 -5
- package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
- package/types/apps/src/implementation/mcp-client.d.ts +17 -9
- package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +20 -9
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +26 -6
- package/types/apps/src/implementation/openapi-document.d.ts +46 -19
- package/types/apps/src/implementation/openapi-names.d.ts +9 -4
- package/types/apps/src/implementation/openapi-request.d.ts +10 -2
- package/types/apps/src/implementation/openapi-source.d.ts +18 -0
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +17 -2
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/placement.d.ts +60 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +18 -3
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +11 -13
- package/types/apps/src/implementation/router.d.ts +16 -5
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
- package/types/apps/src/implementation/schema.d.ts +90 -10
- package/types/apps/src/implementation/skills.d.ts +18 -24
- package/types/apps/src/implementation/sql.d.ts +71 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +2 -2
- package/types/apps/src/implementation/ui-document.d.ts +5 -0
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +28 -9
- package/types/apps/src/implementation/ui-watch.d.ts +1 -1
- package/types/apps/src/implementation/upstream-error.d.ts +7 -0
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/implementation/workflows.d.ts +1 -1
- package/types/apps/src/index.d.ts +55 -13
- package/types/apps/src/mcp.d.ts +20 -1
- package/types/apps/src/openapi.d.ts +1 -1
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +10 -8
- package/types/apps/src/ui-serving.d.ts +1 -1
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/browser-operations.d.ts +2 -2
- package/types/telemetry/src/browser.d.ts +8 -3
- package/types/telemetry/src/config.d.ts +2 -2
- package/types/telemetry/src/index.d.ts +2 -1
- package/types/telemetry/src/layer.d.ts +10 -4
- package/types/telemetry/src/measurements.d.ts +1 -1
- package/types/telemetry/src/ownership.d.ts +60 -0
- package/types/telemetry/src/recorded-failure.d.ts +29 -0
- package/types/telemetry/src/relay.d.ts +16 -6
- package/types/telemetry/src/span-attributes.d.ts +17 -1
- package/types/telemetry/src/transport.d.ts +8 -1
- package/types/utils/src/api-error.d.ts +55 -0
- package/types/utils/src/connection-failure.d.ts +33 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-MKWZPDR6.js +0 -63
- package/js/chunk-N7YDVXYJ.js +0 -186
- package/js/chunk-NKLWZJLE.js +0 -172
- package/js/chunk-OCYUEU47.js +0 -224
- package/js/chunk-PJJ24GU7.js +0 -877
- package/js/chunk-PZB6T6KU.js +0 -19
- package/js/chunk-R3EV5FTO.js +0 -97
- package/js/chunk-YXQHV65J.js +0 -242
- package/js/chunk-ZQINWV4W.js +0 -630
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -18
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/storage.d.ts +0 -15
|
@@ -0,0 +1,3843 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The host protocol this framework speaks: every message that crosses between a host and an app
|
|
3
|
+
* bundle built with it. Its number is `frameworkProtocol` in `../protocol-version.ts`.
|
|
4
|
+
*
|
|
5
|
+
* This module is live. The framework and the SDK read the current boundary from here, through
|
|
6
|
+
* `../host.ts`. `bun run check` records it in `packages/apps/protocols/<frameworkProtocol>.json` and
|
|
7
|
+
* checks that it stays compatible with every released protocol in `released.ts`: a host that speaks
|
|
8
|
+
* this module must keep running every bundle a released protocol retained. A change that no longer
|
|
9
|
+
* does so is a break: freeze this module's previous content as `<frameworkProtocol>.ts`, raise the
|
|
10
|
+
* number, and give the host an adapter for the frozen one. See notes/apps-publishing.md.
|
|
11
|
+
*
|
|
12
|
+
* The frozen protocol modules beside this one are records of released boundaries. Nothing here
|
|
13
|
+
* imports them, so a change here never edits a released protocol.
|
|
14
|
+
*/
|
|
15
|
+
import { Schema } from "effect";
|
|
16
|
+
import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
|
|
17
|
+
import { OpenapiResponseError } from "../api-response-error.js";
|
|
18
|
+
import { ElicitationFailed } from "../elicitation.js";
|
|
19
|
+
import { ProviderError } from "../provider-error.js";
|
|
20
|
+
import { WorkflowFailure } from "../workflows.js";
|
|
21
|
+
declare const McpError_base: Schema.Class<McpError, Schema.TaggedStruct<"McpError", {
|
|
22
|
+
readonly phase: Schema.Literals<readonly ["connect", "discover", "call", "schema", "transport"]>;
|
|
23
|
+
readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "timeout", "invalid_input"]>;
|
|
24
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
25
|
+
/** The JSON-RPC error the server stated. */
|
|
26
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
27
|
+
readonly code: Schema.Union<readonly [Schema.Int, Schema.String]>;
|
|
28
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
29
|
+
}>>;
|
|
30
|
+
/**
|
|
31
|
+
* The refused request carried the session ID the server issued at initialization, so a 404 reads
|
|
32
|
+
* as a session the server may have lost. Chooses the explanation only; the host never decides from
|
|
33
|
+
* it whose side a failure is on.
|
|
34
|
+
*/
|
|
35
|
+
readonly session: Schema.optional<Schema.Literal<true>>;
|
|
36
|
+
}>, import("effect/Cause").YieldableError>;
|
|
37
|
+
/** An MCP failure as it crosses the host boundary. Apps throw the author-facing class from `apps/mcp`. */
|
|
38
|
+
export declare class McpError extends McpError_base {
|
|
39
|
+
}
|
|
40
|
+
declare const SkillLoadFailed_base: Schema.Class<SkillLoadFailed, Schema.TaggedStruct<"SkillLoadFailed", {
|
|
41
|
+
readonly reason: Schema.Literals<readonly ["source", "request", "rate_limited", "document", "limit", "changed", "encoding"]>;
|
|
42
|
+
readonly message: Schema.optional<Schema.String>;
|
|
43
|
+
readonly status: Schema.optional<Schema.Int>;
|
|
44
|
+
/** What the service's answer points to as missing: the repository, or the branch or tag. */
|
|
45
|
+
readonly missing: Schema.optional<Schema.Literals<readonly ["repository", "ref"]>>;
|
|
46
|
+
}>, import("effect/Cause").YieldableError>;
|
|
47
|
+
/** A skill loader failure as it crosses the host boundary. Apps throw the author-facing class from `apps/skills`. */
|
|
48
|
+
export declare class SkillLoadFailed extends SkillLoadFailed_base {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Where a provider's credentials may be sent: an exact host, `host:port`, or `*.` followed by a
|
|
52
|
+
* domain, matching exactly one more label. Lowercase, without a scheme or path.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CredentialHost: Schema.String;
|
|
55
|
+
/** Serializable authentication declarations interpreted by the trusted host. */
|
|
56
|
+
export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
57
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
58
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
59
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
60
|
+
readonly in: Schema.Literal<"header">;
|
|
61
|
+
readonly name: Schema.String;
|
|
62
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
63
|
+
readonly field: Schema.NonEmptyString;
|
|
64
|
+
}>, Schema.Struct<{
|
|
65
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
66
|
+
readonly field: Schema.NonEmptyString;
|
|
67
|
+
}>]>>;
|
|
68
|
+
}>]>>;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
readonly in: Schema.Literal<"query">;
|
|
71
|
+
readonly name: Schema.NonEmptyString;
|
|
72
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
73
|
+
readonly field: Schema.NonEmptyString;
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
76
|
+
readonly field: Schema.NonEmptyString;
|
|
77
|
+
}>]>>;
|
|
78
|
+
}>]>>;
|
|
79
|
+
}>]>>>;
|
|
80
|
+
readonly type: Schema.Literal<"secrets">;
|
|
81
|
+
readonly label: Schema.String;
|
|
82
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
83
|
+
}>, Schema.Struct<{
|
|
84
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
85
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
86
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
87
|
+
readonly in: Schema.Literal<"header">;
|
|
88
|
+
readonly name: Schema.String;
|
|
89
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
90
|
+
readonly field: Schema.NonEmptyString;
|
|
91
|
+
}>, Schema.Struct<{
|
|
92
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
93
|
+
readonly field: Schema.NonEmptyString;
|
|
94
|
+
}>]>>;
|
|
95
|
+
}>]>>;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly in: Schema.Literal<"query">;
|
|
98
|
+
readonly name: Schema.NonEmptyString;
|
|
99
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
100
|
+
readonly field: Schema.NonEmptyString;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
103
|
+
readonly field: Schema.NonEmptyString;
|
|
104
|
+
}>]>>;
|
|
105
|
+
}>]>>;
|
|
106
|
+
}>]>>>;
|
|
107
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
108
|
+
readonly discover: Schema.String;
|
|
109
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
110
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
111
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
112
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
113
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
114
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
115
|
+
readonly path: Schema.String;
|
|
116
|
+
}>>;
|
|
117
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
118
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
119
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
120
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
121
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
122
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
123
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
124
|
+
}>, Schema.Struct<{
|
|
125
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
126
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
127
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
128
|
+
readonly in: Schema.Literal<"header">;
|
|
129
|
+
readonly name: Schema.String;
|
|
130
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
131
|
+
readonly field: Schema.NonEmptyString;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
134
|
+
readonly field: Schema.NonEmptyString;
|
|
135
|
+
}>]>>;
|
|
136
|
+
}>]>>;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly in: Schema.Literal<"query">;
|
|
139
|
+
readonly name: Schema.NonEmptyString;
|
|
140
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
141
|
+
readonly field: Schema.NonEmptyString;
|
|
142
|
+
}>, Schema.Struct<{
|
|
143
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
144
|
+
readonly field: Schema.NonEmptyString;
|
|
145
|
+
}>]>>;
|
|
146
|
+
}>]>>;
|
|
147
|
+
}>]>>>;
|
|
148
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
149
|
+
readonly authorizationUrl: Schema.String;
|
|
150
|
+
readonly tokenUrl: Schema.String;
|
|
151
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
152
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
153
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
154
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
155
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
156
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
157
|
+
readonly path: Schema.String;
|
|
158
|
+
}>>;
|
|
159
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
160
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
161
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
162
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
163
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
164
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
165
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
166
|
+
}>, Schema.Struct<{
|
|
167
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
168
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
169
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
170
|
+
readonly in: Schema.Literal<"header">;
|
|
171
|
+
readonly name: Schema.String;
|
|
172
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
173
|
+
readonly field: Schema.NonEmptyString;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
176
|
+
readonly field: Schema.NonEmptyString;
|
|
177
|
+
}>]>>;
|
|
178
|
+
}>]>>;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly in: Schema.Literal<"query">;
|
|
181
|
+
readonly name: Schema.NonEmptyString;
|
|
182
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
183
|
+
readonly field: Schema.NonEmptyString;
|
|
184
|
+
}>, Schema.Struct<{
|
|
185
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
186
|
+
readonly field: Schema.NonEmptyString;
|
|
187
|
+
}>]>>;
|
|
188
|
+
}>]>>;
|
|
189
|
+
}>]>>>;
|
|
190
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
191
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
192
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
193
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
194
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
195
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
196
|
+
readonly discover: Schema.String;
|
|
197
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
198
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
199
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
200
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
201
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
202
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
203
|
+
}>, Schema.Struct<{
|
|
204
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
205
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
206
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
207
|
+
readonly in: Schema.Literal<"header">;
|
|
208
|
+
readonly name: Schema.String;
|
|
209
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
210
|
+
readonly field: Schema.NonEmptyString;
|
|
211
|
+
}>, Schema.Struct<{
|
|
212
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
213
|
+
readonly field: Schema.NonEmptyString;
|
|
214
|
+
}>]>>;
|
|
215
|
+
}>]>>;
|
|
216
|
+
}>, Schema.Struct<{
|
|
217
|
+
readonly in: Schema.Literal<"query">;
|
|
218
|
+
readonly name: Schema.NonEmptyString;
|
|
219
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
220
|
+
readonly field: Schema.NonEmptyString;
|
|
221
|
+
}>, Schema.Struct<{
|
|
222
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
223
|
+
readonly field: Schema.NonEmptyString;
|
|
224
|
+
}>]>>;
|
|
225
|
+
}>]>>;
|
|
226
|
+
}>]>>>;
|
|
227
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
228
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
229
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
230
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
231
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
232
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
233
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
234
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
235
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
236
|
+
readonly tokenUrl: Schema.String;
|
|
237
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
238
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
239
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
240
|
+
}>]>;
|
|
241
|
+
/** A credential-free provider declaration with the hosts its credentials may be sent to. */
|
|
242
|
+
export declare const DeclaredProvider: Schema.Struct<{
|
|
243
|
+
readonly name: Schema.NonEmptyString;
|
|
244
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
245
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
246
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
247
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
248
|
+
readonly in: Schema.Literal<"header">;
|
|
249
|
+
readonly name: Schema.String;
|
|
250
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
251
|
+
readonly field: Schema.NonEmptyString;
|
|
252
|
+
}>, Schema.Struct<{
|
|
253
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
254
|
+
readonly field: Schema.NonEmptyString;
|
|
255
|
+
}>]>>;
|
|
256
|
+
}>]>>;
|
|
257
|
+
}>, Schema.Struct<{
|
|
258
|
+
readonly in: Schema.Literal<"query">;
|
|
259
|
+
readonly name: Schema.NonEmptyString;
|
|
260
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
261
|
+
readonly field: Schema.NonEmptyString;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
264
|
+
readonly field: Schema.NonEmptyString;
|
|
265
|
+
}>]>>;
|
|
266
|
+
}>]>>;
|
|
267
|
+
}>]>>>;
|
|
268
|
+
readonly type: Schema.Literal<"secrets">;
|
|
269
|
+
readonly label: Schema.String;
|
|
270
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
273
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
274
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
275
|
+
readonly in: Schema.Literal<"header">;
|
|
276
|
+
readonly name: Schema.String;
|
|
277
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
278
|
+
readonly field: Schema.NonEmptyString;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
281
|
+
readonly field: Schema.NonEmptyString;
|
|
282
|
+
}>]>>;
|
|
283
|
+
}>]>>;
|
|
284
|
+
}>, Schema.Struct<{
|
|
285
|
+
readonly in: Schema.Literal<"query">;
|
|
286
|
+
readonly name: Schema.NonEmptyString;
|
|
287
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
288
|
+
readonly field: Schema.NonEmptyString;
|
|
289
|
+
}>, Schema.Struct<{
|
|
290
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
291
|
+
readonly field: Schema.NonEmptyString;
|
|
292
|
+
}>]>>;
|
|
293
|
+
}>]>>;
|
|
294
|
+
}>]>>>;
|
|
295
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
296
|
+
readonly discover: Schema.String;
|
|
297
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
298
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
299
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
300
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
301
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
302
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
303
|
+
readonly path: Schema.String;
|
|
304
|
+
}>>;
|
|
305
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
306
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
307
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
308
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
309
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
310
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
311
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
312
|
+
}>, Schema.Struct<{
|
|
313
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
314
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
315
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
316
|
+
readonly in: Schema.Literal<"header">;
|
|
317
|
+
readonly name: Schema.String;
|
|
318
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
319
|
+
readonly field: Schema.NonEmptyString;
|
|
320
|
+
}>, Schema.Struct<{
|
|
321
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
322
|
+
readonly field: Schema.NonEmptyString;
|
|
323
|
+
}>]>>;
|
|
324
|
+
}>]>>;
|
|
325
|
+
}>, Schema.Struct<{
|
|
326
|
+
readonly in: Schema.Literal<"query">;
|
|
327
|
+
readonly name: Schema.NonEmptyString;
|
|
328
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
329
|
+
readonly field: Schema.NonEmptyString;
|
|
330
|
+
}>, Schema.Struct<{
|
|
331
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
332
|
+
readonly field: Schema.NonEmptyString;
|
|
333
|
+
}>]>>;
|
|
334
|
+
}>]>>;
|
|
335
|
+
}>]>>>;
|
|
336
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
337
|
+
readonly authorizationUrl: Schema.String;
|
|
338
|
+
readonly tokenUrl: Schema.String;
|
|
339
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
340
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
341
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
342
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
343
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
344
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
345
|
+
readonly path: Schema.String;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
348
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
349
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
350
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
351
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
352
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
353
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
354
|
+
}>, Schema.Struct<{
|
|
355
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
356
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
357
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
358
|
+
readonly in: Schema.Literal<"header">;
|
|
359
|
+
readonly name: Schema.String;
|
|
360
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
361
|
+
readonly field: Schema.NonEmptyString;
|
|
362
|
+
}>, Schema.Struct<{
|
|
363
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
364
|
+
readonly field: Schema.NonEmptyString;
|
|
365
|
+
}>]>>;
|
|
366
|
+
}>]>>;
|
|
367
|
+
}>, Schema.Struct<{
|
|
368
|
+
readonly in: Schema.Literal<"query">;
|
|
369
|
+
readonly name: Schema.NonEmptyString;
|
|
370
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
371
|
+
readonly field: Schema.NonEmptyString;
|
|
372
|
+
}>, Schema.Struct<{
|
|
373
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
374
|
+
readonly field: Schema.NonEmptyString;
|
|
375
|
+
}>]>>;
|
|
376
|
+
}>]>>;
|
|
377
|
+
}>]>>>;
|
|
378
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
379
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
380
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
381
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
382
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
383
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
384
|
+
readonly discover: Schema.String;
|
|
385
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
386
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
387
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
388
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
389
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
390
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
391
|
+
}>, Schema.Struct<{
|
|
392
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
393
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
394
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
395
|
+
readonly in: Schema.Literal<"header">;
|
|
396
|
+
readonly name: Schema.String;
|
|
397
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
398
|
+
readonly field: Schema.NonEmptyString;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
401
|
+
readonly field: Schema.NonEmptyString;
|
|
402
|
+
}>]>>;
|
|
403
|
+
}>]>>;
|
|
404
|
+
}>, Schema.Struct<{
|
|
405
|
+
readonly in: Schema.Literal<"query">;
|
|
406
|
+
readonly name: Schema.NonEmptyString;
|
|
407
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
408
|
+
readonly field: Schema.NonEmptyString;
|
|
409
|
+
}>, Schema.Struct<{
|
|
410
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
411
|
+
readonly field: Schema.NonEmptyString;
|
|
412
|
+
}>]>>;
|
|
413
|
+
}>]>>;
|
|
414
|
+
}>]>>>;
|
|
415
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
416
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
417
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
418
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
419
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
420
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
421
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
422
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
423
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
424
|
+
readonly tokenUrl: Schema.String;
|
|
425
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
426
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
427
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
428
|
+
}>]>>;
|
|
429
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
430
|
+
}>;
|
|
431
|
+
/** Credential-free provider declaration; content matching remains host policy. */
|
|
432
|
+
export type DeclaredProvider = typeof DeclaredProvider.Type;
|
|
433
|
+
/** Account slots available without binding accounts or evaluating the app factory. */
|
|
434
|
+
export declare const DeclaredRequirements: Schema.Struct<{
|
|
435
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
436
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
437
|
+
readonly skills: Schema.Literal<true>;
|
|
438
|
+
/** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
|
|
439
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
440
|
+
/** Accepts skills sources and reports whether the catalog includes a live loader. */
|
|
441
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
442
|
+
/** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
|
|
443
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
444
|
+
}>>;
|
|
445
|
+
/**
|
|
446
|
+
* The document database an app of protocol 9 or earlier declared. Apps of this protocol declare
|
|
447
|
+
* `sql` instead; the field remains so requirements read from older retained builds keep their meaning.
|
|
448
|
+
*/
|
|
449
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
450
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
451
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
452
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
453
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
454
|
+
readonly references: Schema.optional<Schema.String>;
|
|
455
|
+
}>>;
|
|
456
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
457
|
+
readonly name: Schema.String;
|
|
458
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
459
|
+
}>>;
|
|
460
|
+
}>>>;
|
|
461
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
462
|
+
readonly definition: Schema.Struct<{
|
|
463
|
+
readonly name: Schema.NonEmptyString;
|
|
464
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
465
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
466
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
467
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
468
|
+
readonly in: Schema.Literal<"header">;
|
|
469
|
+
readonly name: Schema.String;
|
|
470
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
471
|
+
readonly field: Schema.NonEmptyString;
|
|
472
|
+
}>, Schema.Struct<{
|
|
473
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
474
|
+
readonly field: Schema.NonEmptyString;
|
|
475
|
+
}>]>>;
|
|
476
|
+
}>]>>;
|
|
477
|
+
}>, Schema.Struct<{
|
|
478
|
+
readonly in: Schema.Literal<"query">;
|
|
479
|
+
readonly name: Schema.NonEmptyString;
|
|
480
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
481
|
+
readonly field: Schema.NonEmptyString;
|
|
482
|
+
}>, Schema.Struct<{
|
|
483
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
484
|
+
readonly field: Schema.NonEmptyString;
|
|
485
|
+
}>]>>;
|
|
486
|
+
}>]>>;
|
|
487
|
+
}>]>>>;
|
|
488
|
+
readonly type: Schema.Literal<"secrets">;
|
|
489
|
+
readonly label: Schema.String;
|
|
490
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
491
|
+
}>, Schema.Struct<{
|
|
492
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
493
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
494
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
495
|
+
readonly in: Schema.Literal<"header">;
|
|
496
|
+
readonly name: Schema.String;
|
|
497
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
498
|
+
readonly field: Schema.NonEmptyString;
|
|
499
|
+
}>, Schema.Struct<{
|
|
500
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
501
|
+
readonly field: Schema.NonEmptyString;
|
|
502
|
+
}>]>>;
|
|
503
|
+
}>]>>;
|
|
504
|
+
}>, Schema.Struct<{
|
|
505
|
+
readonly in: Schema.Literal<"query">;
|
|
506
|
+
readonly name: Schema.NonEmptyString;
|
|
507
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
508
|
+
readonly field: Schema.NonEmptyString;
|
|
509
|
+
}>, Schema.Struct<{
|
|
510
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
511
|
+
readonly field: Schema.NonEmptyString;
|
|
512
|
+
}>]>>;
|
|
513
|
+
}>]>>;
|
|
514
|
+
}>]>>>;
|
|
515
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
516
|
+
readonly discover: Schema.String;
|
|
517
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
518
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
519
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
520
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
521
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
522
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
523
|
+
readonly path: Schema.String;
|
|
524
|
+
}>>;
|
|
525
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
526
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
527
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
528
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
529
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
530
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
531
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
532
|
+
}>, Schema.Struct<{
|
|
533
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
534
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
535
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
536
|
+
readonly in: Schema.Literal<"header">;
|
|
537
|
+
readonly name: Schema.String;
|
|
538
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
539
|
+
readonly field: Schema.NonEmptyString;
|
|
540
|
+
}>, Schema.Struct<{
|
|
541
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
542
|
+
readonly field: Schema.NonEmptyString;
|
|
543
|
+
}>]>>;
|
|
544
|
+
}>]>>;
|
|
545
|
+
}>, Schema.Struct<{
|
|
546
|
+
readonly in: Schema.Literal<"query">;
|
|
547
|
+
readonly name: Schema.NonEmptyString;
|
|
548
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
549
|
+
readonly field: Schema.NonEmptyString;
|
|
550
|
+
}>, Schema.Struct<{
|
|
551
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
552
|
+
readonly field: Schema.NonEmptyString;
|
|
553
|
+
}>]>>;
|
|
554
|
+
}>]>>;
|
|
555
|
+
}>]>>>;
|
|
556
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
557
|
+
readonly authorizationUrl: Schema.String;
|
|
558
|
+
readonly tokenUrl: Schema.String;
|
|
559
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
560
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
561
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
562
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
563
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
564
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
565
|
+
readonly path: Schema.String;
|
|
566
|
+
}>>;
|
|
567
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
568
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
569
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
570
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
571
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
572
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
573
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
574
|
+
}>, Schema.Struct<{
|
|
575
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
576
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
577
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
578
|
+
readonly in: Schema.Literal<"header">;
|
|
579
|
+
readonly name: Schema.String;
|
|
580
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
581
|
+
readonly field: Schema.NonEmptyString;
|
|
582
|
+
}>, Schema.Struct<{
|
|
583
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
584
|
+
readonly field: Schema.NonEmptyString;
|
|
585
|
+
}>]>>;
|
|
586
|
+
}>]>>;
|
|
587
|
+
}>, Schema.Struct<{
|
|
588
|
+
readonly in: Schema.Literal<"query">;
|
|
589
|
+
readonly name: Schema.NonEmptyString;
|
|
590
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
591
|
+
readonly field: Schema.NonEmptyString;
|
|
592
|
+
}>, Schema.Struct<{
|
|
593
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
594
|
+
readonly field: Schema.NonEmptyString;
|
|
595
|
+
}>]>>;
|
|
596
|
+
}>]>>;
|
|
597
|
+
}>]>>>;
|
|
598
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
599
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
600
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
601
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
602
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
603
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
604
|
+
readonly discover: Schema.String;
|
|
605
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<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 type: Schema.Literal<"oauth2">;
|
|
611
|
+
}>, Schema.Struct<{
|
|
612
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
613
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
614
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
615
|
+
readonly in: Schema.Literal<"header">;
|
|
616
|
+
readonly name: Schema.String;
|
|
617
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
618
|
+
readonly field: Schema.NonEmptyString;
|
|
619
|
+
}>, Schema.Struct<{
|
|
620
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
621
|
+
readonly field: Schema.NonEmptyString;
|
|
622
|
+
}>]>>;
|
|
623
|
+
}>]>>;
|
|
624
|
+
}>, Schema.Struct<{
|
|
625
|
+
readonly in: Schema.Literal<"query">;
|
|
626
|
+
readonly name: Schema.NonEmptyString;
|
|
627
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
628
|
+
readonly field: Schema.NonEmptyString;
|
|
629
|
+
}>, Schema.Struct<{
|
|
630
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
631
|
+
readonly field: Schema.NonEmptyString;
|
|
632
|
+
}>]>>;
|
|
633
|
+
}>]>>;
|
|
634
|
+
}>]>>>;
|
|
635
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
636
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
637
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
638
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
639
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
640
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
641
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
642
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
643
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
644
|
+
readonly tokenUrl: Schema.String;
|
|
645
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
646
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
647
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
648
|
+
}>]>>;
|
|
649
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
650
|
+
}>;
|
|
651
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
652
|
+
/**
|
|
653
|
+
* The slot's provider defines an account check. Kept beside the definition, not in it, so
|
|
654
|
+
* adding or editing a check never changes the provider's identity.
|
|
655
|
+
*/
|
|
656
|
+
readonly health: Schema.optionalKey<Schema.Literal<true>>;
|
|
657
|
+
}>>;
|
|
658
|
+
/** The build has SQL files in `migrations/` and owns a raw SQLite database. */
|
|
659
|
+
readonly sql: Schema.optionalKey<Schema.Literal<true>>;
|
|
660
|
+
/** The events the app declares, so a host lists them without evaluating the app. */
|
|
661
|
+
readonly events: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
662
|
+
readonly description: Schema.String;
|
|
663
|
+
readonly filters: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
664
|
+
readonly payload: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
665
|
+
}>>>;
|
|
666
|
+
}>;
|
|
667
|
+
/** Parsed declared account requirements. */
|
|
668
|
+
export type DeclaredRequirements = typeof DeclaredRequirements.Type;
|
|
669
|
+
/**
|
|
670
|
+
* Host-resolved credentials for one stable saved account. Never a request DTO. When the provider
|
|
671
|
+
* declares hosts, its secret string fields are sealed handles, not values. The provider carries
|
|
672
|
+
* the hosts and placements granted to this account.
|
|
673
|
+
*/
|
|
674
|
+
export declare const ResolvedAccount: Schema.Struct<{
|
|
675
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
676
|
+
readonly provider: Schema.Struct<{
|
|
677
|
+
readonly name: Schema.NonEmptyString;
|
|
678
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
679
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
680
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
681
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
682
|
+
readonly in: Schema.Literal<"header">;
|
|
683
|
+
readonly name: Schema.String;
|
|
684
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
685
|
+
readonly field: Schema.NonEmptyString;
|
|
686
|
+
}>, Schema.Struct<{
|
|
687
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
688
|
+
readonly field: Schema.NonEmptyString;
|
|
689
|
+
}>]>>;
|
|
690
|
+
}>]>>;
|
|
691
|
+
}>, Schema.Struct<{
|
|
692
|
+
readonly in: Schema.Literal<"query">;
|
|
693
|
+
readonly name: Schema.NonEmptyString;
|
|
694
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
695
|
+
readonly field: Schema.NonEmptyString;
|
|
696
|
+
}>, Schema.Struct<{
|
|
697
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
698
|
+
readonly field: Schema.NonEmptyString;
|
|
699
|
+
}>]>>;
|
|
700
|
+
}>]>>;
|
|
701
|
+
}>]>>>;
|
|
702
|
+
readonly type: Schema.Literal<"secrets">;
|
|
703
|
+
readonly label: Schema.String;
|
|
704
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
705
|
+
}>, Schema.Struct<{
|
|
706
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
707
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
708
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
709
|
+
readonly in: Schema.Literal<"header">;
|
|
710
|
+
readonly name: Schema.String;
|
|
711
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
712
|
+
readonly field: Schema.NonEmptyString;
|
|
713
|
+
}>, Schema.Struct<{
|
|
714
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
715
|
+
readonly field: Schema.NonEmptyString;
|
|
716
|
+
}>]>>;
|
|
717
|
+
}>]>>;
|
|
718
|
+
}>, Schema.Struct<{
|
|
719
|
+
readonly in: Schema.Literal<"query">;
|
|
720
|
+
readonly name: Schema.NonEmptyString;
|
|
721
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
722
|
+
readonly field: Schema.NonEmptyString;
|
|
723
|
+
}>, Schema.Struct<{
|
|
724
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
725
|
+
readonly field: Schema.NonEmptyString;
|
|
726
|
+
}>]>>;
|
|
727
|
+
}>]>>;
|
|
728
|
+
}>]>>>;
|
|
729
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
730
|
+
readonly discover: Schema.String;
|
|
731
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
732
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
733
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
734
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
735
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
736
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
737
|
+
readonly path: Schema.String;
|
|
738
|
+
}>>;
|
|
739
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
740
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
741
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
742
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
743
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
744
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
745
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
746
|
+
}>, Schema.Struct<{
|
|
747
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
748
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
749
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
750
|
+
readonly in: Schema.Literal<"header">;
|
|
751
|
+
readonly name: Schema.String;
|
|
752
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
753
|
+
readonly field: Schema.NonEmptyString;
|
|
754
|
+
}>, Schema.Struct<{
|
|
755
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
756
|
+
readonly field: Schema.NonEmptyString;
|
|
757
|
+
}>]>>;
|
|
758
|
+
}>]>>;
|
|
759
|
+
}>, Schema.Struct<{
|
|
760
|
+
readonly in: Schema.Literal<"query">;
|
|
761
|
+
readonly name: Schema.NonEmptyString;
|
|
762
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
763
|
+
readonly field: Schema.NonEmptyString;
|
|
764
|
+
}>, Schema.Struct<{
|
|
765
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
766
|
+
readonly field: Schema.NonEmptyString;
|
|
767
|
+
}>]>>;
|
|
768
|
+
}>]>>;
|
|
769
|
+
}>]>>>;
|
|
770
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
771
|
+
readonly authorizationUrl: Schema.String;
|
|
772
|
+
readonly tokenUrl: Schema.String;
|
|
773
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
774
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
775
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
776
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
777
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
778
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
779
|
+
readonly path: Schema.String;
|
|
780
|
+
}>>;
|
|
781
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
782
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
783
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
784
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
785
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
786
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
787
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
788
|
+
}>, Schema.Struct<{
|
|
789
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
790
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
791
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
792
|
+
readonly in: Schema.Literal<"header">;
|
|
793
|
+
readonly name: Schema.String;
|
|
794
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
795
|
+
readonly field: Schema.NonEmptyString;
|
|
796
|
+
}>, Schema.Struct<{
|
|
797
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
798
|
+
readonly field: Schema.NonEmptyString;
|
|
799
|
+
}>]>>;
|
|
800
|
+
}>]>>;
|
|
801
|
+
}>, Schema.Struct<{
|
|
802
|
+
readonly in: Schema.Literal<"query">;
|
|
803
|
+
readonly name: Schema.NonEmptyString;
|
|
804
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
805
|
+
readonly field: Schema.NonEmptyString;
|
|
806
|
+
}>, Schema.Struct<{
|
|
807
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
808
|
+
readonly field: Schema.NonEmptyString;
|
|
809
|
+
}>]>>;
|
|
810
|
+
}>]>>;
|
|
811
|
+
}>]>>>;
|
|
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 authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
820
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
821
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
822
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
823
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
824
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
825
|
+
}>, Schema.Struct<{
|
|
826
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
827
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
828
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
829
|
+
readonly in: Schema.Literal<"header">;
|
|
830
|
+
readonly name: Schema.String;
|
|
831
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
832
|
+
readonly field: Schema.NonEmptyString;
|
|
833
|
+
}>, Schema.Struct<{
|
|
834
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
835
|
+
readonly field: Schema.NonEmptyString;
|
|
836
|
+
}>]>>;
|
|
837
|
+
}>]>>;
|
|
838
|
+
}>, Schema.Struct<{
|
|
839
|
+
readonly in: Schema.Literal<"query">;
|
|
840
|
+
readonly name: Schema.NonEmptyString;
|
|
841
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
842
|
+
readonly field: Schema.NonEmptyString;
|
|
843
|
+
}>, Schema.Struct<{
|
|
844
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
845
|
+
readonly field: Schema.NonEmptyString;
|
|
846
|
+
}>]>>;
|
|
847
|
+
}>]>>;
|
|
848
|
+
}>]>>>;
|
|
849
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
850
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
851
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
852
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
853
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
854
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
855
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
856
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
857
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
858
|
+
readonly tokenUrl: Schema.String;
|
|
859
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
860
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
861
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
862
|
+
}>]>>;
|
|
863
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
864
|
+
}>;
|
|
865
|
+
readonly method: Schema.NonEmptyString;
|
|
866
|
+
/**
|
|
867
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
868
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
869
|
+
*/
|
|
870
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
871
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
872
|
+
}>;
|
|
873
|
+
/** Parsed host account binding. */
|
|
874
|
+
export type ResolvedAccount = typeof ResolvedAccount.Type;
|
|
875
|
+
/** Full saved selection resolved by the trusted caller; [] differs from a missing slot. */
|
|
876
|
+
export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
877
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
878
|
+
readonly provider: Schema.Struct<{
|
|
879
|
+
readonly name: Schema.NonEmptyString;
|
|
880
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
881
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
882
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
883
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
884
|
+
readonly in: Schema.Literal<"header">;
|
|
885
|
+
readonly name: Schema.String;
|
|
886
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
887
|
+
readonly field: Schema.NonEmptyString;
|
|
888
|
+
}>, Schema.Struct<{
|
|
889
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
890
|
+
readonly field: Schema.NonEmptyString;
|
|
891
|
+
}>]>>;
|
|
892
|
+
}>]>>;
|
|
893
|
+
}>, Schema.Struct<{
|
|
894
|
+
readonly in: Schema.Literal<"query">;
|
|
895
|
+
readonly name: Schema.NonEmptyString;
|
|
896
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
897
|
+
readonly field: Schema.NonEmptyString;
|
|
898
|
+
}>, Schema.Struct<{
|
|
899
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
900
|
+
readonly field: Schema.NonEmptyString;
|
|
901
|
+
}>]>>;
|
|
902
|
+
}>]>>;
|
|
903
|
+
}>]>>>;
|
|
904
|
+
readonly type: Schema.Literal<"secrets">;
|
|
905
|
+
readonly label: Schema.String;
|
|
906
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
907
|
+
}>, Schema.Struct<{
|
|
908
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
909
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
910
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
911
|
+
readonly in: Schema.Literal<"header">;
|
|
912
|
+
readonly name: Schema.String;
|
|
913
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
914
|
+
readonly field: Schema.NonEmptyString;
|
|
915
|
+
}>, Schema.Struct<{
|
|
916
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
917
|
+
readonly field: Schema.NonEmptyString;
|
|
918
|
+
}>]>>;
|
|
919
|
+
}>]>>;
|
|
920
|
+
}>, Schema.Struct<{
|
|
921
|
+
readonly in: Schema.Literal<"query">;
|
|
922
|
+
readonly name: Schema.NonEmptyString;
|
|
923
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
924
|
+
readonly field: Schema.NonEmptyString;
|
|
925
|
+
}>, Schema.Struct<{
|
|
926
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
927
|
+
readonly field: Schema.NonEmptyString;
|
|
928
|
+
}>]>>;
|
|
929
|
+
}>]>>;
|
|
930
|
+
}>]>>>;
|
|
931
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
932
|
+
readonly discover: Schema.String;
|
|
933
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
934
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
935
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
936
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
937
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
938
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
939
|
+
readonly path: Schema.String;
|
|
940
|
+
}>>;
|
|
941
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
942
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
943
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
944
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
945
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
946
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
947
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
948
|
+
}>, Schema.Struct<{
|
|
949
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
950
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
951
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
952
|
+
readonly in: Schema.Literal<"header">;
|
|
953
|
+
readonly name: Schema.String;
|
|
954
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
955
|
+
readonly field: Schema.NonEmptyString;
|
|
956
|
+
}>, Schema.Struct<{
|
|
957
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
958
|
+
readonly field: Schema.NonEmptyString;
|
|
959
|
+
}>]>>;
|
|
960
|
+
}>]>>;
|
|
961
|
+
}>, Schema.Struct<{
|
|
962
|
+
readonly in: Schema.Literal<"query">;
|
|
963
|
+
readonly name: Schema.NonEmptyString;
|
|
964
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
965
|
+
readonly field: Schema.NonEmptyString;
|
|
966
|
+
}>, Schema.Struct<{
|
|
967
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
968
|
+
readonly field: Schema.NonEmptyString;
|
|
969
|
+
}>]>>;
|
|
970
|
+
}>]>>;
|
|
971
|
+
}>]>>>;
|
|
972
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
973
|
+
readonly authorizationUrl: Schema.String;
|
|
974
|
+
readonly tokenUrl: Schema.String;
|
|
975
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
976
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
977
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
978
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
979
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
980
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
981
|
+
readonly path: Schema.String;
|
|
982
|
+
}>>;
|
|
983
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
984
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
985
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
986
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
987
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
988
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
989
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
990
|
+
}>, Schema.Struct<{
|
|
991
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
992
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
993
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
994
|
+
readonly in: Schema.Literal<"header">;
|
|
995
|
+
readonly name: Schema.String;
|
|
996
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
997
|
+
readonly field: Schema.NonEmptyString;
|
|
998
|
+
}>, Schema.Struct<{
|
|
999
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1000
|
+
readonly field: Schema.NonEmptyString;
|
|
1001
|
+
}>]>>;
|
|
1002
|
+
}>]>>;
|
|
1003
|
+
}>, Schema.Struct<{
|
|
1004
|
+
readonly in: Schema.Literal<"query">;
|
|
1005
|
+
readonly name: Schema.NonEmptyString;
|
|
1006
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1007
|
+
readonly field: Schema.NonEmptyString;
|
|
1008
|
+
}>, Schema.Struct<{
|
|
1009
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1010
|
+
readonly field: Schema.NonEmptyString;
|
|
1011
|
+
}>]>>;
|
|
1012
|
+
}>]>>;
|
|
1013
|
+
}>]>>>;
|
|
1014
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1015
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1016
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1017
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1018
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1019
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1020
|
+
readonly discover: Schema.String;
|
|
1021
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
1022
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1023
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1024
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1025
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1026
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1027
|
+
}>, Schema.Struct<{
|
|
1028
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1029
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1030
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1031
|
+
readonly in: Schema.Literal<"header">;
|
|
1032
|
+
readonly name: Schema.String;
|
|
1033
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1034
|
+
readonly field: Schema.NonEmptyString;
|
|
1035
|
+
}>, Schema.Struct<{
|
|
1036
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1037
|
+
readonly field: Schema.NonEmptyString;
|
|
1038
|
+
}>]>>;
|
|
1039
|
+
}>]>>;
|
|
1040
|
+
}>, Schema.Struct<{
|
|
1041
|
+
readonly in: Schema.Literal<"query">;
|
|
1042
|
+
readonly name: Schema.NonEmptyString;
|
|
1043
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1044
|
+
readonly field: Schema.NonEmptyString;
|
|
1045
|
+
}>, Schema.Struct<{
|
|
1046
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1047
|
+
readonly field: Schema.NonEmptyString;
|
|
1048
|
+
}>]>>;
|
|
1049
|
+
}>]>>;
|
|
1050
|
+
}>]>>>;
|
|
1051
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1052
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1053
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1054
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1055
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1056
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
1057
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1058
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1059
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1060
|
+
readonly tokenUrl: Schema.String;
|
|
1061
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1062
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1063
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1064
|
+
}>]>>;
|
|
1065
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1066
|
+
}>;
|
|
1067
|
+
readonly method: Schema.NonEmptyString;
|
|
1068
|
+
/**
|
|
1069
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1070
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1071
|
+
*/
|
|
1072
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1073
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1074
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1075
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1076
|
+
readonly provider: Schema.Struct<{
|
|
1077
|
+
readonly name: Schema.NonEmptyString;
|
|
1078
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1079
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1080
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1081
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1082
|
+
readonly in: Schema.Literal<"header">;
|
|
1083
|
+
readonly name: Schema.String;
|
|
1084
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1085
|
+
readonly field: Schema.NonEmptyString;
|
|
1086
|
+
}>, Schema.Struct<{
|
|
1087
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1088
|
+
readonly field: Schema.NonEmptyString;
|
|
1089
|
+
}>]>>;
|
|
1090
|
+
}>]>>;
|
|
1091
|
+
}>, Schema.Struct<{
|
|
1092
|
+
readonly in: Schema.Literal<"query">;
|
|
1093
|
+
readonly name: Schema.NonEmptyString;
|
|
1094
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1095
|
+
readonly field: Schema.NonEmptyString;
|
|
1096
|
+
}>, Schema.Struct<{
|
|
1097
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1098
|
+
readonly field: Schema.NonEmptyString;
|
|
1099
|
+
}>]>>;
|
|
1100
|
+
}>]>>;
|
|
1101
|
+
}>]>>>;
|
|
1102
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1103
|
+
readonly label: Schema.String;
|
|
1104
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1105
|
+
}>, Schema.Struct<{
|
|
1106
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1107
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1108
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1109
|
+
readonly in: Schema.Literal<"header">;
|
|
1110
|
+
readonly name: Schema.String;
|
|
1111
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1112
|
+
readonly field: Schema.NonEmptyString;
|
|
1113
|
+
}>, Schema.Struct<{
|
|
1114
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1115
|
+
readonly field: Schema.NonEmptyString;
|
|
1116
|
+
}>]>>;
|
|
1117
|
+
}>]>>;
|
|
1118
|
+
}>, Schema.Struct<{
|
|
1119
|
+
readonly in: Schema.Literal<"query">;
|
|
1120
|
+
readonly name: Schema.NonEmptyString;
|
|
1121
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1122
|
+
readonly field: Schema.NonEmptyString;
|
|
1123
|
+
}>, Schema.Struct<{
|
|
1124
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1125
|
+
readonly field: Schema.NonEmptyString;
|
|
1126
|
+
}>]>>;
|
|
1127
|
+
}>]>>;
|
|
1128
|
+
}>]>>>;
|
|
1129
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1130
|
+
readonly discover: Schema.String;
|
|
1131
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
1132
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1133
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1134
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1135
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1136
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1137
|
+
readonly path: Schema.String;
|
|
1138
|
+
}>>;
|
|
1139
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1140
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1141
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1142
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1143
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1144
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1145
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1146
|
+
}>, Schema.Struct<{
|
|
1147
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1148
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1149
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1150
|
+
readonly in: Schema.Literal<"header">;
|
|
1151
|
+
readonly name: Schema.String;
|
|
1152
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1153
|
+
readonly field: Schema.NonEmptyString;
|
|
1154
|
+
}>, Schema.Struct<{
|
|
1155
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1156
|
+
readonly field: Schema.NonEmptyString;
|
|
1157
|
+
}>]>>;
|
|
1158
|
+
}>]>>;
|
|
1159
|
+
}>, Schema.Struct<{
|
|
1160
|
+
readonly in: Schema.Literal<"query">;
|
|
1161
|
+
readonly name: Schema.NonEmptyString;
|
|
1162
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1163
|
+
readonly field: Schema.NonEmptyString;
|
|
1164
|
+
}>, Schema.Struct<{
|
|
1165
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1166
|
+
readonly field: Schema.NonEmptyString;
|
|
1167
|
+
}>]>>;
|
|
1168
|
+
}>]>>;
|
|
1169
|
+
}>]>>>;
|
|
1170
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1171
|
+
readonly authorizationUrl: Schema.String;
|
|
1172
|
+
readonly tokenUrl: Schema.String;
|
|
1173
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1174
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1175
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1176
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1177
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
1178
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1179
|
+
readonly path: Schema.String;
|
|
1180
|
+
}>>;
|
|
1181
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1182
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1183
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1184
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1185
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1186
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1187
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1188
|
+
}>, Schema.Struct<{
|
|
1189
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1190
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1191
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1192
|
+
readonly in: Schema.Literal<"header">;
|
|
1193
|
+
readonly name: Schema.String;
|
|
1194
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1195
|
+
readonly field: Schema.NonEmptyString;
|
|
1196
|
+
}>, Schema.Struct<{
|
|
1197
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1198
|
+
readonly field: Schema.NonEmptyString;
|
|
1199
|
+
}>]>>;
|
|
1200
|
+
}>]>>;
|
|
1201
|
+
}>, Schema.Struct<{
|
|
1202
|
+
readonly in: Schema.Literal<"query">;
|
|
1203
|
+
readonly name: Schema.NonEmptyString;
|
|
1204
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1205
|
+
readonly field: Schema.NonEmptyString;
|
|
1206
|
+
}>, Schema.Struct<{
|
|
1207
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1208
|
+
readonly field: Schema.NonEmptyString;
|
|
1209
|
+
}>]>>;
|
|
1210
|
+
}>]>>;
|
|
1211
|
+
}>]>>>;
|
|
1212
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1213
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1214
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1215
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1216
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1217
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1218
|
+
readonly discover: Schema.String;
|
|
1219
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
1220
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1221
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1222
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1223
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1224
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1225
|
+
}>, Schema.Struct<{
|
|
1226
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1227
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1228
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1229
|
+
readonly in: Schema.Literal<"header">;
|
|
1230
|
+
readonly name: Schema.String;
|
|
1231
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1232
|
+
readonly field: Schema.NonEmptyString;
|
|
1233
|
+
}>, Schema.Struct<{
|
|
1234
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1235
|
+
readonly field: Schema.NonEmptyString;
|
|
1236
|
+
}>]>>;
|
|
1237
|
+
}>]>>;
|
|
1238
|
+
}>, Schema.Struct<{
|
|
1239
|
+
readonly in: Schema.Literal<"query">;
|
|
1240
|
+
readonly name: Schema.NonEmptyString;
|
|
1241
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1242
|
+
readonly field: Schema.NonEmptyString;
|
|
1243
|
+
}>, Schema.Struct<{
|
|
1244
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1245
|
+
readonly field: Schema.NonEmptyString;
|
|
1246
|
+
}>]>>;
|
|
1247
|
+
}>]>>;
|
|
1248
|
+
}>]>>>;
|
|
1249
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1250
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
1251
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1252
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1253
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1254
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
1255
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1256
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1257
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
1258
|
+
readonly tokenUrl: Schema.String;
|
|
1259
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1260
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1261
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1262
|
+
}>]>>;
|
|
1263
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1264
|
+
}>;
|
|
1265
|
+
readonly method: Schema.NonEmptyString;
|
|
1266
|
+
/**
|
|
1267
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
1268
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
1269
|
+
*/
|
|
1270
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
1271
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1272
|
+
}>>]>>;
|
|
1273
|
+
/** Parsed host selections, kept redacted until native account binding. */
|
|
1274
|
+
export type ResolvedAccounts = typeof ResolvedAccounts.Type;
|
|
1275
|
+
/** Trusted approval for one decoded call. Never accepted in public command JSON. */
|
|
1276
|
+
export declare const TrustedToolApproval: Schema.Struct<{
|
|
1277
|
+
readonly tool: Schema.NonEmptyString;
|
|
1278
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1279
|
+
}>;
|
|
1280
|
+
export type TrustedToolApproval = typeof TrustedToolApproval.Type;
|
|
1281
|
+
/** Absolute Unix time in milliseconds; remote hosts enforce it inside the operation transaction. */
|
|
1282
|
+
export declare const InvocationDeadline: Schema.Finite;
|
|
1283
|
+
/**
|
|
1284
|
+
* Serializable live tool metadata; executable callbacks never cross this boundary. `name` is the
|
|
1285
|
+
* tool's full dotted path. `router` is the path of the router that owns it, omitted at the root.
|
|
1286
|
+
* `readOnly` marks a query; a tool without it is a mutation.
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const HostedTool: Schema.Struct<{
|
|
1289
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1290
|
+
readonly name: Schema.NonEmptyString;
|
|
1291
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1292
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1293
|
+
readonly milliseconds: Schema.Int;
|
|
1294
|
+
}>, Schema.Struct<{
|
|
1295
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1296
|
+
readonly calendar: Schema.Struct<{
|
|
1297
|
+
readonly expression: Schema.NonEmptyString;
|
|
1298
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1299
|
+
}>;
|
|
1300
|
+
}>]>;
|
|
1301
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1302
|
+
}>>>;
|
|
1303
|
+
readonly name: Schema.NonEmptyString;
|
|
1304
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1305
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1306
|
+
readonly description: Schema.String;
|
|
1307
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1308
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1309
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1310
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1311
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1312
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1313
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1314
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1315
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1316
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1317
|
+
}>>;
|
|
1318
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1319
|
+
}>;
|
|
1320
|
+
/** Parsed live tool description. */
|
|
1321
|
+
export type HostedTool = typeof HostedTool.Type;
|
|
1322
|
+
/** Catalog entry without schemas. Browsing lists these and reads one full tool on selection. */
|
|
1323
|
+
export declare const HostedToolSummary: Schema.Struct<{
|
|
1324
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1325
|
+
readonly name: Schema.NonEmptyString;
|
|
1326
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1327
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1328
|
+
readonly milliseconds: Schema.Int;
|
|
1329
|
+
}>, Schema.Struct<{
|
|
1330
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1331
|
+
readonly calendar: Schema.Struct<{
|
|
1332
|
+
readonly expression: Schema.NonEmptyString;
|
|
1333
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1334
|
+
}>;
|
|
1335
|
+
}>]>;
|
|
1336
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1337
|
+
}>>>;
|
|
1338
|
+
readonly name: Schema.NonEmptyString;
|
|
1339
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1340
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1341
|
+
readonly description: Schema.String;
|
|
1342
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1343
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1344
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1345
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1346
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1347
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1348
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1349
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1350
|
+
}>>;
|
|
1351
|
+
}>;
|
|
1352
|
+
export type HostedToolSummary = typeof HostedToolSummary.Type;
|
|
1353
|
+
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
1354
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
1355
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
1356
|
+
code: Schema.optionalKey<Schema.String>;
|
|
1357
|
+
message: Schema.optionalKey<Schema.String>;
|
|
1358
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
1359
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1360
|
+
/**
|
|
1361
|
+
* The module or declared capability shape could not be hosted. The detail names what the app
|
|
1362
|
+
* declared wrongly; declarations bind no accounts.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare class HostDeclarationInvalid extends HostDeclarationInvalid_base {
|
|
1365
|
+
}
|
|
1366
|
+
declare const HostEvaluationFailed_base: Schema.Class<HostEvaluationFailed, Schema.TaggedStruct<"HostEvaluationFailed", {
|
|
1367
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
1368
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
1369
|
+
code: Schema.optionalKey<Schema.String>;
|
|
1370
|
+
message: Schema.optionalKey<Schema.String>;
|
|
1371
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
1372
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1373
|
+
/** Fresh app evaluation failed before calling a tool. */
|
|
1374
|
+
export declare class HostEvaluationFailed extends HostEvaluationFailed_base {
|
|
1375
|
+
}
|
|
1376
|
+
/** Why one router's tools could not be read. The rest of the app's catalog is unaffected. */
|
|
1377
|
+
export declare const HostRouterError: Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>;
|
|
1378
|
+
export type HostRouterError = typeof HostRouterError.Type;
|
|
1379
|
+
/**
|
|
1380
|
+
* One router in a live catalog. `path` is "" for the app's root router. `skill` names the skill
|
|
1381
|
+
* that carries this router's instructions. A router with `error` lists none of its tools.
|
|
1382
|
+
*/
|
|
1383
|
+
export declare const HostedRouter: Schema.Struct<{
|
|
1384
|
+
readonly path: Schema.String;
|
|
1385
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1386
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1387
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1388
|
+
readonly src: Schema.NonEmptyString;
|
|
1389
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
1390
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1391
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
1392
|
+
}>>>;
|
|
1393
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1394
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1395
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
1396
|
+
}>;
|
|
1397
|
+
export type HostedRouter = typeof HostedRouter.Type;
|
|
1398
|
+
/** A live evaluation's tools and the routers that group them. */
|
|
1399
|
+
export declare const HostedCatalog: Schema.Struct<{
|
|
1400
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
1401
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1402
|
+
readonly name: Schema.NonEmptyString;
|
|
1403
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1404
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1405
|
+
readonly milliseconds: Schema.Int;
|
|
1406
|
+
}>, Schema.Struct<{
|
|
1407
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1408
|
+
readonly calendar: Schema.Struct<{
|
|
1409
|
+
readonly expression: Schema.NonEmptyString;
|
|
1410
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1411
|
+
}>;
|
|
1412
|
+
}>]>;
|
|
1413
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1414
|
+
}>>>;
|
|
1415
|
+
readonly name: Schema.NonEmptyString;
|
|
1416
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1417
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1418
|
+
readonly description: Schema.String;
|
|
1419
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1420
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1421
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1422
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1423
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1424
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1425
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1426
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1427
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1428
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1429
|
+
}>>;
|
|
1430
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1431
|
+
}>>;
|
|
1432
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
1433
|
+
readonly path: Schema.String;
|
|
1434
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1435
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1436
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1437
|
+
readonly src: Schema.NonEmptyString;
|
|
1438
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
1439
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1440
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
1441
|
+
}>>>;
|
|
1442
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1443
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1444
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
1445
|
+
}>>;
|
|
1446
|
+
}>;
|
|
1447
|
+
export type HostedCatalog = typeof HostedCatalog.Type;
|
|
1448
|
+
/** A catalog without tool schemas. Browsing lists these and reads one full tool on selection. */
|
|
1449
|
+
export declare const HostedCatalogSummary: Schema.Struct<{
|
|
1450
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
1451
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1452
|
+
readonly name: Schema.NonEmptyString;
|
|
1453
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
1454
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1455
|
+
readonly milliseconds: Schema.Int;
|
|
1456
|
+
}>, Schema.Struct<{
|
|
1457
|
+
readonly kind: Schema.Literal<"cron">;
|
|
1458
|
+
readonly calendar: Schema.Struct<{
|
|
1459
|
+
readonly expression: Schema.NonEmptyString;
|
|
1460
|
+
readonly timezone: Schema.NonEmptyString;
|
|
1461
|
+
}>;
|
|
1462
|
+
}>]>;
|
|
1463
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1464
|
+
}>>>;
|
|
1465
|
+
readonly name: Schema.NonEmptyString;
|
|
1466
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1467
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1468
|
+
readonly description: Schema.String;
|
|
1469
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
1470
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1471
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
1472
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1473
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
1474
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
1475
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
1476
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
1477
|
+
}>>;
|
|
1478
|
+
}>>;
|
|
1479
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
1480
|
+
readonly path: Schema.String;
|
|
1481
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
1482
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
1483
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1484
|
+
readonly src: Schema.NonEmptyString;
|
|
1485
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
1486
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1487
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
1488
|
+
}>>>;
|
|
1489
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
1490
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1491
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
1492
|
+
}>>;
|
|
1493
|
+
}>;
|
|
1494
|
+
export type HostedCatalogSummary = typeof HostedCatalogSummary.Type;
|
|
1495
|
+
/**
|
|
1496
|
+
* A skill catalog and whether any of it came from `dynamicSkills`. Without a live loader the
|
|
1497
|
+
* catalog is determined by the build and its evaluation inputs; with one it reflects a publisher.
|
|
1498
|
+
* `cached` says the loader read through the app cache, so the cache's freshness and invalidation
|
|
1499
|
+
* govern its publisher reads.
|
|
1500
|
+
*/
|
|
1501
|
+
export declare const SkillSources: Schema.Struct<{
|
|
1502
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
1503
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1504
|
+
readonly path: Schema.NonEmptyString;
|
|
1505
|
+
readonly content: Schema.String;
|
|
1506
|
+
}>>;
|
|
1507
|
+
readonly name: Schema.NonEmptyString;
|
|
1508
|
+
readonly description: Schema.String;
|
|
1509
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1510
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1511
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1512
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1513
|
+
}>>;
|
|
1514
|
+
readonly dynamic: Schema.Boolean;
|
|
1515
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
1516
|
+
}>;
|
|
1517
|
+
export type SkillSources = typeof SkillSources.Type;
|
|
1518
|
+
/** Either response shape; `dynamic` is unknown for builds that predate skillSources. */
|
|
1519
|
+
export declare const SkillCatalogResponse: Schema.Union<readonly [Schema.Struct<{
|
|
1520
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
1521
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1522
|
+
readonly path: Schema.NonEmptyString;
|
|
1523
|
+
readonly content: Schema.String;
|
|
1524
|
+
}>>;
|
|
1525
|
+
readonly name: Schema.NonEmptyString;
|
|
1526
|
+
readonly description: Schema.String;
|
|
1527
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1528
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1529
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1530
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1531
|
+
}>>;
|
|
1532
|
+
readonly dynamic: Schema.Boolean;
|
|
1533
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
1534
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
1535
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1536
|
+
readonly path: Schema.NonEmptyString;
|
|
1537
|
+
readonly content: Schema.String;
|
|
1538
|
+
}>>;
|
|
1539
|
+
readonly name: Schema.NonEmptyString;
|
|
1540
|
+
readonly description: Schema.String;
|
|
1541
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
1542
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
1543
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1544
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
1545
|
+
}>>]>;
|
|
1546
|
+
/** Whether a tool reads or writes. */
|
|
1547
|
+
export declare const ToolKind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
1548
|
+
/**
|
|
1549
|
+
* Check one account for one declared slot. The invocation supplies only that slot, as a single
|
|
1550
|
+
* account even when the slot takes many. The app factory is not evaluated.
|
|
1551
|
+
*/
|
|
1552
|
+
export declare const AccountCheckCommand: Schema.Struct<{
|
|
1553
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
1554
|
+
readonly requirement: Schema.NonEmptyString;
|
|
1555
|
+
}>;
|
|
1556
|
+
export type AccountCheckCommand = typeof AccountCheckCommand.Type;
|
|
1557
|
+
/** Apply the build's pending SQL migrations. No accounts are bound and the app is not evaluated. */
|
|
1558
|
+
export declare const MigrateCommand: Schema.Struct<{
|
|
1559
|
+
readonly operation: Schema.Literal<"migrate">;
|
|
1560
|
+
}>;
|
|
1561
|
+
export type MigrateCommand = typeof MigrateCommand.Type;
|
|
1562
|
+
/** The migrations this command applied, oldest first, by position and file path. Empty when the database was current. */
|
|
1563
|
+
export declare const MigrateResult: Schema.$Array<Schema.Struct<{
|
|
1564
|
+
readonly id: Schema.Int;
|
|
1565
|
+
readonly name: Schema.NonEmptyString;
|
|
1566
|
+
}>>;
|
|
1567
|
+
export type MigrateResult = typeof MigrateResult.Type;
|
|
1568
|
+
/** Framework-owned dispatch, independent of app-authored HTTP routing. */
|
|
1569
|
+
export declare const HostRequest: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1570
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1571
|
+
}>, Schema.Struct<{
|
|
1572
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1573
|
+
readonly name: Schema.NonEmptyString;
|
|
1574
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1575
|
+
}>, Schema.Struct<{
|
|
1576
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1577
|
+
readonly name: Schema.NonEmptyString;
|
|
1578
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1579
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1580
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1581
|
+
}>, Schema.Struct<{
|
|
1582
|
+
readonly name: Schema.NonEmptyString;
|
|
1583
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1584
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1585
|
+
readonly callbackUrl: Schema.String;
|
|
1586
|
+
readonly secret: Schema.String;
|
|
1587
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1588
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1589
|
+
}>, Schema.Struct<{
|
|
1590
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1591
|
+
readonly name: Schema.NonEmptyString;
|
|
1592
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1593
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1594
|
+
readonly callbackUrl: Schema.String;
|
|
1595
|
+
readonly secret: Schema.String;
|
|
1596
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1597
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1598
|
+
}>, Schema.Struct<{
|
|
1599
|
+
readonly name: Schema.NonEmptyString;
|
|
1600
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1601
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1602
|
+
readonly callbackUrl: Schema.String;
|
|
1603
|
+
readonly secret: Schema.String;
|
|
1604
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1605
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1606
|
+
}>, Schema.Struct<{
|
|
1607
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1608
|
+
readonly name: Schema.NonEmptyString;
|
|
1609
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1610
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1611
|
+
readonly callbackUrl: Schema.String;
|
|
1612
|
+
readonly secret: Schema.String;
|
|
1613
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1614
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1615
|
+
}>, Schema.Struct<{
|
|
1616
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1617
|
+
readonly request: Schema.Struct<{
|
|
1618
|
+
readonly url: Schema.String;
|
|
1619
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1620
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1621
|
+
readonly body: Schema.String;
|
|
1622
|
+
}>;
|
|
1623
|
+
readonly name: Schema.NonEmptyString;
|
|
1624
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1625
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1626
|
+
readonly callbackUrl: Schema.String;
|
|
1627
|
+
readonly secret: Schema.String;
|
|
1628
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1629
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1630
|
+
}>]>, Schema.Struct<{
|
|
1631
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1632
|
+
}>, Schema.Struct<{
|
|
1633
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1634
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1635
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1636
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1637
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1640
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1641
|
+
*/
|
|
1642
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1643
|
+
}>, Schema.Struct<{
|
|
1644
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1645
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1646
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1647
|
+
}>, Schema.Struct<{
|
|
1648
|
+
readonly operation: Schema.Literal<"query">;
|
|
1649
|
+
readonly name: Schema.NonEmptyString;
|
|
1650
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1651
|
+
}>, Schema.Struct<{
|
|
1652
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1653
|
+
readonly name: Schema.NonEmptyString;
|
|
1654
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1655
|
+
}>, Schema.Struct<{
|
|
1656
|
+
readonly operation: Schema.Literal<"call">;
|
|
1657
|
+
readonly tool: Schema.NonEmptyString;
|
|
1658
|
+
/**
|
|
1659
|
+
* The caller's claim; the bundle rejects a call whose tool has the other kind. The host omits
|
|
1660
|
+
* it for a tool its catalog does not list, and then opens storage for writing.
|
|
1661
|
+
*/
|
|
1662
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
1663
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1664
|
+
}>, Schema.Struct<{
|
|
1665
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
1666
|
+
readonly requirement: Schema.NonEmptyString;
|
|
1667
|
+
}>, Schema.Struct<{
|
|
1668
|
+
readonly operation: Schema.Literal<"migrate">;
|
|
1669
|
+
}>]>;
|
|
1670
|
+
/** Parsed portable dispatch request. */
|
|
1671
|
+
export type HostRequest = typeof HostRequest.Type;
|
|
1672
|
+
declare const HostRequestInvalid_base: Schema.Class<HostRequestInvalid, Schema.TaggedStruct<"HostRequestInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1673
|
+
/** The dispatch request did not match the protocol. */
|
|
1674
|
+
export declare class HostRequestInvalid extends HostRequestInvalid_base {
|
|
1675
|
+
}
|
|
1676
|
+
declare const HostAccountsInvalid_base: Schema.Class<HostAccountsInvalid, Schema.TaggedStruct<"HostAccountsInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1677
|
+
/** Host-supplied accounts did not satisfy the declared slots or native method schemas. */
|
|
1678
|
+
export declare class HostAccountsInvalid extends HostAccountsInvalid_base {
|
|
1679
|
+
}
|
|
1680
|
+
declare const HostOperationNotFound_base: Schema.Class<HostOperationNotFound, Schema.TaggedStruct<"HostOperationNotFound", {}>, import("effect/Cause").YieldableError>;
|
|
1681
|
+
/** No query or mutation matched the requested name. */
|
|
1682
|
+
export declare class HostOperationNotFound extends HostOperationNotFound_base {
|
|
1683
|
+
}
|
|
1684
|
+
declare const HostOperationFailed_base: Schema.Class<HostOperationFailed, Schema.TaggedStruct<"HostOperationFailed", {
|
|
1685
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
1686
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
1687
|
+
code: Schema.optionalKey<Schema.String>;
|
|
1688
|
+
message: Schema.optionalKey<Schema.String>;
|
|
1689
|
+
fields: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>>;
|
|
1690
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1691
|
+
/** An app operation failed. Carries the app's own error name, code, fields and bounded message. */
|
|
1692
|
+
export declare class HostOperationFailed extends HostOperationFailed_base {
|
|
1693
|
+
}
|
|
1694
|
+
declare const HostToolNotFound_base: Schema.Class<HostToolNotFound, Schema.TaggedStruct<"HostToolNotFound", {}>, import("effect/Cause").YieldableError>;
|
|
1695
|
+
/** The freshly evaluated catalog did not contain the requested tool. */
|
|
1696
|
+
export declare class HostToolNotFound extends HostToolNotFound_base {
|
|
1697
|
+
}
|
|
1698
|
+
declare const HostKindMismatch_base: Schema.Class<HostKindMismatch, Schema.TaggedStruct<"HostKindMismatch", {
|
|
1699
|
+
readonly tool: Schema.NonEmptyString;
|
|
1700
|
+
readonly requested: Schema.Literals<readonly ["query", "mutation"]>;
|
|
1701
|
+
readonly actual: Schema.Literals<readonly ["query", "mutation"]>;
|
|
1702
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1703
|
+
/** The tool exists but is a query called as a mutation, or the reverse. Nothing ran. */
|
|
1704
|
+
export declare class HostKindMismatch extends HostKindMismatch_base {
|
|
1705
|
+
}
|
|
1706
|
+
/** One failing input location and its expected shape; never the supplied value. */
|
|
1707
|
+
export declare const InputProblem: Schema.String;
|
|
1708
|
+
/** Input decoding reports at most this many problems. */
|
|
1709
|
+
export declare const maxInputProblems = 10;
|
|
1710
|
+
declare const HostInputInvalid_base: Schema.Class<HostInputInvalid, Schema.TaggedStruct<"HostInputInvalid", {
|
|
1711
|
+
readonly problems: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1712
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1713
|
+
/** Native input decoding failed; supplied values are omitted. Builds before problems were reported send none. */
|
|
1714
|
+
export declare class HostInputInvalid extends HostInputInvalid_base {
|
|
1715
|
+
}
|
|
1716
|
+
declare const HostToolBlocked_base: Schema.Class<HostToolBlocked, Schema.TaggedStruct<"HostToolBlocked", {}>, import("effect/Cause").YieldableError>;
|
|
1717
|
+
/** The tool's approval policy blocked this call before its tool body ran. */
|
|
1718
|
+
export declare class HostToolBlocked extends HostToolBlocked_base {
|
|
1719
|
+
}
|
|
1720
|
+
declare const HostToolApprovalRequired_base: Schema.Class<HostToolApprovalRequired, Schema.TaggedStruct<"HostToolApprovalRequired", {
|
|
1721
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1722
|
+
readonly elicitation: Schema.Struct<{
|
|
1723
|
+
readonly requestedSchema: Schema.Struct<{
|
|
1724
|
+
readonly type: Schema.Literal<"object">;
|
|
1725
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Never>;
|
|
1726
|
+
}>;
|
|
1727
|
+
readonly mode: Schema.Literal<"form">;
|
|
1728
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1729
|
+
readonly message: Schema.String;
|
|
1730
|
+
}>;
|
|
1731
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1732
|
+
/** Policy elicitation plus decoded input. No tool body ran; the host owns delivery and resumption. */
|
|
1733
|
+
export declare class HostToolApprovalRequired extends HostToolApprovalRequired_base {
|
|
1734
|
+
}
|
|
1735
|
+
declare const HostToolPolicyFailed_base: Schema.Class<HostToolPolicyFailed, Schema.TaggedStruct<"HostToolPolicyFailed", {}>, import("effect/Cause").YieldableError>;
|
|
1736
|
+
/** The tool's approval policy failed or returned an invalid decision. Author failures remain private. */
|
|
1737
|
+
export declare class HostToolPolicyFailed extends HostToolPolicyFailed_base {
|
|
1738
|
+
}
|
|
1739
|
+
declare const HostOutputInvalid_base: Schema.Class<HostOutputInvalid, Schema.TaggedStruct<"HostOutputInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
1740
|
+
/** A tool result was not JSON; the result is never included in the error. */
|
|
1741
|
+
export declare class HostOutputInvalid extends HostOutputInvalid_base {
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Safe error envelope. Author failures carry only their name, code, scalar fields and bounded
|
|
1745
|
+
* message with account secrets replaced; no stack or cause value is serialized.
|
|
1746
|
+
*/
|
|
1747
|
+
export declare const HostError: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
1748
|
+
/** Expected host failures. */
|
|
1749
|
+
export type HostError = typeof HostError.Type;
|
|
1750
|
+
/** Portable response envelope; callers parse the success value for their operation. */
|
|
1751
|
+
export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
1752
|
+
readonly ok: Schema.Literal<true>;
|
|
1753
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1754
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1755
|
+
/** The occurrences this invocation emitted, kept only because it succeeded. */
|
|
1756
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1757
|
+
readonly name: Schema.String;
|
|
1758
|
+
readonly id: Schema.String;
|
|
1759
|
+
readonly occurredAt: Schema.Int;
|
|
1760
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1761
|
+
readonly filters: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
1762
|
+
readonly account: Schema.NullOr<Schema.brand<Schema.String, "acc">>;
|
|
1763
|
+
}>>>;
|
|
1764
|
+
}>, Schema.Struct<{
|
|
1765
|
+
readonly ok: Schema.Literal<false>;
|
|
1766
|
+
readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
1767
|
+
}>]>;
|
|
1768
|
+
/** Parsed response envelope. */
|
|
1769
|
+
export type HostResponse = typeof HostResponse.Type;
|
|
1770
|
+
/**
|
|
1771
|
+
* The JSON body the host sends to a bundle's generated server entry. The entry is compiled into
|
|
1772
|
+
* the retained build, so this shape is part of the protocol too.
|
|
1773
|
+
*/
|
|
1774
|
+
export declare const HostInvocation: Schema.Struct<{
|
|
1775
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1776
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
1777
|
+
}>, Schema.Struct<{
|
|
1778
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
1779
|
+
readonly name: Schema.NonEmptyString;
|
|
1780
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1781
|
+
}>, Schema.Struct<{
|
|
1782
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
1783
|
+
readonly name: Schema.NonEmptyString;
|
|
1784
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1785
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1786
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
1787
|
+
}>, Schema.Struct<{
|
|
1788
|
+
readonly name: Schema.NonEmptyString;
|
|
1789
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1790
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1791
|
+
readonly callbackUrl: Schema.String;
|
|
1792
|
+
readonly secret: Schema.String;
|
|
1793
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1794
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
1795
|
+
}>, Schema.Struct<{
|
|
1796
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1797
|
+
readonly name: Schema.NonEmptyString;
|
|
1798
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1799
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1800
|
+
readonly callbackUrl: Schema.String;
|
|
1801
|
+
readonly secret: Schema.String;
|
|
1802
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1803
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
1804
|
+
}>, Schema.Struct<{
|
|
1805
|
+
readonly name: Schema.NonEmptyString;
|
|
1806
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1807
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1808
|
+
readonly callbackUrl: Schema.String;
|
|
1809
|
+
readonly secret: Schema.String;
|
|
1810
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1811
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
1812
|
+
}>, Schema.Struct<{
|
|
1813
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1814
|
+
readonly name: Schema.NonEmptyString;
|
|
1815
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1816
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1817
|
+
readonly callbackUrl: Schema.String;
|
|
1818
|
+
readonly secret: Schema.String;
|
|
1819
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1820
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
1821
|
+
}>, Schema.Struct<{
|
|
1822
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1823
|
+
readonly request: Schema.Struct<{
|
|
1824
|
+
readonly url: Schema.String;
|
|
1825
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
1826
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
1827
|
+
readonly body: Schema.String;
|
|
1828
|
+
}>;
|
|
1829
|
+
readonly name: Schema.NonEmptyString;
|
|
1830
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
1831
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
1832
|
+
readonly callbackUrl: Schema.String;
|
|
1833
|
+
readonly secret: Schema.String;
|
|
1834
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1835
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
1836
|
+
}>]>, Schema.Struct<{
|
|
1837
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
1838
|
+
}>, Schema.Struct<{
|
|
1839
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
1840
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
1841
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
1842
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
1843
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1844
|
+
/**
|
|
1845
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
1846
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
1847
|
+
*/
|
|
1848
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
1849
|
+
}>, Schema.Struct<{
|
|
1850
|
+
readonly operation: Schema.Literal<"skills">;
|
|
1851
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
1852
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
1853
|
+
}>, Schema.Struct<{
|
|
1854
|
+
readonly operation: Schema.Literal<"query">;
|
|
1855
|
+
readonly name: Schema.NonEmptyString;
|
|
1856
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1857
|
+
}>, Schema.Struct<{
|
|
1858
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
1859
|
+
readonly name: Schema.NonEmptyString;
|
|
1860
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1861
|
+
}>, Schema.Struct<{
|
|
1862
|
+
readonly operation: Schema.Literal<"call">;
|
|
1863
|
+
readonly tool: Schema.NonEmptyString;
|
|
1864
|
+
/**
|
|
1865
|
+
* The caller's claim; the bundle rejects a call whose tool has the other kind. The host omits
|
|
1866
|
+
* it for a tool its catalog does not list, and then opens storage for writing.
|
|
1867
|
+
*/
|
|
1868
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
1869
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1870
|
+
}>, Schema.Struct<{
|
|
1871
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
1872
|
+
readonly requirement: Schema.NonEmptyString;
|
|
1873
|
+
}>, Schema.Struct<{
|
|
1874
|
+
readonly operation: Schema.Literal<"migrate">;
|
|
1875
|
+
}>]>;
|
|
1876
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1877
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
1878
|
+
readonly provider: Schema.Struct<{
|
|
1879
|
+
readonly name: Schema.NonEmptyString;
|
|
1880
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
1881
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1882
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1883
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1884
|
+
readonly in: Schema.Literal<"header">;
|
|
1885
|
+
readonly name: Schema.String;
|
|
1886
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1887
|
+
readonly field: Schema.NonEmptyString;
|
|
1888
|
+
}>, Schema.Struct<{
|
|
1889
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1890
|
+
readonly field: Schema.NonEmptyString;
|
|
1891
|
+
}>]>>;
|
|
1892
|
+
}>]>>;
|
|
1893
|
+
}>, Schema.Struct<{
|
|
1894
|
+
readonly in: Schema.Literal<"query">;
|
|
1895
|
+
readonly name: Schema.NonEmptyString;
|
|
1896
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1897
|
+
readonly field: Schema.NonEmptyString;
|
|
1898
|
+
}>, Schema.Struct<{
|
|
1899
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1900
|
+
readonly field: Schema.NonEmptyString;
|
|
1901
|
+
}>]>>;
|
|
1902
|
+
}>]>>;
|
|
1903
|
+
}>]>>>;
|
|
1904
|
+
readonly type: Schema.Literal<"secrets">;
|
|
1905
|
+
readonly label: Schema.String;
|
|
1906
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1907
|
+
}>, Schema.Struct<{
|
|
1908
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1909
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1910
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1911
|
+
readonly in: Schema.Literal<"header">;
|
|
1912
|
+
readonly name: Schema.String;
|
|
1913
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1914
|
+
readonly field: Schema.NonEmptyString;
|
|
1915
|
+
}>, Schema.Struct<{
|
|
1916
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1917
|
+
readonly field: Schema.NonEmptyString;
|
|
1918
|
+
}>]>>;
|
|
1919
|
+
}>]>>;
|
|
1920
|
+
}>, Schema.Struct<{
|
|
1921
|
+
readonly in: Schema.Literal<"query">;
|
|
1922
|
+
readonly name: Schema.NonEmptyString;
|
|
1923
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1924
|
+
readonly field: Schema.NonEmptyString;
|
|
1925
|
+
}>, Schema.Struct<{
|
|
1926
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1927
|
+
readonly field: Schema.NonEmptyString;
|
|
1928
|
+
}>]>>;
|
|
1929
|
+
}>]>>;
|
|
1930
|
+
}>]>>>;
|
|
1931
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1932
|
+
readonly discover: Schema.String;
|
|
1933
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
1934
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
1935
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
1936
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
1937
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1938
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1939
|
+
readonly path: Schema.String;
|
|
1940
|
+
}>>;
|
|
1941
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1942
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1943
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1944
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1945
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1946
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1947
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1948
|
+
}>, Schema.Struct<{
|
|
1949
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1950
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1951
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1952
|
+
readonly in: Schema.Literal<"header">;
|
|
1953
|
+
readonly name: Schema.String;
|
|
1954
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1955
|
+
readonly field: Schema.NonEmptyString;
|
|
1956
|
+
}>, Schema.Struct<{
|
|
1957
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1958
|
+
readonly field: Schema.NonEmptyString;
|
|
1959
|
+
}>]>>;
|
|
1960
|
+
}>]>>;
|
|
1961
|
+
}>, Schema.Struct<{
|
|
1962
|
+
readonly in: Schema.Literal<"query">;
|
|
1963
|
+
readonly name: Schema.NonEmptyString;
|
|
1964
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1965
|
+
readonly field: Schema.NonEmptyString;
|
|
1966
|
+
}>, Schema.Struct<{
|
|
1967
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1968
|
+
readonly field: Schema.NonEmptyString;
|
|
1969
|
+
}>]>>;
|
|
1970
|
+
}>]>>;
|
|
1971
|
+
}>]>>>;
|
|
1972
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1973
|
+
readonly authorizationUrl: Schema.String;
|
|
1974
|
+
readonly tokenUrl: Schema.String;
|
|
1975
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
1976
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1977
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
1978
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
1979
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
1980
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
1981
|
+
readonly path: Schema.String;
|
|
1982
|
+
}>>;
|
|
1983
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
1984
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1985
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
1986
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1987
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
1988
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
1989
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
1990
|
+
}>, Schema.Struct<{
|
|
1991
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1992
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
1993
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1994
|
+
readonly in: Schema.Literal<"header">;
|
|
1995
|
+
readonly name: Schema.String;
|
|
1996
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1997
|
+
readonly field: Schema.NonEmptyString;
|
|
1998
|
+
}>, Schema.Struct<{
|
|
1999
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2000
|
+
readonly field: Schema.NonEmptyString;
|
|
2001
|
+
}>]>>;
|
|
2002
|
+
}>]>>;
|
|
2003
|
+
}>, Schema.Struct<{
|
|
2004
|
+
readonly in: Schema.Literal<"query">;
|
|
2005
|
+
readonly name: Schema.NonEmptyString;
|
|
2006
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2007
|
+
readonly field: Schema.NonEmptyString;
|
|
2008
|
+
}>, Schema.Struct<{
|
|
2009
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2010
|
+
readonly field: Schema.NonEmptyString;
|
|
2011
|
+
}>]>>;
|
|
2012
|
+
}>]>>;
|
|
2013
|
+
}>]>>>;
|
|
2014
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2015
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2016
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2017
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2018
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2019
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2020
|
+
readonly discover: Schema.String;
|
|
2021
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2022
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2023
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2024
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2025
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2026
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2027
|
+
}>, Schema.Struct<{
|
|
2028
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2029
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2030
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2031
|
+
readonly in: Schema.Literal<"header">;
|
|
2032
|
+
readonly name: Schema.String;
|
|
2033
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2034
|
+
readonly field: Schema.NonEmptyString;
|
|
2035
|
+
}>, Schema.Struct<{
|
|
2036
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2037
|
+
readonly field: Schema.NonEmptyString;
|
|
2038
|
+
}>]>>;
|
|
2039
|
+
}>]>>;
|
|
2040
|
+
}>, Schema.Struct<{
|
|
2041
|
+
readonly in: Schema.Literal<"query">;
|
|
2042
|
+
readonly name: Schema.NonEmptyString;
|
|
2043
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2044
|
+
readonly field: Schema.NonEmptyString;
|
|
2045
|
+
}>, Schema.Struct<{
|
|
2046
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2047
|
+
readonly field: Schema.NonEmptyString;
|
|
2048
|
+
}>]>>;
|
|
2049
|
+
}>]>>;
|
|
2050
|
+
}>]>>>;
|
|
2051
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2052
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2053
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2054
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2055
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2056
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2057
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2058
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2059
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2060
|
+
readonly tokenUrl: Schema.String;
|
|
2061
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2062
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2063
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2064
|
+
}>]>>;
|
|
2065
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2066
|
+
}>;
|
|
2067
|
+
readonly method: Schema.NonEmptyString;
|
|
2068
|
+
/**
|
|
2069
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
2070
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
2071
|
+
*/
|
|
2072
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
2073
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2074
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
2075
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
2076
|
+
readonly provider: Schema.Struct<{
|
|
2077
|
+
readonly name: Schema.NonEmptyString;
|
|
2078
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
2079
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2080
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2081
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2082
|
+
readonly in: Schema.Literal<"header">;
|
|
2083
|
+
readonly name: Schema.String;
|
|
2084
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2085
|
+
readonly field: Schema.NonEmptyString;
|
|
2086
|
+
}>, Schema.Struct<{
|
|
2087
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2088
|
+
readonly field: Schema.NonEmptyString;
|
|
2089
|
+
}>]>>;
|
|
2090
|
+
}>]>>;
|
|
2091
|
+
}>, Schema.Struct<{
|
|
2092
|
+
readonly in: Schema.Literal<"query">;
|
|
2093
|
+
readonly name: Schema.NonEmptyString;
|
|
2094
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2095
|
+
readonly field: Schema.NonEmptyString;
|
|
2096
|
+
}>, Schema.Struct<{
|
|
2097
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2098
|
+
readonly field: Schema.NonEmptyString;
|
|
2099
|
+
}>]>>;
|
|
2100
|
+
}>]>>;
|
|
2101
|
+
}>]>>>;
|
|
2102
|
+
readonly type: Schema.Literal<"secrets">;
|
|
2103
|
+
readonly label: Schema.String;
|
|
2104
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2105
|
+
}>, Schema.Struct<{
|
|
2106
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2107
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2108
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2109
|
+
readonly in: Schema.Literal<"header">;
|
|
2110
|
+
readonly name: Schema.String;
|
|
2111
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2112
|
+
readonly field: Schema.NonEmptyString;
|
|
2113
|
+
}>, Schema.Struct<{
|
|
2114
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2115
|
+
readonly field: Schema.NonEmptyString;
|
|
2116
|
+
}>]>>;
|
|
2117
|
+
}>]>>;
|
|
2118
|
+
}>, Schema.Struct<{
|
|
2119
|
+
readonly in: Schema.Literal<"query">;
|
|
2120
|
+
readonly name: Schema.NonEmptyString;
|
|
2121
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2122
|
+
readonly field: Schema.NonEmptyString;
|
|
2123
|
+
}>, Schema.Struct<{
|
|
2124
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2125
|
+
readonly field: Schema.NonEmptyString;
|
|
2126
|
+
}>]>>;
|
|
2127
|
+
}>]>>;
|
|
2128
|
+
}>]>>>;
|
|
2129
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2130
|
+
readonly discover: Schema.String;
|
|
2131
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2132
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2133
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2134
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2135
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2136
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2137
|
+
readonly path: Schema.String;
|
|
2138
|
+
}>>;
|
|
2139
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2140
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2141
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2142
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2143
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2144
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2145
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2146
|
+
}>, Schema.Struct<{
|
|
2147
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2148
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2149
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2150
|
+
readonly in: Schema.Literal<"header">;
|
|
2151
|
+
readonly name: Schema.String;
|
|
2152
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2153
|
+
readonly field: Schema.NonEmptyString;
|
|
2154
|
+
}>, Schema.Struct<{
|
|
2155
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2156
|
+
readonly field: Schema.NonEmptyString;
|
|
2157
|
+
}>]>>;
|
|
2158
|
+
}>]>>;
|
|
2159
|
+
}>, Schema.Struct<{
|
|
2160
|
+
readonly in: Schema.Literal<"query">;
|
|
2161
|
+
readonly name: Schema.NonEmptyString;
|
|
2162
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2163
|
+
readonly field: Schema.NonEmptyString;
|
|
2164
|
+
}>, Schema.Struct<{
|
|
2165
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2166
|
+
readonly field: Schema.NonEmptyString;
|
|
2167
|
+
}>]>>;
|
|
2168
|
+
}>]>>;
|
|
2169
|
+
}>]>>>;
|
|
2170
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2171
|
+
readonly authorizationUrl: Schema.String;
|
|
2172
|
+
readonly tokenUrl: Schema.String;
|
|
2173
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2174
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2175
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
2176
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2177
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2178
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2179
|
+
readonly path: Schema.String;
|
|
2180
|
+
}>>;
|
|
2181
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2182
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2183
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2184
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2185
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2186
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2187
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2188
|
+
}>, Schema.Struct<{
|
|
2189
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2190
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2191
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2192
|
+
readonly in: Schema.Literal<"header">;
|
|
2193
|
+
readonly name: Schema.String;
|
|
2194
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2195
|
+
readonly field: Schema.NonEmptyString;
|
|
2196
|
+
}>, Schema.Struct<{
|
|
2197
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2198
|
+
readonly field: Schema.NonEmptyString;
|
|
2199
|
+
}>]>>;
|
|
2200
|
+
}>]>>;
|
|
2201
|
+
}>, Schema.Struct<{
|
|
2202
|
+
readonly in: Schema.Literal<"query">;
|
|
2203
|
+
readonly name: Schema.NonEmptyString;
|
|
2204
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2205
|
+
readonly field: Schema.NonEmptyString;
|
|
2206
|
+
}>, Schema.Struct<{
|
|
2207
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2208
|
+
readonly field: Schema.NonEmptyString;
|
|
2209
|
+
}>]>>;
|
|
2210
|
+
}>]>>;
|
|
2211
|
+
}>]>>>;
|
|
2212
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2213
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2214
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2215
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2216
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2217
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2218
|
+
readonly discover: Schema.String;
|
|
2219
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2220
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2221
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2222
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2223
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2224
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2225
|
+
}>, Schema.Struct<{
|
|
2226
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2227
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2228
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2229
|
+
readonly in: Schema.Literal<"header">;
|
|
2230
|
+
readonly name: Schema.String;
|
|
2231
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2232
|
+
readonly field: Schema.NonEmptyString;
|
|
2233
|
+
}>, Schema.Struct<{
|
|
2234
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2235
|
+
readonly field: Schema.NonEmptyString;
|
|
2236
|
+
}>]>>;
|
|
2237
|
+
}>]>>;
|
|
2238
|
+
}>, Schema.Struct<{
|
|
2239
|
+
readonly in: Schema.Literal<"query">;
|
|
2240
|
+
readonly name: Schema.NonEmptyString;
|
|
2241
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2242
|
+
readonly field: Schema.NonEmptyString;
|
|
2243
|
+
}>, Schema.Struct<{
|
|
2244
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2245
|
+
readonly field: Schema.NonEmptyString;
|
|
2246
|
+
}>]>>;
|
|
2247
|
+
}>]>>;
|
|
2248
|
+
}>]>>>;
|
|
2249
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2250
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2251
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2252
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2253
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2254
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2255
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2256
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2257
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2258
|
+
readonly tokenUrl: Schema.String;
|
|
2259
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2260
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2261
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2262
|
+
}>]>>;
|
|
2263
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2264
|
+
}>;
|
|
2265
|
+
readonly method: Schema.NonEmptyString;
|
|
2266
|
+
/**
|
|
2267
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
2268
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
2269
|
+
*/
|
|
2270
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
2271
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2272
|
+
}>>]>>;
|
|
2273
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
2274
|
+
readonly tool: Schema.NonEmptyString;
|
|
2275
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2276
|
+
}>>;
|
|
2277
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
2278
|
+
readonly key: Schema.NonEmptyString;
|
|
2279
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
2280
|
+
}>>;
|
|
2281
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
2282
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
2283
|
+
}>;
|
|
2284
|
+
export type HostInvocation = typeof HostInvocation.Type;
|
|
2285
|
+
/**
|
|
2286
|
+
* Who sends each message. The host must keep accepting everything a released protocol's bundles
|
|
2287
|
+
* send (`bundle`), and must send a released protocol's bundles only what they accept, or gate the
|
|
2288
|
+
* addition on something the bundle declared (`host`). Names a released protocol used and this one
|
|
2289
|
+
* dropped, such as `tools`, keep their direction here.
|
|
2290
|
+
*/
|
|
2291
|
+
export declare const messageDirections: {
|
|
2292
|
+
readonly invocation: "host";
|
|
2293
|
+
readonly request: "host";
|
|
2294
|
+
readonly accounts: "host";
|
|
2295
|
+
readonly elicitationReply: "host";
|
|
2296
|
+
readonly workflowStepReply: "host";
|
|
2297
|
+
readonly cacheReply: "host";
|
|
2298
|
+
readonly response: "bundle";
|
|
2299
|
+
readonly requirements: "bundle";
|
|
2300
|
+
readonly catalog: "bundle";
|
|
2301
|
+
readonly catalogSummary: "bundle";
|
|
2302
|
+
readonly tools: "bundle";
|
|
2303
|
+
readonly toolSummaries: "bundle";
|
|
2304
|
+
readonly skills: "bundle";
|
|
2305
|
+
readonly elicitationRequest: "bundle";
|
|
2306
|
+
readonly workflowStep: "bundle";
|
|
2307
|
+
readonly workflowControl: "bundle";
|
|
2308
|
+
readonly cacheCommand: "bundle";
|
|
2309
|
+
readonly accountCheck: "bundle";
|
|
2310
|
+
readonly migrate: "bundle";
|
|
2311
|
+
};
|
|
2312
|
+
/** A message name every protocol so far has used. */
|
|
2313
|
+
export type MessageName = keyof typeof messageDirections;
|
|
2314
|
+
/** Every message of the current protocol. The snapshot records them by name. */
|
|
2315
|
+
export declare const current: {
|
|
2316
|
+
readonly version: 12;
|
|
2317
|
+
readonly schemas: {
|
|
2318
|
+
readonly invocation: Schema.Struct<{
|
|
2319
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2320
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
2321
|
+
}>, Schema.Struct<{
|
|
2322
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
2323
|
+
readonly name: Schema.NonEmptyString;
|
|
2324
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2325
|
+
}>, Schema.Struct<{
|
|
2326
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
2327
|
+
readonly name: Schema.NonEmptyString;
|
|
2328
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2329
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
2330
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
2331
|
+
}>, Schema.Struct<{
|
|
2332
|
+
readonly name: Schema.NonEmptyString;
|
|
2333
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2334
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2335
|
+
readonly callbackUrl: Schema.String;
|
|
2336
|
+
readonly secret: Schema.String;
|
|
2337
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2338
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
2339
|
+
}>, Schema.Struct<{
|
|
2340
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2341
|
+
readonly name: Schema.NonEmptyString;
|
|
2342
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2343
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2344
|
+
readonly callbackUrl: Schema.String;
|
|
2345
|
+
readonly secret: Schema.String;
|
|
2346
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2347
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
2348
|
+
}>, Schema.Struct<{
|
|
2349
|
+
readonly name: Schema.NonEmptyString;
|
|
2350
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2351
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2352
|
+
readonly callbackUrl: Schema.String;
|
|
2353
|
+
readonly secret: Schema.String;
|
|
2354
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2355
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
2356
|
+
}>, Schema.Struct<{
|
|
2357
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2358
|
+
readonly name: Schema.NonEmptyString;
|
|
2359
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2360
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2361
|
+
readonly callbackUrl: Schema.String;
|
|
2362
|
+
readonly secret: Schema.String;
|
|
2363
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2364
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
2365
|
+
}>, Schema.Struct<{
|
|
2366
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2367
|
+
readonly request: Schema.Struct<{
|
|
2368
|
+
readonly url: Schema.String;
|
|
2369
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
2370
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
2371
|
+
readonly body: Schema.String;
|
|
2372
|
+
}>;
|
|
2373
|
+
readonly name: Schema.NonEmptyString;
|
|
2374
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2375
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2376
|
+
readonly callbackUrl: Schema.String;
|
|
2377
|
+
readonly secret: Schema.String;
|
|
2378
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2379
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
2380
|
+
}>]>, Schema.Struct<{
|
|
2381
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
2382
|
+
}>, Schema.Struct<{
|
|
2383
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
2384
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
2385
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
2386
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
2387
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
2390
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
2391
|
+
*/
|
|
2392
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
2393
|
+
}>, Schema.Struct<{
|
|
2394
|
+
readonly operation: Schema.Literal<"skills">;
|
|
2395
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
2396
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
2397
|
+
}>, Schema.Struct<{
|
|
2398
|
+
readonly operation: Schema.Literal<"query">;
|
|
2399
|
+
readonly name: Schema.NonEmptyString;
|
|
2400
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2401
|
+
}>, Schema.Struct<{
|
|
2402
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
2403
|
+
readonly name: Schema.NonEmptyString;
|
|
2404
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2405
|
+
}>, Schema.Struct<{
|
|
2406
|
+
readonly operation: Schema.Literal<"call">;
|
|
2407
|
+
readonly tool: Schema.NonEmptyString;
|
|
2408
|
+
/**
|
|
2409
|
+
* The caller's claim; the bundle rejects a call whose tool has the other kind. The host omits
|
|
2410
|
+
* it for a tool its catalog does not list, and then opens storage for writing.
|
|
2411
|
+
*/
|
|
2412
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
2413
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2414
|
+
}>, Schema.Struct<{
|
|
2415
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
2416
|
+
readonly requirement: Schema.NonEmptyString;
|
|
2417
|
+
}>, Schema.Struct<{
|
|
2418
|
+
readonly operation: Schema.Literal<"migrate">;
|
|
2419
|
+
}>]>;
|
|
2420
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
2421
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
2422
|
+
readonly provider: Schema.Struct<{
|
|
2423
|
+
readonly name: Schema.NonEmptyString;
|
|
2424
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
2425
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2426
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2427
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2428
|
+
readonly in: Schema.Literal<"header">;
|
|
2429
|
+
readonly name: Schema.String;
|
|
2430
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2431
|
+
readonly field: Schema.NonEmptyString;
|
|
2432
|
+
}>, Schema.Struct<{
|
|
2433
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2434
|
+
readonly field: Schema.NonEmptyString;
|
|
2435
|
+
}>]>>;
|
|
2436
|
+
}>]>>;
|
|
2437
|
+
}>, Schema.Struct<{
|
|
2438
|
+
readonly in: Schema.Literal<"query">;
|
|
2439
|
+
readonly name: Schema.NonEmptyString;
|
|
2440
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2441
|
+
readonly field: Schema.NonEmptyString;
|
|
2442
|
+
}>, Schema.Struct<{
|
|
2443
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2444
|
+
readonly field: Schema.NonEmptyString;
|
|
2445
|
+
}>]>>;
|
|
2446
|
+
}>]>>;
|
|
2447
|
+
}>]>>>;
|
|
2448
|
+
readonly type: Schema.Literal<"secrets">;
|
|
2449
|
+
readonly label: Schema.String;
|
|
2450
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2451
|
+
}>, Schema.Struct<{
|
|
2452
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2453
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2454
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2455
|
+
readonly in: Schema.Literal<"header">;
|
|
2456
|
+
readonly name: Schema.String;
|
|
2457
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2458
|
+
readonly field: Schema.NonEmptyString;
|
|
2459
|
+
}>, Schema.Struct<{
|
|
2460
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2461
|
+
readonly field: Schema.NonEmptyString;
|
|
2462
|
+
}>]>>;
|
|
2463
|
+
}>]>>;
|
|
2464
|
+
}>, Schema.Struct<{
|
|
2465
|
+
readonly in: Schema.Literal<"query">;
|
|
2466
|
+
readonly name: Schema.NonEmptyString;
|
|
2467
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2468
|
+
readonly field: Schema.NonEmptyString;
|
|
2469
|
+
}>, Schema.Struct<{
|
|
2470
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2471
|
+
readonly field: Schema.NonEmptyString;
|
|
2472
|
+
}>]>>;
|
|
2473
|
+
}>]>>;
|
|
2474
|
+
}>]>>>;
|
|
2475
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2476
|
+
readonly discover: Schema.String;
|
|
2477
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2478
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2479
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2480
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2481
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2482
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2483
|
+
readonly path: Schema.String;
|
|
2484
|
+
}>>;
|
|
2485
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2486
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2487
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2488
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2489
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2490
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2491
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2492
|
+
}>, Schema.Struct<{
|
|
2493
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2494
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2495
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2496
|
+
readonly in: Schema.Literal<"header">;
|
|
2497
|
+
readonly name: Schema.String;
|
|
2498
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2499
|
+
readonly field: Schema.NonEmptyString;
|
|
2500
|
+
}>, Schema.Struct<{
|
|
2501
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2502
|
+
readonly field: Schema.NonEmptyString;
|
|
2503
|
+
}>]>>;
|
|
2504
|
+
}>]>>;
|
|
2505
|
+
}>, Schema.Struct<{
|
|
2506
|
+
readonly in: Schema.Literal<"query">;
|
|
2507
|
+
readonly name: Schema.NonEmptyString;
|
|
2508
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2509
|
+
readonly field: Schema.NonEmptyString;
|
|
2510
|
+
}>, Schema.Struct<{
|
|
2511
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2512
|
+
readonly field: Schema.NonEmptyString;
|
|
2513
|
+
}>]>>;
|
|
2514
|
+
}>]>>;
|
|
2515
|
+
}>]>>>;
|
|
2516
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2517
|
+
readonly authorizationUrl: Schema.String;
|
|
2518
|
+
readonly tokenUrl: Schema.String;
|
|
2519
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2520
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2521
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
2522
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2523
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2524
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2525
|
+
readonly path: Schema.String;
|
|
2526
|
+
}>>;
|
|
2527
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2528
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2529
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2530
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2531
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2532
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2533
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2534
|
+
}>, Schema.Struct<{
|
|
2535
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2536
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2537
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2538
|
+
readonly in: Schema.Literal<"header">;
|
|
2539
|
+
readonly name: Schema.String;
|
|
2540
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2541
|
+
readonly field: Schema.NonEmptyString;
|
|
2542
|
+
}>, Schema.Struct<{
|
|
2543
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2544
|
+
readonly field: Schema.NonEmptyString;
|
|
2545
|
+
}>]>>;
|
|
2546
|
+
}>]>>;
|
|
2547
|
+
}>, Schema.Struct<{
|
|
2548
|
+
readonly in: Schema.Literal<"query">;
|
|
2549
|
+
readonly name: Schema.NonEmptyString;
|
|
2550
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2551
|
+
readonly field: Schema.NonEmptyString;
|
|
2552
|
+
}>, Schema.Struct<{
|
|
2553
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2554
|
+
readonly field: Schema.NonEmptyString;
|
|
2555
|
+
}>]>>;
|
|
2556
|
+
}>]>>;
|
|
2557
|
+
}>]>>>;
|
|
2558
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2559
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2560
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2561
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2562
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2563
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2564
|
+
readonly discover: Schema.String;
|
|
2565
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2566
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2567
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2568
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2569
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2570
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2571
|
+
}>, Schema.Struct<{
|
|
2572
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2573
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2574
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2575
|
+
readonly in: Schema.Literal<"header">;
|
|
2576
|
+
readonly name: Schema.String;
|
|
2577
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2578
|
+
readonly field: Schema.NonEmptyString;
|
|
2579
|
+
}>, Schema.Struct<{
|
|
2580
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2581
|
+
readonly field: Schema.NonEmptyString;
|
|
2582
|
+
}>]>>;
|
|
2583
|
+
}>]>>;
|
|
2584
|
+
}>, Schema.Struct<{
|
|
2585
|
+
readonly in: Schema.Literal<"query">;
|
|
2586
|
+
readonly name: Schema.NonEmptyString;
|
|
2587
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2588
|
+
readonly field: Schema.NonEmptyString;
|
|
2589
|
+
}>, Schema.Struct<{
|
|
2590
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2591
|
+
readonly field: Schema.NonEmptyString;
|
|
2592
|
+
}>]>>;
|
|
2593
|
+
}>]>>;
|
|
2594
|
+
}>]>>>;
|
|
2595
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2596
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2597
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2598
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2599
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2600
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2601
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2602
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2603
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2604
|
+
readonly tokenUrl: Schema.String;
|
|
2605
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2606
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2607
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2608
|
+
}>]>>;
|
|
2609
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2610
|
+
}>;
|
|
2611
|
+
readonly method: Schema.NonEmptyString;
|
|
2612
|
+
/**
|
|
2613
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
2614
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
2615
|
+
*/
|
|
2616
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
2617
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2618
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
2619
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
2620
|
+
readonly provider: Schema.Struct<{
|
|
2621
|
+
readonly name: Schema.NonEmptyString;
|
|
2622
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
2623
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2624
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2625
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2626
|
+
readonly in: Schema.Literal<"header">;
|
|
2627
|
+
readonly name: Schema.String;
|
|
2628
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2629
|
+
readonly field: Schema.NonEmptyString;
|
|
2630
|
+
}>, Schema.Struct<{
|
|
2631
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2632
|
+
readonly field: Schema.NonEmptyString;
|
|
2633
|
+
}>]>>;
|
|
2634
|
+
}>]>>;
|
|
2635
|
+
}>, Schema.Struct<{
|
|
2636
|
+
readonly in: Schema.Literal<"query">;
|
|
2637
|
+
readonly name: Schema.NonEmptyString;
|
|
2638
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2639
|
+
readonly field: Schema.NonEmptyString;
|
|
2640
|
+
}>, Schema.Struct<{
|
|
2641
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2642
|
+
readonly field: Schema.NonEmptyString;
|
|
2643
|
+
}>]>>;
|
|
2644
|
+
}>]>>;
|
|
2645
|
+
}>]>>>;
|
|
2646
|
+
readonly type: Schema.Literal<"secrets">;
|
|
2647
|
+
readonly label: Schema.String;
|
|
2648
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2649
|
+
}>, Schema.Struct<{
|
|
2650
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2651
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2652
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2653
|
+
readonly in: Schema.Literal<"header">;
|
|
2654
|
+
readonly name: Schema.String;
|
|
2655
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2656
|
+
readonly field: Schema.NonEmptyString;
|
|
2657
|
+
}>, Schema.Struct<{
|
|
2658
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2659
|
+
readonly field: Schema.NonEmptyString;
|
|
2660
|
+
}>]>>;
|
|
2661
|
+
}>]>>;
|
|
2662
|
+
}>, Schema.Struct<{
|
|
2663
|
+
readonly in: Schema.Literal<"query">;
|
|
2664
|
+
readonly name: Schema.NonEmptyString;
|
|
2665
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2666
|
+
readonly field: Schema.NonEmptyString;
|
|
2667
|
+
}>, Schema.Struct<{
|
|
2668
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2669
|
+
readonly field: Schema.NonEmptyString;
|
|
2670
|
+
}>]>>;
|
|
2671
|
+
}>]>>;
|
|
2672
|
+
}>]>>>;
|
|
2673
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2674
|
+
readonly discover: Schema.String;
|
|
2675
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2676
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2677
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2678
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2679
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2680
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2681
|
+
readonly path: Schema.String;
|
|
2682
|
+
}>>;
|
|
2683
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2684
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2685
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2686
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2687
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2688
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2689
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2690
|
+
}>, Schema.Struct<{
|
|
2691
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2692
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2693
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2694
|
+
readonly in: Schema.Literal<"header">;
|
|
2695
|
+
readonly name: Schema.String;
|
|
2696
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2697
|
+
readonly field: Schema.NonEmptyString;
|
|
2698
|
+
}>, Schema.Struct<{
|
|
2699
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2700
|
+
readonly field: Schema.NonEmptyString;
|
|
2701
|
+
}>]>>;
|
|
2702
|
+
}>]>>;
|
|
2703
|
+
}>, Schema.Struct<{
|
|
2704
|
+
readonly in: Schema.Literal<"query">;
|
|
2705
|
+
readonly name: Schema.NonEmptyString;
|
|
2706
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2707
|
+
readonly field: Schema.NonEmptyString;
|
|
2708
|
+
}>, Schema.Struct<{
|
|
2709
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2710
|
+
readonly field: Schema.NonEmptyString;
|
|
2711
|
+
}>]>>;
|
|
2712
|
+
}>]>>;
|
|
2713
|
+
}>]>>>;
|
|
2714
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2715
|
+
readonly authorizationUrl: Schema.String;
|
|
2716
|
+
readonly tokenUrl: Schema.String;
|
|
2717
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2718
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2719
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
2720
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2721
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2722
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
2723
|
+
readonly path: Schema.String;
|
|
2724
|
+
}>>;
|
|
2725
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
2726
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2727
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
2728
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2729
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2730
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2731
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2732
|
+
}>, Schema.Struct<{
|
|
2733
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2734
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2735
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2736
|
+
readonly in: Schema.Literal<"header">;
|
|
2737
|
+
readonly name: Schema.String;
|
|
2738
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2739
|
+
readonly field: Schema.NonEmptyString;
|
|
2740
|
+
}>, Schema.Struct<{
|
|
2741
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2742
|
+
readonly field: Schema.NonEmptyString;
|
|
2743
|
+
}>]>>;
|
|
2744
|
+
}>]>>;
|
|
2745
|
+
}>, Schema.Struct<{
|
|
2746
|
+
readonly in: Schema.Literal<"query">;
|
|
2747
|
+
readonly name: Schema.NonEmptyString;
|
|
2748
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2749
|
+
readonly field: Schema.NonEmptyString;
|
|
2750
|
+
}>, Schema.Struct<{
|
|
2751
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2752
|
+
readonly field: Schema.NonEmptyString;
|
|
2753
|
+
}>]>>;
|
|
2754
|
+
}>]>>;
|
|
2755
|
+
}>]>>>;
|
|
2756
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2757
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2758
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2759
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2760
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2761
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2762
|
+
readonly discover: Schema.String;
|
|
2763
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
2764
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2765
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
2766
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
2767
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2768
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2769
|
+
}>, Schema.Struct<{
|
|
2770
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2771
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2772
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2773
|
+
readonly in: Schema.Literal<"header">;
|
|
2774
|
+
readonly name: Schema.String;
|
|
2775
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2776
|
+
readonly field: Schema.NonEmptyString;
|
|
2777
|
+
}>, Schema.Struct<{
|
|
2778
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2779
|
+
readonly field: Schema.NonEmptyString;
|
|
2780
|
+
}>]>>;
|
|
2781
|
+
}>]>>;
|
|
2782
|
+
}>, Schema.Struct<{
|
|
2783
|
+
readonly in: Schema.Literal<"query">;
|
|
2784
|
+
readonly name: Schema.NonEmptyString;
|
|
2785
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2786
|
+
readonly field: Schema.NonEmptyString;
|
|
2787
|
+
}>, Schema.Struct<{
|
|
2788
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2789
|
+
readonly field: Schema.NonEmptyString;
|
|
2790
|
+
}>]>>;
|
|
2791
|
+
}>]>>;
|
|
2792
|
+
}>]>>>;
|
|
2793
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2794
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
2795
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
2796
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
2797
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
2798
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
2799
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
2800
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
2801
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
2802
|
+
readonly tokenUrl: Schema.String;
|
|
2803
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
2804
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
2805
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
2806
|
+
}>]>>;
|
|
2807
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2808
|
+
}>;
|
|
2809
|
+
readonly method: Schema.NonEmptyString;
|
|
2810
|
+
/**
|
|
2811
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
2812
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
2813
|
+
*/
|
|
2814
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
2815
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2816
|
+
}>>]>>;
|
|
2817
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
2818
|
+
readonly tool: Schema.NonEmptyString;
|
|
2819
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2820
|
+
}>>;
|
|
2821
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
2822
|
+
readonly key: Schema.NonEmptyString;
|
|
2823
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
2824
|
+
}>>;
|
|
2825
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
2826
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
2827
|
+
}>;
|
|
2828
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2829
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
2830
|
+
}>, Schema.Struct<{
|
|
2831
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
2832
|
+
readonly name: Schema.NonEmptyString;
|
|
2833
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2834
|
+
}>, Schema.Struct<{
|
|
2835
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
2836
|
+
readonly name: Schema.NonEmptyString;
|
|
2837
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2838
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
2839
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
2840
|
+
}>, Schema.Struct<{
|
|
2841
|
+
readonly name: Schema.NonEmptyString;
|
|
2842
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2843
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2844
|
+
readonly callbackUrl: Schema.String;
|
|
2845
|
+
readonly secret: Schema.String;
|
|
2846
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2847
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
2848
|
+
}>, Schema.Struct<{
|
|
2849
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2850
|
+
readonly name: Schema.NonEmptyString;
|
|
2851
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2852
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2853
|
+
readonly callbackUrl: Schema.String;
|
|
2854
|
+
readonly secret: Schema.String;
|
|
2855
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2856
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
2857
|
+
}>, Schema.Struct<{
|
|
2858
|
+
readonly name: Schema.NonEmptyString;
|
|
2859
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2860
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2861
|
+
readonly callbackUrl: Schema.String;
|
|
2862
|
+
readonly secret: Schema.String;
|
|
2863
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2864
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
2865
|
+
}>, Schema.Struct<{
|
|
2866
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2867
|
+
readonly name: Schema.NonEmptyString;
|
|
2868
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2869
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2870
|
+
readonly callbackUrl: Schema.String;
|
|
2871
|
+
readonly secret: Schema.String;
|
|
2872
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2873
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
2874
|
+
}>, Schema.Struct<{
|
|
2875
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2876
|
+
readonly request: Schema.Struct<{
|
|
2877
|
+
readonly url: Schema.String;
|
|
2878
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
2879
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
2880
|
+
readonly body: Schema.String;
|
|
2881
|
+
}>;
|
|
2882
|
+
readonly name: Schema.NonEmptyString;
|
|
2883
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
2884
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
2885
|
+
readonly callbackUrl: Schema.String;
|
|
2886
|
+
readonly secret: Schema.String;
|
|
2887
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2888
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
2889
|
+
}>]>, Schema.Struct<{
|
|
2890
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
2891
|
+
}>, Schema.Struct<{
|
|
2892
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
2893
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
2894
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
2895
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
2896
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
2899
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
2900
|
+
*/
|
|
2901
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
2902
|
+
}>, Schema.Struct<{
|
|
2903
|
+
readonly operation: Schema.Literal<"skills">;
|
|
2904
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
2905
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
2906
|
+
}>, Schema.Struct<{
|
|
2907
|
+
readonly operation: Schema.Literal<"query">;
|
|
2908
|
+
readonly name: Schema.NonEmptyString;
|
|
2909
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2910
|
+
}>, Schema.Struct<{
|
|
2911
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
2912
|
+
readonly name: Schema.NonEmptyString;
|
|
2913
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2914
|
+
}>, Schema.Struct<{
|
|
2915
|
+
readonly operation: Schema.Literal<"call">;
|
|
2916
|
+
readonly tool: Schema.NonEmptyString;
|
|
2917
|
+
/**
|
|
2918
|
+
* The caller's claim; the bundle rejects a call whose tool has the other kind. The host omits
|
|
2919
|
+
* it for a tool its catalog does not list, and then opens storage for writing.
|
|
2920
|
+
*/
|
|
2921
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
2922
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2923
|
+
}>, Schema.Struct<{
|
|
2924
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
2925
|
+
readonly requirement: Schema.NonEmptyString;
|
|
2926
|
+
}>, Schema.Struct<{
|
|
2927
|
+
readonly operation: Schema.Literal<"migrate">;
|
|
2928
|
+
}>]>;
|
|
2929
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
2930
|
+
readonly ok: Schema.Literal<true>;
|
|
2931
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2932
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
2933
|
+
/** The occurrences this invocation emitted, kept only because it succeeded. */
|
|
2934
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2935
|
+
readonly name: Schema.String;
|
|
2936
|
+
readonly id: Schema.String;
|
|
2937
|
+
readonly occurredAt: Schema.Int;
|
|
2938
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2939
|
+
readonly filters: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
2940
|
+
readonly account: Schema.NullOr<Schema.brand<Schema.String, "acc">>;
|
|
2941
|
+
}>>>;
|
|
2942
|
+
}>, Schema.Struct<{
|
|
2943
|
+
readonly ok: Schema.Literal<false>;
|
|
2944
|
+
readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed, typeof HostKindMismatch]>;
|
|
2945
|
+
}>]>;
|
|
2946
|
+
readonly requirements: Schema.Struct<{
|
|
2947
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
2948
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
2949
|
+
readonly skills: Schema.Literal<true>;
|
|
2950
|
+
/** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
|
|
2951
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
2952
|
+
/** Accepts skills sources and reports whether the catalog includes a live loader. */
|
|
2953
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
2954
|
+
/** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
|
|
2955
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
2956
|
+
}>>;
|
|
2957
|
+
/**
|
|
2958
|
+
* The document database an app of protocol 9 or earlier declared. Apps of this protocol declare
|
|
2959
|
+
* `sql` instead; the field remains so requirements read from older retained builds keep their meaning.
|
|
2960
|
+
*/
|
|
2961
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
2962
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
2963
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
2964
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
2965
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
2966
|
+
readonly references: Schema.optional<Schema.String>;
|
|
2967
|
+
}>>;
|
|
2968
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
2969
|
+
readonly name: Schema.String;
|
|
2970
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
2971
|
+
}>>;
|
|
2972
|
+
}>>>;
|
|
2973
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
2974
|
+
readonly definition: Schema.Struct<{
|
|
2975
|
+
readonly name: Schema.NonEmptyString;
|
|
2976
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
2977
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2978
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
2979
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2980
|
+
readonly in: Schema.Literal<"header">;
|
|
2981
|
+
readonly name: Schema.String;
|
|
2982
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2983
|
+
readonly field: Schema.NonEmptyString;
|
|
2984
|
+
}>, Schema.Struct<{
|
|
2985
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2986
|
+
readonly field: Schema.NonEmptyString;
|
|
2987
|
+
}>]>>;
|
|
2988
|
+
}>]>>;
|
|
2989
|
+
}>, Schema.Struct<{
|
|
2990
|
+
readonly in: Schema.Literal<"query">;
|
|
2991
|
+
readonly name: Schema.NonEmptyString;
|
|
2992
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2993
|
+
readonly field: Schema.NonEmptyString;
|
|
2994
|
+
}>, Schema.Struct<{
|
|
2995
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
2996
|
+
readonly field: Schema.NonEmptyString;
|
|
2997
|
+
}>]>>;
|
|
2998
|
+
}>]>>;
|
|
2999
|
+
}>]>>>;
|
|
3000
|
+
readonly type: Schema.Literal<"secrets">;
|
|
3001
|
+
readonly label: Schema.String;
|
|
3002
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3003
|
+
}>, Schema.Struct<{
|
|
3004
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3005
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3006
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3007
|
+
readonly in: Schema.Literal<"header">;
|
|
3008
|
+
readonly name: Schema.String;
|
|
3009
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3010
|
+
readonly field: Schema.NonEmptyString;
|
|
3011
|
+
}>, Schema.Struct<{
|
|
3012
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3013
|
+
readonly field: Schema.NonEmptyString;
|
|
3014
|
+
}>]>>;
|
|
3015
|
+
}>]>>;
|
|
3016
|
+
}>, Schema.Struct<{
|
|
3017
|
+
readonly in: Schema.Literal<"query">;
|
|
3018
|
+
readonly name: Schema.NonEmptyString;
|
|
3019
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3020
|
+
readonly field: Schema.NonEmptyString;
|
|
3021
|
+
}>, Schema.Struct<{
|
|
3022
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3023
|
+
readonly field: Schema.NonEmptyString;
|
|
3024
|
+
}>]>>;
|
|
3025
|
+
}>]>>;
|
|
3026
|
+
}>]>>>;
|
|
3027
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3028
|
+
readonly discover: Schema.String;
|
|
3029
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3030
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3031
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3032
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3033
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3034
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3035
|
+
readonly path: Schema.String;
|
|
3036
|
+
}>>;
|
|
3037
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3038
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3039
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3040
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3041
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3042
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3043
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3044
|
+
}>, Schema.Struct<{
|
|
3045
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3046
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3047
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3048
|
+
readonly in: Schema.Literal<"header">;
|
|
3049
|
+
readonly name: Schema.String;
|
|
3050
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3051
|
+
readonly field: Schema.NonEmptyString;
|
|
3052
|
+
}>, Schema.Struct<{
|
|
3053
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3054
|
+
readonly field: Schema.NonEmptyString;
|
|
3055
|
+
}>]>>;
|
|
3056
|
+
}>]>>;
|
|
3057
|
+
}>, Schema.Struct<{
|
|
3058
|
+
readonly in: Schema.Literal<"query">;
|
|
3059
|
+
readonly name: Schema.NonEmptyString;
|
|
3060
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3061
|
+
readonly field: Schema.NonEmptyString;
|
|
3062
|
+
}>, Schema.Struct<{
|
|
3063
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3064
|
+
readonly field: Schema.NonEmptyString;
|
|
3065
|
+
}>]>>;
|
|
3066
|
+
}>]>>;
|
|
3067
|
+
}>]>>>;
|
|
3068
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3069
|
+
readonly authorizationUrl: Schema.String;
|
|
3070
|
+
readonly tokenUrl: Schema.String;
|
|
3071
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3072
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3073
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
3074
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3075
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3076
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3077
|
+
readonly path: Schema.String;
|
|
3078
|
+
}>>;
|
|
3079
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3080
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3081
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3082
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3083
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3084
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3085
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3086
|
+
}>, Schema.Struct<{
|
|
3087
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3088
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3089
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3090
|
+
readonly in: Schema.Literal<"header">;
|
|
3091
|
+
readonly name: Schema.String;
|
|
3092
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3093
|
+
readonly field: Schema.NonEmptyString;
|
|
3094
|
+
}>, Schema.Struct<{
|
|
3095
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3096
|
+
readonly field: Schema.NonEmptyString;
|
|
3097
|
+
}>]>>;
|
|
3098
|
+
}>]>>;
|
|
3099
|
+
}>, Schema.Struct<{
|
|
3100
|
+
readonly in: Schema.Literal<"query">;
|
|
3101
|
+
readonly name: Schema.NonEmptyString;
|
|
3102
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3103
|
+
readonly field: Schema.NonEmptyString;
|
|
3104
|
+
}>, Schema.Struct<{
|
|
3105
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3106
|
+
readonly field: Schema.NonEmptyString;
|
|
3107
|
+
}>]>>;
|
|
3108
|
+
}>]>>;
|
|
3109
|
+
}>]>>>;
|
|
3110
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3111
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3112
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3113
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3114
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3115
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3116
|
+
readonly discover: Schema.String;
|
|
3117
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3118
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3119
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3120
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3121
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3122
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3123
|
+
}>, Schema.Struct<{
|
|
3124
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3125
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3126
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3127
|
+
readonly in: Schema.Literal<"header">;
|
|
3128
|
+
readonly name: Schema.String;
|
|
3129
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3130
|
+
readonly field: Schema.NonEmptyString;
|
|
3131
|
+
}>, Schema.Struct<{
|
|
3132
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3133
|
+
readonly field: Schema.NonEmptyString;
|
|
3134
|
+
}>]>>;
|
|
3135
|
+
}>]>>;
|
|
3136
|
+
}>, Schema.Struct<{
|
|
3137
|
+
readonly in: Schema.Literal<"query">;
|
|
3138
|
+
readonly name: Schema.NonEmptyString;
|
|
3139
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3140
|
+
readonly field: Schema.NonEmptyString;
|
|
3141
|
+
}>, Schema.Struct<{
|
|
3142
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3143
|
+
readonly field: Schema.NonEmptyString;
|
|
3144
|
+
}>]>>;
|
|
3145
|
+
}>]>>;
|
|
3146
|
+
}>]>>>;
|
|
3147
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3148
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3149
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3150
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3151
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3152
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3153
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3154
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3155
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3156
|
+
readonly tokenUrl: Schema.String;
|
|
3157
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3158
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3159
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3160
|
+
}>]>>;
|
|
3161
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3162
|
+
}>;
|
|
3163
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
3164
|
+
/**
|
|
3165
|
+
* The slot's provider defines an account check. Kept beside the definition, not in it, so
|
|
3166
|
+
* adding or editing a check never changes the provider's identity.
|
|
3167
|
+
*/
|
|
3168
|
+
readonly health: Schema.optionalKey<Schema.Literal<true>>;
|
|
3169
|
+
}>>;
|
|
3170
|
+
/** The build has SQL files in `migrations/` and owns a raw SQLite database. */
|
|
3171
|
+
readonly sql: Schema.optionalKey<Schema.Literal<true>>;
|
|
3172
|
+
/** The events the app declares, so a host lists them without evaluating the app. */
|
|
3173
|
+
readonly events: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
3174
|
+
readonly description: Schema.String;
|
|
3175
|
+
readonly filters: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3176
|
+
readonly payload: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3177
|
+
}>>>;
|
|
3178
|
+
}>;
|
|
3179
|
+
readonly catalog: Schema.Struct<{
|
|
3180
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
3181
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3182
|
+
readonly name: Schema.NonEmptyString;
|
|
3183
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
3184
|
+
readonly kind: Schema.Literal<"interval">;
|
|
3185
|
+
readonly milliseconds: Schema.Int;
|
|
3186
|
+
}>, Schema.Struct<{
|
|
3187
|
+
readonly kind: Schema.Literal<"cron">;
|
|
3188
|
+
readonly calendar: Schema.Struct<{
|
|
3189
|
+
readonly expression: Schema.NonEmptyString;
|
|
3190
|
+
readonly timezone: Schema.NonEmptyString;
|
|
3191
|
+
}>;
|
|
3192
|
+
}>]>;
|
|
3193
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3194
|
+
}>>>;
|
|
3195
|
+
readonly name: Schema.NonEmptyString;
|
|
3196
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3197
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3198
|
+
readonly description: Schema.String;
|
|
3199
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3200
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
3201
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3202
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3203
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
3204
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3205
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
3206
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
3207
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
3208
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
3209
|
+
}>>;
|
|
3210
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3211
|
+
}>>;
|
|
3212
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
3213
|
+
readonly path: Schema.String;
|
|
3214
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3215
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3216
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3217
|
+
readonly src: Schema.NonEmptyString;
|
|
3218
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
3219
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3220
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
3221
|
+
}>>>;
|
|
3222
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
3223
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3224
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
3225
|
+
}>>;
|
|
3226
|
+
}>;
|
|
3227
|
+
readonly catalogSummary: Schema.Struct<{
|
|
3228
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
3229
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3230
|
+
readonly name: Schema.NonEmptyString;
|
|
3231
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
3232
|
+
readonly kind: Schema.Literal<"interval">;
|
|
3233
|
+
readonly milliseconds: Schema.Int;
|
|
3234
|
+
}>, Schema.Struct<{
|
|
3235
|
+
readonly kind: Schema.Literal<"cron">;
|
|
3236
|
+
readonly calendar: Schema.Struct<{
|
|
3237
|
+
readonly expression: Schema.NonEmptyString;
|
|
3238
|
+
readonly timezone: Schema.NonEmptyString;
|
|
3239
|
+
}>;
|
|
3240
|
+
}>]>;
|
|
3241
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3242
|
+
}>>>;
|
|
3243
|
+
readonly name: Schema.NonEmptyString;
|
|
3244
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3245
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3246
|
+
readonly description: Schema.String;
|
|
3247
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
3248
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3249
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
3250
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3251
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
3252
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
3253
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
3254
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
3255
|
+
}>>;
|
|
3256
|
+
}>>;
|
|
3257
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
3258
|
+
readonly path: Schema.String;
|
|
3259
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3260
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3261
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3262
|
+
readonly src: Schema.NonEmptyString;
|
|
3263
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
3264
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3265
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
3266
|
+
}>>>;
|
|
3267
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
3268
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3269
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostDeclarationInvalid, typeof HostEvaluationFailed]>>;
|
|
3270
|
+
}>>;
|
|
3271
|
+
}>;
|
|
3272
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
3273
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
3274
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
3275
|
+
readonly path: Schema.NonEmptyString;
|
|
3276
|
+
readonly content: Schema.String;
|
|
3277
|
+
}>>;
|
|
3278
|
+
readonly name: Schema.NonEmptyString;
|
|
3279
|
+
readonly description: Schema.String;
|
|
3280
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
3281
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
3282
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3283
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
3284
|
+
}>>;
|
|
3285
|
+
readonly dynamic: Schema.Boolean;
|
|
3286
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
3287
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
3288
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
3289
|
+
readonly path: Schema.NonEmptyString;
|
|
3290
|
+
readonly content: Schema.String;
|
|
3291
|
+
}>>;
|
|
3292
|
+
readonly name: Schema.NonEmptyString;
|
|
3293
|
+
readonly description: Schema.String;
|
|
3294
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
3295
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
3296
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3297
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
3298
|
+
}>>]>;
|
|
3299
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
3300
|
+
readonly mode: Schema.Literal<"form">;
|
|
3301
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
3302
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3303
|
+
readonly type: Schema.tag<"object">;
|
|
3304
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
|
|
3305
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3306
|
+
}>>;
|
|
3307
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3308
|
+
readonly message: Schema.String;
|
|
3309
|
+
}>;
|
|
3310
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
3311
|
+
readonly ok: Schema.Literal<true>;
|
|
3312
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
3313
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3314
|
+
readonly action: Schema.Literal<"accept">;
|
|
3315
|
+
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>;
|
|
3316
|
+
}>, Schema.Struct<{
|
|
3317
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
3318
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
3319
|
+
}>]>;
|
|
3320
|
+
}>, Schema.Struct<{
|
|
3321
|
+
readonly ok: Schema.Literal<false>;
|
|
3322
|
+
readonly error: typeof ElicitationFailed;
|
|
3323
|
+
}>]>;
|
|
3324
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
3325
|
+
readonly operation: Schema.Literal<"do">;
|
|
3326
|
+
readonly name: Schema.NonEmptyString;
|
|
3327
|
+
readonly options: Schema.Struct<{
|
|
3328
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
3329
|
+
readonly limit: Schema.Int;
|
|
3330
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
3331
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
3332
|
+
}>>;
|
|
3333
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
3334
|
+
}>;
|
|
3335
|
+
}>, Schema.Struct<{
|
|
3336
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
3337
|
+
readonly name: Schema.NonEmptyString;
|
|
3338
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
3339
|
+
}>, Schema.Struct<{
|
|
3340
|
+
readonly operation: Schema.Literal<"until">;
|
|
3341
|
+
readonly name: Schema.NonEmptyString;
|
|
3342
|
+
readonly timestamp: Schema.Finite;
|
|
3343
|
+
}>, Schema.Struct<{
|
|
3344
|
+
readonly operation: Schema.Literal<"context">;
|
|
3345
|
+
}>, Schema.Struct<{
|
|
3346
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
3347
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
3348
|
+
readonly name: Schema.NonEmptyString;
|
|
3349
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3350
|
+
readonly stepId: Schema.NonEmptyString;
|
|
3351
|
+
readonly timeout: Schema.Finite;
|
|
3352
|
+
}>]>;
|
|
3353
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
3354
|
+
readonly ok: Schema.Literal<true>;
|
|
3355
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3356
|
+
}>, Schema.Struct<{
|
|
3357
|
+
readonly ok: Schema.Literal<false>;
|
|
3358
|
+
readonly error: typeof WorkflowFailure;
|
|
3359
|
+
}>]>;
|
|
3360
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
3361
|
+
readonly operation: Schema.Literal<"start">;
|
|
3362
|
+
readonly workflow: Schema.NonEmptyString;
|
|
3363
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3364
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3365
|
+
}>, Schema.Struct<{
|
|
3366
|
+
readonly operation: Schema.Literal<"get">;
|
|
3367
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
3368
|
+
}>, Schema.Struct<{
|
|
3369
|
+
readonly operation: Schema.Literal<"list">;
|
|
3370
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3371
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
3372
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
3373
|
+
}>, Schema.Struct<{
|
|
3374
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
3375
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
3376
|
+
}>]>;
|
|
3377
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
3378
|
+
readonly operation: Schema.Literal<"read">;
|
|
3379
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
3380
|
+
}>, Schema.Struct<{
|
|
3381
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
3382
|
+
readonly key: Schema.String;
|
|
3383
|
+
readonly refresh: Schema.Boolean;
|
|
3384
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3385
|
+
readonly reads: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3386
|
+
}>, Schema.Struct<{
|
|
3387
|
+
readonly operation: Schema.Literal<"claim">;
|
|
3388
|
+
readonly key: Schema.String;
|
|
3389
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
3390
|
+
}>, Schema.Struct<{
|
|
3391
|
+
readonly operation: Schema.Literal<"publish">;
|
|
3392
|
+
readonly key: Schema.String;
|
|
3393
|
+
readonly lease: Schema.String;
|
|
3394
|
+
readonly entry: Schema.Struct<{
|
|
3395
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3396
|
+
readonly version: Schema.String;
|
|
3397
|
+
readonly freshUntil: Schema.Finite;
|
|
3398
|
+
readonly staleUntil: Schema.Finite;
|
|
3399
|
+
}>;
|
|
3400
|
+
}>, Schema.Struct<{
|
|
3401
|
+
readonly operation: Schema.Literal<"release">;
|
|
3402
|
+
readonly key: Schema.String;
|
|
3403
|
+
readonly lease: Schema.String;
|
|
3404
|
+
}>, Schema.Struct<{
|
|
3405
|
+
readonly operation: Schema.Literal<"renew">;
|
|
3406
|
+
readonly key: Schema.String;
|
|
3407
|
+
readonly lease: Schema.String;
|
|
3408
|
+
}>, Schema.Struct<{
|
|
3409
|
+
readonly operation: Schema.Literal<"write">;
|
|
3410
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
3411
|
+
readonly key: Schema.String;
|
|
3412
|
+
readonly entry: Schema.Struct<{
|
|
3413
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3414
|
+
readonly version: Schema.String;
|
|
3415
|
+
readonly freshUntil: Schema.Finite;
|
|
3416
|
+
readonly staleUntil: Schema.Finite;
|
|
3417
|
+
}>;
|
|
3418
|
+
}>>;
|
|
3419
|
+
}>, Schema.Struct<{
|
|
3420
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
3421
|
+
readonly key: Schema.String;
|
|
3422
|
+
}>]>;
|
|
3423
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
3424
|
+
readonly ok: Schema.Literal<true>;
|
|
3425
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3426
|
+
}>, Schema.Struct<{
|
|
3427
|
+
readonly ok: Schema.Literal<false>;
|
|
3428
|
+
readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
|
|
3429
|
+
}>]>;
|
|
3430
|
+
readonly accountCheck: Schema.Struct<{
|
|
3431
|
+
readonly accountInfo: Schema.optionalKey<Schema.Struct<{
|
|
3432
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
3433
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
3434
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
3435
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
3436
|
+
readonly avatarUrl: Schema.optionalKey<Schema.String>;
|
|
3437
|
+
readonly profileUrl: Schema.optionalKey<Schema.String>;
|
|
3438
|
+
}>>;
|
|
3439
|
+
}>;
|
|
3440
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
3441
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
3442
|
+
readonly provider: Schema.Struct<{
|
|
3443
|
+
readonly name: Schema.NonEmptyString;
|
|
3444
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
3445
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3446
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3447
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3448
|
+
readonly in: Schema.Literal<"header">;
|
|
3449
|
+
readonly name: Schema.String;
|
|
3450
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3451
|
+
readonly field: Schema.NonEmptyString;
|
|
3452
|
+
}>, Schema.Struct<{
|
|
3453
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3454
|
+
readonly field: Schema.NonEmptyString;
|
|
3455
|
+
}>]>>;
|
|
3456
|
+
}>]>>;
|
|
3457
|
+
}>, Schema.Struct<{
|
|
3458
|
+
readonly in: Schema.Literal<"query">;
|
|
3459
|
+
readonly name: Schema.NonEmptyString;
|
|
3460
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3461
|
+
readonly field: Schema.NonEmptyString;
|
|
3462
|
+
}>, Schema.Struct<{
|
|
3463
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3464
|
+
readonly field: Schema.NonEmptyString;
|
|
3465
|
+
}>]>>;
|
|
3466
|
+
}>]>>;
|
|
3467
|
+
}>]>>>;
|
|
3468
|
+
readonly type: Schema.Literal<"secrets">;
|
|
3469
|
+
readonly label: Schema.String;
|
|
3470
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3471
|
+
}>, Schema.Struct<{
|
|
3472
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3473
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3474
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3475
|
+
readonly in: Schema.Literal<"header">;
|
|
3476
|
+
readonly name: Schema.String;
|
|
3477
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3478
|
+
readonly field: Schema.NonEmptyString;
|
|
3479
|
+
}>, Schema.Struct<{
|
|
3480
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3481
|
+
readonly field: Schema.NonEmptyString;
|
|
3482
|
+
}>]>>;
|
|
3483
|
+
}>]>>;
|
|
3484
|
+
}>, Schema.Struct<{
|
|
3485
|
+
readonly in: Schema.Literal<"query">;
|
|
3486
|
+
readonly name: Schema.NonEmptyString;
|
|
3487
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3488
|
+
readonly field: Schema.NonEmptyString;
|
|
3489
|
+
}>, Schema.Struct<{
|
|
3490
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3491
|
+
readonly field: Schema.NonEmptyString;
|
|
3492
|
+
}>]>>;
|
|
3493
|
+
}>]>>;
|
|
3494
|
+
}>]>>>;
|
|
3495
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3496
|
+
readonly discover: Schema.String;
|
|
3497
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3498
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3499
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3500
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3501
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3502
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3503
|
+
readonly path: Schema.String;
|
|
3504
|
+
}>>;
|
|
3505
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3506
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3507
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3508
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3509
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3510
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3511
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3512
|
+
}>, Schema.Struct<{
|
|
3513
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3514
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3515
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3516
|
+
readonly in: Schema.Literal<"header">;
|
|
3517
|
+
readonly name: Schema.String;
|
|
3518
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3519
|
+
readonly field: Schema.NonEmptyString;
|
|
3520
|
+
}>, Schema.Struct<{
|
|
3521
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3522
|
+
readonly field: Schema.NonEmptyString;
|
|
3523
|
+
}>]>>;
|
|
3524
|
+
}>]>>;
|
|
3525
|
+
}>, Schema.Struct<{
|
|
3526
|
+
readonly in: Schema.Literal<"query">;
|
|
3527
|
+
readonly name: Schema.NonEmptyString;
|
|
3528
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3529
|
+
readonly field: Schema.NonEmptyString;
|
|
3530
|
+
}>, Schema.Struct<{
|
|
3531
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3532
|
+
readonly field: Schema.NonEmptyString;
|
|
3533
|
+
}>]>>;
|
|
3534
|
+
}>]>>;
|
|
3535
|
+
}>]>>>;
|
|
3536
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3537
|
+
readonly authorizationUrl: Schema.String;
|
|
3538
|
+
readonly tokenUrl: Schema.String;
|
|
3539
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3540
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3541
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
3542
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3543
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3544
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3545
|
+
readonly path: Schema.String;
|
|
3546
|
+
}>>;
|
|
3547
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3548
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3549
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3550
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3551
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3552
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3553
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3554
|
+
}>, Schema.Struct<{
|
|
3555
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3556
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3557
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3558
|
+
readonly in: Schema.Literal<"header">;
|
|
3559
|
+
readonly name: Schema.String;
|
|
3560
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3561
|
+
readonly field: Schema.NonEmptyString;
|
|
3562
|
+
}>, Schema.Struct<{
|
|
3563
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3564
|
+
readonly field: Schema.NonEmptyString;
|
|
3565
|
+
}>]>>;
|
|
3566
|
+
}>]>>;
|
|
3567
|
+
}>, Schema.Struct<{
|
|
3568
|
+
readonly in: Schema.Literal<"query">;
|
|
3569
|
+
readonly name: Schema.NonEmptyString;
|
|
3570
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3571
|
+
readonly field: Schema.NonEmptyString;
|
|
3572
|
+
}>, Schema.Struct<{
|
|
3573
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3574
|
+
readonly field: Schema.NonEmptyString;
|
|
3575
|
+
}>]>>;
|
|
3576
|
+
}>]>>;
|
|
3577
|
+
}>]>>>;
|
|
3578
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3579
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3580
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3581
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3582
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3583
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3584
|
+
readonly discover: Schema.String;
|
|
3585
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3586
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3587
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3588
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3589
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3590
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3591
|
+
}>, Schema.Struct<{
|
|
3592
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3593
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3594
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3595
|
+
readonly in: Schema.Literal<"header">;
|
|
3596
|
+
readonly name: Schema.String;
|
|
3597
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3598
|
+
readonly field: Schema.NonEmptyString;
|
|
3599
|
+
}>, Schema.Struct<{
|
|
3600
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3601
|
+
readonly field: Schema.NonEmptyString;
|
|
3602
|
+
}>]>>;
|
|
3603
|
+
}>]>>;
|
|
3604
|
+
}>, Schema.Struct<{
|
|
3605
|
+
readonly in: Schema.Literal<"query">;
|
|
3606
|
+
readonly name: Schema.NonEmptyString;
|
|
3607
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3608
|
+
readonly field: Schema.NonEmptyString;
|
|
3609
|
+
}>, Schema.Struct<{
|
|
3610
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3611
|
+
readonly field: Schema.NonEmptyString;
|
|
3612
|
+
}>]>>;
|
|
3613
|
+
}>]>>;
|
|
3614
|
+
}>]>>>;
|
|
3615
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3616
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3617
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3618
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3619
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3620
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3621
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3622
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3623
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3624
|
+
readonly tokenUrl: Schema.String;
|
|
3625
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3626
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3627
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3628
|
+
}>]>>;
|
|
3629
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3630
|
+
}>;
|
|
3631
|
+
readonly method: Schema.NonEmptyString;
|
|
3632
|
+
/**
|
|
3633
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
3634
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
3635
|
+
*/
|
|
3636
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
3637
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3638
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
3639
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
3640
|
+
readonly provider: Schema.Struct<{
|
|
3641
|
+
readonly name: Schema.NonEmptyString;
|
|
3642
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
3643
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3644
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3645
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3646
|
+
readonly in: Schema.Literal<"header">;
|
|
3647
|
+
readonly name: Schema.String;
|
|
3648
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3649
|
+
readonly field: Schema.NonEmptyString;
|
|
3650
|
+
}>, Schema.Struct<{
|
|
3651
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3652
|
+
readonly field: Schema.NonEmptyString;
|
|
3653
|
+
}>]>>;
|
|
3654
|
+
}>]>>;
|
|
3655
|
+
}>, Schema.Struct<{
|
|
3656
|
+
readonly in: Schema.Literal<"query">;
|
|
3657
|
+
readonly name: Schema.NonEmptyString;
|
|
3658
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3659
|
+
readonly field: Schema.NonEmptyString;
|
|
3660
|
+
}>, Schema.Struct<{
|
|
3661
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3662
|
+
readonly field: Schema.NonEmptyString;
|
|
3663
|
+
}>]>>;
|
|
3664
|
+
}>]>>;
|
|
3665
|
+
}>]>>>;
|
|
3666
|
+
readonly type: Schema.Literal<"secrets">;
|
|
3667
|
+
readonly label: Schema.String;
|
|
3668
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3669
|
+
}>, Schema.Struct<{
|
|
3670
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3671
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3672
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3673
|
+
readonly in: Schema.Literal<"header">;
|
|
3674
|
+
readonly name: Schema.String;
|
|
3675
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3676
|
+
readonly field: Schema.NonEmptyString;
|
|
3677
|
+
}>, Schema.Struct<{
|
|
3678
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3679
|
+
readonly field: Schema.NonEmptyString;
|
|
3680
|
+
}>]>>;
|
|
3681
|
+
}>]>>;
|
|
3682
|
+
}>, Schema.Struct<{
|
|
3683
|
+
readonly in: Schema.Literal<"query">;
|
|
3684
|
+
readonly name: Schema.NonEmptyString;
|
|
3685
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3686
|
+
readonly field: Schema.NonEmptyString;
|
|
3687
|
+
}>, Schema.Struct<{
|
|
3688
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3689
|
+
readonly field: Schema.NonEmptyString;
|
|
3690
|
+
}>]>>;
|
|
3691
|
+
}>]>>;
|
|
3692
|
+
}>]>>>;
|
|
3693
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3694
|
+
readonly discover: Schema.String;
|
|
3695
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3696
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3697
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3698
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3699
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3700
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3701
|
+
readonly path: Schema.String;
|
|
3702
|
+
}>>;
|
|
3703
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3704
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3705
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3706
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3707
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3708
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3709
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3710
|
+
}>, Schema.Struct<{
|
|
3711
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3712
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3713
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3714
|
+
readonly in: Schema.Literal<"header">;
|
|
3715
|
+
readonly name: Schema.String;
|
|
3716
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3717
|
+
readonly field: Schema.NonEmptyString;
|
|
3718
|
+
}>, Schema.Struct<{
|
|
3719
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3720
|
+
readonly field: Schema.NonEmptyString;
|
|
3721
|
+
}>]>>;
|
|
3722
|
+
}>]>>;
|
|
3723
|
+
}>, Schema.Struct<{
|
|
3724
|
+
readonly in: Schema.Literal<"query">;
|
|
3725
|
+
readonly name: Schema.NonEmptyString;
|
|
3726
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3727
|
+
readonly field: Schema.NonEmptyString;
|
|
3728
|
+
}>, Schema.Struct<{
|
|
3729
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3730
|
+
readonly field: Schema.NonEmptyString;
|
|
3731
|
+
}>]>>;
|
|
3732
|
+
}>]>>;
|
|
3733
|
+
}>]>>>;
|
|
3734
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3735
|
+
readonly authorizationUrl: Schema.String;
|
|
3736
|
+
readonly tokenUrl: Schema.String;
|
|
3737
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3738
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3739
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
3740
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3741
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3742
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
3743
|
+
readonly path: Schema.String;
|
|
3744
|
+
}>>;
|
|
3745
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
3746
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3747
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
3748
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3749
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3750
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3751
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3752
|
+
}>, Schema.Struct<{
|
|
3753
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3754
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3755
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3756
|
+
readonly in: Schema.Literal<"header">;
|
|
3757
|
+
readonly name: Schema.String;
|
|
3758
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3759
|
+
readonly field: Schema.NonEmptyString;
|
|
3760
|
+
}>, Schema.Struct<{
|
|
3761
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3762
|
+
readonly field: Schema.NonEmptyString;
|
|
3763
|
+
}>]>>;
|
|
3764
|
+
}>]>>;
|
|
3765
|
+
}>, Schema.Struct<{
|
|
3766
|
+
readonly in: Schema.Literal<"query">;
|
|
3767
|
+
readonly name: Schema.NonEmptyString;
|
|
3768
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3769
|
+
readonly field: Schema.NonEmptyString;
|
|
3770
|
+
}>, Schema.Struct<{
|
|
3771
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3772
|
+
readonly field: Schema.NonEmptyString;
|
|
3773
|
+
}>]>>;
|
|
3774
|
+
}>]>>;
|
|
3775
|
+
}>]>>>;
|
|
3776
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3777
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3778
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3779
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3780
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3781
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3782
|
+
readonly discover: Schema.String;
|
|
3783
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
|
|
3784
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3785
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
3786
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
3787
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3788
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3789
|
+
}>, Schema.Struct<{
|
|
3790
|
+
readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3791
|
+
readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
3792
|
+
readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3793
|
+
readonly in: Schema.Literal<"header">;
|
|
3794
|
+
readonly name: Schema.String;
|
|
3795
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3796
|
+
readonly field: Schema.NonEmptyString;
|
|
3797
|
+
}>, Schema.Struct<{
|
|
3798
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3799
|
+
readonly field: Schema.NonEmptyString;
|
|
3800
|
+
}>]>>;
|
|
3801
|
+
}>]>>;
|
|
3802
|
+
}>, Schema.Struct<{
|
|
3803
|
+
readonly in: Schema.Literal<"query">;
|
|
3804
|
+
readonly name: Schema.NonEmptyString;
|
|
3805
|
+
readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3806
|
+
readonly field: Schema.NonEmptyString;
|
|
3807
|
+
}>, Schema.Struct<{
|
|
3808
|
+
readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
3809
|
+
readonly field: Schema.NonEmptyString;
|
|
3810
|
+
}>]>>;
|
|
3811
|
+
}>]>>;
|
|
3812
|
+
}>]>>>;
|
|
3813
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3814
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
3815
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
3816
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
3817
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
3818
|
+
readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
|
|
3819
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
3820
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
3821
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
3822
|
+
readonly tokenUrl: Schema.String;
|
|
3823
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
3824
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
3825
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
3826
|
+
}>]>>;
|
|
3827
|
+
readonly hosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3828
|
+
}>;
|
|
3829
|
+
readonly method: Schema.NonEmptyString;
|
|
3830
|
+
/**
|
|
3831
|
+
* Changes when the account is reconnected or its credentials replaced, not on renewal. Hosts
|
|
3832
|
+
* send it since credential generations; `apps@0.0.1-beta.0` and `beta.1` ignore it.
|
|
3833
|
+
*/
|
|
3834
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
3835
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3836
|
+
}>>]>>;
|
|
3837
|
+
readonly migrate: Schema.$Array<Schema.Struct<{
|
|
3838
|
+
readonly id: Schema.Int;
|
|
3839
|
+
readonly name: Schema.NonEmptyString;
|
|
3840
|
+
}>>;
|
|
3841
|
+
};
|
|
3842
|
+
};
|
|
3843
|
+
export {};
|