apps 0.0.1-beta.0
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 +191 -0
- package/check-publish.mjs +10 -0
- package/framework-reference.json +1 -0
- package/js/chunk-22WRQZT7.js +389 -0
- package/js/chunk-2OTCEKL2.js +29480 -0
- package/js/chunk-36DNRFZQ.js +34 -0
- package/js/chunk-3ANFZFCV.js +1799 -0
- package/js/chunk-7JXHF5IF.js +138 -0
- package/js/chunk-BCSNKUAC.js +0 -0
- package/js/chunk-BKVL7XAJ.js +47 -0
- package/js/chunk-BPEFS4YF.js +1323 -0
- package/js/chunk-C24KEZXR.js +59 -0
- package/js/chunk-D6BKYP2L.js +877 -0
- package/js/chunk-EP6AEUZO.js +19 -0
- package/js/chunk-HP7E42X6.js +1719 -0
- package/js/chunk-KWTCHVLT.js +284 -0
- package/js/chunk-LOKGDT6B.js +28 -0
- package/js/chunk-MLKGABMK.js +9 -0
- package/js/chunk-OWD2YICM.js +2486 -0
- package/js/chunk-Q2FD5IBM.js +899 -0
- package/js/chunk-R6JMJSVT.js +590 -0
- package/js/chunk-SBKHUC5L.js +56 -0
- package/js/chunk-VFUZI3NY.js +75 -0
- package/js/chunk-W7Q5EOTS.js +4375 -0
- package/js/chunk-WIDTG42X.js +171 -0
- package/js/chunk-X3YBZCJW.js +246 -0
- package/js/chunk-YDR4CPJA.js +2357 -0
- package/js/client.js +1023 -0
- package/js/contracts.js +163 -0
- package/js/effect.js +44 -0
- package/js/graphql.js +392 -0
- package/js/host.js +193 -0
- package/js/index.js +284 -0
- package/js/mcp/effect.js +23 -0
- package/js/mcp/stdio.js +123 -0
- package/js/mcp.js +37 -0
- package/js/openapi.js +246 -0
- package/js/operations/approval.js +9 -0
- package/js/react.js +37 -0
- package/js/storage/facet.js +546 -0
- package/js/ui/auth/contracts.js +19 -0
- package/js/ui/auth.js +28 -0
- package/js/ui/contracts.js +24 -0
- package/js/ui/serving.js +286 -0
- package/package.json +116 -0
- package/runtime.json +1 -0
- package/types/app-data/src/contracts/database.d.ts +193 -0
- package/types/app-data/src/implementation/cursor.d.ts +10 -0
- package/types/app-data/src/implementation/index-key.d.ts +7 -0
- package/types/app-data/src/implementation/promise.d.ts +68 -0
- package/types/app-data/src/implementation/range.d.ts +8 -0
- package/types/app-data/src/implementation/schema.d.ts +33 -0
- package/types/app-data/src/implementation/sqlite.d.ts +11 -0
- package/types/app-data/src/index.d.ts +4 -0
- package/types/apps/src/approval.d.ts +10 -0
- package/types/apps/src/client.d.ts +5 -0
- package/types/apps/src/contracts/app.d.ts +58 -0
- package/types/apps/src/contracts/approval.d.ts +14 -0
- package/types/apps/src/contracts/context.d.ts +25 -0
- package/types/apps/src/contracts/elicitation.d.ts +86 -0
- package/types/apps/src/contracts/graphql.d.ts +102 -0
- package/types/apps/src/contracts/host.d.ts +568 -0
- package/types/apps/src/contracts/http.d.ts +20 -0
- package/types/apps/src/contracts/live.d.ts +26 -0
- package/types/apps/src/contracts/mcp.d.ts +93 -0
- package/types/apps/src/contracts/openapi.d.ts +105 -0
- package/types/apps/src/contracts/operations.d.ts +30 -0
- package/types/apps/src/contracts/optimistic.d.ts +22 -0
- package/types/apps/src/contracts/provider.d.ts +96 -0
- package/types/apps/src/contracts/schedules.d.ts +51 -0
- package/types/apps/src/contracts/schema.d.ts +20 -0
- package/types/apps/src/contracts/storage.d.ts +68 -0
- package/types/apps/src/contracts/tools.d.ts +11 -0
- package/types/apps/src/contracts/ui-auth.d.ts +28 -0
- package/types/apps/src/contracts/ui.d.ts +90 -0
- package/types/apps/src/contracts/webhook-protocol.d.ts +102 -0
- package/types/apps/src/contracts/webhooks.d.ts +53 -0
- package/types/apps/src/contracts/workflows.d.ts +277 -0
- package/types/apps/src/effect.d.ts +10 -0
- package/types/apps/src/facet.d.ts +5 -0
- package/types/apps/src/graphql.d.ts +10 -0
- package/types/apps/src/host.d.ts +16 -0
- package/types/apps/src/implementation/account-operations.d.ts +32 -0
- package/types/apps/src/implementation/app.d.ts +40 -0
- package/types/apps/src/implementation/authoring.d.ts +12 -0
- package/types/apps/src/implementation/elicitation.d.ts +103 -0
- package/types/apps/src/implementation/graphql.d.ts +5 -0
- package/types/apps/src/implementation/host.d.ts +3 -0
- package/types/apps/src/implementation/http.d.ts +5 -0
- package/types/apps/src/implementation/live.d.ts +18 -0
- package/types/apps/src/implementation/mcp-call.d.ts +19 -0
- package/types/apps/src/implementation/mcp-client.d.ts +50 -0
- package/types/apps/src/implementation/mcp-stdio.d.ts +4 -0
- package/types/apps/src/implementation/mcp-tools.d.ts +6 -0
- package/types/apps/src/implementation/mcp.d.ts +4 -0
- package/types/apps/src/implementation/openapi-request.d.ts +11 -0
- package/types/apps/src/implementation/openapi.d.ts +5 -0
- package/types/apps/src/implementation/operations.d.ts +65 -0
- package/types/apps/src/implementation/optimistic.d.ts +30 -0
- package/types/apps/src/implementation/protocol-operations.d.ts +24 -0
- package/types/apps/src/implementation/provider.d.ts +16 -0
- package/types/apps/src/implementation/query-commit.d.ts +10 -0
- package/types/apps/src/implementation/schedules.d.ts +16 -0
- package/types/apps/src/implementation/schema.d.ts +93 -0
- package/types/apps/src/implementation/storage.d.ts +13 -0
- package/types/apps/src/implementation/ui-auth.d.ts +13 -0
- package/types/apps/src/implementation/ui-client.d.ts +16 -0
- package/types/apps/src/implementation/ui-errors.d.ts +2 -0
- package/types/apps/src/implementation/ui-serving.d.ts +16 -0
- package/types/apps/src/implementation/ui-watch.d.ts +2 -0
- package/types/apps/src/implementation/webhooks.d.ts +29 -0
- package/types/apps/src/implementation/workflow-context.d.ts +8 -0
- package/types/apps/src/implementation/workflow-rpc.d.ts +5 -0
- package/types/apps/src/implementation/workflows.d.ts +27 -0
- package/types/apps/src/index.d.ts +58 -0
- package/types/apps/src/mcp-stdio.d.ts +8 -0
- package/types/apps/src/mcp.d.ts +10 -0
- package/types/apps/src/openapi.d.ts +10 -0
- package/types/apps/src/react.d.ts +7 -0
- package/types/apps/src/ui-auth.d.ts +3 -0
- package/types/apps/src/ui-serving.d.ts +3 -0
- package/types/telemetry/src/browser-operations.d.ts +16 -0
- package/types/telemetry/src/browser-performance.d.ts +11 -0
- package/types/telemetry/src/browser-request-timing.d.ts +2 -0
- package/types/telemetry/src/browser.d.ts +27 -0
- package/types/telemetry/src/config.d.ts +83 -0
- package/types/telemetry/src/context.d.ts +14 -0
- package/types/telemetry/src/index.d.ts +9 -0
- package/types/telemetry/src/layer.d.ts +7 -0
- package/types/telemetry/src/measurements.d.ts +8 -0
- package/types/telemetry/src/pending-span.d.ts +7 -0
- package/types/telemetry/src/relay.d.ts +28 -0
- package/types/telemetry/src/span-attributes.d.ts +29 -0
- package/types/telemetry/src/trace-context.d.ts +20 -0
- package/types/telemetry/src/transport.d.ts +6 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/** GraphQL discovery contracts. Catalogs are evaluated with the selected account. */
|
|
2
|
+
import { Schema, type Effect } from "effect";
|
|
3
|
+
import { type JsonValue } from "./schema.js";
|
|
4
|
+
/** Provider timeout policy, independent of any enclosing operation deadline. */
|
|
5
|
+
export declare const GraphqlClientLimits: Schema.Struct<{
|
|
6
|
+
readonly timeoutMs: Schema.Int;
|
|
7
|
+
readonly maxTimeoutMs: Schema.Int;
|
|
8
|
+
}>;
|
|
9
|
+
export type GraphqlClientLimits = typeof GraphqlClientLimits.Type;
|
|
10
|
+
/** Current GraphQL discovery and call timeout defaults. */
|
|
11
|
+
export declare const defaultGraphqlClientLimits: {
|
|
12
|
+
readonly timeoutMs: number;
|
|
13
|
+
readonly maxTimeoutMs: number;
|
|
14
|
+
};
|
|
15
|
+
/** Endpoint and credential snapshot for one app evaluation. */
|
|
16
|
+
export declare const GraphqlToolsOptions: Schema.Struct<{
|
|
17
|
+
readonly url: Schema.String;
|
|
18
|
+
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
19
|
+
readonly signal: Schema.optional<Schema.instanceOf<AbortSignal, AbortSignal>>;
|
|
20
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
21
|
+
}>;
|
|
22
|
+
export type GraphqlToolsOptions = typeof GraphqlToolsOptions.Type;
|
|
23
|
+
declare const GraphqlError_base: Schema.Class<GraphqlError, Schema.TaggedStruct<"GraphqlError", {
|
|
24
|
+
readonly phase: Schema.Literals<readonly ["discover", "call"]>;
|
|
25
|
+
readonly reason: Schema.Literals<readonly ["request", "unauthorized", "invalid_response", "invalid_input", "timeout", "execution"]>;
|
|
26
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
27
|
+
}>, import("effect/Cause").YieldableError>;
|
|
28
|
+
/** Safe failures omit upstream bodies. Execution means a valid GraphQL error response, not malformed data. */
|
|
29
|
+
export declare class GraphqlError extends GraphqlError_base {
|
|
30
|
+
}
|
|
31
|
+
/** The introspection subset used by tools; unknown upstream fields are omitted. */
|
|
32
|
+
export interface GraphqlTypeRef {
|
|
33
|
+
readonly kind: "SCALAR" | "OBJECT" | "INTERFACE" | "UNION" | "ENUM" | "INPUT_OBJECT" | "LIST" | "NON_NULL";
|
|
34
|
+
readonly name: string | null;
|
|
35
|
+
readonly ofType?: GraphqlTypeRef | null | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Recursive wrappers retain list and nullability information. */
|
|
38
|
+
export declare const GraphqlTypeRef: Schema.Codec<GraphqlTypeRef>;
|
|
39
|
+
/** Query/mutation arguments and return type. */
|
|
40
|
+
export declare const GraphqlField: Schema.Struct<{
|
|
41
|
+
readonly name: Schema.String;
|
|
42
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
43
|
+
readonly args: Schema.$Array<Schema.Struct<{
|
|
44
|
+
readonly name: Schema.String;
|
|
45
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
46
|
+
readonly type: Schema.Codec<GraphqlTypeRef, GraphqlTypeRef, never, never>;
|
|
47
|
+
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
48
|
+
}>>;
|
|
49
|
+
readonly type: Schema.Codec<GraphqlTypeRef, GraphqlTypeRef, never, never>;
|
|
50
|
+
}>;
|
|
51
|
+
export type GraphqlField = typeof GraphqlField.Type;
|
|
52
|
+
/** Parsed, account-specific remote schema. */
|
|
53
|
+
export declare const GraphqlIntrospection: Schema.Struct<{
|
|
54
|
+
readonly __schema: Schema.Struct<{
|
|
55
|
+
readonly queryType: Schema.NullOr<Schema.Struct<{
|
|
56
|
+
readonly name: Schema.String;
|
|
57
|
+
}>>;
|
|
58
|
+
readonly mutationType: Schema.NullOr<Schema.Struct<{
|
|
59
|
+
readonly name: Schema.String;
|
|
60
|
+
}>>;
|
|
61
|
+
readonly types: Schema.$Array<Schema.Struct<{
|
|
62
|
+
readonly kind: Schema.Literals<readonly ["SCALAR", "OBJECT", "INTERFACE", "UNION", "ENUM", "INPUT_OBJECT", "LIST", "NON_NULL"]>;
|
|
63
|
+
readonly name: Schema.String;
|
|
64
|
+
readonly fields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
65
|
+
readonly name: Schema.String;
|
|
66
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
67
|
+
readonly args: Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly name: Schema.String;
|
|
69
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
70
|
+
readonly type: Schema.Codec<GraphqlTypeRef, GraphqlTypeRef, never, never>;
|
|
71
|
+
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
72
|
+
}>>;
|
|
73
|
+
readonly type: Schema.Codec<GraphqlTypeRef, GraphqlTypeRef, never, never>;
|
|
74
|
+
}>>>;
|
|
75
|
+
readonly inputFields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
76
|
+
readonly name: Schema.String;
|
|
77
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
78
|
+
readonly type: Schema.Codec<GraphqlTypeRef, GraphqlTypeRef, never, never>;
|
|
79
|
+
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
80
|
+
}>>>;
|
|
81
|
+
readonly enumValues: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
82
|
+
readonly name: Schema.String;
|
|
83
|
+
}>>>;
|
|
84
|
+
}>>;
|
|
85
|
+
}>;
|
|
86
|
+
}>;
|
|
87
|
+
export type GraphqlIntrospection = typeof GraphqlIntrospection.Type;
|
|
88
|
+
/** GraphQL responses keep data separate from protocol errors. */
|
|
89
|
+
export declare const GraphqlResponse: Schema.Struct<{
|
|
90
|
+
readonly data: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
91
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
92
|
+
}>;
|
|
93
|
+
/** A query or mutation bound to one selected account, with native Effect operations. */
|
|
94
|
+
export interface GraphqlTool {
|
|
95
|
+
readonly description: string;
|
|
96
|
+
readonly readOnly: boolean;
|
|
97
|
+
readonly input: Schema.Decoder<JsonValue>;
|
|
98
|
+
readonly run: (context: unknown, input: JsonValue) => Effect.Effect<JsonValue, GraphqlError>;
|
|
99
|
+
}
|
|
100
|
+
/** One tool per root field; subscriptions require a separate long-lived host. */
|
|
101
|
+
export type GraphqlTools = Readonly<Record<string, GraphqlTool>>;
|
|
102
|
+
export {};
|