@camerontaylor/paseo-protocol 0.12.0-fork.1 → 0.13.0-fork.1
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/dist/addresses.d.ts +6 -0
- package/dist/addresses.js +2 -0
- package/dist/agent-labels.d.ts +4 -0
- package/dist/agent-labels.js +17 -0
- package/dist/agent-message.d.ts +1 -0
- package/dist/agent-message.js +1 -0
- package/dist/binary-frames/demux.d.ts +4 -0
- package/dist/binary-frames/demux.js +5 -0
- package/dist/binary-frames/host-route.d.ts +12 -0
- package/dist/binary-frames/host-route.js +36 -0
- package/dist/binary-frames/index.d.ts +1 -0
- package/dist/binary-frames/index.js +1 -0
- package/dist/client-capabilities.d.ts +1 -0
- package/dist/client-capabilities.js +1 -0
- package/dist/connection-offer.d.ts +2 -0
- package/dist/connection-offer.js +3 -0
- package/dist/daemon-endpoints.js +8 -0
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +716 -311
- package/dist/generated/validation/ws-outbound-schema-metadata.js +10 -0
- package/dist/generated/validation/ws-outbound.aot.d.ts +20 -0
- package/dist/generated/validation/ws-outbound.aot.js +116406 -114752
- package/dist/host-target.d.ts +18 -0
- package/dist/host-target.js +118 -0
- package/dist/hosts.d.ts +303 -0
- package/dist/hosts.js +117 -0
- package/dist/messages.d.ts +1961 -307
- package/dist/messages.js +70 -2
- package/dist/paseo-tool-presentation/catalog.d.ts +3 -0
- package/dist/paseo-tool-presentation/catalog.js +1 -0
- package/dist/plugin-registry.d.ts +21 -0
- package/dist/plugin-registry.js +11 -1
- package/dist/schedule/rpc-schemas.d.ts +4 -4
- package/dist/schedule/types.d.ts +1 -1
- package/dist/validation/ws-outbound-envelope.d.ts +445 -70
- package/package.json +5 -1
package/dist/messages.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AgentMessageSchema } from "./agent-message.js";
|
|
2
|
+
import { HostsListRequestSchema, HostsAddRequestSchema, HostsUpdateRequestSchema, HostsRemoveRequestSchema, HostsLinkOpenRequestSchema, HostsRouteOpenRequestSchema, HostsRouteFrameRequestSchema, HostsRouteCloseRequestSchema, HostsListResponseSchema, HostsChangedSchema, HostsAddResponseSchema, HostsUpdateResponseSchema, HostsRemoveResponseSchema, HostsLinkOpenResponseSchema, HostsRouteOpenResponseSchema, HostsRouteFrameSchema, HostsRouteClosedSchema, } from "./hosts.js";
|
|
2
3
|
import { PluginRegistryIdentitySchema } from "./plugin-registry.js";
|
|
3
4
|
import { AgentProfileSchema, AgentSkillSelectionSchema } from "./agent-profile.js";
|
|
4
5
|
export { AgentProfileSchema, AgentSkillSelectionSchema, } from "./agent-profile.js";
|
|
@@ -73,6 +74,9 @@ const MutableBrowserToolsConfigSchema = z
|
|
|
73
74
|
const MutableRelayConfigSchema = z
|
|
74
75
|
.object({
|
|
75
76
|
enabled: z.boolean(),
|
|
77
|
+
// COMPAT(relayProtectedSecurity): added in v0.13.0, keep optional while old daemons are supported.
|
|
78
|
+
// When true the daemon admits only relay sessions that negotiated protected endpoint security.
|
|
79
|
+
requireProtectedSecurity: z.boolean().optional(),
|
|
76
80
|
})
|
|
77
81
|
.passthrough();
|
|
78
82
|
export const MutableDaemonConfigSchema = z
|
|
@@ -1038,7 +1042,7 @@ export const ReviewAttachmentSchema = z.object({
|
|
|
1038
1042
|
type: z.literal("review"),
|
|
1039
1043
|
mimeType: z.literal("application/paseo-review"),
|
|
1040
1044
|
cwd: z.string(),
|
|
1041
|
-
mode: z.enum(["uncommitted", "base"]),
|
|
1045
|
+
mode: z.enum(["uncommitted", "base", "all"]),
|
|
1042
1046
|
baseRef: z.string().nullable().optional(),
|
|
1043
1047
|
comments: z.array(ReviewAttachmentCommentSchema),
|
|
1044
1048
|
});
|
|
@@ -1244,6 +1248,8 @@ export const SendAgentMessageRequestSchema = z.object({
|
|
|
1244
1248
|
text: z.string(),
|
|
1245
1249
|
/** Opaque sender identity for agent-originated prompts. */
|
|
1246
1250
|
sourceAgentId: z.string().min(1).optional(),
|
|
1251
|
+
sourceAgentServerId: z.string().min(1).optional(),
|
|
1252
|
+
sessionMode: z.string().optional(),
|
|
1247
1253
|
messageId: z.string().optional(), // Client-provided ID for deduplication
|
|
1248
1254
|
activeTurnBehavior: ActiveTurnBehaviorSchema.optional(),
|
|
1249
1255
|
images: z.array(ImageAttachmentSchema).optional(),
|
|
@@ -1960,7 +1966,7 @@ const CheckoutErrorSchema = z.object({
|
|
|
1960
1966
|
message: z.string(),
|
|
1961
1967
|
});
|
|
1962
1968
|
const CheckoutDiffCompareSchema = z.object({
|
|
1963
|
-
mode: z.enum(["uncommitted", "base"]),
|
|
1969
|
+
mode: z.enum(["uncommitted", "base", "all"]),
|
|
1964
1970
|
baseRef: z.string().optional(),
|
|
1965
1971
|
ignoreWhitespace: z.boolean().optional(),
|
|
1966
1972
|
});
|
|
@@ -2522,6 +2528,11 @@ export const WorkspaceSetupStatusRequestSchema = z.object({
|
|
|
2522
2528
|
workspaceId: z.string(),
|
|
2523
2529
|
requestId: z.string(),
|
|
2524
2530
|
});
|
|
2531
|
+
export const WorkspaceSetupSubscribeRequestSchema = z.object({
|
|
2532
|
+
type: z.literal("workspace.setup.subscribe.request"),
|
|
2533
|
+
workspaceId: z.string(),
|
|
2534
|
+
requestId: z.string(),
|
|
2535
|
+
});
|
|
2525
2536
|
export const WorkspaceSetupRunRequestSchema = z.object({
|
|
2526
2537
|
type: z.literal("workspace.setup.run.request"),
|
|
2527
2538
|
workspaceId: z.string(),
|
|
@@ -2712,6 +2723,10 @@ export const FileVersionSchema = z.discriminatedUnion("status", [
|
|
|
2712
2723
|
size: z.number().int().nonnegative(),
|
|
2713
2724
|
modifiedAt: z.string(),
|
|
2714
2725
|
revision: z.string().optional(),
|
|
2726
|
+
// Classified from the extension and the first bytes, so a client can choose how to open the
|
|
2727
|
+
// file before reading it.
|
|
2728
|
+
kind: z.enum(["text", "image", "binary"]).optional(),
|
|
2729
|
+
mimeType: z.string().optional(),
|
|
2715
2730
|
}),
|
|
2716
2731
|
z.object({
|
|
2717
2732
|
status: z.literal("missing"),
|
|
@@ -2742,6 +2757,8 @@ export const FileWriteRequestSchema = z.object({
|
|
|
2742
2757
|
cwd: z.string(),
|
|
2743
2758
|
path: z.string(),
|
|
2744
2759
|
content: z.string(),
|
|
2760
|
+
// COMPAT(fileByteWrites): added in v0.13.0. Daemons without the feature write `content` as text.
|
|
2761
|
+
contentEncoding: z.enum(["utf-8", "base64"]).optional(),
|
|
2745
2762
|
expectedModifiedAt: z.string(),
|
|
2746
2763
|
expectedRevision: z.string().optional(),
|
|
2747
2764
|
requestId: z.string(),
|
|
@@ -3086,6 +3103,14 @@ export const SubscriptionReleaseResponseSchema = z.object({
|
|
|
3086
3103
|
payload: z.object({ requestId: z.string(), subscriptionId: z.string() }),
|
|
3087
3104
|
});
|
|
3088
3105
|
export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
3106
|
+
HostsListRequestSchema,
|
|
3107
|
+
HostsAddRequestSchema,
|
|
3108
|
+
HostsUpdateRequestSchema,
|
|
3109
|
+
HostsRemoveRequestSchema,
|
|
3110
|
+
HostsLinkOpenRequestSchema,
|
|
3111
|
+
HostsRouteOpenRequestSchema,
|
|
3112
|
+
HostsRouteFrameRequestSchema,
|
|
3113
|
+
HostsRouteCloseRequestSchema,
|
|
3089
3114
|
BrowserHostRegisterRequestSchema,
|
|
3090
3115
|
SubscriptionReleaseRequestSchema,
|
|
3091
3116
|
SessionEventsSetSubscriptionRequestSchema,
|
|
@@ -3240,6 +3265,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3240
3265
|
PaseoWorktreeArchiveRequestSchema,
|
|
3241
3266
|
CreatePaseoWorktreeRequestSchema,
|
|
3242
3267
|
WorkspaceSetupStatusRequestSchema,
|
|
3268
|
+
WorkspaceSetupSubscribeRequestSchema,
|
|
3243
3269
|
WorkspaceSetupRunRequestSchema,
|
|
3244
3270
|
LegacyListAvailableEditorsRequestSchema,
|
|
3245
3271
|
LegacyOpenInEditorRequestSchema,
|
|
@@ -3462,6 +3488,8 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3462
3488
|
serverId: z.string().trim().min(1),
|
|
3463
3489
|
hostname: ServerInfoHostnameSchema.optional(),
|
|
3464
3490
|
version: ServerInfoVersionSchema.optional(),
|
|
3491
|
+
// Authenticated producer for host registration ownership, separate from admission authority.
|
|
3492
|
+
sourceId: z.string().optional(),
|
|
3465
3493
|
// COMPAT(sessionPermissions): optional while clients support older daemons.
|
|
3466
3494
|
permissions: z.array(DaemonPermissionSchema).optional(),
|
|
3467
3495
|
// COMPAT(desktopManaged): added in v0.1.X, remove optional parsing after 2027-01-16.
|
|
@@ -3483,6 +3511,8 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3483
3511
|
internalWorkspaces: z.boolean().optional(),
|
|
3484
3512
|
backgroundWorkspaces: z.boolean().optional(),
|
|
3485
3513
|
providersSnapshot: z.boolean().optional(),
|
|
3514
|
+
connectedHosts: z.boolean().optional(),
|
|
3515
|
+
hostMultiplexing: z.boolean().optional(),
|
|
3486
3516
|
usageSources: z.boolean().optional(),
|
|
3487
3517
|
usageReportsStreaming: z.boolean().optional(),
|
|
3488
3518
|
// COMPAT(providersSnapshotCwd): added in v0.3.2, remove gate after 2027-02-10.
|
|
@@ -3584,6 +3614,8 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3584
3614
|
workspaceRecovery: z.boolean().optional(),
|
|
3585
3615
|
// COMPAT(workspaceFileEditing): added in v0.2.0, remove after 2027-01-18 once daemon floor >= v0.2.0.
|
|
3586
3616
|
workspaceFileEditing: z.boolean().optional(),
|
|
3617
|
+
// COMPAT(fileByteWrites): added in v0.13.0, remove gate after 2027-04-20.
|
|
3618
|
+
fileByteWrites: z.boolean().optional(),
|
|
3587
3619
|
// COMPAT(companionStreamPortV1): added in v0.11.0-beta.3-fork, remove after 2027-04-01.
|
|
3588
3620
|
// Deliberately not the source fork's `companionStream`/`artifactFeed` flags: a client
|
|
3589
3621
|
// that saw those names would expect the source's flat companion RPC, which this
|
|
@@ -3622,6 +3654,9 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3622
3654
|
workspaceMarkUnread: z.boolean().optional(),
|
|
3623
3655
|
// COMPAT(hubRelationship): added in v0.1.X, drop the gate when floor >= v0.1.X.
|
|
3624
3656
|
hubRelationship: z.boolean().optional(),
|
|
3657
|
+
// COMPAT(relayProtectedSecurity): added in v0.13.0. A capable daemon always advertises
|
|
3658
|
+
// it; relay clients that negotiated legacy security reject the connection on seeing it.
|
|
3659
|
+
relayProtectedSecurity: z.boolean().optional(),
|
|
3625
3660
|
// COMPAT(projectGithubClone): added in v0.1.108, remove gate after 2027-01-15.
|
|
3626
3661
|
projectGithubClone: z.boolean().optional(),
|
|
3627
3662
|
// COMPAT(workspaceGithubRepositorySearch): added in v0.1.108, remove gate after 2027-01-15.
|
|
@@ -3656,9 +3691,12 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3656
3691
|
selectiveAgentTimeline: z.boolean().optional(),
|
|
3657
3692
|
explicitEventSubscriptions: z.boolean().optional(),
|
|
3658
3693
|
ownedSubscriptions: z.boolean().optional(),
|
|
3694
|
+
workspaceSetupObservation: z.boolean().optional(),
|
|
3695
|
+
workspaceSortTimes: z.boolean().optional(),
|
|
3659
3696
|
// COMPAT(canonicalSubmittedPrompts): added in v0.2.6, remove gate after 2027-01-30.
|
|
3660
3697
|
canonicalSubmittedPrompts: z.boolean().optional(),
|
|
3661
3698
|
agentMessageProvenance: z.boolean().optional(),
|
|
3699
|
+
agentMessageBatching: z.boolean().optional(),
|
|
3662
3700
|
// COMPAT(agentTurnIdentity): accept peers that observed pre-release v0.2.6 through 2027-01-31.
|
|
3663
3701
|
agentTurnIdentity: z.boolean().optional(),
|
|
3664
3702
|
// COMPAT(stableProjectIdentity): added in v0.1.109, remove gate after 2027-01-15.
|
|
@@ -3673,6 +3711,7 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
3673
3711
|
fsEntryDuplicate: z.boolean().optional(),
|
|
3674
3712
|
// COMPAT(checkoutDiscardChanges): added in v0.3.0, remove gate after 2027-02-08.
|
|
3675
3713
|
checkoutDiscardChanges: z.boolean().optional(),
|
|
3714
|
+
checkoutDiffAll: z.boolean().optional(),
|
|
3676
3715
|
// COMPAT(agentProfiles): added in v0.3.2, remove gate after 2027-02-11.
|
|
3677
3716
|
// An older daemon parses its persisted config strictly, so writing
|
|
3678
3717
|
// agentProfiles to one is silently dropped. The client hides the feature
|
|
@@ -3937,6 +3976,8 @@ export const WorkspaceDescriptorPayloadSchema = z
|
|
|
3937
3976
|
projectCustomIconRevision: z.string().nullable().optional(),
|
|
3938
3977
|
projectRootPath: z.string(),
|
|
3939
3978
|
workspaceDirectory: z.string().optional(),
|
|
3979
|
+
// COMPAT(workspaceSetupObservation): added in v0.12.0, remove optional after 2027-04-19.
|
|
3980
|
+
setupStatus: z.enum(["running", "completed", "failed", "blocked"]).nullable().optional(),
|
|
3940
3981
|
// COMPAT(worktreeSlug): added in v0.2.6, remove optional after 2027-01-31.
|
|
3941
3982
|
// Present only for Paseo-owned worktrees; this is the basename of their root directory.
|
|
3942
3983
|
worktreeSlug: z.string().optional(),
|
|
@@ -3968,6 +4009,8 @@ export const WorkspaceDescriptorPayloadSchema = z
|
|
|
3968
4009
|
.nullish()
|
|
3969
4010
|
.transform((value) => value ?? null),
|
|
3970
4011
|
activityAt: z.string().nullable(),
|
|
4012
|
+
createdAt: z.string().optional(),
|
|
4013
|
+
lastUserMessageAt: z.string().nullable().optional(),
|
|
3971
4014
|
diffStat: z
|
|
3972
4015
|
.object({
|
|
3973
4016
|
additions: z.number(),
|
|
@@ -4297,6 +4340,15 @@ export const WorkspaceSetupSnapshotSchema = z.object({
|
|
|
4297
4340
|
})
|
|
4298
4341
|
.optional(),
|
|
4299
4342
|
});
|
|
4343
|
+
export const WorkspaceSetupSubscribeResponseSchema = z.object({
|
|
4344
|
+
type: z.literal("workspace.setup.subscribe.response"),
|
|
4345
|
+
payload: z.object({
|
|
4346
|
+
requestId: z.string(),
|
|
4347
|
+
subscriptionId: z.string().optional(),
|
|
4348
|
+
workspaceId: z.string(),
|
|
4349
|
+
snapshot: WorkspaceSetupSnapshotSchema.nullable(),
|
|
4350
|
+
}),
|
|
4351
|
+
});
|
|
4300
4352
|
export const WorkspaceSetupRunResponseMessageSchema = z.object({
|
|
4301
4353
|
type: z.literal("workspace.setup.run.response"),
|
|
4302
4354
|
payload: z.object({
|
|
@@ -4854,6 +4906,7 @@ export const SendAgentMessageResponseMessageSchema = z.object({
|
|
|
4854
4906
|
requestId: z.string(),
|
|
4855
4907
|
agentId: z.string(),
|
|
4856
4908
|
accepted: z.boolean(),
|
|
4909
|
+
deliveryStatus: z.literal("queued").optional(),
|
|
4857
4910
|
error: z.string().nullable(),
|
|
4858
4911
|
}),
|
|
4859
4912
|
});
|
|
@@ -6536,6 +6589,15 @@ export const AgentSkillsImportLegacySelectionResponseSchema = z.object({
|
|
|
6536
6589
|
}),
|
|
6537
6590
|
});
|
|
6538
6591
|
export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
6592
|
+
HostsListResponseSchema,
|
|
6593
|
+
HostsChangedSchema,
|
|
6594
|
+
HostsAddResponseSchema,
|
|
6595
|
+
HostsUpdateResponseSchema,
|
|
6596
|
+
HostsRemoveResponseSchema,
|
|
6597
|
+
HostsLinkOpenResponseSchema,
|
|
6598
|
+
HostsRouteOpenResponseSchema,
|
|
6599
|
+
HostsRouteFrameSchema,
|
|
6600
|
+
HostsRouteClosedSchema,
|
|
6539
6601
|
AgentCompanionUpdateEntryResponseMessageSchema,
|
|
6540
6602
|
AgentArtifactsScanResponseMessageSchema,
|
|
6541
6603
|
BrowserHostRegisterResponseSchema,
|
|
@@ -6596,6 +6658,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
6596
6658
|
ScriptStatusUpdateMessageSchema,
|
|
6597
6659
|
WorkspaceSetupProgressMessageSchema,
|
|
6598
6660
|
WorkspaceSetupStatusResponseMessageSchema,
|
|
6661
|
+
WorkspaceSetupSubscribeResponseSchema,
|
|
6599
6662
|
WorkspaceSetupRunResponseMessageSchema,
|
|
6600
6663
|
AgentStreamMessageSchema,
|
|
6601
6664
|
AgentStatusMessageSchema,
|
|
@@ -6791,6 +6854,11 @@ export const WSPongMessageSchema = z.object({
|
|
|
6791
6854
|
});
|
|
6792
6855
|
export const WSHelloMessageSchema = z.object({
|
|
6793
6856
|
type: z.literal("hello"),
|
|
6857
|
+
sessionPermissions: z.array(DaemonPermissionSchema).optional(),
|
|
6858
|
+
routed: z.boolean().optional(),
|
|
6859
|
+
producer: z
|
|
6860
|
+
.object({ serverId: z.string().min(1).max(256), sourceId: z.string().min(1).max(1024) })
|
|
6861
|
+
.optional(),
|
|
6794
6862
|
clientId: z.string().min(1),
|
|
6795
6863
|
clientType: z.enum(["mobile", "browser", "cli", "mcp", "hub"]),
|
|
6796
6864
|
protocolVersion: z.number().int(),
|
|
@@ -167,6 +167,7 @@ export const PASEO_TOOL_CATALOG = {
|
|
|
167
167
|
context: workspaceContext(),
|
|
168
168
|
detail: { inputOrder: WORKSPACE_FIELDS, outputFields: ["workspaceId", "projectId"] },
|
|
169
169
|
},
|
|
170
|
+
list_hosts: { label: "List hosts" },
|
|
170
171
|
list_workspaces: { label: "List workspaces" },
|
|
171
172
|
rename_workspace: {
|
|
172
173
|
label: "Rename workspace",
|
|
@@ -19,10 +19,22 @@ export declare const PluginRegistryArtifactSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
19
19
|
commit: z.ZodString;
|
|
20
20
|
pluginPath: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>], "kind">;
|
|
22
|
+
/**
|
|
23
|
+
* Listing text in other languages, keyed by language tag such as `zh-CN`. A missing field falls back
|
|
24
|
+
* to the English `name` or `description`, which stay required so older clients keep working.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PluginListingTranslationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
22
30
|
export declare const PublishedPluginSchema: z.ZodObject<{
|
|
23
31
|
id: z.ZodString;
|
|
24
32
|
name: z.ZodString;
|
|
25
33
|
description: z.ZodString;
|
|
34
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
35
|
+
name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
26
38
|
license: z.ZodOptional<z.ZodString>;
|
|
27
39
|
categories: z.ZodArray<z.ZodString>;
|
|
28
40
|
author: z.ZodObject<{
|
|
@@ -60,6 +72,10 @@ export declare const PublishedPluginDetailSchema: z.ZodObject<{
|
|
|
60
72
|
id: z.ZodString;
|
|
61
73
|
name: z.ZodString;
|
|
62
74
|
description: z.ZodString;
|
|
75
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
76
|
+
name: z.ZodOptional<z.ZodString>;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
63
79
|
license: z.ZodOptional<z.ZodString>;
|
|
64
80
|
categories: z.ZodArray<z.ZodString>;
|
|
65
81
|
author: z.ZodObject<{
|
|
@@ -91,6 +107,7 @@ export declare const PublishedPluginDetailSchema: z.ZodObject<{
|
|
|
91
107
|
publishedAt: z.ZodString;
|
|
92
108
|
installs: z.ZodOptional<z.ZodNumber>;
|
|
93
109
|
readme: z.ZodString;
|
|
110
|
+
overviewTranslations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
94
111
|
}, z.core.$strip>;
|
|
95
112
|
export declare const PluginRegistryIndexSchema: z.ZodObject<{
|
|
96
113
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -107,6 +124,10 @@ export declare const PluginRegistryIndexSchema: z.ZodObject<{
|
|
|
107
124
|
id: z.ZodString;
|
|
108
125
|
name: z.ZodString;
|
|
109
126
|
description: z.ZodString;
|
|
127
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
128
|
+
name: z.ZodOptional<z.ZodString>;
|
|
129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
110
131
|
license: z.ZodOptional<z.ZodString>;
|
|
111
132
|
categories: z.ZodArray<z.ZodString>;
|
|
112
133
|
author: z.ZodObject<{
|
package/dist/plugin-registry.js
CHANGED
|
@@ -25,10 +25,16 @@ export const PluginRegistryArtifactSchema = z.discriminatedUnion("kind", [
|
|
|
25
25
|
.optional(),
|
|
26
26
|
}),
|
|
27
27
|
]);
|
|
28
|
+
/**
|
|
29
|
+
* Listing text in other languages, keyed by language tag such as `zh-CN`. A missing field falls back
|
|
30
|
+
* to the English `name` or `description`, which stay required so older clients keep working.
|
|
31
|
+
*/
|
|
32
|
+
export const PluginListingTranslationsSchema = z.record(z.string(), z.object({ name: z.string().optional(), description: z.string().optional() }));
|
|
28
33
|
export const PublishedPluginSchema = z.object({
|
|
29
34
|
id: PluginRegistryIdSchema,
|
|
30
35
|
name: z.string(),
|
|
31
36
|
description: z.string(),
|
|
37
|
+
translations: PluginListingTranslationsSchema.optional(),
|
|
32
38
|
license: z.string().optional(),
|
|
33
39
|
categories: z.array(z.string()),
|
|
34
40
|
author: z.object({ github: z.string(), name: z.string().optional(), npm: z.string().optional() }),
|
|
@@ -49,7 +55,11 @@ export function pluginMediaKind(url) {
|
|
|
49
55
|
const extension = new URL(url).pathname.split(".").pop()?.toLowerCase() ?? "";
|
|
50
56
|
return VIDEO_EXTENSIONS.has(extension) ? "video" : "image";
|
|
51
57
|
}
|
|
52
|
-
export const PublishedPluginDetailSchema = PublishedPluginSchema.extend({
|
|
58
|
+
export const PublishedPluginDetailSchema = PublishedPluginSchema.extend({
|
|
59
|
+
readme: z.string(),
|
|
60
|
+
/** The overview in other languages, keyed like `translations`. Each one replaces `readme` whole. */
|
|
61
|
+
overviewTranslations: z.record(z.string(), z.string()).optional(),
|
|
62
|
+
});
|
|
53
63
|
export const PluginRegistryIndexSchema = z.object({
|
|
54
64
|
schemaVersion: z.literal(1),
|
|
55
65
|
registry: z.object({ name: z.string(), url: z.string().url() }),
|
|
@@ -112,12 +112,12 @@ export declare const ScheduleCreateResponseSchema: z.ZodObject<{
|
|
|
112
112
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
113
113
|
name: z.ZodNullable<z.ZodString>;
|
|
114
114
|
id: z.ZodString;
|
|
115
|
-
updatedAt: z.ZodString;
|
|
116
115
|
status: z.ZodEnum<{
|
|
117
116
|
completed: "completed";
|
|
118
117
|
active: "active";
|
|
119
118
|
paused: "paused";
|
|
120
119
|
}>;
|
|
120
|
+
updatedAt: z.ZodString;
|
|
121
121
|
createdAt: z.ZodString;
|
|
122
122
|
cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
123
123
|
type: z.ZodLiteral<"every">;
|
|
@@ -167,12 +167,12 @@ export declare const ScheduleListResponseSchema: z.ZodObject<{
|
|
|
167
167
|
schedules: z.ZodArray<z.ZodObject<{
|
|
168
168
|
name: z.ZodNullable<z.ZodString>;
|
|
169
169
|
id: z.ZodString;
|
|
170
|
-
updatedAt: z.ZodString;
|
|
171
170
|
status: z.ZodEnum<{
|
|
172
171
|
completed: "completed";
|
|
173
172
|
active: "active";
|
|
174
173
|
paused: "paused";
|
|
175
174
|
}>;
|
|
175
|
+
updatedAt: z.ZodString;
|
|
176
176
|
createdAt: z.ZodString;
|
|
177
177
|
cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
178
|
type: z.ZodLiteral<"every">;
|
|
@@ -314,12 +314,12 @@ export declare const SchedulePauseResponseSchema: z.ZodObject<{
|
|
|
314
314
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
315
315
|
name: z.ZodNullable<z.ZodString>;
|
|
316
316
|
id: z.ZodString;
|
|
317
|
-
updatedAt: z.ZodString;
|
|
318
317
|
status: z.ZodEnum<{
|
|
319
318
|
completed: "completed";
|
|
320
319
|
active: "active";
|
|
321
320
|
paused: "paused";
|
|
322
321
|
}>;
|
|
322
|
+
updatedAt: z.ZodString;
|
|
323
323
|
createdAt: z.ZodString;
|
|
324
324
|
cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
325
325
|
type: z.ZodLiteral<"every">;
|
|
@@ -369,12 +369,12 @@ export declare const ScheduleResumeResponseSchema: z.ZodObject<{
|
|
|
369
369
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
370
370
|
name: z.ZodNullable<z.ZodString>;
|
|
371
371
|
id: z.ZodString;
|
|
372
|
-
updatedAt: z.ZodString;
|
|
373
372
|
status: z.ZodEnum<{
|
|
374
373
|
completed: "completed";
|
|
375
374
|
active: "active";
|
|
376
375
|
paused: "paused";
|
|
377
376
|
}>;
|
|
377
|
+
updatedAt: z.ZodString;
|
|
378
378
|
createdAt: z.ZodString;
|
|
379
379
|
cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
380
380
|
type: z.ZodLiteral<"every">;
|
package/dist/schedule/types.d.ts
CHANGED
|
@@ -121,12 +121,12 @@ export type StoredSchedule = z.infer<typeof StoredScheduleSchema>;
|
|
|
121
121
|
export declare const ScheduleSummarySchema: z.ZodObject<{
|
|
122
122
|
name: z.ZodNullable<z.ZodString>;
|
|
123
123
|
id: z.ZodString;
|
|
124
|
-
updatedAt: z.ZodString;
|
|
125
124
|
status: z.ZodEnum<{
|
|
126
125
|
completed: "completed";
|
|
127
126
|
active: "active";
|
|
128
127
|
paused: "paused";
|
|
129
128
|
}>;
|
|
129
|
+
updatedAt: z.ZodString;
|
|
130
130
|
createdAt: z.ZodString;
|
|
131
131
|
cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
132
132
|
type: z.ZodLiteral<"every">;
|