@databricks/appkit 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +6 -0
- package/dist/appkit/package.js +1 -1
- package/dist/connectors/lakebase/index.js +1 -1
- package/dist/connectors/lakebase/routing-pool.d.ts +1 -1
- package/dist/connectors/lakebase/routing-pool.js +3 -3
- package/dist/connectors/lakebase/routing-pool.js.map +1 -1
- package/dist/context/caller-context.d.ts +22 -0
- package/dist/context/caller-context.d.ts.map +1 -0
- package/dist/context/caller-context.js +21 -0
- package/dist/context/caller-context.js.map +1 -0
- package/dist/context/deprecation.js +14 -0
- package/dist/context/deprecation.js.map +1 -0
- package/dist/context/execution-context.d.ts +12 -4
- package/dist/context/execution-context.d.ts.map +1 -1
- package/dist/context/execution-context.js +36 -34
- package/dist/context/execution-context.js.map +1 -1
- package/dist/context/index.d.ts +3 -2
- package/dist/context/index.js +2 -1
- package/dist/context/service-context.d.ts +18 -12
- package/dist/context/service-context.d.ts.map +1 -1
- package/dist/context/service-context.js +44 -54
- package/dist/context/service-context.js.map +1 -1
- package/dist/context/user-context.d.ts +5 -8
- package/dist/context/user-context.d.ts.map +1 -1
- package/dist/context/user-context.js +33 -6
- package/dist/context/user-context.js.map +1 -1
- package/dist/core/appkit.d.ts.map +1 -1
- package/dist/core/appkit.js +4 -2
- package/dist/core/appkit.js.map +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +4 -2
- package/dist/plugin/plugin.d.ts +2 -2
- package/dist/plugin/plugin.d.ts.map +1 -1
- package/dist/plugin/plugin.js +6 -6
- package/dist/plugin/plugin.js.map +1 -1
- package/dist/plugins/agents/agents.d.ts +1 -1
- package/dist/plugins/ai-search/ai-search.d.ts +1 -1
- package/dist/plugins/analytics/analytics.d.ts +1 -1
- package/dist/plugins/analytics/analytics.d.ts.map +1 -1
- package/dist/plugins/analytics/analytics.js +3 -1
- package/dist/plugins/analytics/analytics.js.map +1 -1
- package/dist/plugins/database/database.d.ts +1 -1
- package/dist/plugins/files/plugin.d.ts +11 -11
- package/dist/plugins/files/plugin.js +17 -17
- package/dist/plugins/files/plugin.js.map +1 -1
- package/dist/plugins/genie/genie.d.ts +1 -1
- package/dist/plugins/jobs/plugin.d.ts +1 -1
- package/dist/plugins/lakebase/lakebase.d.ts +1 -1
- package/dist/plugins/lakebase/lakebase.d.ts.map +1 -1
- package/dist/plugins/lakebase/lakebase.js +4 -4
- package/dist/plugins/lakebase/lakebase.js.map +1 -1
- package/dist/plugins/server/index.d.ts +1 -1
- package/dist/plugins/server/index.js +2 -2
- package/dist/plugins/server/index.js.map +1 -1
- package/dist/plugins/server/remote-tunnel/remote-tunnel-manager.js +3 -3
- package/dist/plugins/server/remote-tunnel/remote-tunnel-manager.js.map +1 -1
- package/dist/plugins/server/static-server.js +3 -3
- package/dist/plugins/server/static-server.js.map +1 -1
- package/dist/plugins/server/utils.js +3 -3
- package/dist/plugins/server/utils.js.map +1 -1
- package/dist/plugins/server/vite-dev-server.js +4 -4
- package/dist/plugins/server/vite-dev-server.js.map +1 -1
- package/dist/plugins/serving/serving.d.ts +1 -1
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.js +3 -0
- package/dist/resources/warehouse.d.ts +16 -0
- package/dist/resources/warehouse.d.ts.map +1 -0
- package/dist/resources/warehouse.js +93 -0
- package/dist/resources/warehouse.js.map +1 -0
- package/dist/schemas/manifest.d.ts +9 -0
- package/dist/schemas/manifest.d.ts.map +1 -1
- package/dist/schemas/manifest.js +11 -0
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/shared/src/schemas/manifest.d.ts +42 -33
- package/dist/shared/src/schemas/manifest.d.ts.map +1 -1
- package/dist/shared/src/schemas/manifest.js +11 -0
- package/dist/shared/src/schemas/manifest.js.map +1 -1
- package/dist/testing/create-test-app.js +2 -2
- package/dist/testing/create-test-app.js.map +1 -1
- package/dist/testing/fixtures.d.ts +3 -2
- package/dist/testing/fixtures.d.ts.map +1 -1
- package/dist/testing/fixtures.js +21 -14
- package/dist/testing/fixtures.js.map +1 -1
- package/dist/testing/reset-singletons.js +1 -1
- package/dist/type-generator/database/generate.js +3 -3
- package/dist/type-generator/database/generate.js.map +1 -1
- package/dist/type-generator/migration.js +2 -2
- package/dist/type-generator/migration.js.map +1 -1
- package/dist/type-generator/serving/server-file-extractor.js +3 -3
- package/dist/type-generator/serving/server-file-extractor.js.map +1 -1
- package/docs/api/appkit/Class.Plugin.md +1 -1
- package/docs/api/appkit/Function.getCurrentActorId.md +12 -0
- package/docs/api/appkit/Function.getCurrentPrincipalKey.md +12 -0
- package/docs/api/appkit/Function.getExecutionContext.md +5 -3
- package/docs/api/appkit/Function.getWarehouseId.md +20 -0
- package/docs/api/appkit/Interface.CallerContext.md +41 -0
- package/docs/api/appkit/Interface.PluginManifest.md +25 -2
- package/docs/api/appkit/TypeAlias.CallerPrincipal.md +13 -0
- package/docs/api/appkit/TypeAlias.ExecutionContext.md +6 -0
- package/docs/api/appkit.md +6 -0
- package/docs/plugins/analytics.md +8 -0
- package/llms.txt +6 -0
- package/package.json +1 -1
- package/sbom.cdx.json +1 -1
|
@@ -13,8 +13,8 @@ declare const resourceFieldEntrySchema: z.ZodObject<{
|
|
|
13
13
|
type: z.ZodLiteral<"kind">;
|
|
14
14
|
resourceKind: z.ZodEnum<{
|
|
15
15
|
volume: "volume";
|
|
16
|
-
warehouse: "warehouse";
|
|
17
16
|
genie_space: "genie_space";
|
|
17
|
+
warehouse: "warehouse";
|
|
18
18
|
postgres_project: "postgres_project";
|
|
19
19
|
postgres_branch: "postgres_branch";
|
|
20
20
|
postgres_database: "postgres_database";
|
|
@@ -33,6 +33,15 @@ declare const resourceFieldEntrySchema: z.ZodObject<{
|
|
|
33
33
|
}, z.core.$strict>], "type">>;
|
|
34
34
|
}, z.core.$strict>;
|
|
35
35
|
declare const pluginManifestSchema: z.ZodObject<{
|
|
36
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
"ai-gateway": "ai-gateway";
|
|
38
|
+
"mcp.external": "mcp.external";
|
|
39
|
+
"mcp.functions": "mcp.functions";
|
|
40
|
+
"workspace.workspace": "workspace.workspace";
|
|
41
|
+
"catalog.catalogs:read": "catalog.catalogs:read";
|
|
42
|
+
"catalog.schemas:read": "catalog.schemas:read";
|
|
43
|
+
"catalog.tables:read": "catalog.tables:read";
|
|
44
|
+
}>>>;
|
|
36
45
|
$schema: z.ZodOptional<z.ZodString>;
|
|
37
46
|
name: z.ZodString;
|
|
38
47
|
displayName: z.ZodString;
|
|
@@ -59,8 +68,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
59
68
|
type: z.ZodLiteral<"kind">;
|
|
60
69
|
resourceKind: z.ZodEnum<{
|
|
61
70
|
volume: "volume";
|
|
62
|
-
warehouse: "warehouse";
|
|
63
71
|
genie_space: "genie_space";
|
|
72
|
+
warehouse: "warehouse";
|
|
64
73
|
postgres_project: "postgres_project";
|
|
65
74
|
postgres_branch: "postgres_branch";
|
|
66
75
|
postgres_database: "postgres_database";
|
|
@@ -100,8 +109,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
100
109
|
type: z.ZodLiteral<"kind">;
|
|
101
110
|
resourceKind: z.ZodEnum<{
|
|
102
111
|
volume: "volume";
|
|
103
|
-
warehouse: "warehouse";
|
|
104
112
|
genie_space: "genie_space";
|
|
113
|
+
warehouse: "warehouse";
|
|
105
114
|
postgres_project: "postgres_project";
|
|
106
115
|
postgres_branch: "postgres_branch";
|
|
107
116
|
postgres_database: "postgres_database";
|
|
@@ -140,8 +149,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
140
149
|
type: z.ZodLiteral<"kind">;
|
|
141
150
|
resourceKind: z.ZodEnum<{
|
|
142
151
|
volume: "volume";
|
|
143
|
-
warehouse: "warehouse";
|
|
144
152
|
genie_space: "genie_space";
|
|
153
|
+
warehouse: "warehouse";
|
|
145
154
|
postgres_project: "postgres_project";
|
|
146
155
|
postgres_branch: "postgres_branch";
|
|
147
156
|
postgres_database: "postgres_database";
|
|
@@ -162,9 +171,9 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
162
171
|
type: z.ZodLiteral<"sql_warehouse">;
|
|
163
172
|
}, z.core.$strict>, z.ZodObject<{
|
|
164
173
|
permission: z.ZodEnum<{
|
|
165
|
-
CAN_QUERY: "CAN_QUERY";
|
|
166
174
|
CAN_VIEW: "CAN_VIEW";
|
|
167
175
|
CAN_MANAGE: "CAN_MANAGE";
|
|
176
|
+
CAN_QUERY: "CAN_QUERY";
|
|
168
177
|
}>;
|
|
169
178
|
alias: z.ZodString;
|
|
170
179
|
resourceKey: z.ZodString;
|
|
@@ -181,8 +190,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
181
190
|
type: z.ZodLiteral<"kind">;
|
|
182
191
|
resourceKind: z.ZodEnum<{
|
|
183
192
|
volume: "volume";
|
|
184
|
-
warehouse: "warehouse";
|
|
185
193
|
genie_space: "genie_space";
|
|
194
|
+
warehouse: "warehouse";
|
|
186
195
|
postgres_project: "postgres_project";
|
|
187
196
|
postgres_branch: "postgres_branch";
|
|
188
197
|
postgres_database: "postgres_database";
|
|
@@ -221,8 +230,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
221
230
|
type: z.ZodLiteral<"kind">;
|
|
222
231
|
resourceKind: z.ZodEnum<{
|
|
223
232
|
volume: "volume";
|
|
224
|
-
warehouse: "warehouse";
|
|
225
233
|
genie_space: "genie_space";
|
|
234
|
+
warehouse: "warehouse";
|
|
226
235
|
postgres_project: "postgres_project";
|
|
227
236
|
postgres_branch: "postgres_branch";
|
|
228
237
|
postgres_database: "postgres_database";
|
|
@@ -260,8 +269,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
260
269
|
type: z.ZodLiteral<"kind">;
|
|
261
270
|
resourceKind: z.ZodEnum<{
|
|
262
271
|
volume: "volume";
|
|
263
|
-
warehouse: "warehouse";
|
|
264
272
|
genie_space: "genie_space";
|
|
273
|
+
warehouse: "warehouse";
|
|
265
274
|
postgres_project: "postgres_project";
|
|
266
275
|
postgres_branch: "postgres_branch";
|
|
267
276
|
postgres_database: "postgres_database";
|
|
@@ -299,8 +308,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
299
308
|
type: z.ZodLiteral<"kind">;
|
|
300
309
|
resourceKind: z.ZodEnum<{
|
|
301
310
|
volume: "volume";
|
|
302
|
-
warehouse: "warehouse";
|
|
303
311
|
genie_space: "genie_space";
|
|
312
|
+
warehouse: "warehouse";
|
|
304
313
|
postgres_project: "postgres_project";
|
|
305
314
|
postgres_branch: "postgres_branch";
|
|
306
315
|
postgres_database: "postgres_database";
|
|
@@ -338,8 +347,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
338
347
|
type: z.ZodLiteral<"kind">;
|
|
339
348
|
resourceKind: z.ZodEnum<{
|
|
340
349
|
volume: "volume";
|
|
341
|
-
warehouse: "warehouse";
|
|
342
350
|
genie_space: "genie_space";
|
|
351
|
+
warehouse: "warehouse";
|
|
343
352
|
postgres_project: "postgres_project";
|
|
344
353
|
postgres_branch: "postgres_branch";
|
|
345
354
|
postgres_database: "postgres_database";
|
|
@@ -377,8 +386,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
377
386
|
type: z.ZodLiteral<"kind">;
|
|
378
387
|
resourceKind: z.ZodEnum<{
|
|
379
388
|
volume: "volume";
|
|
380
|
-
warehouse: "warehouse";
|
|
381
389
|
genie_space: "genie_space";
|
|
390
|
+
warehouse: "warehouse";
|
|
382
391
|
postgres_project: "postgres_project";
|
|
383
392
|
postgres_branch: "postgres_branch";
|
|
384
393
|
postgres_database: "postgres_database";
|
|
@@ -416,8 +425,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
416
425
|
type: z.ZodLiteral<"kind">;
|
|
417
426
|
resourceKind: z.ZodEnum<{
|
|
418
427
|
volume: "volume";
|
|
419
|
-
warehouse: "warehouse";
|
|
420
428
|
genie_space: "genie_space";
|
|
429
|
+
warehouse: "warehouse";
|
|
421
430
|
postgres_project: "postgres_project";
|
|
422
431
|
postgres_branch: "postgres_branch";
|
|
423
432
|
postgres_database: "postgres_database";
|
|
@@ -438,10 +447,10 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
438
447
|
type: z.ZodLiteral<"postgres">;
|
|
439
448
|
}, z.core.$strict>, z.ZodObject<{
|
|
440
449
|
permission: z.ZodEnum<{
|
|
441
|
-
CAN_EDIT: "CAN_EDIT";
|
|
442
450
|
CAN_VIEW: "CAN_VIEW";
|
|
443
451
|
CAN_MANAGE: "CAN_MANAGE";
|
|
444
452
|
CAN_RUN: "CAN_RUN";
|
|
453
|
+
CAN_EDIT: "CAN_EDIT";
|
|
445
454
|
}>;
|
|
446
455
|
alias: z.ZodString;
|
|
447
456
|
resourceKey: z.ZodString;
|
|
@@ -458,8 +467,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
458
467
|
type: z.ZodLiteral<"kind">;
|
|
459
468
|
resourceKind: z.ZodEnum<{
|
|
460
469
|
volume: "volume";
|
|
461
|
-
warehouse: "warehouse";
|
|
462
470
|
genie_space: "genie_space";
|
|
471
|
+
warehouse: "warehouse";
|
|
463
472
|
postgres_project: "postgres_project";
|
|
464
473
|
postgres_branch: "postgres_branch";
|
|
465
474
|
postgres_database: "postgres_database";
|
|
@@ -480,8 +489,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
480
489
|
type: z.ZodLiteral<"genie_space">;
|
|
481
490
|
}, z.core.$strict>, z.ZodObject<{
|
|
482
491
|
permission: z.ZodEnum<{
|
|
483
|
-
CAN_EDIT: "CAN_EDIT";
|
|
484
492
|
CAN_MANAGE: "CAN_MANAGE";
|
|
493
|
+
CAN_EDIT: "CAN_EDIT";
|
|
485
494
|
CAN_READ: "CAN_READ";
|
|
486
495
|
}>;
|
|
487
496
|
alias: z.ZodString;
|
|
@@ -499,8 +508,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
499
508
|
type: z.ZodLiteral<"kind">;
|
|
500
509
|
resourceKind: z.ZodEnum<{
|
|
501
510
|
volume: "volume";
|
|
502
|
-
warehouse: "warehouse";
|
|
503
511
|
genie_space: "genie_space";
|
|
512
|
+
warehouse: "warehouse";
|
|
504
513
|
postgres_project: "postgres_project";
|
|
505
514
|
postgres_branch: "postgres_branch";
|
|
506
515
|
postgres_database: "postgres_database";
|
|
@@ -538,8 +547,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
538
547
|
type: z.ZodLiteral<"kind">;
|
|
539
548
|
resourceKind: z.ZodEnum<{
|
|
540
549
|
volume: "volume";
|
|
541
|
-
warehouse: "warehouse";
|
|
542
550
|
genie_space: "genie_space";
|
|
551
|
+
warehouse: "warehouse";
|
|
543
552
|
postgres_project: "postgres_project";
|
|
544
553
|
postgres_branch: "postgres_branch";
|
|
545
554
|
postgres_database: "postgres_database";
|
|
@@ -580,8 +589,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
580
589
|
type: z.ZodLiteral<"kind">;
|
|
581
590
|
resourceKind: z.ZodEnum<{
|
|
582
591
|
volume: "volume";
|
|
583
|
-
warehouse: "warehouse";
|
|
584
592
|
genie_space: "genie_space";
|
|
593
|
+
warehouse: "warehouse";
|
|
585
594
|
postgres_project: "postgres_project";
|
|
586
595
|
postgres_branch: "postgres_branch";
|
|
587
596
|
postgres_database: "postgres_database";
|
|
@@ -621,8 +630,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
621
630
|
type: z.ZodLiteral<"kind">;
|
|
622
631
|
resourceKind: z.ZodEnum<{
|
|
623
632
|
volume: "volume";
|
|
624
|
-
warehouse: "warehouse";
|
|
625
633
|
genie_space: "genie_space";
|
|
634
|
+
warehouse: "warehouse";
|
|
626
635
|
postgres_project: "postgres_project";
|
|
627
636
|
postgres_branch: "postgres_branch";
|
|
628
637
|
postgres_database: "postgres_database";
|
|
@@ -661,8 +670,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
661
670
|
type: z.ZodLiteral<"kind">;
|
|
662
671
|
resourceKind: z.ZodEnum<{
|
|
663
672
|
volume: "volume";
|
|
664
|
-
warehouse: "warehouse";
|
|
665
673
|
genie_space: "genie_space";
|
|
674
|
+
warehouse: "warehouse";
|
|
666
675
|
postgres_project: "postgres_project";
|
|
667
676
|
postgres_branch: "postgres_branch";
|
|
668
677
|
postgres_database: "postgres_database";
|
|
@@ -683,9 +692,9 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
683
692
|
type: z.ZodLiteral<"sql_warehouse">;
|
|
684
693
|
}, z.core.$strict>, z.ZodObject<{
|
|
685
694
|
permission: z.ZodEnum<{
|
|
686
|
-
CAN_QUERY: "CAN_QUERY";
|
|
687
695
|
CAN_VIEW: "CAN_VIEW";
|
|
688
696
|
CAN_MANAGE: "CAN_MANAGE";
|
|
697
|
+
CAN_QUERY: "CAN_QUERY";
|
|
689
698
|
}>;
|
|
690
699
|
alias: z.ZodString;
|
|
691
700
|
resourceKey: z.ZodString;
|
|
@@ -702,8 +711,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
702
711
|
type: z.ZodLiteral<"kind">;
|
|
703
712
|
resourceKind: z.ZodEnum<{
|
|
704
713
|
volume: "volume";
|
|
705
|
-
warehouse: "warehouse";
|
|
706
714
|
genie_space: "genie_space";
|
|
715
|
+
warehouse: "warehouse";
|
|
707
716
|
postgres_project: "postgres_project";
|
|
708
717
|
postgres_branch: "postgres_branch";
|
|
709
718
|
postgres_database: "postgres_database";
|
|
@@ -742,8 +751,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
742
751
|
type: z.ZodLiteral<"kind">;
|
|
743
752
|
resourceKind: z.ZodEnum<{
|
|
744
753
|
volume: "volume";
|
|
745
|
-
warehouse: "warehouse";
|
|
746
754
|
genie_space: "genie_space";
|
|
755
|
+
warehouse: "warehouse";
|
|
747
756
|
postgres_project: "postgres_project";
|
|
748
757
|
postgres_branch: "postgres_branch";
|
|
749
758
|
postgres_database: "postgres_database";
|
|
@@ -781,8 +790,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
781
790
|
type: z.ZodLiteral<"kind">;
|
|
782
791
|
resourceKind: z.ZodEnum<{
|
|
783
792
|
volume: "volume";
|
|
784
|
-
warehouse: "warehouse";
|
|
785
793
|
genie_space: "genie_space";
|
|
794
|
+
warehouse: "warehouse";
|
|
786
795
|
postgres_project: "postgres_project";
|
|
787
796
|
postgres_branch: "postgres_branch";
|
|
788
797
|
postgres_database: "postgres_database";
|
|
@@ -820,8 +829,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
820
829
|
type: z.ZodLiteral<"kind">;
|
|
821
830
|
resourceKind: z.ZodEnum<{
|
|
822
831
|
volume: "volume";
|
|
823
|
-
warehouse: "warehouse";
|
|
824
832
|
genie_space: "genie_space";
|
|
833
|
+
warehouse: "warehouse";
|
|
825
834
|
postgres_project: "postgres_project";
|
|
826
835
|
postgres_branch: "postgres_branch";
|
|
827
836
|
postgres_database: "postgres_database";
|
|
@@ -859,8 +868,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
859
868
|
type: z.ZodLiteral<"kind">;
|
|
860
869
|
resourceKind: z.ZodEnum<{
|
|
861
870
|
volume: "volume";
|
|
862
|
-
warehouse: "warehouse";
|
|
863
871
|
genie_space: "genie_space";
|
|
872
|
+
warehouse: "warehouse";
|
|
864
873
|
postgres_project: "postgres_project";
|
|
865
874
|
postgres_branch: "postgres_branch";
|
|
866
875
|
postgres_database: "postgres_database";
|
|
@@ -898,8 +907,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
898
907
|
type: z.ZodLiteral<"kind">;
|
|
899
908
|
resourceKind: z.ZodEnum<{
|
|
900
909
|
volume: "volume";
|
|
901
|
-
warehouse: "warehouse";
|
|
902
910
|
genie_space: "genie_space";
|
|
911
|
+
warehouse: "warehouse";
|
|
903
912
|
postgres_project: "postgres_project";
|
|
904
913
|
postgres_branch: "postgres_branch";
|
|
905
914
|
postgres_database: "postgres_database";
|
|
@@ -937,8 +946,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
937
946
|
type: z.ZodLiteral<"kind">;
|
|
938
947
|
resourceKind: z.ZodEnum<{
|
|
939
948
|
volume: "volume";
|
|
940
|
-
warehouse: "warehouse";
|
|
941
949
|
genie_space: "genie_space";
|
|
950
|
+
warehouse: "warehouse";
|
|
942
951
|
postgres_project: "postgres_project";
|
|
943
952
|
postgres_branch: "postgres_branch";
|
|
944
953
|
postgres_database: "postgres_database";
|
|
@@ -959,10 +968,10 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
959
968
|
type: z.ZodLiteral<"postgres">;
|
|
960
969
|
}, z.core.$strict>, z.ZodObject<{
|
|
961
970
|
permission: z.ZodEnum<{
|
|
962
|
-
CAN_EDIT: "CAN_EDIT";
|
|
963
971
|
CAN_VIEW: "CAN_VIEW";
|
|
964
972
|
CAN_MANAGE: "CAN_MANAGE";
|
|
965
973
|
CAN_RUN: "CAN_RUN";
|
|
974
|
+
CAN_EDIT: "CAN_EDIT";
|
|
966
975
|
}>;
|
|
967
976
|
alias: z.ZodString;
|
|
968
977
|
resourceKey: z.ZodString;
|
|
@@ -979,8 +988,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
979
988
|
type: z.ZodLiteral<"kind">;
|
|
980
989
|
resourceKind: z.ZodEnum<{
|
|
981
990
|
volume: "volume";
|
|
982
|
-
warehouse: "warehouse";
|
|
983
991
|
genie_space: "genie_space";
|
|
992
|
+
warehouse: "warehouse";
|
|
984
993
|
postgres_project: "postgres_project";
|
|
985
994
|
postgres_branch: "postgres_branch";
|
|
986
995
|
postgres_database: "postgres_database";
|
|
@@ -1001,8 +1010,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1001
1010
|
type: z.ZodLiteral<"genie_space">;
|
|
1002
1011
|
}, z.core.$strict>, z.ZodObject<{
|
|
1003
1012
|
permission: z.ZodEnum<{
|
|
1004
|
-
CAN_EDIT: "CAN_EDIT";
|
|
1005
1013
|
CAN_MANAGE: "CAN_MANAGE";
|
|
1014
|
+
CAN_EDIT: "CAN_EDIT";
|
|
1006
1015
|
CAN_READ: "CAN_READ";
|
|
1007
1016
|
}>;
|
|
1008
1017
|
alias: z.ZodString;
|
|
@@ -1020,8 +1029,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1020
1029
|
type: z.ZodLiteral<"kind">;
|
|
1021
1030
|
resourceKind: z.ZodEnum<{
|
|
1022
1031
|
volume: "volume";
|
|
1023
|
-
warehouse: "warehouse";
|
|
1024
1032
|
genie_space: "genie_space";
|
|
1033
|
+
warehouse: "warehouse";
|
|
1025
1034
|
postgres_project: "postgres_project";
|
|
1026
1035
|
postgres_branch: "postgres_branch";
|
|
1027
1036
|
postgres_database: "postgres_database";
|
|
@@ -1059,8 +1068,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1059
1068
|
type: z.ZodLiteral<"kind">;
|
|
1060
1069
|
resourceKind: z.ZodEnum<{
|
|
1061
1070
|
volume: "volume";
|
|
1062
|
-
warehouse: "warehouse";
|
|
1063
1071
|
genie_space: "genie_space";
|
|
1072
|
+
warehouse: "warehouse";
|
|
1064
1073
|
postgres_project: "postgres_project";
|
|
1065
1074
|
postgres_branch: "postgres_branch";
|
|
1066
1075
|
postgres_database: "postgres_database";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","names":[],"sources":["../../../../../shared/src/schemas/manifest.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","names":[],"sources":["../../../../../shared/src/schemas/manifest.ts"],"mappings":";;;cAuXa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsUxB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAshBrB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,KAOpC,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
|
|
@@ -46,6 +46,16 @@ const resourceTypeSchema = z.enum([
|
|
|
46
46
|
"experiment",
|
|
47
47
|
"app"
|
|
48
48
|
]).describe("Type of Databricks resource");
|
|
49
|
+
/** Capabilities that need a user_api_scope but have no resource ID. */
|
|
50
|
+
const capabilityScopeSchema = z.enum([
|
|
51
|
+
"ai-gateway",
|
|
52
|
+
"mcp.external",
|
|
53
|
+
"mcp.functions",
|
|
54
|
+
"workspace.workspace",
|
|
55
|
+
"catalog.catalogs:read",
|
|
56
|
+
"catalog.schemas:read",
|
|
57
|
+
"catalog.tables:read"
|
|
58
|
+
]);
|
|
49
59
|
const secretPermissionSchema = z.enum([
|
|
50
60
|
"READ",
|
|
51
61
|
"WRITE",
|
|
@@ -319,6 +329,7 @@ const pluginScaffoldingRulesSchema = z.object({
|
|
|
319
329
|
}
|
|
320
330
|
}).describe("Structured rules for scaffolding agents declared at the plugin level. Each rule is a short directive (≤120 chars).");
|
|
321
331
|
const pluginManifestSchema = z.object({
|
|
332
|
+
scopes: z.array(capabilityScopeSchema).optional().describe("Capability-only user_api_scopes with no resource ID."),
|
|
322
333
|
$schema: z.string().optional().describe("Reference to the JSON Schema for validation"),
|
|
323
334
|
name: z.string().regex(PLUGIN_NAME_PATTERN).describe("Plugin identifier and JS binding. Must start with a lowercase letter; camelCase for multi-word names (e.g. aiSearch)."),
|
|
324
335
|
displayName: z.string().min(1).describe("Human-readable display name for UI and CLI"),
|