@webstudio-is/protocol 0.274.5 → 0.276.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.
@@ -1,23 +1,27 @@
1
- import { type PublicApiOperationNamespace, type PublicRuntimeOperationId } from "./runtime-contracts";
2
- export type { PublicApiOperationNamespace } from "./runtime-contracts";
1
+ import { publicApiOperationDocumentation } from "./operation-docs";
2
+ import { type InputJsonSchema, type PublicApiOperationNamespace, type PublicApiOperationPermit, type PublicRuntimeOperationId } from "./runtime-contracts";
3
+ export type { PublicApiOperationNamespace, PublicApiOperationPermit, } from "./runtime-contracts";
3
4
  export type PublicApiOperationMethod = "query" | "mutation";
4
- export type PublicApiOperationPermit = "api" | "view" | "build" | "edit" | "admin";
5
- type PublicApiOperationInput = {
6
- command: string;
5
+ export type PublicApiCommand = (typeof publicApiOperationDocumentation)[number]["command"];
6
+ type PublicApiOperationInput<Command extends string = string> = {
7
+ command: Command;
7
8
  id: string;
8
9
  method: PublicApiOperationMethod;
9
10
  path?: string;
10
11
  client: string;
11
12
  permit?: PublicApiOperationPermit;
12
13
  invalidatesNamespaces?: readonly PublicApiOperationNamespace[];
13
- inputFieldTypes?: Partial<Record<string, "array">>;
14
+ inputSchema?: InputJsonSchema;
14
15
  };
15
16
  export type PublicApiOperation<Command extends string = string> = Omit<PublicApiOperationInput, "command" | "permit"> & {
16
17
  command: Command;
17
18
  permit: PublicApiOperationPermit;
18
19
  description: string;
19
20
  inputFields: readonly string[];
21
+ requiredInputFields: readonly string[];
20
22
  inputFieldTypes: Partial<Record<string, "array">>;
23
+ inputSchema: InputJsonSchema;
24
+ outputSchema?: InputJsonSchema;
21
25
  requiredOptions?: readonly string[];
22
26
  examples: readonly string[];
23
27
  localCapable: boolean;
@@ -27,531 +31,9 @@ export type PublicApiOperation<Command extends string = string> = Omit<PublicApi
27
31
  writeNamespaces: readonly PublicApiOperationNamespace[];
28
32
  invalidatesNamespaces: readonly PublicApiOperationNamespace[];
29
33
  retryOnConflict: boolean;
34
+ requiresAssets: boolean;
35
+ requiresConfirm: boolean;
30
36
  };
31
- declare const publicApiOperationInputs: readonly [{
32
- readonly command: "whoami";
33
- readonly id: "auth.me";
34
- readonly method: "query";
35
- readonly path: "api.auth.me";
36
- readonly client: "getApiTokenInfo";
37
- readonly permit: "view";
38
- }, {
39
- readonly command: "permissions";
40
- readonly id: "projects.permissions";
41
- readonly method: "query";
42
- readonly path: "api.projects.permissions";
43
- readonly client: "getProjectPermissions";
44
- }, {
45
- readonly command: "inspect";
46
- readonly id: "projects.get";
47
- readonly method: "query";
48
- readonly path: "api.projects.get";
49
- readonly client: "getProjectInfo";
50
- }, {
51
- readonly command: "snapshot";
52
- readonly id: "build.get";
53
- readonly method: "query";
54
- readonly path: "api.build.get";
55
- readonly client: "getBuildSnapshot";
56
- }, {
57
- readonly command: "apply-patch";
58
- readonly id: "build.patch";
59
- readonly method: "mutation";
60
- readonly path: "api.build.patch";
61
- readonly client: "applyBuildPatch";
62
- readonly invalidatesNamespaces: readonly ["pages", "instances", "props", "styles", "styleSources", "styleSourceSelections", "dataSources", "resources", "assets", "breakpoints", "marketplaceProduct"];
63
- }, {
64
- readonly command: "list-pages";
65
- readonly id: "pages.list";
66
- readonly method: "query";
67
- readonly path: "api.pages.list";
68
- readonly client: "listPages";
69
- }, {
70
- readonly command: "get-page";
71
- readonly id: "pages.get";
72
- readonly method: "query";
73
- readonly path: "api.pages.get";
74
- readonly client: "getPage";
75
- }, {
76
- readonly command: "get-page-by-path";
77
- readonly id: "pages.getByPath";
78
- readonly method: "query";
79
- readonly path: "api.pages.getByPath";
80
- readonly client: "getPageByPath";
81
- }, {
82
- readonly command: "create-page";
83
- readonly id: "pages.create";
84
- readonly method: "mutation";
85
- readonly path: "api.pages.create";
86
- readonly client: "createPage";
87
- }, {
88
- readonly command: "update-page";
89
- readonly id: "pages.update";
90
- readonly method: "mutation";
91
- readonly path: "api.pages.update";
92
- readonly client: "updatePage";
93
- }, {
94
- readonly command: "get-project-settings";
95
- readonly id: "projectSettings.get";
96
- readonly method: "query";
97
- readonly path: "api.projectSettings.get";
98
- readonly client: "getProjectSettings";
99
- }, {
100
- readonly command: "update-project-settings";
101
- readonly id: "projectSettings.update";
102
- readonly method: "mutation";
103
- readonly path: "api.projectSettings.update";
104
- readonly client: "updateProjectSettings";
105
- }, {
106
- readonly command: "list-redirects";
107
- readonly id: "redirects.list";
108
- readonly method: "query";
109
- readonly path: "api.redirects.list";
110
- readonly client: "listRedirects";
111
- }, {
112
- readonly command: "create-redirect";
113
- readonly id: "redirects.create";
114
- readonly method: "mutation";
115
- readonly path: "api.redirects.create";
116
- readonly client: "createRedirect";
117
- }, {
118
- readonly command: "update-redirect";
119
- readonly id: "redirects.update";
120
- readonly method: "mutation";
121
- readonly path: "api.redirects.update";
122
- readonly client: "updateRedirect";
123
- }, {
124
- readonly command: "delete-redirect";
125
- readonly id: "redirects.delete";
126
- readonly method: "mutation";
127
- readonly path: "api.redirects.delete";
128
- readonly client: "deleteRedirect";
129
- }, {
130
- readonly command: "list-breakpoints";
131
- readonly id: "breakpoints.list";
132
- readonly method: "query";
133
- readonly path: "api.breakpoints.list";
134
- readonly client: "listBreakpoints";
135
- }, {
136
- readonly command: "create-breakpoint";
137
- readonly id: "breakpoints.create";
138
- readonly method: "mutation";
139
- readonly path: "api.breakpoints.create";
140
- readonly client: "createBreakpoint";
141
- }, {
142
- readonly command: "update-breakpoint";
143
- readonly id: "breakpoints.update";
144
- readonly method: "mutation";
145
- readonly path: "api.breakpoints.update";
146
- readonly client: "updateBreakpoint";
147
- }, {
148
- readonly command: "delete-breakpoint";
149
- readonly id: "breakpoints.delete";
150
- readonly method: "mutation";
151
- readonly path: "api.breakpoints.delete";
152
- readonly client: "deleteBreakpoint";
153
- }, {
154
- readonly command: "delete-page";
155
- readonly id: "pages.delete";
156
- readonly method: "mutation";
157
- readonly path: "api.pages.delete";
158
- readonly client: "deletePage";
159
- }, {
160
- readonly command: "duplicate-page";
161
- readonly id: "pages.duplicate";
162
- readonly method: "mutation";
163
- readonly path: "api.pages.duplicate";
164
- readonly client: "duplicatePage";
165
- }, {
166
- readonly command: "list-page-templates";
167
- readonly id: "pageTemplates.list";
168
- readonly method: "query";
169
- readonly path: "api.pageTemplates.list";
170
- readonly client: "listPageTemplates";
171
- }, {
172
- readonly command: "create-page-from-template";
173
- readonly id: "pageTemplates.createPage";
174
- readonly method: "mutation";
175
- readonly path: "api.pageTemplates.createPage";
176
- readonly client: "createPageFromTemplate";
177
- }, {
178
- readonly command: "list-folders";
179
- readonly id: "folders.list";
180
- readonly method: "query";
181
- readonly path: "api.folders.list";
182
- readonly client: "listFolders";
183
- }, {
184
- readonly command: "create-folder";
185
- readonly id: "folders.create";
186
- readonly method: "mutation";
187
- readonly path: "api.folders.create";
188
- readonly client: "createFolder";
189
- }, {
190
- readonly command: "update-folder";
191
- readonly id: "folders.update";
192
- readonly method: "mutation";
193
- readonly path: "api.folders.update";
194
- readonly client: "updateFolder";
195
- }, {
196
- readonly command: "delete-folder";
197
- readonly id: "folders.delete";
198
- readonly method: "mutation";
199
- readonly path: "api.folders.delete";
200
- readonly client: "deleteFolder";
201
- }, {
202
- readonly command: "list-instances";
203
- readonly id: "instances.list";
204
- readonly method: "query";
205
- readonly path: "api.instances.list";
206
- readonly client: "listInstances";
207
- }, {
208
- readonly command: "inspect-instance";
209
- readonly id: "instances.inspect";
210
- readonly method: "query";
211
- readonly path: "api.instances.inspect";
212
- readonly client: "inspectInstance";
213
- }, {
214
- readonly command: "append-instance";
215
- readonly id: "instances.append";
216
- readonly method: "mutation";
217
- readonly path: "api.instances.append";
218
- readonly client: "appendInstance";
219
- readonly inputFieldTypes: {
220
- readonly children: "array";
221
- };
222
- }, {
223
- readonly command: "move-instance";
224
- readonly id: "instances.move";
225
- readonly method: "mutation";
226
- readonly path: "api.instances.move";
227
- readonly client: "moveInstance";
228
- readonly inputFieldTypes: {
229
- readonly moves: "array";
230
- };
231
- }, {
232
- readonly command: "clone-instance";
233
- readonly id: "instances.clone";
234
- readonly method: "mutation";
235
- readonly path: "api.instances.clone";
236
- readonly client: "cloneInstance";
237
- }, {
238
- readonly command: "delete-instance";
239
- readonly id: "instances.delete";
240
- readonly method: "mutation";
241
- readonly path: "api.instances.delete";
242
- readonly client: "deleteInstance";
243
- readonly inputFieldTypes: {
244
- readonly instanceIds: "array";
245
- };
246
- }, {
247
- readonly command: "update-props";
248
- readonly id: "instances.updateProps";
249
- readonly method: "mutation";
250
- readonly path: "api.instances.updateProps";
251
- readonly client: "updateProps";
252
- readonly permit: "edit";
253
- readonly inputFieldTypes: {
254
- readonly updates: "array";
255
- };
256
- }, {
257
- readonly command: "delete-props";
258
- readonly id: "instances.deleteProps";
259
- readonly method: "mutation";
260
- readonly path: "api.instances.deleteProps";
261
- readonly client: "deleteProps";
262
- readonly permit: "edit";
263
- readonly inputFieldTypes: {
264
- readonly deletions: "array";
265
- };
266
- }, {
267
- readonly command: "bind-props";
268
- readonly id: "instances.bindProps";
269
- readonly method: "mutation";
270
- readonly path: "api.instances.bindProps";
271
- readonly client: "bindProps";
272
- readonly inputFieldTypes: {
273
- readonly bindings: "array";
274
- };
275
- }, {
276
- readonly command: "list-texts";
277
- readonly id: "instances.listTexts";
278
- readonly method: "query";
279
- readonly path: "api.instances.listTexts";
280
- readonly client: "listTexts";
281
- }, {
282
- readonly command: "update-text";
283
- readonly id: "instances.updateText";
284
- readonly method: "mutation";
285
- readonly path: "api.instances.updateText";
286
- readonly client: "updateText";
287
- readonly permit: "edit";
288
- }, {
289
- readonly command: "get-styles";
290
- readonly id: "styles.getDeclarations";
291
- readonly method: "query";
292
- readonly path: "api.styles.getDeclarations";
293
- readonly client: "getStyleDeclarations";
294
- }, {
295
- readonly command: "update-styles";
296
- readonly id: "styles.updateDeclarations";
297
- readonly method: "mutation";
298
- readonly path: "api.styles.updateDeclarations";
299
- readonly client: "updateStyleDeclarations";
300
- readonly inputFieldTypes: {
301
- readonly updates: "array";
302
- };
303
- }, {
304
- readonly command: "delete-styles";
305
- readonly id: "styles.deleteDeclarations";
306
- readonly method: "mutation";
307
- readonly path: "api.styles.deleteDeclarations";
308
- readonly client: "deleteStyleDeclarations";
309
- readonly inputFieldTypes: {
310
- readonly deletions: "array";
311
- };
312
- }, {
313
- readonly command: "replace-styles";
314
- readonly id: "styles.replaceValues";
315
- readonly method: "mutation";
316
- readonly path: "api.styles.replaceValues";
317
- readonly client: "replaceStyleValues";
318
- }, {
319
- readonly command: "list-design-tokens";
320
- readonly id: "designTokens.list";
321
- readonly method: "query";
322
- readonly path: "api.designTokens.list";
323
- readonly client: "listDesignTokens";
324
- }, {
325
- readonly command: "create-design-token";
326
- readonly id: "designTokens.create";
327
- readonly method: "mutation";
328
- readonly path: "api.designTokens.create";
329
- readonly client: "createDesignTokens";
330
- readonly inputFieldTypes: {
331
- readonly tokens: "array";
332
- };
333
- }, {
334
- readonly command: "update-design-token-styles";
335
- readonly id: "designTokens.updateStyles";
336
- readonly method: "mutation";
337
- readonly path: "api.designTokens.updateStyles";
338
- readonly client: "updateDesignTokenStyles";
339
- readonly inputFieldTypes: {
340
- readonly updates: "array";
341
- };
342
- }, {
343
- readonly command: "delete-design-token-styles";
344
- readonly id: "designTokens.deleteStyles";
345
- readonly method: "mutation";
346
- readonly path: "api.designTokens.deleteStyles";
347
- readonly client: "deleteDesignTokenStyles";
348
- readonly inputFieldTypes: {
349
- readonly deletions: "array";
350
- };
351
- }, {
352
- readonly command: "attach-design-token";
353
- readonly id: "designTokens.attach";
354
- readonly method: "mutation";
355
- readonly path: "api.designTokens.attach";
356
- readonly client: "attachDesignToken";
357
- readonly inputFieldTypes: {
358
- readonly instanceIds: "array";
359
- };
360
- }, {
361
- readonly command: "detach-design-token";
362
- readonly id: "designTokens.detach";
363
- readonly method: "mutation";
364
- readonly path: "api.designTokens.detach";
365
- readonly client: "detachDesignToken";
366
- readonly inputFieldTypes: {
367
- readonly instanceIds: "array";
368
- };
369
- }, {
370
- readonly command: "extract-design-token";
371
- readonly id: "designTokens.extract";
372
- readonly method: "mutation";
373
- readonly path: "api.designTokens.extract";
374
- readonly client: "extractDesignToken";
375
- readonly inputFieldTypes: {
376
- readonly instanceIds: "array";
377
- readonly removeLocalProps: "array";
378
- };
379
- }, {
380
- readonly command: "list-css-variables";
381
- readonly id: "cssVariables.list";
382
- readonly method: "query";
383
- readonly path: "api.cssVariables.list";
384
- readonly client: "listCssVariables";
385
- }, {
386
- readonly command: "define-css-variable";
387
- readonly id: "cssVariables.define";
388
- readonly method: "mutation";
389
- readonly path: "api.cssVariables.define";
390
- readonly client: "defineCssVariables";
391
- }, {
392
- readonly command: "delete-css-variable";
393
- readonly id: "cssVariables.delete";
394
- readonly method: "mutation";
395
- readonly path: "api.cssVariables.delete";
396
- readonly client: "deleteCssVariables";
397
- readonly inputFieldTypes: {
398
- readonly names: "array";
399
- };
400
- }, {
401
- readonly command: "rewrite-css-variable-refs";
402
- readonly id: "cssVariables.rewriteRefs";
403
- readonly method: "mutation";
404
- readonly path: "api.cssVariables.rewriteRefs";
405
- readonly client: "rewriteCssVariableRefs";
406
- }, {
407
- readonly command: "list-variables";
408
- readonly id: "variables.list";
409
- readonly method: "query";
410
- readonly path: "api.variables.list";
411
- readonly client: "listVariables";
412
- }, {
413
- readonly command: "create-variable";
414
- readonly id: "variables.create";
415
- readonly method: "mutation";
416
- readonly path: "api.variables.create";
417
- readonly client: "createVariable";
418
- }, {
419
- readonly command: "update-variable";
420
- readonly id: "variables.update";
421
- readonly method: "mutation";
422
- readonly path: "api.variables.update";
423
- readonly client: "updateVariable";
424
- }, {
425
- readonly command: "delete-variable";
426
- readonly id: "variables.delete";
427
- readonly method: "mutation";
428
- readonly path: "api.variables.delete";
429
- readonly client: "deleteVariable";
430
- }, {
431
- readonly command: "list-resources";
432
- readonly id: "resources.list";
433
- readonly method: "query";
434
- readonly path: "api.resources.list";
435
- readonly client: "listResources";
436
- }, {
437
- readonly command: "create-resource";
438
- readonly id: "resources.create";
439
- readonly method: "mutation";
440
- readonly path: "api.resources.create";
441
- readonly client: "createResource";
442
- }, {
443
- readonly command: "update-resource";
444
- readonly id: "resources.update";
445
- readonly method: "mutation";
446
- readonly path: "api.resources.update";
447
- readonly client: "updateResource";
448
- }, {
449
- readonly command: "delete-resource";
450
- readonly id: "resources.delete";
451
- readonly method: "mutation";
452
- readonly path: "api.resources.delete";
453
- readonly client: "deleteResource";
454
- }, {
455
- readonly command: "publish";
456
- readonly id: "publish.create";
457
- readonly method: "mutation";
458
- readonly path: "api.publish.create";
459
- readonly client: "publish";
460
- readonly permit: "edit";
461
- }, {
462
- readonly command: "list-publishes";
463
- readonly id: "publish.list";
464
- readonly method: "query";
465
- readonly path: "api.publish.list";
466
- readonly client: "listPublishes";
467
- }, {
468
- readonly command: "get-publish-job";
469
- readonly id: "publish.getJob";
470
- readonly method: "query";
471
- readonly path: "api.publish.getJob";
472
- readonly client: "getPublishJob";
473
- }, {
474
- readonly command: "unpublish";
475
- readonly id: "publish.unpublish";
476
- readonly method: "mutation";
477
- readonly path: "api.publish.unpublish";
478
- readonly client: "unpublish";
479
- readonly permit: "edit";
480
- }, {
481
- readonly command: "list-domains";
482
- readonly id: "domains.list";
483
- readonly method: "query";
484
- readonly path: "api.domains.list";
485
- readonly client: "listDomains";
486
- }, {
487
- readonly command: "create-domain";
488
- readonly id: "domains.create";
489
- readonly method: "mutation";
490
- readonly path: "api.domains.create";
491
- readonly client: "createDomain";
492
- readonly permit: "admin";
493
- }, {
494
- readonly command: "update-domain";
495
- readonly id: "domains.update";
496
- readonly method: "mutation";
497
- readonly path: "api.domains.update";
498
- readonly client: "updateDomain";
499
- readonly permit: "admin";
500
- }, {
501
- readonly command: "delete-domain";
502
- readonly id: "domains.delete";
503
- readonly method: "mutation";
504
- readonly path: "api.domains.delete";
505
- readonly client: "deleteDomain";
506
- readonly permit: "admin";
507
- }, {
508
- readonly command: "verify-domain";
509
- readonly id: "domains.verify";
510
- readonly method: "mutation";
511
- readonly path: "api.domains.verify";
512
- readonly client: "verifyDomain";
513
- readonly permit: "admin";
514
- }, {
515
- readonly command: "list-assets";
516
- readonly id: "assets.list";
517
- readonly method: "query";
518
- readonly path: "api.assets.list";
519
- readonly client: "listAssets";
520
- }, {
521
- readonly command: "upload-asset";
522
- readonly id: "assets.upload";
523
- readonly method: "mutation";
524
- readonly client: "uploadProjectAsset";
525
- readonly invalidatesNamespaces: readonly ["assets"];
526
- }, {
527
- readonly command: "upload-assets";
528
- readonly id: "assets.uploadMany";
529
- readonly method: "mutation";
530
- readonly client: "uploadProjectAssets";
531
- readonly invalidatesNamespaces: readonly ["assets"];
532
- }, {
533
- readonly command: "find-asset-usage";
534
- readonly id: "assets.findUsage";
535
- readonly method: "query";
536
- readonly path: "api.assets.findUsage";
537
- readonly client: "findAssetUsage";
538
- }, {
539
- readonly command: "replace-asset";
540
- readonly id: "assets.replace";
541
- readonly method: "mutation";
542
- readonly path: "api.assets.replace";
543
- readonly client: "replaceAsset";
544
- }, {
545
- readonly command: "delete-asset";
546
- readonly id: "assets.delete";
547
- readonly method: "mutation";
548
- readonly path: "api.assets.delete";
549
- readonly client: "deleteAssets";
550
- readonly inputFieldTypes: {
551
- readonly assetIdsOrPrefixes: "array";
552
- };
553
- }];
554
- export declare const publicApiOperations: PublicApiOperation<"whoami" | "permissions" | "inspect" | "snapshot" | "apply-patch" | "list-pages" | "get-page" | "get-page-by-path" | "create-page" | "update-page" | "get-project-settings" | "update-project-settings" | "list-redirects" | "create-redirect" | "update-redirect" | "delete-redirect" | "list-breakpoints" | "create-breakpoint" | "update-breakpoint" | "delete-breakpoint" | "delete-page" | "duplicate-page" | "list-page-templates" | "create-page-from-template" | "list-folders" | "create-folder" | "update-folder" | "delete-folder" | "list-instances" | "inspect-instance" | "append-instance" | "move-instance" | "clone-instance" | "delete-instance" | "update-props" | "delete-props" | "bind-props" | "list-texts" | "update-text" | "get-styles" | "update-styles" | "delete-styles" | "replace-styles" | "list-design-tokens" | "create-design-token" | "update-design-token-styles" | "delete-design-token-styles" | "attach-design-token" | "detach-design-token" | "extract-design-token" | "list-css-variables" | "define-css-variable" | "delete-css-variable" | "rewrite-css-variable-refs" | "list-variables" | "create-variable" | "update-variable" | "delete-variable" | "list-resources" | "create-resource" | "update-resource" | "delete-resource" | "publish" | "list-publishes" | "get-publish-job" | "unpublish" | "list-domains" | "create-domain" | "update-domain" | "delete-domain" | "verify-domain" | "list-assets" | "upload-asset" | "upload-assets" | "find-asset-usage" | "replace-asset" | "delete-asset">[];
555
- export type PublicApiCommand = (typeof publicApiOperationInputs)[number]["command"];
556
- export declare const getPublicApiOperation: (command: PublicApiCommand) => PublicApiOperation<"whoami" | "permissions" | "inspect" | "snapshot" | "apply-patch" | "list-pages" | "get-page" | "get-page-by-path" | "create-page" | "update-page" | "get-project-settings" | "update-project-settings" | "list-redirects" | "create-redirect" | "update-redirect" | "delete-redirect" | "list-breakpoints" | "create-breakpoint" | "update-breakpoint" | "delete-breakpoint" | "delete-page" | "duplicate-page" | "list-page-templates" | "create-page-from-template" | "list-folders" | "create-folder" | "update-folder" | "delete-folder" | "list-instances" | "inspect-instance" | "append-instance" | "move-instance" | "clone-instance" | "delete-instance" | "update-props" | "delete-props" | "bind-props" | "list-texts" | "update-text" | "get-styles" | "update-styles" | "delete-styles" | "replace-styles" | "list-design-tokens" | "create-design-token" | "update-design-token-styles" | "delete-design-token-styles" | "attach-design-token" | "detach-design-token" | "extract-design-token" | "list-css-variables" | "define-css-variable" | "delete-css-variable" | "rewrite-css-variable-refs" | "list-variables" | "create-variable" | "update-variable" | "delete-variable" | "list-resources" | "create-resource" | "update-resource" | "delete-resource" | "publish" | "list-publishes" | "get-publish-job" | "unpublish" | "list-domains" | "create-domain" | "update-domain" | "delete-domain" | "verify-domain" | "list-assets" | "upload-asset" | "upload-assets" | "find-asset-usage" | "replace-asset" | "delete-asset">;
37
+ export declare const publicApiOperations: PublicApiOperation<string>[];
38
+ export declare const getPublicApiOperation: (command: PublicApiCommand) => PublicApiOperation<string>;
557
39
  export declare const getPublicApiOperationPath: (command: PublicApiCommand) => string;
@@ -1,11 +1,25 @@
1
- export declare const publicApiOperationNamespaces: readonly ["pages", "instances", "props", "styles", "styleSources", "styleSourceSelections", "dataSources", "resources", "assets", "breakpoints", "marketplaceProduct"];
1
+ import { runtimeOperationContracts } from "@webstudio-is/project-build/contracts/builder-runtime";
2
+ import type { InputJsonSchema } from "@webstudio-is/sdk";
3
+ export type { InputJsonSchema };
4
+ export declare const publicApiOperationNamespaces: readonly ["pages", "instances", "props", "styles", "styleSources", "styleSourceSelections", "dataSources", "resources", "assets", "breakpoints", "projectSettings", "marketplaceProduct"];
2
5
  export type PublicApiOperationNamespace = (typeof publicApiOperationNamespaces)[number];
3
- export type PublicRuntimeOperationId = string;
6
+ export declare const publicApiOperationPermits: readonly ["api", "view", "edit", "build", "admin"];
7
+ export type PublicApiOperationPermit = (typeof publicApiOperationPermits)[number];
8
+ export type PublicApiOperationKind = "read" | "mutation";
9
+ export type PublicRuntimeOperationId = (typeof runtimeOperationContracts)[number]["id"];
4
10
  export type PublicRuntimeOperationContract = {
5
11
  id: PublicRuntimeOperationId;
12
+ command: string;
13
+ client: string;
14
+ permit?: PublicApiOperationPermit;
15
+ kind: PublicApiOperationKind;
16
+ inputSchema: InputJsonSchema;
17
+ outputSchema?: InputJsonSchema;
6
18
  readNamespaces: readonly PublicApiOperationNamespace[];
7
19
  writeNamespaces: readonly PublicApiOperationNamespace[];
8
20
  invalidatesNamespaces: readonly PublicApiOperationNamespace[];
9
21
  retryOnConflict: boolean;
22
+ requiresAssets: boolean;
23
+ requiresConfirm: boolean;
10
24
  };
11
25
  export declare const publicRuntimeOperationContracts: readonly PublicRuntimeOperationContract[];