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