apps 0.0.1-beta.1 → 0.0.1-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -72
- package/framework-reference.json +1 -1
- package/js/browser-XIPJGLH2.js +65 -0
- package/js/chunk-2CURR5Y7.js +264 -0
- package/js/chunk-2LSGC7XY.js +42 -0
- package/js/{chunk-YEJOQEII.js → chunk-4PIQKACY.js} +65 -10
- package/js/chunk-4UPC36ZL.js +5185 -0
- package/js/{chunk-4LPG6RCH.js → chunk-4X2UI4R2.js} +7 -27
- package/js/chunk-5C6RAGAS.js +335 -0
- package/js/chunk-62NVUKED.js +39 -0
- package/js/chunk-74H25C4X.js +95 -0
- package/js/chunk-7HG422GB.js +90 -0
- package/js/chunk-7STIP5CS.js +171 -0
- package/js/{chunk-QKHR7BMF.js → chunk-ACQXVKVQ.js} +87 -51
- package/js/{chunk-OHRT55C4.js → chunk-DILSCQPJ.js} +226 -265
- package/js/chunk-ILYCJ3HV.js +449 -0
- package/js/chunk-K6TSCYAO.js +712 -0
- package/js/{chunk-EVJUVWN2.js → chunk-KLSEU35Y.js} +463 -218
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/chunk-OWN3DP2W.js +88 -0
- package/js/{chunk-ZTFQHGEB.js → chunk-PBGPES67.js} +3 -5
- package/js/chunk-QI66R4FP.js +786 -0
- package/js/chunk-RN4YB4JT.js +1922 -0
- package/js/{chunk-ZCAMUXSG.js → chunk-URKOTNDA.js} +795 -177
- package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
- package/js/{chunk-2HHMABB6.js → chunk-VAI3EVCS.js} +700 -78
- package/js/chunk-VCYWAA4N.js +49 -0
- package/js/{chunk-HDJH3RPR.js → chunk-YDW7DX3A.js} +4 -4
- package/js/chunk-YWVISRZD.js +268 -0
- package/js/{chunk-FW5HBOIK.js → chunk-ZKDXML77.js} +19272 -18299
- package/js/client.js +148 -100
- package/js/contracts.js +208 -24
- package/js/effect.js +18 -19
- package/js/es-DIULA3ZF.js +39371 -0
- package/js/graphql.js +62 -58
- package/js/host.js +83 -60
- package/js/index.js +381 -263
- package/js/mcp/effect.js +21 -21
- package/js/mcp.js +117 -74
- package/js/openapi.js +4613 -42691
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -4
- package/js/skills.js +233 -70
- package/js/storage/facet.js +1 -540
- package/js/ui/auth/contracts.js +8 -9
- package/js/ui/auth.js +16 -14
- package/js/ui/contracts.js +9 -8
- package/js/ui/serving.js +8609 -227
- package/package.json +3 -8
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +60 -2
- package/types/app-cache/src/index.d.ts +92 -2
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/apps/src/contracts/api-response-error.d.ts +4 -0
- package/types/apps/src/contracts/app.d.ts +63 -17
- package/types/apps/src/contracts/cache.d.ts +24 -1
- package/types/apps/src/contracts/context.d.ts +60 -17
- package/types/apps/src/contracts/elicitation.d.ts +23 -7
- package/types/apps/src/contracts/events.d.ts +94 -0
- package/types/apps/src/contracts/failure.d.ts +54 -0
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +1325 -534
- package/types/apps/src/contracts/icons.d.ts +28 -0
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/mcp.d.ts +97 -20
- package/types/apps/src/contracts/network.d.ts +120 -0
- package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
- package/types/apps/src/contracts/openapi-document.d.ts +1 -1
- package/types/apps/src/contracts/openapi.d.ts +51 -9
- package/types/apps/src/contracts/operations.d.ts +14 -12
- package/types/apps/src/contracts/placement.d.ts +102 -0
- package/types/apps/src/contracts/protocol-version.d.ts +6 -0
- package/types/apps/src/contracts/protocols/1.d.ts +2241 -0
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
- package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
- package/types/apps/src/contracts/protocols/2.d.ts +711 -0
- package/types/apps/src/contracts/protocols/3.d.ts +776 -0
- package/types/apps/src/contracts/protocols/4.d.ts +1306 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1200 -0
- package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
- package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
- package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
- package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
- package/types/apps/src/contracts/protocols/current.d.ts +6857 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
- package/types/apps/src/contracts/provider-error.d.ts +9 -0
- package/types/apps/src/contracts/provider.d.ts +140 -10
- package/types/apps/src/contracts/router.d.ts +59 -0
- package/types/apps/src/contracts/schedules.d.ts +7 -1
- package/types/apps/src/contracts/schema.d.ts +21 -0
- package/types/apps/src/contracts/shared-catalog.d.ts +11 -0
- package/types/apps/src/contracts/skills.d.ts +60 -14
- package/types/apps/src/contracts/sql.d.ts +63 -0
- package/types/apps/src/contracts/ui-auth.d.ts +6 -14
- package/types/apps/src/contracts/ui.d.ts +70 -30
- package/types/apps/src/contracts/webhooks.d.ts +24 -7
- package/types/apps/src/contracts/workflows.d.ts +89 -36
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/host.d.ts +5 -0
- package/types/apps/src/implementation/account-router.d.ts +13 -0
- package/types/apps/src/implementation/app.d.ts +44 -16
- package/types/apps/src/implementation/authoring.d.ts +25 -5
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
- package/types/apps/src/implementation/cache.d.ts +32 -3
- package/types/apps/src/implementation/catalog-cache.d.ts +43 -5
- package/types/apps/src/implementation/elicitation.d.ts +18 -15
- package/types/apps/src/implementation/events.d.ts +64 -0
- package/types/apps/src/implementation/failure-detail.d.ts +48 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +4 -7
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/input-problems.d.ts +6 -2
- package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
- package/types/apps/src/implementation/live.d.ts +2 -2
- package/types/apps/src/implementation/mcp-call.d.ts +6 -5
- package/types/apps/src/implementation/mcp-catalog.d.ts +7 -8
- package/types/apps/src/implementation/mcp-client.d.ts +49 -25
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +52 -25
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +30 -8
- package/types/apps/src/implementation/openapi-document.d.ts +46 -21
- package/types/apps/src/implementation/openapi-names.d.ts +23 -0
- package/types/apps/src/implementation/openapi-request.d.ts +10 -3
- package/types/apps/src/implementation/openapi-source.d.ts +30 -8
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/operations.d.ts +84 -10
- package/types/apps/src/implementation/optimistic.d.ts +1 -1
- package/types/apps/src/implementation/placement.d.ts +60 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +6 -4
- package/types/apps/src/implementation/provider-error.d.ts +28 -1
- package/types/apps/src/implementation/provider.d.ts +26 -6
- package/types/apps/src/implementation/query-commit.d.ts +1 -1
- package/types/apps/src/implementation/router-catalog.d.ts +227 -0
- package/types/apps/src/implementation/router.d.ts +78 -0
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
- package/types/apps/src/implementation/schedules.d.ts +39 -8
- package/types/apps/src/implementation/schema.d.ts +111 -15
- package/types/apps/src/implementation/skills.d.ts +18 -24
- package/types/apps/src/implementation/sql.d.ts +71 -0
- package/types/apps/src/implementation/swagger-client.d.ts +28 -0
- package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
- package/types/apps/src/implementation/ui-auth.d.ts +12 -6
- package/types/apps/src/implementation/ui-client.d.ts +3 -3
- package/types/apps/src/implementation/ui-document.d.ts +5 -0
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +31 -12
- package/types/apps/src/implementation/ui-watch.d.ts +1 -1
- package/types/apps/src/implementation/upstream-error.d.ts +7 -0
- package/types/apps/src/implementation/webhooks.d.ts +15 -6
- package/types/apps/src/implementation/workflow-context.d.ts +17 -5
- package/types/apps/src/implementation/workflows.d.ts +11 -4
- package/types/apps/src/index.d.ts +71 -21
- package/types/apps/src/mcp.d.ts +25 -5
- package/types/apps/src/openapi.d.ts +11 -6
- package/types/apps/src/react.d.ts +1 -1
- package/types/apps/src/skills.d.ts +13 -8
- package/types/apps/src/ui-auth.d.ts +2 -2
- package/types/apps/src/ui-serving.d.ts +1 -1
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/browser-operations.d.ts +7 -4
- package/types/telemetry/src/browser.d.ts +8 -3
- package/types/telemetry/src/config.d.ts +2 -2
- package/types/telemetry/src/index.d.ts +2 -1
- package/types/telemetry/src/layer.d.ts +10 -4
- package/types/telemetry/src/measurements.d.ts +1 -1
- package/types/telemetry/src/ownership.d.ts +60 -0
- package/types/telemetry/src/recorded-failure.d.ts +29 -0
- package/types/telemetry/src/relay.d.ts +16 -6
- package/types/telemetry/src/span-attributes.d.ts +17 -1
- package/types/telemetry/src/transport.d.ts +8 -1
- package/types/utils/src/api-error.d.ts +55 -0
- package/types/utils/src/connection-failure.d.ts +33 -0
- package/types/utils/src/legacy-keys.d.ts +20 -0
- package/types/utils/src/recorded-message.d.ts +18 -0
- package/types/utils/src/schema-definitions.d.ts +13 -0
- package/types/utils/src/user-facing-error.d.ts +83 -0
- package/js/chunk-6IIO4NPI.js +0 -29
- package/js/chunk-6YBRWRK3.js +0 -160
- package/js/chunk-BMOIAIVR.js +0 -138
- package/js/chunk-FZJOYIZO.js +0 -19
- package/js/chunk-G7IE6BKC.js +0 -224
- package/js/chunk-IHQ4ML7K.js +0 -2193
- package/js/chunk-KOXMLKTM.js +0 -1288
- package/js/chunk-M6ZRRIBI.js +0 -877
- package/js/chunk-PLCMJREA.js +0 -590
- package/js/chunk-PZ36XMXW.js +0 -93
- package/js/chunk-RBAC33PQ.js +0 -267
- package/js/chunk-SATWJKN6.js +0 -34
- package/js/chunk-SWPD52J7.js +0 -35
- package/js/chunk-TE4KO4HI.js +0 -47
- package/js/chunk-W7D7WVSY.js +0 -18
- package/js/chunk-X7SFGU4Q.js +0 -280
- package/js/chunk-ZJWDMTE3.js +0 -63
- package/js/mcp/stdio.js +0 -128
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -33
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/implementation/storage.d.ts +0 -13
- package/types/apps/src/mcp-stdio.d.ts +0 -8
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host protocol 3: protocol 2 plus the app's own failure detail. Operation, evaluation and
|
|
3
|
+
* declaration failures carry the error name and bounded, secret-free message the app raised, and
|
|
4
|
+
* workflow failures carry the failing step and app error. Queries and mutations that exceed a
|
|
5
|
+
* database budget, and declarations with a reserved database field, fail with their named error.
|
|
6
|
+
*
|
|
7
|
+
* This protocol is released and frozen once merged. `bun run check` compares `protocol3` with
|
|
8
|
+
* `packages/apps/protocols/3.json`. The module imports only `effect` and earlier protocol modules,
|
|
9
|
+
* so no change elsewhere can alter it; define the next protocol to change the wire format.
|
|
10
|
+
* See notes/apps-publishing.md.
|
|
11
|
+
*/
|
|
12
|
+
import { Schema } from "effect";
|
|
13
|
+
import { ElicitationFailed, HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, OpenapiResponseError, ProviderError, SkillLoadFailed } from "./1.js";
|
|
14
|
+
export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostOperationNotFound, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostInvocation, } from "./1.js";
|
|
15
|
+
export { SkillSources, SkillCatalogResponse } from "./2.js";
|
|
16
|
+
/** Longest failure message carried across the runtime boundary. */
|
|
17
|
+
export declare const maxFailureMessageLength = 2048;
|
|
18
|
+
/**
|
|
19
|
+
* `app` for errors thrown by authored code, `storage` for app data failures the host raised, and
|
|
20
|
+
* `service` for an external API the app called through a framework helper.
|
|
21
|
+
*/
|
|
22
|
+
export declare const FailureSource: Schema.Literals<readonly ["app", "storage", "service"]>;
|
|
23
|
+
/** The thrown error's name, such as `TypeError`, or the host error's tag. */
|
|
24
|
+
export declare const FailureName: Schema.String;
|
|
25
|
+
/** A stable host failure code, such as an app data reason, or the thrown error's own `code`. */
|
|
26
|
+
export declare const FailureCode: Schema.String;
|
|
27
|
+
/** Bounded, with the invocation's account secrets replaced. */
|
|
28
|
+
export declare const FailureMessage: Schema.String;
|
|
29
|
+
/**
|
|
30
|
+
* Where and why a run failed: the failing step and the error the app's own code raised, its
|
|
31
|
+
* message bounded and with account secrets replaced. Runs from before these fields existed have none.
|
|
32
|
+
*/
|
|
33
|
+
export declare const WorkflowFailureDetail: {
|
|
34
|
+
step: Schema.optionalKey<Schema.String>;
|
|
35
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
36
|
+
message: Schema.optionalKey<Schema.String>;
|
|
37
|
+
};
|
|
38
|
+
declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
|
|
39
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
|
|
40
|
+
readonly retryable: Schema.Boolean;
|
|
41
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
42
|
+
readonly errorName: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
44
|
+
}>, import("effect/Cause").YieldableError>;
|
|
45
|
+
/** Failures cross host boundaries as reason codes plus the app's own bounded error detail. */
|
|
46
|
+
export declare class WorkflowFailure extends WorkflowFailure_base {
|
|
47
|
+
}
|
|
48
|
+
/** Protocol 3's workflow step reply, carrying the failing step and app error. */
|
|
49
|
+
export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
|
|
50
|
+
readonly ok: Schema.Literal<true>;
|
|
51
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
52
|
+
}>, Schema.Struct<{
|
|
53
|
+
readonly ok: Schema.Literal<false>;
|
|
54
|
+
readonly error: typeof WorkflowFailure;
|
|
55
|
+
}>]>;
|
|
56
|
+
export type WorkflowRpcResult = typeof WorkflowRpcResult.Type;
|
|
57
|
+
/**
|
|
58
|
+
* The budget a query or mutation exhausted. `pageSize` bounds one take(n) or paginate call;
|
|
59
|
+
* `valueBytes` bounds one stored row; the rest accumulate across the whole invocation.
|
|
60
|
+
*/
|
|
61
|
+
export declare const DatabaseLimit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
|
|
62
|
+
export type DatabaseLimit = typeof DatabaseLimit.Type;
|
|
63
|
+
declare const DatabaseLimitExceeded_base: Schema.Class<DatabaseLimitExceeded, Schema.TaggedStruct<"DatabaseLimitExceeded", {
|
|
64
|
+
readonly limit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
|
|
65
|
+
readonly maximum: Schema.Int;
|
|
66
|
+
readonly requested: Schema.Int;
|
|
67
|
+
}>, import("effect/Cause").YieldableError>;
|
|
68
|
+
/** A query or mutation exceeded one of its database budgets. Nothing it wrote is committed. */
|
|
69
|
+
export declare class DatabaseLimitExceeded extends DatabaseLimitExceeded_base {
|
|
70
|
+
}
|
|
71
|
+
/** Host-owned row metadata that authored tables cannot declare. */
|
|
72
|
+
export declare const reservedFieldNames: readonly ["id", "createdAt", "updatedAt"];
|
|
73
|
+
declare const DatabaseFieldReserved_base: Schema.Class<DatabaseFieldReserved, Schema.TaggedStruct<"DatabaseFieldReserved", {
|
|
74
|
+
readonly table: Schema.String;
|
|
75
|
+
readonly field: Schema.Literals<readonly ["id", "createdAt", "updatedAt"]>;
|
|
76
|
+
}>, import("effect/Cause").YieldableError>;
|
|
77
|
+
/** A table declared a field the host adds to every row. */
|
|
78
|
+
export declare class DatabaseFieldReserved extends DatabaseFieldReserved_base {
|
|
79
|
+
}
|
|
80
|
+
declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
|
|
81
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
82
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
83
|
+
code: Schema.optionalKey<Schema.String>;
|
|
84
|
+
message: Schema.optionalKey<Schema.String>;
|
|
85
|
+
}>, import("effect/Cause").YieldableError>;
|
|
86
|
+
/**
|
|
87
|
+
* The module or declared capability shape could not be hosted. The detail names what the app
|
|
88
|
+
* declared wrongly; declarations bind no accounts.
|
|
89
|
+
*/
|
|
90
|
+
export declare class HostDeclarationInvalid extends HostDeclarationInvalid_base {
|
|
91
|
+
}
|
|
92
|
+
declare const HostEvaluationFailed_base: Schema.Class<HostEvaluationFailed, Schema.TaggedStruct<"HostEvaluationFailed", {
|
|
93
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
94
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
95
|
+
code: Schema.optionalKey<Schema.String>;
|
|
96
|
+
message: Schema.optionalKey<Schema.String>;
|
|
97
|
+
}>, import("effect/Cause").YieldableError>;
|
|
98
|
+
/** Fresh app evaluation failed before calling a tool. */
|
|
99
|
+
export declare class HostEvaluationFailed extends HostEvaluationFailed_base {
|
|
100
|
+
}
|
|
101
|
+
declare const HostOperationFailed_base: Schema.Class<HostOperationFailed, Schema.TaggedStruct<"HostOperationFailed", {
|
|
102
|
+
source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
|
|
103
|
+
errorName: Schema.optionalKey<Schema.String>;
|
|
104
|
+
code: Schema.optionalKey<Schema.String>;
|
|
105
|
+
message: Schema.optionalKey<Schema.String>;
|
|
106
|
+
}>, import("effect/Cause").YieldableError>;
|
|
107
|
+
/** An app operation failed. Carries the app's own error name and bounded, secret-free message. */
|
|
108
|
+
export declare class HostOperationFailed extends HostOperationFailed_base {
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Safe error envelope. Author failures carry only their name and bounded message with account
|
|
112
|
+
* secrets replaced; no source, account fields, stack or cause value is serialized.
|
|
113
|
+
*/
|
|
114
|
+
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]>;
|
|
115
|
+
/** Expected host failures. */
|
|
116
|
+
export type HostError = typeof HostError.Type;
|
|
117
|
+
/** Portable response envelope; callers parse the success value for their operation. */
|
|
118
|
+
export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
119
|
+
readonly ok: Schema.Literal<true>;
|
|
120
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
121
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
122
|
+
}>, Schema.Struct<{
|
|
123
|
+
readonly ok: Schema.Literal<false>;
|
|
124
|
+
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]>;
|
|
125
|
+
}>]>;
|
|
126
|
+
/** Parsed response envelope. */
|
|
127
|
+
export type HostResponse = typeof HostResponse.Type;
|
|
128
|
+
/** Every message of protocol 3, in the order its snapshot records them. */
|
|
129
|
+
export declare const protocol3: {
|
|
130
|
+
readonly version: 3;
|
|
131
|
+
readonly schemas: {
|
|
132
|
+
readonly invocation: Schema.Struct<{
|
|
133
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
134
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
135
|
+
}>, Schema.Struct<{
|
|
136
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
137
|
+
readonly name: Schema.NonEmptyString;
|
|
138
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
139
|
+
}>, Schema.Struct<{
|
|
140
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
141
|
+
readonly name: Schema.NonEmptyString;
|
|
142
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
143
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
144
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
145
|
+
}>, Schema.Struct<{
|
|
146
|
+
readonly name: Schema.NonEmptyString;
|
|
147
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
148
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
149
|
+
readonly callbackUrl: Schema.String;
|
|
150
|
+
readonly secret: Schema.String;
|
|
151
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
152
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
153
|
+
}>, Schema.Struct<{
|
|
154
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
155
|
+
readonly name: Schema.NonEmptyString;
|
|
156
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
157
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
158
|
+
readonly callbackUrl: Schema.String;
|
|
159
|
+
readonly secret: Schema.String;
|
|
160
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
161
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
readonly name: Schema.NonEmptyString;
|
|
164
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
165
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
166
|
+
readonly callbackUrl: Schema.String;
|
|
167
|
+
readonly secret: Schema.String;
|
|
168
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
169
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
170
|
+
}>, Schema.Struct<{
|
|
171
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
172
|
+
readonly name: Schema.NonEmptyString;
|
|
173
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
174
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
175
|
+
readonly callbackUrl: Schema.String;
|
|
176
|
+
readonly secret: Schema.String;
|
|
177
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
178
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
181
|
+
readonly request: Schema.Struct<{
|
|
182
|
+
readonly url: Schema.String;
|
|
183
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
184
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
185
|
+
readonly body: Schema.String;
|
|
186
|
+
}>;
|
|
187
|
+
readonly name: Schema.NonEmptyString;
|
|
188
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
189
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
190
|
+
readonly callbackUrl: Schema.String;
|
|
191
|
+
readonly secret: Schema.String;
|
|
192
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
193
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
194
|
+
}>]>, Schema.Struct<{
|
|
195
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
196
|
+
}>, Schema.Struct<{
|
|
197
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
198
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
199
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
200
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
201
|
+
}>, Schema.Struct<{
|
|
202
|
+
readonly operation: Schema.Literal<"skills">;
|
|
203
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
204
|
+
}>, Schema.Struct<{
|
|
205
|
+
readonly operation: Schema.Literal<"query">;
|
|
206
|
+
readonly name: Schema.NonEmptyString;
|
|
207
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
208
|
+
}>, Schema.Struct<{
|
|
209
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
210
|
+
readonly name: Schema.NonEmptyString;
|
|
211
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly operation: Schema.Literal<"call">;
|
|
214
|
+
readonly tool: Schema.NonEmptyString;
|
|
215
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
216
|
+
}>]>;
|
|
217
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
218
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
219
|
+
readonly provider: Schema.Struct<{
|
|
220
|
+
readonly name: Schema.NonEmptyString;
|
|
221
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
222
|
+
readonly type: Schema.Literal<"secrets">;
|
|
223
|
+
readonly label: Schema.String;
|
|
224
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
225
|
+
}>, Schema.Struct<{
|
|
226
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
227
|
+
readonly discover: Schema.String;
|
|
228
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
229
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
230
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
231
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
232
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
233
|
+
readonly path: Schema.String;
|
|
234
|
+
}>>;
|
|
235
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
236
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
237
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
238
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
239
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
240
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
241
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
242
|
+
}>, Schema.Struct<{
|
|
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 tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
251
|
+
readonly path: Schema.String;
|
|
252
|
+
}>>;
|
|
253
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
254
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
255
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
256
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
257
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
258
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
259
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
260
|
+
}>, Schema.Struct<{
|
|
261
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
262
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
263
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
264
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
265
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
266
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
267
|
+
readonly discover: Schema.String;
|
|
268
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
269
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
270
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
271
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
272
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
273
|
+
}>, Schema.Struct<{
|
|
274
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
275
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
276
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
277
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
278
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
279
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
280
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
281
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
282
|
+
readonly tokenUrl: Schema.String;
|
|
283
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
284
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
285
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
286
|
+
}>]>>;
|
|
287
|
+
}>;
|
|
288
|
+
readonly method: Schema.NonEmptyString;
|
|
289
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
290
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
291
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
292
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
293
|
+
readonly provider: Schema.Struct<{
|
|
294
|
+
readonly name: Schema.NonEmptyString;
|
|
295
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"secrets">;
|
|
297
|
+
readonly label: Schema.String;
|
|
298
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
299
|
+
}>, Schema.Struct<{
|
|
300
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
301
|
+
readonly discover: Schema.String;
|
|
302
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
303
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
304
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
305
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
306
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
307
|
+
readonly path: Schema.String;
|
|
308
|
+
}>>;
|
|
309
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
310
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
311
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
312
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
313
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
314
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
315
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
316
|
+
}>, Schema.Struct<{
|
|
317
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
318
|
+
readonly authorizationUrl: Schema.String;
|
|
319
|
+
readonly tokenUrl: Schema.String;
|
|
320
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
321
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
322
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
323
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
324
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
325
|
+
readonly path: Schema.String;
|
|
326
|
+
}>>;
|
|
327
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
328
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
329
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
330
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
331
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
332
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
333
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
334
|
+
}>, Schema.Struct<{
|
|
335
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
336
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
337
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
338
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
339
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
340
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
341
|
+
readonly discover: Schema.String;
|
|
342
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
343
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
344
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
345
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
346
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
349
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
350
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
351
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
352
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
353
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
354
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
355
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
356
|
+
readonly tokenUrl: Schema.String;
|
|
357
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
358
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
359
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
360
|
+
}>]>>;
|
|
361
|
+
}>;
|
|
362
|
+
readonly method: Schema.NonEmptyString;
|
|
363
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
364
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
365
|
+
}>>]>>;
|
|
366
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
367
|
+
readonly tool: Schema.NonEmptyString;
|
|
368
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
369
|
+
}>>;
|
|
370
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
371
|
+
readonly key: Schema.NonEmptyString;
|
|
372
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
373
|
+
}>>;
|
|
374
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
375
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
376
|
+
}>;
|
|
377
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
378
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
379
|
+
}>, Schema.Struct<{
|
|
380
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
381
|
+
readonly name: Schema.NonEmptyString;
|
|
382
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
383
|
+
}>, Schema.Struct<{
|
|
384
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
385
|
+
readonly name: Schema.NonEmptyString;
|
|
386
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
387
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
388
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
389
|
+
}>, Schema.Struct<{
|
|
390
|
+
readonly name: Schema.NonEmptyString;
|
|
391
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
392
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
393
|
+
readonly callbackUrl: Schema.String;
|
|
394
|
+
readonly secret: Schema.String;
|
|
395
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
396
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
397
|
+
}>, Schema.Struct<{
|
|
398
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
399
|
+
readonly name: Schema.NonEmptyString;
|
|
400
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
401
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
402
|
+
readonly callbackUrl: Schema.String;
|
|
403
|
+
readonly secret: Schema.String;
|
|
404
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
405
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
406
|
+
}>, Schema.Struct<{
|
|
407
|
+
readonly name: Schema.NonEmptyString;
|
|
408
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
409
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
410
|
+
readonly callbackUrl: Schema.String;
|
|
411
|
+
readonly secret: Schema.String;
|
|
412
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
413
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
414
|
+
}>, Schema.Struct<{
|
|
415
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
416
|
+
readonly name: Schema.NonEmptyString;
|
|
417
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
418
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
419
|
+
readonly callbackUrl: Schema.String;
|
|
420
|
+
readonly secret: Schema.String;
|
|
421
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
422
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
423
|
+
}>, Schema.Struct<{
|
|
424
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
425
|
+
readonly request: Schema.Struct<{
|
|
426
|
+
readonly url: Schema.String;
|
|
427
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
428
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
429
|
+
readonly body: Schema.String;
|
|
430
|
+
}>;
|
|
431
|
+
readonly name: Schema.NonEmptyString;
|
|
432
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
433
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
434
|
+
readonly callbackUrl: Schema.String;
|
|
435
|
+
readonly secret: Schema.String;
|
|
436
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
437
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
438
|
+
}>]>, Schema.Struct<{
|
|
439
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
440
|
+
}>, Schema.Struct<{
|
|
441
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
442
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
443
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
444
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
445
|
+
}>, Schema.Struct<{
|
|
446
|
+
readonly operation: Schema.Literal<"skills">;
|
|
447
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
448
|
+
}>, Schema.Struct<{
|
|
449
|
+
readonly operation: Schema.Literal<"query">;
|
|
450
|
+
readonly name: Schema.NonEmptyString;
|
|
451
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
452
|
+
}>, Schema.Struct<{
|
|
453
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
454
|
+
readonly name: Schema.NonEmptyString;
|
|
455
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
456
|
+
}>, Schema.Struct<{
|
|
457
|
+
readonly operation: Schema.Literal<"call">;
|
|
458
|
+
readonly tool: Schema.NonEmptyString;
|
|
459
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
460
|
+
}>]>;
|
|
461
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
462
|
+
readonly ok: Schema.Literal<true>;
|
|
463
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
464
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
465
|
+
}>, Schema.Struct<{
|
|
466
|
+
readonly ok: Schema.Literal<false>;
|
|
467
|
+
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]>;
|
|
468
|
+
}>]>;
|
|
469
|
+
readonly requirements: Schema.Struct<{
|
|
470
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
471
|
+
readonly skills: Schema.Literal<true>;
|
|
472
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
473
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
474
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
475
|
+
}>>;
|
|
476
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
477
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
478
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
479
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
480
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
481
|
+
readonly references: Schema.optional<Schema.String>;
|
|
482
|
+
}>>;
|
|
483
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
484
|
+
readonly name: Schema.String;
|
|
485
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
486
|
+
}>>;
|
|
487
|
+
}>>>;
|
|
488
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
489
|
+
readonly definition: Schema.Struct<{
|
|
490
|
+
readonly name: Schema.NonEmptyString;
|
|
491
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
492
|
+
readonly type: Schema.Literal<"secrets">;
|
|
493
|
+
readonly label: Schema.String;
|
|
494
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
495
|
+
}>, Schema.Struct<{
|
|
496
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
497
|
+
readonly discover: Schema.String;
|
|
498
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
499
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
500
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
501
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
502
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
503
|
+
readonly path: Schema.String;
|
|
504
|
+
}>>;
|
|
505
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
506
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
507
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
508
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
509
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
510
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
511
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
512
|
+
}>, Schema.Struct<{
|
|
513
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
514
|
+
readonly authorizationUrl: Schema.String;
|
|
515
|
+
readonly tokenUrl: Schema.String;
|
|
516
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
517
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
518
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
519
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
520
|
+
readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
|
|
521
|
+
readonly path: Schema.String;
|
|
522
|
+
}>>;
|
|
523
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
524
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
525
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
526
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
527
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
528
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
529
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
530
|
+
}>, Schema.Struct<{
|
|
531
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
532
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
533
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
534
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
535
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
536
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
537
|
+
readonly discover: Schema.String;
|
|
538
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
539
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
540
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
541
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
542
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
543
|
+
}>, Schema.Struct<{
|
|
544
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
545
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
546
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
547
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
548
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
549
|
+
readonly scopeSeparator: Schema.optionalKey<Schema.String>;
|
|
550
|
+
readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
|
|
551
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
552
|
+
readonly tokenUrl: Schema.String;
|
|
553
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
554
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
555
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
556
|
+
}>]>>;
|
|
557
|
+
}>;
|
|
558
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
559
|
+
}>>;
|
|
560
|
+
}>;
|
|
561
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
562
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
563
|
+
readonly name: Schema.NonEmptyString;
|
|
564
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
565
|
+
readonly kind: Schema.Literal<"interval">;
|
|
566
|
+
readonly milliseconds: Schema.Int;
|
|
567
|
+
}>, Schema.Struct<{
|
|
568
|
+
readonly kind: Schema.Literal<"cron">;
|
|
569
|
+
readonly calendar: Schema.Struct<{
|
|
570
|
+
readonly expression: Schema.NonEmptyString;
|
|
571
|
+
readonly timezone: Schema.NonEmptyString;
|
|
572
|
+
}>;
|
|
573
|
+
}>]>;
|
|
574
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
575
|
+
}>>>;
|
|
576
|
+
readonly name: Schema.NonEmptyString;
|
|
577
|
+
readonly description: Schema.String;
|
|
578
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
579
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
580
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
581
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
582
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
583
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
584
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
585
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
586
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
587
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
588
|
+
}>>;
|
|
589
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
590
|
+
}>>;
|
|
591
|
+
readonly toolSummaries: Schema.$Array<Schema.Struct<{
|
|
592
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
593
|
+
readonly name: Schema.NonEmptyString;
|
|
594
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
595
|
+
readonly kind: Schema.Literal<"interval">;
|
|
596
|
+
readonly milliseconds: Schema.Int;
|
|
597
|
+
}>, Schema.Struct<{
|
|
598
|
+
readonly kind: Schema.Literal<"cron">;
|
|
599
|
+
readonly calendar: Schema.Struct<{
|
|
600
|
+
readonly expression: Schema.NonEmptyString;
|
|
601
|
+
readonly timezone: Schema.NonEmptyString;
|
|
602
|
+
}>;
|
|
603
|
+
}>]>;
|
|
604
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
605
|
+
}>>>;
|
|
606
|
+
readonly name: Schema.NonEmptyString;
|
|
607
|
+
readonly description: Schema.String;
|
|
608
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
609
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
610
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
611
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
612
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
613
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
614
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
615
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
616
|
+
}>>;
|
|
617
|
+
}>>;
|
|
618
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
619
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
620
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
621
|
+
readonly path: Schema.NonEmptyString;
|
|
622
|
+
readonly content: Schema.String;
|
|
623
|
+
}>>;
|
|
624
|
+
readonly name: Schema.NonEmptyString;
|
|
625
|
+
readonly description: Schema.String;
|
|
626
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
627
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
628
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
629
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
630
|
+
}>>;
|
|
631
|
+
readonly dynamic: Schema.Boolean;
|
|
632
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
633
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
634
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
635
|
+
readonly path: Schema.NonEmptyString;
|
|
636
|
+
readonly content: Schema.String;
|
|
637
|
+
}>>;
|
|
638
|
+
readonly name: Schema.NonEmptyString;
|
|
639
|
+
readonly description: Schema.String;
|
|
640
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
641
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
642
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
643
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
644
|
+
}>>]>;
|
|
645
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
646
|
+
readonly mode: Schema.Literal<"form">;
|
|
647
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
648
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
649
|
+
readonly type: Schema.tag<"object">;
|
|
650
|
+
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]>>;
|
|
651
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
652
|
+
}>>;
|
|
653
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
654
|
+
readonly message: Schema.String;
|
|
655
|
+
}>;
|
|
656
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
657
|
+
readonly ok: Schema.Literal<true>;
|
|
658
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
659
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
660
|
+
readonly action: Schema.Literal<"accept">;
|
|
661
|
+
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>;
|
|
662
|
+
}>, Schema.Struct<{
|
|
663
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
664
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
665
|
+
}>]>;
|
|
666
|
+
}>, Schema.Struct<{
|
|
667
|
+
readonly ok: Schema.Literal<false>;
|
|
668
|
+
readonly error: typeof ElicitationFailed;
|
|
669
|
+
}>]>;
|
|
670
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
671
|
+
readonly operation: Schema.Literal<"do">;
|
|
672
|
+
readonly name: Schema.NonEmptyString;
|
|
673
|
+
readonly options: Schema.Struct<{
|
|
674
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
675
|
+
readonly limit: Schema.Int;
|
|
676
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
677
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
678
|
+
}>>;
|
|
679
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
680
|
+
}>;
|
|
681
|
+
}>, Schema.Struct<{
|
|
682
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
683
|
+
readonly name: Schema.NonEmptyString;
|
|
684
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
685
|
+
}>, Schema.Struct<{
|
|
686
|
+
readonly operation: Schema.Literal<"until">;
|
|
687
|
+
readonly name: Schema.NonEmptyString;
|
|
688
|
+
readonly timestamp: Schema.Finite;
|
|
689
|
+
}>, Schema.Struct<{
|
|
690
|
+
readonly operation: Schema.Literal<"context">;
|
|
691
|
+
}>, Schema.Struct<{
|
|
692
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
693
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
694
|
+
readonly name: Schema.NonEmptyString;
|
|
695
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
696
|
+
readonly stepId: Schema.NonEmptyString;
|
|
697
|
+
readonly timeout: Schema.Finite;
|
|
698
|
+
}>]>;
|
|
699
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
700
|
+
readonly ok: Schema.Literal<true>;
|
|
701
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
702
|
+
}>, Schema.Struct<{
|
|
703
|
+
readonly ok: Schema.Literal<false>;
|
|
704
|
+
readonly error: typeof WorkflowFailure;
|
|
705
|
+
}>]>;
|
|
706
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
707
|
+
readonly operation: Schema.Literal<"start">;
|
|
708
|
+
readonly workflow: Schema.NonEmptyString;
|
|
709
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
710
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
711
|
+
}>, Schema.Struct<{
|
|
712
|
+
readonly operation: Schema.Literal<"get">;
|
|
713
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
714
|
+
}>, Schema.Struct<{
|
|
715
|
+
readonly operation: Schema.Literal<"list">;
|
|
716
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
717
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
718
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
719
|
+
}>, Schema.Struct<{
|
|
720
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
721
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
722
|
+
}>]>;
|
|
723
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
724
|
+
readonly operation: Schema.Literal<"read">;
|
|
725
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
726
|
+
}>, Schema.Struct<{
|
|
727
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
728
|
+
readonly key: Schema.String;
|
|
729
|
+
readonly refresh: Schema.Boolean;
|
|
730
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
731
|
+
}>, Schema.Struct<{
|
|
732
|
+
readonly operation: Schema.Literal<"claim">;
|
|
733
|
+
readonly key: Schema.String;
|
|
734
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
735
|
+
}>, Schema.Struct<{
|
|
736
|
+
readonly operation: Schema.Literal<"publish">;
|
|
737
|
+
readonly key: Schema.String;
|
|
738
|
+
readonly lease: Schema.String;
|
|
739
|
+
readonly entry: Schema.Struct<{
|
|
740
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
741
|
+
readonly version: Schema.String;
|
|
742
|
+
readonly freshUntil: Schema.Finite;
|
|
743
|
+
readonly staleUntil: Schema.Finite;
|
|
744
|
+
}>;
|
|
745
|
+
}>, Schema.Struct<{
|
|
746
|
+
readonly operation: Schema.Literal<"release">;
|
|
747
|
+
readonly key: Schema.String;
|
|
748
|
+
readonly lease: Schema.String;
|
|
749
|
+
}>, Schema.Struct<{
|
|
750
|
+
readonly operation: Schema.Literal<"renew">;
|
|
751
|
+
readonly key: Schema.String;
|
|
752
|
+
readonly lease: Schema.String;
|
|
753
|
+
}>, Schema.Struct<{
|
|
754
|
+
readonly operation: Schema.Literal<"write">;
|
|
755
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
756
|
+
readonly key: Schema.String;
|
|
757
|
+
readonly entry: Schema.Struct<{
|
|
758
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
759
|
+
readonly version: Schema.String;
|
|
760
|
+
readonly freshUntil: Schema.Finite;
|
|
761
|
+
readonly staleUntil: Schema.Finite;
|
|
762
|
+
}>;
|
|
763
|
+
}>>;
|
|
764
|
+
}>, Schema.Struct<{
|
|
765
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
766
|
+
readonly key: Schema.String;
|
|
767
|
+
}>]>;
|
|
768
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
769
|
+
readonly ok: Schema.Literal<true>;
|
|
770
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
771
|
+
}>, Schema.Struct<{
|
|
772
|
+
readonly ok: Schema.Literal<false>;
|
|
773
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
774
|
+
}>]>;
|
|
775
|
+
};
|
|
776
|
+
};
|