@spencerboucher/switchyard-client 0.0.0-stage → 0.14.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/LICENSE +21 -0
- package/README.md +24 -2
- package/dist/index.js +3842 -0
- package/dist/types/api.d.ts +28 -0
- package/dist/types/client.d.ts +56 -0
- package/dist/types/connection.d.ts +66 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/protocol/adapter-preview.d.ts +455 -0
- package/dist/types/protocol/adapters.d.ts +113 -0
- package/dist/types/protocol/agent-wire.d.ts +269 -0
- package/dist/types/protocol/api.d.ts +1463 -0
- package/dist/types/protocol/backoff.d.ts +5 -0
- package/dist/types/protocol/client-wire.d.ts +1730 -0
- package/dist/types/protocol/contributions.d.ts +62 -0
- package/dist/types/protocol/entities.d.ts +1350 -0
- package/dist/types/protocol/errors.d.ts +115 -0
- package/dist/types/protocol/events.d.ts +1098 -0
- package/dist/types/protocol/github.d.ts +510 -0
- package/dist/types/protocol/host-wire.d.ts +1456 -0
- package/dist/types/protocol/ids.d.ts +7 -0
- package/dist/types/protocol/index.d.ts +28 -0
- package/dist/types/protocol/policies.d.ts +576 -0
- package/dist/types/protocol/terminal-wire.d.ts +45 -0
- package/dist/types/protocol/titles.d.ts +9 -0
- package/dist/types/protocol/ui.d.ts +164 -0
- package/dist/types/protocol/views.d.ts +12 -0
- package/dist/types/protocol/web-bridge.d.ts +30 -0
- package/dist/types/store.d.ts +59 -0
- package/dist/types/wait.d.ts +20 -0
- package/package.json +28 -4
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type UINode } from "./ui.js";
|
|
3
|
+
export declare const ContributionPlacement: z.ZodEnum<{
|
|
4
|
+
"composer.pill": "composer.pill";
|
|
5
|
+
"palette.item": "palette.item";
|
|
6
|
+
"session.panel": "session.panel";
|
|
7
|
+
"sidebar.footer": "sidebar.footer";
|
|
8
|
+
"sidebar.header": "sidebar.header";
|
|
9
|
+
"slash.command": "slash.command";
|
|
10
|
+
}>;
|
|
11
|
+
export type ContributionPlacement = z.infer<typeof ContributionPlacement>;
|
|
12
|
+
export declare const ContributionDescriptor: z.ZodObject<{
|
|
13
|
+
placement: z.ZodEnum<{
|
|
14
|
+
"composer.pill": "composer.pill";
|
|
15
|
+
"palette.item": "palette.item";
|
|
16
|
+
"session.panel": "session.panel";
|
|
17
|
+
"sidebar.footer": "sidebar.footer";
|
|
18
|
+
"sidebar.header": "sidebar.header";
|
|
19
|
+
"slash.command": "slash.command";
|
|
20
|
+
}>;
|
|
21
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
name: z.ZodOptional<z.ZodString>;
|
|
25
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type ContributionDescriptor = z.infer<typeof ContributionDescriptor>;
|
|
28
|
+
declare const ContributionInput: z.ZodObject<{
|
|
29
|
+
placement: z.ZodEnum<{
|
|
30
|
+
"composer.pill": "composer.pill";
|
|
31
|
+
"palette.item": "palette.item";
|
|
32
|
+
"session.panel": "session.panel";
|
|
33
|
+
"sidebar.footer": "sidebar.footer";
|
|
34
|
+
"sidebar.header": "sidebar.header";
|
|
35
|
+
"slash.command": "slash.command";
|
|
36
|
+
}>;
|
|
37
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
node: z.ZodUnknown;
|
|
41
|
+
mobileFallback: z.ZodString;
|
|
42
|
+
state: z.ZodOptional<z.ZodUnknown>;
|
|
43
|
+
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
export type AdapterContribution = Omit<z.infer<typeof ContributionInput>, "node"> & {
|
|
47
|
+
node: UINode;
|
|
48
|
+
};
|
|
49
|
+
/** Bound untrusted JSON before recursive Zod parsing; avoid cycles and pathological inputs. */
|
|
50
|
+
export declare function boundContributionJson(value: unknown, maxBytes?: number): void;
|
|
51
|
+
export declare function validateContribution(id: string, input: unknown): {
|
|
52
|
+
descriptor: ContributionDescriptor;
|
|
53
|
+
title: string;
|
|
54
|
+
node: UINode;
|
|
55
|
+
mobileFallback: string;
|
|
56
|
+
state?: unknown;
|
|
57
|
+
};
|
|
58
|
+
export declare function validateContributionCard(node: unknown): UINode;
|
|
59
|
+
export declare function contributionSlot(id: string): string;
|
|
60
|
+
export declare function contributionKey(adapterId: string, id: string): string;
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=contributions.d.ts.map
|