@pstdio/workbench 0.44.0-nightly.20261018030230 → 0.44.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.
Files changed (30) hide show
  1. package/dist/extensions.d.ts +163 -1040
  2. package/dist/extensions.js +1194 -808
  3. package/dist/extensions.js.map +1 -1
  4. package/dist/{file-renderer-view-BsLjjvTU.js → file-renderer-view-C5dyoQQW.js} +211 -214
  5. package/dist/file-renderer-view-C5dyoQQW.js.map +1 -0
  6. package/dist/{index-JZ3eu6uE.d.ts → index-8x-QT7wg.d.ts} +1992 -533
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2041 -2003
  9. package/dist/index.js.map +1 -1
  10. package/dist/{kanban-presentation-CmFF6y9I.d.ts → kanban-presentation-pexk_oCY.d.ts} +1 -1
  11. package/dist/layout-tab-presentation-Bz6EgFEa.js +15 -0
  12. package/dist/layout-tab-presentation-Bz6EgFEa.js.map +1 -0
  13. package/dist/{navigation-tree-registry-CIwRvLFJ.js → navigation-tree-registry-C5l3eO3n.js} +2 -2
  14. package/dist/{navigation-tree-registry-CIwRvLFJ.js.map → navigation-tree-registry-C5l3eO3n.js.map} +1 -1
  15. package/dist/react-C-HbdPSw.js +8881 -0
  16. package/dist/react-C-HbdPSw.js.map +1 -0
  17. package/dist/react.d.ts +75 -29
  18. package/dist/react.js +2 -2
  19. package/dist/storage.d.ts +3 -2
  20. package/dist/storage.js +142 -123
  21. package/dist/storage.js.map +1 -1
  22. package/dist/webview-runtime.js +1 -1
  23. package/dist/workbench-renderers-Bz_dLyHW.js +4775 -0
  24. package/dist/workbench-renderers-Bz_dLyHW.js.map +1 -0
  25. package/package.json +3 -3
  26. package/dist/file-renderer-view-BsLjjvTU.js.map +0 -1
  27. package/dist/react-B3WmSI5Y.js +0 -11192
  28. package/dist/react-B3WmSI5Y.js.map +0 -1
  29. package/dist/workbench-renderers-Bj4sazP5.js +0 -976
  30. package/dist/workbench-renderers-Bj4sazP5.js.map +0 -1
@@ -1,11 +1,10 @@
1
- import { Bn as FileRendererRefreshEnvelope, Di as NavigationTargetCommand, Dt as PreferenceValue, Ei as NavigationTarget$1, Et as PreferenceScopeRef, F as WorkbenchModuleContext, Ft as RegisteredWorkbenchNotification, Ht as WorkbenchOwnedPlacementItem, Ir as TreeContext, Jr as MenuPath, Kr as WorkbenchPanelRenderInput, M as WorkbenchCore, Ni as Command, Qt as WorkbenchTerminalController, _r as KanbanRendererCreateSubmission, bn as WorkbenchPageContribution, br as KanbanRendererViewsProvider, ha as Disposable, ii as WorkbenchPanelInstance, lr as CollectionViewsProvider, qi as ResourceRef$1, qr as MenuItem, xn as WorkbenchPlacementPresentation, zi as WorkbenchCommandExecutionContext, zr as TreeNode } from "./index-JZ3eu6uE.js";
2
- import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-CmFF6y9I.js";
3
- import { DataTableRendererSettings, Localizable, NavigationTarget, ResourceRef, WebviewHostCapability } from "@pstdio/sdk/extensions";
4
- import { CommandExecuteRequest, CommandExecuteResponse, ExtensionCommandPaletteContribution, ExtensionMenuContribution, WorkbenchExtensionCommandPaletteResourceRecord, WorkbenchExtensionMetadata, WorkbenchExtensionMetadata as WorkbenchExtensionMetadata$1 } from "@pstdio/sdk/api";
5
- import { z } from "zod";
1
+ import { Aa as PageLocation$1, Ba as WebviewNotificationResolveParams, Ca as WorkbenchExtensionDataTableRendererRecord, Da as WebviewHostProps, Et as PreferenceValue, Fa as WebviewFilesDeleteParams, Fr as TreeContext, Gr as WorkbenchPanelRenderInput, Ha as WebviewPreferencesGetParams, Ia as WebviewFilesListParams, Kr as MenuItem, La as WebviewFilesUploadParams, Ma as WebviewArtifactsReadParams, Na as WebviewCommandsExecuteParams, Oa as CommandNotice, P as WorkbenchModuleContext, Pa as WebviewExtensionSettingSetParams, Pt as RegisteredWorkbenchNotification, Ra as WebviewHostCapabilityResults, Ri as NavigationTarget$2, Rr as TreeNode, Sa as WorkbenchExtensionKanbanRendererRecord, Ta as ExtensionMenuContribution$1, Tt as PreferenceScopeRef, Ua as WebviewPreferencesSetParams, Va as WebviewPageParamsUpdateParams, Vt as WorkbenchOwnedPlacementItem, Wa as MaybePromise, Zt as WorkbenchTerminalController, _a as ExtensionSettingsSectionRecord, ba as ExtensionKeybindingRecord, bn as WorkbenchPlacementPresentation, ca as WorkbenchPanelRegion, cr as CollectionViewsProvider, ga as ExtensionSettingDefinitionRecord, gr as KanbanRendererCreateSubmission, hi as ResourceRef$1, j as WorkbenchCore, ja as PageParamValue$1, ka as NavigationTarget$1, pa as Disposable, qi as WorkbenchPanelInstance, qr as MenuPath, si as WorkbenchCommandExecutionContext, ti as Command, va as WorkbenchExtensionFileRendererRecord, wa as WorkbenchExtensionControlsRendererRecord, xa as WorkbenchExtensionCommandPaletteResourceRecord$1, ya as WorkbenchExtensionTreeRendererRecord, yn as WorkbenchPageContribution, yr as KanbanRendererViewsProvider, za as WebviewNotificationActionParams, zi as NavigationTargetCommand, zn as FileRendererRefreshEnvelope } from "./index-8x-QT7wg.js";
2
+ import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-pexk_oCY.js";
3
+ import { DataTableRendererSettings, Localizable, NavigationTarget, ResourceRef } from "@pstdio/sdk/extensions";
4
+ import { CommandExecuteRequest, CommandExecutionResult, ExtensionCommandPaletteContribution, ExtensionMenuContribution, WorkbenchExtensionCommandPaletteResourceRecord, WorkbenchExtensionMetadata, WorkbenchExtensionMetadata as WorkbenchExtensionMetadata$1 } from "@pstdio/sdk/api";
5
+ import { CommandStreamClientEvent } from "@pstdio/sdk/client";
6
6
  //#region ../pstdio-extensions/src/bridge/contract/capabilities.d.ts
7
7
  type HostCapability<TParams = unknown, TResult = unknown> = (params: TParams) => Promise<TResult> | TResult;
8
- type HostCapabilityRegistry = Partial<Record<WebviewHostCapability, HostCapability>>;
9
8
  //#endregion
10
9
  //#region ../pstdio-extensions/src/bridge/contract/index.d.ts
11
10
  type ThemePreference = "dark" | "light";
@@ -28,6 +27,53 @@ interface HostEventPublisher {
28
27
  unbind(): void;
29
28
  }
30
29
  //#endregion
30
+ //#region src/extensions/bridge/extension-webview-host-adapters.d.ts
31
+ interface ExtensionWebviewSettingsAdapter {
32
+ all(): MaybePromise<Record<string, unknown>>;
33
+ get(key: string): MaybePromise<unknown>;
34
+ set(key: string, value: WebviewExtensionSettingSetParams["value"]): MaybePromise<{
35
+ value: unknown;
36
+ }>;
37
+ delete(key: string): MaybePromise<void>;
38
+ }
39
+ interface ExtensionWebviewNotificationsAdapter {
40
+ show?(notice: CommandNotice): MaybePromise<unknown>;
41
+ create?(input: WebviewNotificationActionParams): MaybePromise<WebviewHostCapabilityResults["notification.action"]>;
42
+ resolve?(input: WebviewNotificationResolveParams): MaybePromise<WebviewHostCapabilityResults["notification.resolve"]>;
43
+ }
44
+ interface ExtensionWebviewPreferencesAdapter {
45
+ get(name: string, scope?: WebviewPreferencesGetParams["scope"]): MaybePromise<WebviewHostCapabilityResults["preferences.get"]>;
46
+ set(name: string, value: WebviewPreferencesSetParams["value"], scope: NonNullable<WebviewPreferencesSetParams["scope"]>): MaybePromise<void>;
47
+ }
48
+ interface ExtensionWebviewFilesAdapter {
49
+ upload(input: WebviewFilesUploadParams): MaybePromise<WebviewHostCapabilityResults["files.upload"]>;
50
+ list(input: WebviewFilesListParams): MaybePromise<WebviewHostCapabilityResults["files.list"]>;
51
+ delete(input: WebviewFilesDeleteParams): MaybePromise<void>;
52
+ }
53
+ interface ExtensionWebviewHostAdapters {
54
+ executeCommand?(input: WebviewCommandsExecuteParams, signal?: AbortSignal): MaybePromise<unknown>;
55
+ streamCommand?(input: WebviewCommandsExecuteParams, signal: AbortSignal): AsyncIterable<CommandStreamClientEvent>;
56
+ commandCompleted?(response: CommandExecutionResult): void;
57
+ hostEvents?: HostEventPublisher;
58
+ navigation?: {
59
+ open(target: NavigationTarget$1): MaybePromise<unknown>;
60
+ };
61
+ pageParams?: {
62
+ update(params: WebviewPageParamsUpdateParams["params"]): MaybePromise<PageLocation$1>;
63
+ };
64
+ placement?: {
65
+ close(): MaybePromise<void>;
66
+ };
67
+ notifications?: ExtensionWebviewNotificationsAdapter;
68
+ settings?: ExtensionWebviewSettingsAdapter;
69
+ preferences?: ExtensionWebviewPreferencesAdapter;
70
+ files?: ExtensionWebviewFilesAdapter;
71
+ artifacts?: {
72
+ read(input: WebviewArtifactsReadParams): MaybePromise<WebviewHostCapabilityResults["artifacts.read"]>;
73
+ };
74
+ terminal?: WorkbenchTerminalController;
75
+ }
76
+ //#endregion
31
77
  //#region src/extensions/bridge/bridge-webview-renderer.d.ts
32
78
  interface BridgeWebviewRenderContext {
33
79
  workbench: WorkbenchCore;
@@ -37,8 +83,8 @@ interface BridgeWebviewRenderContext {
37
83
  /** Channel for pushing host events (e.g. terminal output) into this webview. */
38
84
  hostEvents: HostEventPublisher;
39
85
  }
40
- type CreateBridgeWebviewHostCapabilities = (context: BridgeWebviewRenderContext) => HostCapabilityRegistry;
41
- type CreateBridgeWebviewProps = (context: BridgeWebviewRenderContext) => unknown;
86
+ type CreateBridgeWebviewHostAdapters = (context: BridgeWebviewRenderContext) => ExtensionWebviewHostAdapters;
87
+ type CreateBridgeWebviewProps = (context: BridgeWebviewRenderContext) => Partial<WebviewHostProps> & Record<string, unknown>;
42
88
  type CreateBridgeWebviewTheme = (context: BridgeWebviewRenderContext) => ThemePreference;
43
89
  interface BridgeWebviewConfig {
44
90
  title?: string;
@@ -50,7 +96,7 @@ interface BridgeWebviewConfig {
50
96
  export declare const getBridgeWebviewHostEventPublisher: (workbench: WorkbenchCore, instance: WorkbenchPanelInstance) => HostEventPublisher;
51
97
  export declare const renderBridgeWebviewFrame: (input: {
52
98
  context: BridgeWebviewRenderContext;
53
- createHostCapabilities: CreateBridgeWebviewHostCapabilities;
99
+ createHostAdapters: CreateBridgeWebviewHostAdapters;
54
100
  createProps: CreateBridgeWebviewProps;
55
101
  createTheme?: CreateBridgeWebviewTheme;
56
102
  ownerId?: string;
@@ -58,6 +104,30 @@ export declare const renderBridgeWebviewFrame: (input: {
58
104
  webview: BridgeWebviewConfig;
59
105
  }) => import("react/jsx-runtime").JSX.Element;
60
106
  //#endregion
107
+ //#region src/extensions/bridge/extension-webview-host-capabilities.d.ts
108
+ export declare const createExtensionWebviewHostCapabilities: (adapters: ExtensionWebviewHostAdapters) => {
109
+ "commands.execute": (input: unknown) => unknown;
110
+ "commands.stream": (input: unknown) => unknown;
111
+ "navigation.open": (input: unknown) => unknown;
112
+ "page.params.update": (input: unknown) => unknown;
113
+ "placement.close": (input: unknown) => unknown;
114
+ "notification.show": (input: unknown) => unknown;
115
+ "notification.action": (input: unknown) => unknown;
116
+ "notification.resolve": (input: unknown) => unknown;
117
+ "notification.dismiss": (input: unknown) => unknown;
118
+ "preferences.get": (input: unknown) => unknown;
119
+ "preferences.set": (input: unknown) => unknown;
120
+ "extension.settings.all": (input: unknown) => unknown;
121
+ "extension.settings.get": (input: unknown) => unknown;
122
+ "extension.settings.set": (input: unknown) => unknown;
123
+ "extension.settings.delete": (input: unknown) => unknown;
124
+ "terminal.session": (input: unknown) => unknown;
125
+ "files.upload": (input: unknown) => unknown;
126
+ "files.list": (input: unknown) => unknown;
127
+ "files.delete": (input: unknown) => unknown;
128
+ "artifacts.read": (input: unknown) => unknown;
129
+ };
130
+ //#endregion
61
131
  //#region src/extensions/bridge/terminal-session-capability.d.ts
62
132
  interface CreateTerminalSessionCapabilityInput {
63
133
  terminal: WorkbenchTerminalController;
@@ -71,18 +141,24 @@ interface CreateTerminalSessionCapabilityInput {
71
141
  */
72
142
  export declare const createTerminalSessionCapability: (input: CreateTerminalSessionCapabilityInput) => HostCapability;
73
143
  //#endregion
74
- //#region src/extensions/bridge/webview-command-capabilities.d.ts
75
- interface ExtensionWebviewFileCapabilities {
76
- delete(params: unknown): Promise<unknown> | unknown;
77
- list(params: unknown): Promise<unknown> | unknown;
78
- upload(params: unknown): Promise<unknown> | unknown;
144
+ //#region src/extensions/bridge/webview-capability-params.d.ts
145
+ export declare class WebviewHostCapabilityError extends Error {
146
+ code: string;
147
+ data: Record<string, unknown>;
148
+ constructor(code: string, message: string, data: Record<string, unknown>);
79
149
  }
150
+ //#endregion
151
+ //#region src/extensions/bridge/webview-command-capabilities.d.ts
152
+ type ExtensionWebviewFileCapabilities = ExtensionWebviewFilesAdapter;
80
153
  interface ExtensionWebviewArtifactCapabilities {
81
- read(params: unknown, context: {
154
+ read(params: WebviewArtifactsReadParams, context: {
82
155
  webviewId: string;
83
- }): Promise<unknown> | unknown;
156
+ }): Promise<WebviewHostCapabilityResults["artifacts.read"]> | WebviewHostCapabilityResults["artifacts.read"];
84
157
  }
85
158
  //#endregion
159
+ //#region src/extensions/bridge/webview-command-streams.d.ts
160
+ export declare const withFrameSignal: <T>(hostEvents: HostEventPublisher, run: (signal: AbortSignal) => Promise<T>) => Promise<T>;
161
+ //#endregion
86
162
  //#region src/extensions/bridge/webview-preferences-capability.d.ts
87
163
  interface WebviewOwnedPreferences {
88
164
  get(name: string, scope?: PreferenceScopeRef): Promise<PreferenceValue | undefined> | PreferenceValue | undefined;
@@ -90,34 +166,63 @@ interface WebviewOwnedPreferences {
90
166
  }
91
167
  //#endregion
92
168
  //#region src/extensions/bridge/webview-host-capabilities.d.ts
93
- interface CreateWorkbenchWebviewHostCapabilitiesInput {
94
- dispatchKeyboardEvent?: (event: KeyboardEventInit) => void;
169
+ interface CreateWorkbenchWebviewHostAdaptersInput {
95
170
  workbench: WorkbenchCore;
96
171
  placement?: WorkbenchPanelInstance;
97
172
  extensionId?: string;
173
+ projectId?: string;
98
174
  ownedPreferences?: WebviewOwnedPreferences;
99
175
  warn?: (message: string) => void;
100
- /** Event channel into the guest; terminal.session is only offered when present. */
101
176
  hostEvents?: HostEventPublisher;
102
177
  }
103
- export declare const createWorkbenchWebviewHostCapabilities: (input: CreateWorkbenchWebviewHostCapabilitiesInput) => {
104
- "terminal.session"?: HostCapability | undefined;
105
- "host.dispatchKeyboardEvent": (params: unknown) => void;
106
- "preferences.get": (params: unknown) => PreferenceValue | Promise<PreferenceValue | undefined> | undefined;
107
- "preferences.set": (params: unknown) => Promise<{
108
- name: string;
109
- value: PreferenceValue;
110
- }> | {
111
- name: string;
112
- value: PreferenceValue;
178
+ export declare const createWorkbenchWebviewHostAdapters: (input: CreateWorkbenchWebviewHostAdaptersInput) => {
179
+ hostEvents: HostEventPublisher | undefined;
180
+ executeCommand: (request: WebviewCommandsExecuteParams, signal: AbortSignal | undefined) => Promise<{
181
+ outcome: {
182
+ ok: boolean;
183
+ status: string;
184
+ value: unknown;
185
+ };
186
+ }>;
187
+ placement: {
188
+ close: () => void;
189
+ } | undefined;
190
+ pageParams: {
191
+ update: (patch: Readonly<Record<string, PageParamValue$1 | null>>) => import("@pstdio/sdk/extensions").PageLocation;
113
192
  };
114
- "commands.execute": (params: unknown) => Promise<unknown>;
115
- "page.params.update": (params: unknown) => {
116
- location: import("@pstdio/sdk/extensions").PageLocation;
193
+ navigation: {
194
+ open: (target: NavigationTarget$1) => Promise<readonly unknown[]>;
117
195
  };
118
- "navigation.open": (params: unknown) => Promise<readonly unknown[]>;
119
- "notification.show": (params: unknown) => RegisteredWorkbenchNotification;
120
- "placement.close"?: ((params: unknown) => void) | undefined;
196
+ notifications: {
197
+ show: (notice: CommandNotice) => RegisteredWorkbenchNotification;
198
+ };
199
+ preferences: {
200
+ get: (name: string, scope?: PreferenceScopeRef) => PreferenceValue | Promise<PreferenceValue | undefined> | undefined;
201
+ set: (name: string, value: PreferenceValue, scope: PreferenceScopeRef) => void | Promise<void>;
202
+ };
203
+ terminal: WorkbenchTerminalController;
204
+ };
205
+ export declare const createWorkbenchWebviewHostCapabilities: (input: CreateWorkbenchWebviewHostAdaptersInput) => {
206
+ "commands.execute": (input: unknown) => unknown;
207
+ "commands.stream": (input: unknown) => unknown;
208
+ "navigation.open": (input: unknown) => unknown;
209
+ "page.params.update": (input: unknown) => unknown;
210
+ "placement.close": (input: unknown) => unknown;
211
+ "notification.show": (input: unknown) => unknown;
212
+ "notification.action": (input: unknown) => unknown;
213
+ "notification.resolve": (input: unknown) => unknown;
214
+ "notification.dismiss": (input: unknown) => unknown;
215
+ "preferences.get": (input: unknown) => unknown;
216
+ "preferences.set": (input: unknown) => unknown;
217
+ "extension.settings.all": (input: unknown) => unknown;
218
+ "extension.settings.get": (input: unknown) => unknown;
219
+ "extension.settings.set": (input: unknown) => unknown;
220
+ "extension.settings.delete": (input: unknown) => unknown;
221
+ "terminal.session": (input: unknown) => unknown;
222
+ "files.upload": (input: unknown) => unknown;
223
+ "files.list": (input: unknown) => unknown;
224
+ "files.delete": (input: unknown) => unknown;
225
+ "artifacts.read": (input: unknown) => unknown;
121
226
  };
122
227
  //#endregion
123
228
  //#region src/extensions/host/workbench-extension-command.d.ts
@@ -129,6 +234,7 @@ interface WorkbenchExtensionCommandContext {
129
234
  workbench: WorkbenchModuleContext;
130
235
  }
131
236
  interface ExecuteWorkbenchExtensionCommandInput {
237
+ region?: WorkbenchPanelRegion;
132
238
  workspaceId?: string;
133
239
  signal?: AbortSignal;
134
240
  metadata?: Record<string, unknown>;
@@ -136,6 +242,18 @@ interface ExecuteWorkbenchExtensionCommandInput {
136
242
  resource?: ResourceRef$1;
137
243
  slot?: CommandExecuteRequest["slot"];
138
244
  }
245
+ export declare const createExtensionSlot: (input: {
246
+ context?: Record<string, unknown>;
247
+ id: string;
248
+ kind: NonNullable<CommandExecuteRequest["slot"]>["kind"];
249
+ projectId: string;
250
+ }) => {
251
+ id: string;
252
+ kind: "panel" | "settings" | "renderer" | "dataTableRenderer" | "kanbanRenderer" | "menu";
253
+ context: {
254
+ projectId: string;
255
+ };
256
+ };
139
257
  export declare const executeWorkbenchExtensionCommandResponse: (context: Pick<WorkbenchExtensionCommandContext, "executeCommand" | "projectId"> & {
140
258
  workbench: Pick<WorkbenchModuleContext, "navigation" | "notifications">;
141
259
  }, commandId: string, input?: ExecuteWorkbenchExtensionCommandInput) => Promise<unknown>;
@@ -145,1004 +263,6 @@ export declare const registerWorkbenchExtensionCommandPaletteResources: (context
145
263
  dispose(): void;
146
264
  };
147
265
  //#endregion
148
- //#region ../pstdio-api-contracts/src/extension-kernel/types/json.d.ts
149
- type JsonPrimitive = string | number | boolean | null;
150
- type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
151
- type JsonObject = {
152
- [key: string]: JsonValue;
153
- };
154
- //#endregion
155
- //#region ../pstdio-api-contracts/src/extension-kernel/types/pages.d.ts
156
- type PageParamValue$1 = string | number | boolean | readonly string[];
157
- type PageParams = Readonly<Record<string, PageParamValue$1>>;
158
- /** One-based source coordinates. Owners clamp them to the loaded document. */
159
- interface FileSourcePosition {
160
- readonly line: number;
161
- readonly column?: number;
162
- readonly endLine?: number;
163
- readonly endColumn?: number;
164
- }
165
- //#endregion
166
- //#region ../pstdio-api-contracts/src/extensions/resource-ref.d.ts
167
- declare const extensionResourceRefSchema: z.ZodObject<{
168
- shorthand: z.ZodOptional<z.ZodString>;
169
- type: z.ZodString;
170
- id: z.ZodString;
171
- projectId: z.ZodOptional<z.ZodString>;
172
- label: z.ZodOptional<z.ZodString>;
173
- icon: z.ZodOptional<z.ZodString>;
174
- extensionId: z.ZodOptional<z.ZodString>;
175
- metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
176
- }, z.core.$strip>;
177
- //#endregion
178
- //#region ../pstdio-api-contracts/src/extensions/workbench-refs-metadata.d.ts
179
- declare const pageRefSchema: z.ZodObject<{
180
- extensionId: z.ZodString;
181
- kind: z.ZodLiteral<"page">;
182
- id: z.ZodString;
183
- }, z.core.$strip>;
184
- //#endregion
185
- //#region ../pstdio-api-contracts/src/extensions/navigation-target-metadata.d.ts
186
- declare const sectionSchema: z.ZodObject<{
187
- anchors: z.ZodArray<z.ZodObject<{
188
- id: z.ZodString;
189
- heading: z.ZodString;
190
- occurrence: z.ZodOptional<z.ZodNumber>;
191
- }, z.core.$strip>>;
192
- }, z.core.$strip>;
193
- interface MetadataPageTarget {
194
- kind: "page";
195
- page: z.infer<typeof pageRefSchema>;
196
- resource?: z.infer<typeof extensionResourceRefSchema>;
197
- open?: "preview" | "pin";
198
- section?: z.infer<typeof sectionSchema>;
199
- position?: FileSourcePosition;
200
- params?: PageParams;
201
- parent?: MetadataPageTarget;
202
- }
203
- //#endregion
204
- //#region ../pstdio-api-contracts/src/extensions/commands.d.ts
205
- declare const extensionMenuContributionSchema: z.ZodObject<{
206
- id: z.ZodString;
207
- extensionId: z.ZodString;
208
- commandId: z.ZodString;
209
- slotId: z.ZodString;
210
- target: z.ZodOptional<z.ZodEnum<{
211
- "workbench.nav.actions": "workbench.nav.actions";
212
- "workbench.nav.overflow": "workbench.nav.overflow";
213
- }>>;
214
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
215
- $l10n: z.ZodString;
216
- default: z.ZodOptional<z.ZodString>;
217
- }, z.core.$strip>]>;
218
- group: z.ZodOptional<z.ZodString>;
219
- placement: z.ZodOptional<z.ZodEnum<{
220
- default: "default";
221
- first: "first";
222
- last: "last";
223
- }>>;
224
- icon: z.ZodOptional<z.ZodString>;
225
- presentation: z.ZodOptional<z.ZodEnum<{
226
- button: "button";
227
- "icon-button": "icon-button";
228
- "menu-item": "menu-item";
229
- }>>;
230
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
- when: z.ZodOptional<z.ZodObject<{
232
- mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
233
- source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
234
- api: "api";
235
- automation: "automation";
236
- cli: "cli";
237
- "command-panel": "command-panel";
238
- dashboard: "dashboard";
239
- event: "event";
240
- schedule: "schedule";
241
- }>>>;
242
- viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
243
- resourceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
245
- }, z.core.$strip>>;
246
- disabledWhen: z.ZodOptional<z.ZodObject<{
247
- mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
248
- source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
249
- api: "api";
250
- automation: "automation";
251
- cli: "cli";
252
- "command-panel": "command-panel";
253
- dashboard: "dashboard";
254
- event: "event";
255
- schedule: "schedule";
256
- }>>>;
257
- viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
258
- resourceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
260
- }, z.core.$strip>>;
261
- disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
262
- $l10n: z.ZodString;
263
- default: z.ZodOptional<z.ZodString>;
264
- }, z.core.$strip>]>>;
265
- }, z.core.$strip>;
266
- type ExtensionMenuContribution$1 = z.infer<typeof extensionMenuContributionSchema>;
267
- //#endregion
268
- //#region ../pstdio-api-contracts/src/extensions/controls-renderer.d.ts
269
- declare const extensionControlsRendererRecordSchema: z.ZodObject<{
270
- id: z.ZodString;
271
- extensionId: z.ZodString;
272
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
273
- $l10n: z.ZodString;
274
- default: z.ZodOptional<z.ZodString>;
275
- }, z.core.$strip>]>;
276
- icon: z.ZodOptional<z.ZodString>;
277
- resourceKind: z.ZodOptional<z.ZodString>;
278
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
- emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
280
- $l10n: z.ZodString;
281
- default: z.ZodOptional<z.ZodString>;
282
- }, z.core.$strip>]>>;
283
- emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
284
- $l10n: z.ZodString;
285
- default: z.ZodOptional<z.ZodString>;
286
- }, z.core.$strip>]>>;
287
- queryHandlerId: z.ZodString;
288
- valueChangeHandlerId: z.ZodOptional<z.ZodString>;
289
- applyHandlerId: z.ZodOptional<z.ZodString>;
290
- resetHandlerId: z.ZodOptional<z.ZodString>;
291
- defaultValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodString>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
292
- x: z.ZodNumber;
293
- y: z.ZodNumber;
294
- }, z.core.$strict>, z.ZodObject<{
295
- harnessId: z.ZodString;
296
- model: z.ZodOptional<z.ZodString>;
297
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
298
- }, z.core.$strict>]>>>;
299
- }, z.core.$strip>;
300
- type WorkbenchExtensionControlsRendererRecord = z.infer<typeof extensionControlsRendererRecordSchema>;
301
- //#endregion
302
- //#region ../pstdio-api-contracts/src/extensions/data-table-renderer.d.ts
303
- declare const extensionDataTableRendererRecordSchema: z.ZodObject<{
304
- id: z.ZodString;
305
- extensionId: z.ZodString;
306
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
307
- $l10n: z.ZodString;
308
- default: z.ZodOptional<z.ZodString>;
309
- }, z.core.$strip>]>;
310
- icon: z.ZodOptional<z.ZodString>;
311
- resourceKind: z.ZodOptional<z.ZodString>;
312
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
313
- emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
314
- $l10n: z.ZodString;
315
- default: z.ZodOptional<z.ZodString>;
316
- }, z.core.$strip>]>>;
317
- emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
318
- $l10n: z.ZodString;
319
- default: z.ZodOptional<z.ZodString>;
320
- }, z.core.$strip>]>>;
321
- toolbarActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
322
- id: z.ZodString;
323
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
324
- $l10n: z.ZodString;
325
- default: z.ZodOptional<z.ZodString>;
326
- }, z.core.$strip>]>;
327
- icon: z.ZodOptional<z.ZodString>;
328
- presentation: z.ZodOptional<z.ZodEnum<{
329
- secondary: "secondary";
330
- primary: "primary";
331
- }>>;
332
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
333
- input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
334
- type: z.ZodString;
335
- }, z.core.$catchall<z.ZodUnknown>>>>;
336
- submitLabel: z.ZodOptional<z.ZodString>;
337
- when: z.ZodOptional<z.ZodString>;
338
- disabled: z.ZodOptional<z.ZodBoolean>;
339
- commandId: z.ZodString;
340
- }, z.core.$strip>>>;
341
- columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
342
- id: z.ZodString;
343
- label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
344
- $l10n: z.ZodString;
345
- default: z.ZodOptional<z.ZodString>;
346
- }, z.core.$strip>]>>;
347
- type: z.ZodOptional<z.ZodEnum<{
348
- string: "string";
349
- number: "number";
350
- boolean: "boolean";
351
- date: "date";
352
- }>>;
353
- groupable: z.ZodOptional<z.ZodBoolean>;
354
- filterable: z.ZodOptional<z.ZodBoolean>;
355
- description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
356
- $l10n: z.ZodString;
357
- default: z.ZodOptional<z.ZodString>;
358
- }, z.core.$strip>]>>;
359
- icon: z.ZodOptional<z.ZodString>;
360
- hidden: z.ZodOptional<z.ZodBoolean>;
361
- stat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
362
- type: z.ZodLiteral<"unique">;
363
- }, z.core.$strip>, z.ZodObject<{
364
- type: z.ZodLiteral<"histogram">;
365
- bins: z.ZodOptional<z.ZodNumber>;
366
- }, z.core.$strip>, z.ZodObject<{
367
- type: z.ZodLiteral<"top-values">;
368
- limit: z.ZodOptional<z.ZodNumber>;
369
- }, z.core.$strip>], "type">>;
370
- renderer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
371
- type: z.ZodLiteral<"json">;
372
- }, z.core.$strip>, z.ZodObject<{
373
- type: z.ZodLiteral<"color-scale">;
374
- stops: z.ZodArray<z.ZodObject<{
375
- value: z.ZodNumber;
376
- color: z.ZodObject<{
377
- light: z.ZodString;
378
- dark: z.ZodString;
379
- foreground: z.ZodOptional<z.ZodObject<{
380
- light: z.ZodString;
381
- dark: z.ZodString;
382
- }, z.core.$strip>>;
383
- }, z.core.$strip>;
384
- }, z.core.$strip>>;
385
- }, z.core.$strip>, z.ZodObject<{
386
- type: z.ZodLiteral<"categorical-color">;
387
- categories: z.ZodArray<z.ZodObject<{
388
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
389
- color: z.ZodObject<{
390
- light: z.ZodString;
391
- dark: z.ZodString;
392
- foreground: z.ZodOptional<z.ZodObject<{
393
- light: z.ZodString;
394
- dark: z.ZodString;
395
- }, z.core.$strip>>;
396
- }, z.core.$strip>;
397
- }, z.core.$strip>>;
398
- }, z.core.$strip>], "type">>;
399
- }, z.core.$strip>>>;
400
- queryHandlerId: z.ZodString;
401
- selectionMode: z.ZodOptional<z.ZodEnum<{
402
- none: "none";
403
- multiple: "multiple";
404
- }>>;
405
- selectionActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
- id: z.ZodString;
407
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
408
- $l10n: z.ZodString;
409
- default: z.ZodOptional<z.ZodString>;
410
- }, z.core.$strip>]>;
411
- icon: z.ZodOptional<z.ZodString>;
412
- destructive: z.ZodOptional<z.ZodBoolean>;
413
- commandId: z.ZodString;
414
- }, z.core.$strip>>>;
415
- rowActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
- id: z.ZodString;
417
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
418
- $l10n: z.ZodString;
419
- default: z.ZodOptional<z.ZodString>;
420
- }, z.core.$strip>]>;
421
- icon: z.ZodOptional<z.ZodString>;
422
- destructive: z.ZodOptional<z.ZodBoolean>;
423
- commandId: z.ZodString;
424
- }, z.core.$strip>>>;
425
- rowActivationHandlerId: z.ZodOptional<z.ZodString>;
426
- initialPageSize: z.ZodOptional<z.ZodNumber>;
427
- pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
428
- defaultSettings: z.ZodOptional<z.ZodObject<{
429
- grouping: z.ZodOptional<z.ZodString>;
430
- rowNumbers: z.ZodOptional<z.ZodBoolean>;
431
- wrapRows: z.ZodOptional<z.ZodBoolean>;
432
- showStats: z.ZodOptional<z.ZodBoolean>;
433
- hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
- columnOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
435
- }, z.core.$strip>>;
436
- defaultFilter: z.ZodOptional<z.ZodObject<{
437
- conjunction: z.ZodEnum<{
438
- and: "and";
439
- or: "or";
440
- }>;
441
- rules: z.ZodArray<z.ZodObject<{
442
- attributeId: z.ZodString;
443
- condition: z.ZodEnum<{
444
- contains: "contains";
445
- "does-not-contain": "does-not-contain";
446
- is: "is";
447
- "is-not": "is-not";
448
- gt: "gt";
449
- gte: "gte";
450
- lt: "lt";
451
- lte: "lte";
452
- "is-before": "is-before";
453
- "is-after": "is-after";
454
- "is-on-or-before": "is-on-or-before";
455
- "is-on-or-after": "is-on-or-after";
456
- "is-any-of": "is-any-of";
457
- "is-none-of": "is-none-of";
458
- "has-any-of": "has-any-of";
459
- "has-all-of": "has-all-of";
460
- "has-none-of": "has-none-of";
461
- "is-empty": "is-empty";
462
- "is-not-empty": "is-not-empty";
463
- }>;
464
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
465
- }, z.core.$strip>>;
466
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
467
- conjunction: z.ZodEnum<{
468
- and: "and";
469
- or: "or";
470
- }>;
471
- rules: z.ZodArray<z.ZodObject<{
472
- attributeId: z.ZodString;
473
- condition: z.ZodEnum<{
474
- contains: "contains";
475
- "does-not-contain": "does-not-contain";
476
- is: "is";
477
- "is-not": "is-not";
478
- gt: "gt";
479
- gte: "gte";
480
- lt: "lt";
481
- lte: "lte";
482
- "is-before": "is-before";
483
- "is-after": "is-after";
484
- "is-on-or-before": "is-on-or-before";
485
- "is-on-or-after": "is-on-or-after";
486
- "is-any-of": "is-any-of";
487
- "is-none-of": "is-none-of";
488
- "has-any-of": "has-any-of";
489
- "has-all-of": "has-all-of";
490
- "has-none-of": "has-none-of";
491
- "is-empty": "is-empty";
492
- "is-not-empty": "is-not-empty";
493
- }>;
494
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
495
- }, z.core.$strip>>;
496
- }, z.core.$strict>>>;
497
- }, z.core.$strict>>;
498
- defaultSorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
499
- attributeId: z.ZodString;
500
- direction: z.ZodEnum<{
501
- asc: "asc";
502
- desc: "desc";
503
- }>;
504
- }, z.core.$strip>>>;
505
- defaultViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
506
- id: z.ZodString;
507
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
508
- $l10n: z.ZodString;
509
- default: z.ZodOptional<z.ZodString>;
510
- }, z.core.$strip>]>;
511
- settings: z.ZodOptional<z.ZodObject<{
512
- grouping: z.ZodOptional<z.ZodString>;
513
- rowNumbers: z.ZodOptional<z.ZodBoolean>;
514
- wrapRows: z.ZodOptional<z.ZodBoolean>;
515
- showStats: z.ZodOptional<z.ZodBoolean>;
516
- hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
517
- columnOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
518
- }, z.core.$strip>>;
519
- filter: z.ZodOptional<z.ZodObject<{
520
- conjunction: z.ZodEnum<{
521
- and: "and";
522
- or: "or";
523
- }>;
524
- rules: z.ZodArray<z.ZodObject<{
525
- attributeId: z.ZodString;
526
- condition: z.ZodEnum<{
527
- contains: "contains";
528
- "does-not-contain": "does-not-contain";
529
- is: "is";
530
- "is-not": "is-not";
531
- gt: "gt";
532
- gte: "gte";
533
- lt: "lt";
534
- lte: "lte";
535
- "is-before": "is-before";
536
- "is-after": "is-after";
537
- "is-on-or-before": "is-on-or-before";
538
- "is-on-or-after": "is-on-or-after";
539
- "is-any-of": "is-any-of";
540
- "is-none-of": "is-none-of";
541
- "has-any-of": "has-any-of";
542
- "has-all-of": "has-all-of";
543
- "has-none-of": "has-none-of";
544
- "is-empty": "is-empty";
545
- "is-not-empty": "is-not-empty";
546
- }>;
547
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
548
- }, z.core.$strip>>;
549
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
550
- conjunction: z.ZodEnum<{
551
- and: "and";
552
- or: "or";
553
- }>;
554
- rules: z.ZodArray<z.ZodObject<{
555
- attributeId: z.ZodString;
556
- condition: z.ZodEnum<{
557
- contains: "contains";
558
- "does-not-contain": "does-not-contain";
559
- is: "is";
560
- "is-not": "is-not";
561
- gt: "gt";
562
- gte: "gte";
563
- lt: "lt";
564
- lte: "lte";
565
- "is-before": "is-before";
566
- "is-after": "is-after";
567
- "is-on-or-before": "is-on-or-before";
568
- "is-on-or-after": "is-on-or-after";
569
- "is-any-of": "is-any-of";
570
- "is-none-of": "is-none-of";
571
- "has-any-of": "has-any-of";
572
- "has-all-of": "has-all-of";
573
- "has-none-of": "has-none-of";
574
- "is-empty": "is-empty";
575
- "is-not-empty": "is-not-empty";
576
- }>;
577
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
578
- }, z.core.$strip>>;
579
- }, z.core.$strict>>>;
580
- }, z.core.$strict>>;
581
- sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
582
- attributeId: z.ZodString;
583
- direction: z.ZodEnum<{
584
- asc: "asc";
585
- desc: "desc";
586
- }>;
587
- }, z.core.$strip>>>;
588
- }, z.core.$strip>>>;
589
- defaultActiveViewId: z.ZodOptional<z.ZodString>;
590
- }, z.core.$strip>;
591
- type ExtensionDataTableRendererRecord = z.infer<typeof extensionDataTableRendererRecordSchema>;
592
- type WorkbenchExtensionDataTableRendererRecord = ExtensionDataTableRendererRecord;
593
- //#endregion
594
- //#region ../pstdio-api-contracts/src/extensions/kanban-renderer.d.ts
595
- declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
596
- id: z.ZodString;
597
- extensionId: z.ZodString;
598
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
599
- $l10n: z.ZodString;
600
- default: z.ZodOptional<z.ZodString>;
601
- }, z.core.$strip>]>;
602
- icon: z.ZodOptional<z.ZodString>;
603
- resourceKind: z.ZodOptional<z.ZodString>;
604
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
605
- emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
606
- $l10n: z.ZodString;
607
- default: z.ZodOptional<z.ZodString>;
608
- }, z.core.$strip>]>>;
609
- emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
610
- $l10n: z.ZodString;
611
- default: z.ZodOptional<z.ZodString>;
612
- }, z.core.$strip>]>>;
613
- toolbarActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
- id: z.ZodString;
615
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
616
- $l10n: z.ZodString;
617
- default: z.ZodOptional<z.ZodString>;
618
- }, z.core.$strip>]>;
619
- icon: z.ZodOptional<z.ZodString>;
620
- presentation: z.ZodOptional<z.ZodEnum<{
621
- secondary: "secondary";
622
- primary: "primary";
623
- }>>;
624
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
- input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
626
- type: z.ZodString;
627
- }, z.core.$catchall<z.ZodUnknown>>>>;
628
- submitLabel: z.ZodOptional<z.ZodString>;
629
- when: z.ZodOptional<z.ZodString>;
630
- disabled: z.ZodOptional<z.ZodBoolean>;
631
- commandId: z.ZodString;
632
- }, z.core.$strip>>>;
633
- extensionInstanceId: z.ZodOptional<z.ZodString>;
634
- attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
- id: z.ZodString;
636
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
637
- $l10n: z.ZodString;
638
- default: z.ZodOptional<z.ZodString>;
639
- }, z.core.$strip>]>;
640
- type: z.ZodDiscriminatedUnion<[z.ZodObject<{
641
- kind: z.ZodLiteral<"enum">;
642
- options: z.ZodArray<z.ZodObject<{
643
- value: z.ZodString;
644
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
645
- $l10n: z.ZodString;
646
- default: z.ZodOptional<z.ZodString>;
647
- }, z.core.$strip>]>;
648
- color: z.ZodOptional<z.ZodString>;
649
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
- }, z.core.$strip>>;
651
- }, z.core.$strip>, z.ZodObject<{
652
- kind: z.ZodLiteral<"enum-multi">;
653
- options: z.ZodArray<z.ZodObject<{
654
- value: z.ZodString;
655
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
656
- $l10n: z.ZodString;
657
- default: z.ZodOptional<z.ZodString>;
658
- }, z.core.$strip>]>;
659
- color: z.ZodOptional<z.ZodString>;
660
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
- }, z.core.$strip>>;
662
- }, z.core.$strip>, z.ZodObject<{
663
- kind: z.ZodLiteral<"status">;
664
- statuses: z.ZodObject<{
665
- extensionId: z.ZodOptional<z.ZodString>;
666
- kind: z.ZodLiteral<"status">;
667
- id: z.ZodString;
668
- }, z.core.$strip>;
669
- }, z.core.$strip>, z.ZodObject<{
670
- kind: z.ZodLiteral<"boolean">;
671
- legacyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
672
- }, z.core.$strip>, z.ZodObject<{
673
- kind: z.ZodLiteral<"string">;
674
- }, z.core.$strip>, z.ZodObject<{
675
- kind: z.ZodLiteral<"date">;
676
- }, z.core.$strip>, z.ZodObject<{
677
- kind: z.ZodLiteral<"number">;
678
- }, z.core.$strip>, z.ZodObject<{
679
- kind: z.ZodLiteral<"user">;
680
- }, z.core.$strip>], "kind">;
681
- filterable: z.ZodOptional<z.ZodBoolean>;
682
- groupable: z.ZodOptional<z.ZodBoolean>;
683
- sortable: z.ZodOptional<z.ZodBoolean>;
684
- displayable: z.ZodOptional<z.ZodBoolean>;
685
- editable: z.ZodOptional<z.ZodBoolean>;
686
- display: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
687
- kind: z.ZodLiteral<"badge-list">;
688
- itemsAttributeId: z.ZodString;
689
- }, z.core.$strip>, z.ZodObject<{
690
- kind: z.ZodString;
691
- }, z.core.$loose>]>>;
692
- }, z.core.$strip>>>;
693
- queryHandlerId: z.ZodString;
694
- attributeChangeHandlerId: z.ZodOptional<z.ZodString>;
695
- reorderHandlerId: z.ZodOptional<z.ZodString>;
696
- moveHandlerId: z.ZodOptional<z.ZodString>;
697
- schemaRefreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
698
- columnActionHandlerId: z.ZodOptional<z.ZodString>;
699
- createRow: z.ZodOptional<z.ZodObject<{
700
- commandId: z.ZodString;
701
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
702
- $l10n: z.ZodString;
703
- default: z.ZodOptional<z.ZodString>;
704
- }, z.core.$strip>]>>;
705
- submitLabel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
706
- $l10n: z.ZodString;
707
- default: z.ZodOptional<z.ZodString>;
708
- }, z.core.$strip>]>>;
709
- columnParam: z.ZodOptional<z.ZodString>;
710
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
711
- type: z.ZodString;
712
- }, z.core.$catchall<z.ZodUnknown>>>>;
713
- attributesParam: z.ZodOptional<z.ZodString>;
714
- attachments: z.ZodOptional<z.ZodObject<{
715
- commandId: z.ZodString;
716
- resourceParam: z.ZodString;
717
- fileParam: z.ZodString;
718
- }, z.core.$strip>>;
719
- labels: z.ZodOptional<z.ZodObject<{
720
- cancel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
721
- $l10n: z.ZodString;
722
- default: z.ZodOptional<z.ZodString>;
723
- }, z.core.$strip>]>>;
724
- properties: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
725
- $l10n: z.ZodString;
726
- default: z.ZodOptional<z.ZodString>;
727
- }, z.core.$strip>]>>;
728
- submitError: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
729
- $l10n: z.ZodString;
730
- default: z.ZodOptional<z.ZodString>;
731
- }, z.core.$strip>]>>;
732
- removeFile: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
733
- $l10n: z.ZodString;
734
- default: z.ZodOptional<z.ZodString>;
735
- }, z.core.$strip>]>>;
736
- }, z.core.$strip>>;
737
- }, z.core.$strip>>;
738
- rowActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
739
- id: z.ZodString;
740
- label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
741
- $l10n: z.ZodString;
742
- default: z.ZodOptional<z.ZodString>;
743
- }, z.core.$strip>]>;
744
- icon: z.ZodOptional<z.ZodString>;
745
- commandId: z.ZodString;
746
- destructive: z.ZodOptional<z.ZodBoolean>;
747
- }, z.core.$strip>>>;
748
- rowActivationHandlerId: z.ZodOptional<z.ZodString>;
749
- defaultSettings: z.ZodOptional<z.ZodObject<{
750
- viewMode: z.ZodOptional<z.ZodEnum<{
751
- list: "list";
752
- board: "board";
753
- }>>;
754
- columnGrouping: z.ZodOptional<z.ZodString>;
755
- rowGrouping: z.ZodOptional<z.ZodString>;
756
- displayProperties: z.ZodOptional<z.ZodArray<z.ZodString>>;
757
- }, z.core.$strip>>;
758
- defaultFilter: z.ZodOptional<z.ZodObject<{
759
- conjunction: z.ZodEnum<{
760
- and: "and";
761
- or: "or";
762
- }>;
763
- rules: z.ZodArray<z.ZodObject<{
764
- attributeId: z.ZodString;
765
- condition: z.ZodEnum<{
766
- contains: "contains";
767
- "does-not-contain": "does-not-contain";
768
- is: "is";
769
- "is-not": "is-not";
770
- gt: "gt";
771
- gte: "gte";
772
- lt: "lt";
773
- lte: "lte";
774
- "is-before": "is-before";
775
- "is-after": "is-after";
776
- "is-on-or-before": "is-on-or-before";
777
- "is-on-or-after": "is-on-or-after";
778
- "is-any-of": "is-any-of";
779
- "is-none-of": "is-none-of";
780
- "has-any-of": "has-any-of";
781
- "has-all-of": "has-all-of";
782
- "has-none-of": "has-none-of";
783
- "is-empty": "is-empty";
784
- "is-not-empty": "is-not-empty";
785
- }>;
786
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
787
- }, z.core.$strip>>;
788
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
- conjunction: z.ZodEnum<{
790
- and: "and";
791
- or: "or";
792
- }>;
793
- rules: z.ZodArray<z.ZodObject<{
794
- attributeId: z.ZodString;
795
- condition: z.ZodEnum<{
796
- contains: "contains";
797
- "does-not-contain": "does-not-contain";
798
- is: "is";
799
- "is-not": "is-not";
800
- gt: "gt";
801
- gte: "gte";
802
- lt: "lt";
803
- lte: "lte";
804
- "is-before": "is-before";
805
- "is-after": "is-after";
806
- "is-on-or-before": "is-on-or-before";
807
- "is-on-or-after": "is-on-or-after";
808
- "is-any-of": "is-any-of";
809
- "is-none-of": "is-none-of";
810
- "has-any-of": "has-any-of";
811
- "has-all-of": "has-all-of";
812
- "has-none-of": "has-none-of";
813
- "is-empty": "is-empty";
814
- "is-not-empty": "is-not-empty";
815
- }>;
816
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
817
- }, z.core.$strip>>;
818
- }, z.core.$strict>>>;
819
- }, z.core.$strict>>;
820
- defaultSorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
- attributeId: z.ZodString;
822
- direction: z.ZodEnum<{
823
- asc: "asc";
824
- desc: "desc";
825
- }>;
826
- }, z.core.$strip>>>;
827
- defaultViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
828
- id: z.ZodString;
829
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
830
- $l10n: z.ZodString;
831
- default: z.ZodOptional<z.ZodString>;
832
- }, z.core.$strip>]>;
833
- settings: z.ZodObject<{
834
- viewMode: z.ZodEnum<{
835
- list: "list";
836
- board: "board";
837
- }>;
838
- columnGrouping: z.ZodString;
839
- rowGrouping: z.ZodString;
840
- displayProperties: z.ZodArray<z.ZodString>;
841
- }, z.core.$strip>;
842
- filter: z.ZodObject<{
843
- conjunction: z.ZodEnum<{
844
- and: "and";
845
- or: "or";
846
- }>;
847
- rules: z.ZodArray<z.ZodObject<{
848
- attributeId: z.ZodString;
849
- condition: z.ZodEnum<{
850
- contains: "contains";
851
- "does-not-contain": "does-not-contain";
852
- is: "is";
853
- "is-not": "is-not";
854
- gt: "gt";
855
- gte: "gte";
856
- lt: "lt";
857
- lte: "lte";
858
- "is-before": "is-before";
859
- "is-after": "is-after";
860
- "is-on-or-before": "is-on-or-before";
861
- "is-on-or-after": "is-on-or-after";
862
- "is-any-of": "is-any-of";
863
- "is-none-of": "is-none-of";
864
- "has-any-of": "has-any-of";
865
- "has-all-of": "has-all-of";
866
- "has-none-of": "has-none-of";
867
- "is-empty": "is-empty";
868
- "is-not-empty": "is-not-empty";
869
- }>;
870
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
871
- }, z.core.$strip>>;
872
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
- conjunction: z.ZodEnum<{
874
- and: "and";
875
- or: "or";
876
- }>;
877
- rules: z.ZodArray<z.ZodObject<{
878
- attributeId: z.ZodString;
879
- condition: z.ZodEnum<{
880
- contains: "contains";
881
- "does-not-contain": "does-not-contain";
882
- is: "is";
883
- "is-not": "is-not";
884
- gt: "gt";
885
- gte: "gte";
886
- lt: "lt";
887
- lte: "lte";
888
- "is-before": "is-before";
889
- "is-after": "is-after";
890
- "is-on-or-before": "is-on-or-before";
891
- "is-on-or-after": "is-on-or-after";
892
- "is-any-of": "is-any-of";
893
- "is-none-of": "is-none-of";
894
- "has-any-of": "has-any-of";
895
- "has-all-of": "has-all-of";
896
- "has-none-of": "has-none-of";
897
- "is-empty": "is-empty";
898
- "is-not-empty": "is-not-empty";
899
- }>;
900
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>]>>;
901
- }, z.core.$strip>>;
902
- }, z.core.$strict>>>;
903
- }, z.core.$strict>;
904
- sorts: z.ZodArray<z.ZodObject<{
905
- attributeId: z.ZodString;
906
- direction: z.ZodEnum<{
907
- asc: "asc";
908
- desc: "desc";
909
- }>;
910
- }, z.core.$strip>>;
911
- isDefault: z.ZodOptional<z.ZodBoolean>;
912
- }, z.core.$strip>>>;
913
- defaultActiveViewId: z.ZodOptional<z.ZodString>;
914
- hideToolbar: z.ZodOptional<z.ZodBoolean>;
915
- }, z.core.$strip>;
916
- declare const extensionCommandPaletteResourceRecordSchema: z.ZodObject<{
917
- id: z.ZodString;
918
- extensionId: z.ZodString;
919
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
920
- $l10n: z.ZodString;
921
- default: z.ZodOptional<z.ZodString>;
922
- }, z.core.$strip>]>;
923
- resourceKind: z.ZodOptional<z.ZodString>;
924
- queryHandlerId: z.ZodString;
925
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
926
- }, z.core.$strip>;
927
- type WorkbenchExtensionKanbanRendererRecord = z.infer<typeof extensionKanbanRendererRecordSchema>;
928
- type WorkbenchExtensionCommandPaletteResourceRecord$1 = z.infer<typeof extensionCommandPaletteResourceRecordSchema>;
929
- //#endregion
930
- //#region ../pstdio-api-contracts/src/extensions/keybindings.d.ts
931
- declare const extensionKeybindingRecordSchema: z.ZodObject<{
932
- id: z.ZodString;
933
- extensionId: z.ZodString;
934
- action: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<MetadataPageTarget, unknown, z.core.$ZodTypeInternals<MetadataPageTarget, unknown>>, z.ZodObject<{
935
- kind: z.ZodLiteral<"panel">;
936
- panel: z.ZodUnion<readonly [z.ZodObject<{
937
- extensionId: z.ZodString;
938
- kind: z.ZodLiteral<"placement">;
939
- id: z.ZodString;
940
- }, z.core.$strip>, z.ZodObject<{
941
- kind: z.ZodLiteral<"page-slot">;
942
- page: z.ZodObject<{
943
- extensionId: z.ZodString;
944
- kind: z.ZodLiteral<"page">;
945
- id: z.ZodString;
946
- }, z.core.$strip>;
947
- id: z.ZodString;
948
- }, z.core.$strip>]>;
949
- resource: z.ZodOptional<z.ZodObject<{
950
- shorthand: z.ZodOptional<z.ZodString>;
951
- type: z.ZodString;
952
- id: z.ZodString;
953
- projectId: z.ZodOptional<z.ZodString>;
954
- label: z.ZodOptional<z.ZodString>;
955
- icon: z.ZodOptional<z.ZodString>;
956
- extensionId: z.ZodOptional<z.ZodString>;
957
- metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
958
- }, z.core.$strip>>;
959
- open: z.ZodOptional<z.ZodEnum<{
960
- preview: "preview";
961
- pin: "pin";
962
- }>>;
963
- }, z.core.$strip>]>, z.ZodObject<{
964
- kind: z.ZodLiteral<"command">;
965
- target: z.ZodObject<{
966
- command: z.ZodObject<{
967
- extensionId: z.ZodString;
968
- kind: z.ZodLiteral<"command">;
969
- id: z.ZodString;
970
- }, z.core.$strip>;
971
- params: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
972
- }, z.core.$strip>;
973
- }, z.core.$strip>, z.ZodObject<{
974
- kind: z.ZodLiteral<"href">;
975
- href: z.ZodString;
976
- }, z.core.$strip>, z.ZodObject<{
977
- kind: z.ZodLiteral<"compound">;
978
- targets: z.ZodArray<z.ZodUnion<readonly [z.ZodType<MetadataPageTarget, unknown, z.core.$ZodTypeInternals<MetadataPageTarget, unknown>>, z.ZodObject<{
979
- kind: z.ZodLiteral<"panel">;
980
- panel: z.ZodUnion<readonly [z.ZodObject<{
981
- extensionId: z.ZodString;
982
- kind: z.ZodLiteral<"placement">;
983
- id: z.ZodString;
984
- }, z.core.$strip>, z.ZodObject<{
985
- kind: z.ZodLiteral<"page-slot">;
986
- page: z.ZodObject<{
987
- extensionId: z.ZodString;
988
- kind: z.ZodLiteral<"page">;
989
- id: z.ZodString;
990
- }, z.core.$strip>;
991
- id: z.ZodString;
992
- }, z.core.$strip>]>;
993
- resource: z.ZodOptional<z.ZodObject<{
994
- shorthand: z.ZodOptional<z.ZodString>;
995
- type: z.ZodString;
996
- id: z.ZodString;
997
- projectId: z.ZodOptional<z.ZodString>;
998
- label: z.ZodOptional<z.ZodString>;
999
- icon: z.ZodOptional<z.ZodString>;
1000
- extensionId: z.ZodOptional<z.ZodString>;
1001
- metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
1002
- }, z.core.$strip>>;
1003
- open: z.ZodOptional<z.ZodEnum<{
1004
- preview: "preview";
1005
- pin: "pin";
1006
- }>>;
1007
- }, z.core.$strip>]>>;
1008
- }, z.core.$strip>]>;
1009
- key: z.ZodString;
1010
- canonicalChord: z.ZodString;
1011
- parsed: z.ZodObject<{
1012
- key: z.ZodString;
1013
- ctrl: z.ZodBoolean;
1014
- shift: z.ZodBoolean;
1015
- alt: z.ZodBoolean;
1016
- meta: z.ZodBoolean;
1017
- modifiers: z.ZodArray<z.ZodString>;
1018
- }, z.core.$strip>;
1019
- platformOverrides: z.ZodOptional<z.ZodObject<{
1020
- mac: z.ZodOptional<z.ZodString>;
1021
- linux: z.ZodOptional<z.ZodString>;
1022
- win: z.ZodOptional<z.ZodString>;
1023
- }, z.core.$strip>>;
1024
- when: z.ZodOptional<z.ZodObject<{
1025
- mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1026
- source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1027
- api: "api";
1028
- automation: "automation";
1029
- cli: "cli";
1030
- "command-panel": "command-panel";
1031
- dashboard: "dashboard";
1032
- event: "event";
1033
- schedule: "schedule";
1034
- }>>>;
1035
- viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1036
- resourceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
1037
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1038
- }, z.core.$strip>>;
1039
- }, z.core.$strip>;
1040
- type ExtensionKeybindingRecord = z.infer<typeof extensionKeybindingRecordSchema>;
1041
- //#endregion
1042
- //#region ../pstdio-api-contracts/src/extensions/renderers.d.ts
1043
- declare const extensionTreeRendererRecordSchema: z.ZodObject<{
1044
- id: z.ZodString;
1045
- extensionId: z.ZodString;
1046
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1047
- $l10n: z.ZodString;
1048
- default: z.ZodOptional<z.ZodString>;
1049
- }, z.core.$strip>]>;
1050
- icon: z.ZodOptional<z.ZodString>;
1051
- resourceKind: z.ZodOptional<z.ZodString>;
1052
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1053
- emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1054
- $l10n: z.ZodString;
1055
- default: z.ZodOptional<z.ZodString>;
1056
- }, z.core.$strip>]>>;
1057
- emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1058
- $l10n: z.ZodString;
1059
- default: z.ZodOptional<z.ZodString>;
1060
- }, z.core.$strip>]>>;
1061
- searchable: z.ZodOptional<z.ZodBoolean>;
1062
- searchPlaceholder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1063
- $l10n: z.ZodString;
1064
- default: z.ZodOptional<z.ZodString>;
1065
- }, z.core.$strip>]>>;
1066
- headerHandlerId: z.ZodOptional<z.ZodString>;
1067
- bodyHandlerId: z.ZodString;
1068
- childrenHandlerId: z.ZodOptional<z.ZodString>;
1069
- moveHandlerId: z.ZodOptional<z.ZodString>;
1070
- footerHandlerId: z.ZodOptional<z.ZodString>;
1071
- defaultExpandedSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1072
- defaultExpandedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1073
- }, z.core.$strip>;
1074
- declare const extensionFileRendererRecordSchema: z.ZodObject<{
1075
- id: z.ZodString;
1076
- extensionId: z.ZodString;
1077
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1078
- $l10n: z.ZodString;
1079
- default: z.ZodOptional<z.ZodString>;
1080
- }, z.core.$strip>]>;
1081
- icon: z.ZodOptional<z.ZodString>;
1082
- resourceKind: z.ZodOptional<z.ZodString>;
1083
- refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1084
- emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1085
- $l10n: z.ZodString;
1086
- default: z.ZodOptional<z.ZodString>;
1087
- }, z.core.$strip>]>>;
1088
- emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1089
- $l10n: z.ZodString;
1090
- default: z.ZodOptional<z.ZodString>;
1091
- }, z.core.$strip>]>>;
1092
- loadHandlerId: z.ZodString;
1093
- saveHandlerId: z.ZodOptional<z.ZodString>;
1094
- }, z.core.$strip>;
1095
- type WorkbenchExtensionFileRendererRecord = z.infer<typeof extensionFileRendererRecordSchema>;
1096
- type WorkbenchExtensionTreeRendererRecord = z.infer<typeof extensionTreeRendererRecordSchema>;
1097
- //#endregion
1098
- //#region ../pstdio-api-contracts/src/extensions/settings.d.ts
1099
- declare const extensionSettingDefinitionRecordSchema: z.ZodObject<{
1100
- key: z.ZodString;
1101
- extensionId: z.ZodString;
1102
- type: z.ZodEnum<{
1103
- string: "string";
1104
- number: "number";
1105
- boolean: "boolean";
1106
- object: "object";
1107
- array: "array";
1108
- }>;
1109
- scope: z.ZodEnum<{
1110
- global: "global";
1111
- project: "project";
1112
- }>;
1113
- default: z.ZodOptional<z.ZodUnknown>;
1114
- enum: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1115
- options: z.ZodOptional<z.ZodObject<{
1116
- commandId: z.ZodString;
1117
- valueField: z.ZodString;
1118
- labelField: z.ZodString;
1119
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1120
- }, z.core.$strip>>;
1121
- title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1122
- $l10n: z.ZodString;
1123
- default: z.ZodOptional<z.ZodString>;
1124
- }, z.core.$strip>]>>;
1125
- description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1126
- $l10n: z.ZodString;
1127
- default: z.ZodOptional<z.ZodString>;
1128
- }, z.core.$strip>]>>;
1129
- }, z.core.$strip>;
1130
- declare const extensionSettingsSectionRecordSchema: z.ZodObject<{
1131
- id: z.ZodString;
1132
- extensionId: z.ZodString;
1133
- title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1134
- $l10n: z.ZodString;
1135
- default: z.ZodOptional<z.ZodString>;
1136
- }, z.core.$strip>]>;
1137
- scope: z.ZodOptional<z.ZodEnum<{
1138
- global: "global";
1139
- project: "project";
1140
- }>>;
1141
- order: z.ZodOptional<z.ZodNumber>;
1142
- }, z.core.$strip>;
1143
- type ExtensionSettingDefinitionRecord = z.infer<typeof extensionSettingDefinitionRecordSchema>;
1144
- type ExtensionSettingsSectionRecord = z.infer<typeof extensionSettingsSectionRecordSchema>;
1145
- //#endregion
1146
266
  //#region src/extensions/contributions/controls-renderer-contributions.d.ts
1147
267
  interface WorkbenchExtensionControlsAdapter {
1148
268
  /** Supply a fallback resource when the widget placement carries none. */
@@ -1167,6 +287,10 @@ interface WorkbenchExtensionMenuSlotConfig {
1167
287
  menuPath: MenuPath;
1168
288
  group?: string;
1169
289
  overflowLabel?: string;
290
+ resourceGroup?: {
291
+ id: string;
292
+ label: string;
293
+ };
1170
294
  }
1171
295
  type WorkbenchExtensionMenuWhenBuilder = (contribution: ExtensionMenuContribution) => string | undefined;
1172
296
  type WorkbenchExtensionStringResolver = (value: Localizable<string> | undefined, extensionId: string) => string;
@@ -1202,7 +326,6 @@ export declare const emptyWorkbenchExtensionMetadata: {
1202
326
  navigationItems: never[];
1203
327
  navigationTrees: never[];
1204
328
  statusBarItems: never[];
1205
- statuses: never[];
1206
329
  settingsPanels: never[];
1207
330
  settingsDefinitions: never[];
1208
331
  };
@@ -1293,6 +416,7 @@ interface InternalWorkbenchExtensionMetadata {
1293
416
  panels: InternalWorkbenchExtensionPanel[];
1294
417
  resourceKinds: Array<{
1295
418
  id: string;
419
+ relatedOpeningsCommand?: string;
1296
420
  extensionId: string;
1297
421
  label?: WorkbenchExtensionMetadata$1["resourceKinds"][number]["label"];
1298
422
  icon?: string;
@@ -1326,7 +450,6 @@ interface InternalWorkbenchExtensionMetadata {
1326
450
  controlsRenderers: WorkbenchExtensionControlsRendererRecord[];
1327
451
  keybindings: ExtensionKeybindingRecord[];
1328
452
  settingsDefinitions: ExtensionSettingDefinitionRecord[];
1329
- statuses: WorkbenchExtensionMetadata$1["statuses"];
1330
453
  statusBarItems: Array<{
1331
454
  id: string;
1332
455
  extensionId: string;
@@ -1351,7 +474,7 @@ interface RegisterWorkbenchExtensionFileRenderersInput {
1351
474
  projectId: string;
1352
475
  workbench: WorkbenchModuleContext;
1353
476
  }
1354
- export declare const fileRendererRefreshEnvelopeFromCommand: (body: CommandExecuteRequest, response: CommandExecuteResponse) => FileRendererRefreshEnvelope | undefined;
477
+ export declare const fileRendererRefreshEnvelopeFromCommand: (body: CommandExecuteRequest, response: CommandExecutionResult) => FileRendererRefreshEnvelope | undefined;
1355
478
  export declare const registerWorkbenchExtensionFileRenderers: (input: RegisterWorkbenchExtensionFileRenderersInput) => {
1356
479
  dispose(): void;
1357
480
  };
@@ -1464,12 +587,13 @@ interface ToWorkbenchNavigationTargetInput {
1464
587
  }>): NavigationTargetCommand;
1465
588
  extensionId?: string;
1466
589
  projectId?: string;
590
+ region?: WorkbenchPanelRegion;
1467
591
  }
1468
592
  type NavigationOperation = Extract<NavigationTarget, {
1469
593
  kind: "page" | "panel";
1470
594
  }>;
1471
595
  export declare function toWorkbenchNavigationTarget(target: NavigationOperation, input?: ToWorkbenchNavigationTargetInput): NavigationOperation;
1472
- export declare function toWorkbenchNavigationTarget(target: NavigationTarget, input?: ToWorkbenchNavigationTargetInput): NavigationTarget$1;
596
+ export declare function toWorkbenchNavigationTarget(target: NavigationTarget, input?: ToWorkbenchNavigationTargetInput): NavigationTarget$2;
1473
597
  //#endregion
1474
598
  //#region src/extensions/host/workbench-extension-refresh.d.ts
1475
599
  type WorkbenchExtensionRendererKind = "tree" | "file" | "controls" | "dataTable" | "kanban";
@@ -1500,8 +624,7 @@ interface RegisterWorkbenchExtensionContributionsInput {
1500
624
  createKeybindingWhenExpression?: (when: ExtensionKeybindingRecord["when"]) => string | undefined;
1501
625
  createMenuWhenExpression?: WorkbenchExtensionMenuWhenBuilder;
1502
626
  createNavigationWhenExpression?: (when: WorkbenchExtensionMetadata$1["navigationItems"][number]["when"]) => string | undefined;
1503
- createWebviewHostCapabilities?: CreateBridgeWebviewHostCapabilities;
1504
- createWebviewHostCapabilityOverrides?: CreateBridgeWebviewHostCapabilities;
627
+ createWebviewHostAdapters?: CreateBridgeWebviewHostAdapters;
1505
628
  createWebviewProps?: CreateBridgeWebviewProps;
1506
629
  createWebviewTheme?: CreateBridgeWebviewTheme;
1507
630
  executeCommand(commandId: string, body: CommandExecuteRequest, signal?: AbortSignal): Promise<unknown> | unknown;
@@ -1538,5 +661,5 @@ export declare const toWorkbenchWhenExpression: (when: WorkbenchExtensionMetadat
1538
661
  metadata: Record<string, unknown> | undefined;
1539
662
  } | undefined;
1540
663
  //#endregion
1541
- export type { BridgeWebviewConfig, BridgeWebviewRenderContext, CreateBridgeWebviewHostCapabilities, CreateBridgeWebviewProps, CreateBridgeWebviewTheme, ExtensionWebviewArtifactCapabilities, ExtensionWebviewFileCapabilities, RegisterWorkbenchExtensionContributionsInput, RegisterWorkbenchExtensionFileRenderersInput, RegisterWorkbenchExtensionRendererRefreshEventsInput, RegisterWorkbenchExtensionTreeRenderersInput, ToWorkbenchNavigationTargetInput, WorkbenchExtensionCommandContext, WorkbenchExtensionCommandPaletteRegistration, WorkbenchExtensionControlsAdapter, WorkbenchExtensionDataTableRendererAdapter, WorkbenchExtensionHostMenuRegistration, WorkbenchExtensionKanbanRendererAdapter, WorkbenchExtensionMenuRegistration, WorkbenchExtensionMenuSlotConfig, WorkbenchExtensionMenuWhenBuilder, WorkbenchExtensionMetadata, WorkbenchExtensionRendererKind };
664
+ export type { BridgeWebviewConfig, BridgeWebviewRenderContext, CreateBridgeWebviewHostAdapters, CreateBridgeWebviewProps, CreateBridgeWebviewTheme, ExtensionWebviewArtifactCapabilities, ExtensionWebviewFileCapabilities, ExtensionWebviewFilesAdapter, ExtensionWebviewHostAdapters, ExtensionWebviewNotificationsAdapter, ExtensionWebviewPreferencesAdapter, ExtensionWebviewSettingsAdapter, RegisterWorkbenchExtensionContributionsInput, RegisterWorkbenchExtensionFileRenderersInput, RegisterWorkbenchExtensionRendererRefreshEventsInput, RegisterWorkbenchExtensionTreeRenderersInput, ToWorkbenchNavigationTargetInput, WorkbenchExtensionCommandContext, WorkbenchExtensionCommandPaletteRegistration, WorkbenchExtensionControlsAdapter, WorkbenchExtensionDataTableRendererAdapter, WorkbenchExtensionHostMenuRegistration, WorkbenchExtensionKanbanRendererAdapter, WorkbenchExtensionMenuRegistration, WorkbenchExtensionMenuSlotConfig, WorkbenchExtensionMenuWhenBuilder, WorkbenchExtensionMetadata, WorkbenchExtensionRendererKind };
1542
665
  export {};