@inf-monkeys-tech/monkeys 1.1.71 → 1.1.72

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 (64) hide show
  1. package/lib/contracts/declarative-control-http.d.ts +54 -0
  2. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  3. package/lib/contracts/declarative-control-http.js +9 -0
  4. package/lib/contracts/declarative-control-http.js.map +1 -1
  5. package/lib/contracts/declarative-document-import.d.ts +51 -0
  6. package/lib/contracts/declarative-document-import.d.ts.map +1 -1
  7. package/lib/contracts/declarative-document-import.js +6 -0
  8. package/lib/contracts/declarative-document-import.js.map +1 -1
  9. package/lib/contracts/declarative-page-delivery.d.ts +145 -0
  10. package/lib/contracts/declarative-page-delivery.d.ts.map +1 -0
  11. package/lib/contracts/declarative-page-delivery.js +164 -0
  12. package/lib/contracts/declarative-page-delivery.js.map +1 -0
  13. package/lib/contracts/declarative-publication-health.d.ts +1061 -0
  14. package/lib/contracts/declarative-publication-health.d.ts.map +1 -0
  15. package/lib/contracts/declarative-publication-health.js +148 -0
  16. package/lib/contracts/declarative-publication-health.js.map +1 -0
  17. package/lib/contracts/declarative-publication-job.d.ts +51 -0
  18. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  19. package/lib/contracts/declarative-publication-verification.d.ts +6 -0
  20. package/lib/contracts/declarative-publication-verification.d.ts.map +1 -1
  21. package/lib/contracts/declarative-publication-verification.js +5 -0
  22. package/lib/contracts/declarative-publication-verification.js.map +1 -1
  23. package/lib/contracts/index.d.ts +2 -0
  24. package/lib/contracts/index.d.ts.map +1 -1
  25. package/lib/contracts/index.js +2 -0
  26. package/lib/contracts/index.js.map +1 -1
  27. package/lib/esm/{chunk-75IO3EKE.mjs → chunk-DOQFYTAY.mjs} +16 -2
  28. package/lib/esm/chunk-DOQFYTAY.mjs.map +1 -0
  29. package/lib/esm/{chunk-DWQNEXK3.mjs → chunk-EMRIN6FD.mjs} +2 -2
  30. package/lib/esm/{chunk-JEAEX7QG.mjs → chunk-GAAD4RFK.mjs} +324 -3
  31. package/lib/esm/chunk-GAAD4RFK.mjs.map +1 -0
  32. package/lib/esm/{chunk-TKVCHO6V.mjs → chunk-HFNPLMKA.mjs} +2013 -1739
  33. package/lib/esm/chunk-HFNPLMKA.mjs.map +1 -0
  34. package/lib/esm/contracts/index.mjs +34 -2
  35. package/lib/esm/index.mjs +42 -4
  36. package/lib/esm/index.mjs.map +1 -1
  37. package/lib/esm/runtime/index.mjs +9 -3
  38. package/lib/esm/schemas/index.mjs +2 -2
  39. package/lib/json-schema/declarative-page-overlay.schema.json +184 -0
  40. package/lib/json-schema/declarative-page-package.schema.json +73 -0
  41. package/lib/json-schema/declarative-page-rendering.schema.json +239 -0
  42. package/lib/json-schema/declarative-publication-last-known-good-result.schema.json +675 -0
  43. package/lib/json-schema/declarative-publication-last-known-good.schema.json +651 -0
  44. package/lib/json-schema/declarative-publication-record-result.schema.json +1138 -0
  45. package/lib/json-schema/declarative-publication-recovery-result.schema.json +1775 -0
  46. package/lib/json-schema/declarative-publication-verification.schema.json +11 -0
  47. package/lib/json-schema/index.json +7 -0
  48. package/lib/runtime/declarative-page-delivery.d.ts +41 -0
  49. package/lib/runtime/declarative-page-delivery.d.ts.map +1 -0
  50. package/lib/runtime/declarative-page-delivery.js +270 -0
  51. package/lib/runtime/declarative-page-delivery.js.map +1 -0
  52. package/lib/runtime/index.d.ts +1 -0
  53. package/lib/runtime/index.d.ts.map +1 -1
  54. package/lib/runtime/index.js +1 -0
  55. package/lib/runtime/index.js.map +1 -1
  56. package/lib/schemas/index.d.ts +227 -0
  57. package/lib/schemas/index.d.ts.map +1 -1
  58. package/lib/schemas/index.js +9 -0
  59. package/lib/schemas/index.js.map +1 -1
  60. package/package.json +2 -2
  61. package/lib/esm/chunk-75IO3EKE.mjs.map +0 -1
  62. package/lib/esm/chunk-JEAEX7QG.mjs.map +0 -1
  63. package/lib/esm/chunk-TKVCHO6V.mjs.map +0 -1
  64. /package/lib/esm/{chunk-DWQNEXK3.mjs.map → chunk-EMRIN6FD.mjs.map} +0 -0
@@ -87,7 +87,7 @@ import {
87
87
  TaskAgentSessionLinkSchema,
88
88
  pageStreamRoutes,
89
89
  platformNotificationRoutes
90
- } from "../chunk-DWQNEXK3.mjs";
90
+ } from "../chunk-EMRIN6FD.mjs";
91
91
  import {
92
92
  ACTION_PROGRAM_ABI,
93
93
  AGENT_MODE_CAPABILITIES,
@@ -267,6 +267,7 @@ import {
267
267
  DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
268
268
  DECLARATIVE_CONTROL_SCHEMA_VERSION,
269
269
  DECLARATIVE_MIGRATION_ERROR_CODES,
270
+ DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE,
270
271
  DECLARATIVE_PUBLICATION_SCOPE_HEADER,
271
272
  DECLARATIVE_PUBLICATION_SURFACE_HEADER,
272
273
  DEFAULT_ACTION_PROGRAM_BUDGETS,
@@ -326,12 +327,26 @@ import {
326
327
  DeclarativeNavigationRuntimeBootstrapSchema,
327
328
  DeclarativeNavigationSeedMigrationIntentSchema,
328
329
  DeclarativeNavigationSeedMigrationResultSchema,
330
+ DeclarativePageBindingKeySchema,
331
+ DeclarativePageBindingSchema,
332
+ DeclarativePageIdentityBindingSchema,
333
+ DeclarativePageOverlaySchema,
334
+ DeclarativePagePackageNameSchema,
335
+ DeclarativePagePackageSchema,
336
+ DeclarativePageRenderingSchema,
337
+ DeclarativePageResolvedBindingSchema,
329
338
  DeclarativePreparedReleaseTargetSchema,
330
339
  DeclarativePreviewResultSchema,
331
340
  DeclarativeProductResourceChoiceSchema,
332
341
  DeclarativeProductResourceRegistrationSchema,
342
+ DeclarativePublicationHealthStateSchema,
333
343
  DeclarativePublicationItemResultSchema,
344
+ DeclarativePublicationLastKnownGoodQuerySchema,
345
+ DeclarativePublicationLastKnownGoodResultSchema,
346
+ DeclarativePublicationLastKnownGoodSchema,
334
347
  DeclarativePublicationPlanIntentSchema,
348
+ DeclarativePublicationRecordResultSchema,
349
+ DeclarativePublicationRecoveryResultSchema,
335
350
  DeclarativePublicationResultSchema,
336
351
  DeclarativePublicationScopeSchema,
337
352
  DeclarativePublicationVerificationRequestSchema,
@@ -770,6 +785,7 @@ import {
770
785
  collectExternalPageExpressionReads,
771
786
  collectPageExpressionReads,
772
787
  declarativeControlRoutes,
788
+ declarativePageBindingToken,
773
789
  findUnsupportedAgentSessionCapabilities,
774
790
  getAgentModeCapabilities,
775
791
  getAgentSessionCommandPolicy,
@@ -784,7 +800,7 @@ import {
784
800
  resolveAgentWorkbenchSidebarConfig,
785
801
  validateBentoTree,
786
802
  visitPageExpression
787
- } from "../chunk-TKVCHO6V.mjs";
803
+ } from "../chunk-HFNPLMKA.mjs";
788
804
  import "../chunk-3QS3WKRC.mjs";
789
805
  export {
790
806
  ACTION_PROGRAM_ABI,
@@ -1003,6 +1019,7 @@ export {
1003
1019
  DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
1004
1020
  DECLARATIVE_CONTROL_SCHEMA_VERSION,
1005
1021
  DECLARATIVE_MIGRATION_ERROR_CODES,
1022
+ DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE,
1006
1023
  DECLARATIVE_PUBLICATION_SCOPE_HEADER,
1007
1024
  DECLARATIVE_PUBLICATION_SURFACE_HEADER,
1008
1025
  DEFAULT_ACTION_PROGRAM_BUDGETS,
@@ -1062,10 +1079,19 @@ export {
1062
1079
  DeclarativeNavigationRuntimeBootstrapSchema,
1063
1080
  DeclarativeNavigationSeedMigrationIntentSchema,
1064
1081
  DeclarativeNavigationSeedMigrationResultSchema,
1082
+ DeclarativePageBindingKeySchema,
1083
+ DeclarativePageBindingSchema,
1084
+ DeclarativePageIdentityBindingSchema,
1085
+ DeclarativePageOverlaySchema,
1086
+ DeclarativePagePackageNameSchema,
1087
+ DeclarativePagePackageSchema,
1088
+ DeclarativePageRenderingSchema,
1089
+ DeclarativePageResolvedBindingSchema,
1065
1090
  DeclarativePreparedReleaseTargetSchema,
1066
1091
  DeclarativePreviewResultSchema,
1067
1092
  DeclarativeProductResourceChoiceSchema,
1068
1093
  DeclarativeProductResourceRegistrationSchema,
1094
+ DeclarativePublicationHealthStateSchema,
1069
1095
  DeclarativePublicationItemResultSchema,
1070
1096
  DeclarativePublicationJobManifestSchema,
1071
1097
  DeclarativePublicationJobOperationSchema,
@@ -1073,7 +1099,12 @@ export {
1073
1099
  DeclarativePublicationJobReconciliationSchema,
1074
1100
  DeclarativePublicationJobSchema,
1075
1101
  DeclarativePublicationJobScopeSchema,
1102
+ DeclarativePublicationLastKnownGoodQuerySchema,
1103
+ DeclarativePublicationLastKnownGoodResultSchema,
1104
+ DeclarativePublicationLastKnownGoodSchema,
1076
1105
  DeclarativePublicationPlanIntentSchema,
1106
+ DeclarativePublicationRecordResultSchema,
1107
+ DeclarativePublicationRecoveryResultSchema,
1077
1108
  DeclarativePublicationResultSchema,
1078
1109
  DeclarativePublicationScopeSchema,
1079
1110
  DeclarativePublicationVerificationRequestSchema,
@@ -1554,6 +1585,7 @@ export {
1554
1585
  collectExternalPageExpressionReads,
1555
1586
  collectPageExpressionReads,
1556
1587
  declarativeControlRoutes,
1588
+ declarativePageBindingToken,
1557
1589
  findUnsupportedAgentSessionCapabilities,
1558
1590
  getAgentModeCapabilities,
1559
1591
  getAgentSessionCommandPolicy,
package/lib/esm/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  canonicalContractSchemas
3
- } from "./chunk-75IO3EKE.mjs";
3
+ } from "./chunk-DOQFYTAY.mjs";
4
4
  import {
5
5
  APPLICATION_HANDOFF_QUERY_PARAMETER,
6
6
  DEFAULT_CONDUCTOR_OWNER_EMAIL,
7
7
  DeclarativeControlCompilationError,
8
+ DeclarativePageDeliveryError,
8
9
  MenuCompilationError,
9
10
  PageComponentDefinitionSchema,
10
11
  PageCompositionSchema,
@@ -32,6 +33,7 @@ import {
32
33
  buildPageMountHref,
33
34
  canonicalContentHash,
34
35
  captureRecordEditorSubmission,
36
+ collectDeclarativePageBindingKeys,
35
37
  collectManagedFileReferences,
36
38
  collectMaterializedModelPages,
37
39
  compileBentoNodeToRenderTree,
@@ -132,6 +134,7 @@ import {
132
134
  recordEditorDraftIsDirty,
133
135
  recordEditorPathKey,
134
136
  recordEditorValuesEqual,
137
+ renderDeclarativePagePackages,
135
138
  resolveFileResourceReference,
136
139
  resolveMenuActivationId,
137
140
  resolvePage,
@@ -153,7 +156,7 @@ import {
153
156
  validateDomainCommand,
154
157
  validateWorkbenchRuntimeSet,
155
158
  writePageDraftPath
156
- } from "./chunk-JEAEX7QG.mjs";
159
+ } from "./chunk-GAAD4RFK.mjs";
157
160
  import {
158
161
  AGENT_DATA_CONTEXT_ENV,
159
162
  AGENT_DATA_CONTEXT_FILE_ENV,
@@ -243,7 +246,7 @@ import {
243
246
  TaskAgentSessionLinkSchema,
244
247
  pageStreamRoutes,
245
248
  platformNotificationRoutes
246
- } from "./chunk-DWQNEXK3.mjs";
249
+ } from "./chunk-EMRIN6FD.mjs";
247
250
  import {
248
251
  ACTION_PROGRAM_ABI,
249
252
  AGENT_MODE_CAPABILITIES,
@@ -423,6 +426,7 @@ import {
423
426
  DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
424
427
  DECLARATIVE_CONTROL_SCHEMA_VERSION,
425
428
  DECLARATIVE_MIGRATION_ERROR_CODES,
429
+ DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE,
426
430
  DECLARATIVE_PUBLICATION_SCOPE_HEADER,
427
431
  DECLARATIVE_PUBLICATION_SURFACE_HEADER,
428
432
  DEFAULT_ACTION_PROGRAM_BUDGETS,
@@ -482,12 +486,26 @@ import {
482
486
  DeclarativeNavigationRuntimeBootstrapSchema,
483
487
  DeclarativeNavigationSeedMigrationIntentSchema,
484
488
  DeclarativeNavigationSeedMigrationResultSchema,
489
+ DeclarativePageBindingKeySchema,
490
+ DeclarativePageBindingSchema,
491
+ DeclarativePageIdentityBindingSchema,
492
+ DeclarativePageOverlaySchema,
493
+ DeclarativePagePackageNameSchema,
494
+ DeclarativePagePackageSchema,
495
+ DeclarativePageRenderingSchema,
496
+ DeclarativePageResolvedBindingSchema,
485
497
  DeclarativePreparedReleaseTargetSchema,
486
498
  DeclarativePreviewResultSchema,
487
499
  DeclarativeProductResourceChoiceSchema,
488
500
  DeclarativeProductResourceRegistrationSchema,
501
+ DeclarativePublicationHealthStateSchema,
489
502
  DeclarativePublicationItemResultSchema,
503
+ DeclarativePublicationLastKnownGoodQuerySchema,
504
+ DeclarativePublicationLastKnownGoodResultSchema,
505
+ DeclarativePublicationLastKnownGoodSchema,
490
506
  DeclarativePublicationPlanIntentSchema,
507
+ DeclarativePublicationRecordResultSchema,
508
+ DeclarativePublicationRecoveryResultSchema,
491
509
  DeclarativePublicationResultSchema,
492
510
  DeclarativePublicationScopeSchema,
493
511
  DeclarativePublicationVerificationRequestSchema,
@@ -930,6 +948,7 @@ import {
930
948
  collectExternalPageExpressionReads,
931
949
  collectPageExpressionReads,
932
950
  declarativeControlRoutes,
951
+ declarativePageBindingToken,
933
952
  findUnsupportedAgentSessionCapabilities,
934
953
  getAgentModeCapabilities,
935
954
  getAgentSessionCommandPolicy,
@@ -948,7 +967,7 @@ import {
948
967
  validateThemeTokensDocument,
949
968
  validateThemeTokensDocumentStructure,
950
969
  visitPageExpression
951
- } from "./chunk-TKVCHO6V.mjs";
970
+ } from "./chunk-HFNPLMKA.mjs";
952
971
  import "./chunk-3QS3WKRC.mjs";
953
972
 
954
973
  // src/types/tool.ts
@@ -1206,6 +1225,7 @@ export {
1206
1225
  DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
1207
1226
  DECLARATIVE_CONTROL_SCHEMA_VERSION,
1208
1227
  DECLARATIVE_MIGRATION_ERROR_CODES,
1228
+ DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE,
1209
1229
  DECLARATIVE_PUBLICATION_SCOPE_HEADER,
1210
1230
  DECLARATIVE_PUBLICATION_SURFACE_HEADER,
1211
1231
  DEFAULT_ACTION_PROGRAM_BUDGETS,
@@ -1267,10 +1287,20 @@ export {
1267
1287
  DeclarativeNavigationRuntimeBootstrapSchema,
1268
1288
  DeclarativeNavigationSeedMigrationIntentSchema,
1269
1289
  DeclarativeNavigationSeedMigrationResultSchema,
1290
+ DeclarativePageBindingKeySchema,
1291
+ DeclarativePageBindingSchema,
1292
+ DeclarativePageDeliveryError,
1293
+ DeclarativePageIdentityBindingSchema,
1294
+ DeclarativePageOverlaySchema,
1295
+ DeclarativePagePackageNameSchema,
1296
+ DeclarativePagePackageSchema,
1297
+ DeclarativePageRenderingSchema,
1298
+ DeclarativePageResolvedBindingSchema,
1270
1299
  DeclarativePreparedReleaseTargetSchema,
1271
1300
  DeclarativePreviewResultSchema,
1272
1301
  DeclarativeProductResourceChoiceSchema,
1273
1302
  DeclarativeProductResourceRegistrationSchema,
1303
+ DeclarativePublicationHealthStateSchema,
1274
1304
  DeclarativePublicationItemResultSchema,
1275
1305
  DeclarativePublicationJobManifestSchema,
1276
1306
  DeclarativePublicationJobOperationSchema,
@@ -1278,7 +1308,12 @@ export {
1278
1308
  DeclarativePublicationJobReconciliationSchema,
1279
1309
  DeclarativePublicationJobSchema,
1280
1310
  DeclarativePublicationJobScopeSchema,
1311
+ DeclarativePublicationLastKnownGoodQuerySchema,
1312
+ DeclarativePublicationLastKnownGoodResultSchema,
1313
+ DeclarativePublicationLastKnownGoodSchema,
1281
1314
  DeclarativePublicationPlanIntentSchema,
1315
+ DeclarativePublicationRecordResultSchema,
1316
+ DeclarativePublicationRecoveryResultSchema,
1282
1317
  DeclarativePublicationResultSchema,
1283
1318
  DeclarativePublicationScopeSchema,
1284
1319
  DeclarativePublicationVerificationRequestSchema,
@@ -1792,6 +1827,7 @@ export {
1792
1827
  canonicalContractSchemas,
1793
1828
  captureRecordEditorSubmission,
1794
1829
  collectBentoLeafNodes,
1830
+ collectDeclarativePageBindingKeys,
1795
1831
  collectExternalPageExpressionReads,
1796
1832
  collectManagedFileReferences,
1797
1833
  collectMaterializedModelPages,
@@ -1846,6 +1882,7 @@ export {
1846
1882
  declarativeControlRoutes,
1847
1883
  declarativeCreateTemplateRevisionHash,
1848
1884
  declarativeCreateTemplateSourceHash,
1885
+ declarativePageBindingToken,
1849
1886
  declarativeProductResourceRevisionHash,
1850
1887
  declarativeProductResourceSourceHash,
1851
1888
  declarativeRouteOwnerIndexProjectionId,
@@ -1908,6 +1945,7 @@ export {
1908
1945
  recordEditorDraftIsDirty,
1909
1946
  recordEditorPathKey,
1910
1947
  recordEditorValuesEqual,
1948
+ renderDeclarativePagePackages,
1911
1949
  resolveAgentSessionCommandTransition,
1912
1950
  resolveAgentWorkbenchSidebarConfig,
1913
1951
  resolveFileResourceReference,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\n triggerType: WorkflowTriggerType;\n cron?: string;\n}\n\nexport enum WorkflowTriggerType {\n MANUALLY = 'MANUAL',\n SCHEDULER = 'SCHEDULER',\n WEBHOOK = 'WEBHOOK',\n}\n \n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,IAAM,iBAAiB,CAAC,cAAc,QAAQ,UAAU,KAAK;AAkJ7D,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,UAAO;AACP,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,uBAAoB;AACpB,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,kBAAe;AAZL,SAAAA;AAAA,GAAA;;;ACpKL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,aAAU;AAFA,SAAAA;AAAA,GAAA;AAKL,IAAK,uBAAL,kBAAKC,0BAAL;AACL,EAAAA,sBAAA,oBAAiB;AACjB,EAAAA,sBAAA,0BAAuB;AACvB,EAAAA,sBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;AA0BL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;","names":["ToolType","ValidationIssueType","ValidationReasonType","WorkflowTriggerType"]}
1
+ {"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\n triggerType: WorkflowTriggerType;\n cron?: string;\n}\n\nexport enum WorkflowTriggerType {\n MANUALLY = 'MANUAL',\n SCHEDULER = 'SCHEDULER',\n WEBHOOK = 'WEBHOOK',\n}\n \n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,IAAM,iBAAiB,CAAC,cAAc,QAAQ,UAAU,KAAK;AAkJ7D,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,UAAO;AACP,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,uBAAoB;AACpB,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,kBAAe;AAZL,SAAAA;AAAA,GAAA;;;ACpKL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,aAAU;AAFA,SAAAA;AAAA,GAAA;AAKL,IAAK,uBAAL,kBAAKC,0BAAL;AACL,EAAAA,sBAAA,oBAAiB;AACjB,EAAAA,sBAAA,0BAAuB;AACvB,EAAAA,sBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;AA0BL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;","names":["ToolType","ValidationIssueType","ValidationReasonType","WorkflowTriggerType"]}
@@ -2,6 +2,7 @@ import {
2
2
  APPLICATION_HANDOFF_QUERY_PARAMETER,
3
3
  DEFAULT_CONDUCTOR_OWNER_EMAIL,
4
4
  DeclarativeControlCompilationError,
5
+ DeclarativePageDeliveryError,
5
6
  MenuCompilationError,
6
7
  PageComponentDefinitionSchema,
7
8
  PageCompositionSchema,
@@ -29,6 +30,7 @@ import {
29
30
  buildPageMountHref,
30
31
  canonicalContentHash,
31
32
  captureRecordEditorSubmission,
33
+ collectDeclarativePageBindingKeys,
32
34
  collectManagedFileReferences,
33
35
  collectMaterializedModelPages,
34
36
  compileBentoNodeToRenderTree,
@@ -129,6 +131,7 @@ import {
129
131
  recordEditorDraftIsDirty,
130
132
  recordEditorPathKey,
131
133
  recordEditorValuesEqual,
134
+ renderDeclarativePagePackages,
132
135
  resolveFileResourceReference,
133
136
  resolveMenuActivationId,
134
137
  resolvePage,
@@ -150,8 +153,8 @@ import {
150
153
  validateDomainCommand,
151
154
  validateWorkbenchRuntimeSet,
152
155
  writePageDraftPath
153
- } from "../chunk-JEAEX7QG.mjs";
154
- import "../chunk-DWQNEXK3.mjs";
156
+ } from "../chunk-GAAD4RFK.mjs";
157
+ import "../chunk-EMRIN6FD.mjs";
155
158
  import {
156
159
  MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
157
160
  ThemeTokenValidationError,
@@ -161,12 +164,13 @@ import {
161
164
  resolveThemeTokens,
162
165
  validateThemeTokensDocument,
163
166
  validateThemeTokensDocumentStructure
164
- } from "../chunk-TKVCHO6V.mjs";
167
+ } from "../chunk-HFNPLMKA.mjs";
165
168
  import "../chunk-3QS3WKRC.mjs";
166
169
  export {
167
170
  APPLICATION_HANDOFF_QUERY_PARAMETER,
168
171
  DEFAULT_CONDUCTOR_OWNER_EMAIL,
169
172
  DeclarativeControlCompilationError,
173
+ DeclarativePageDeliveryError,
170
174
  MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
171
175
  MenuCompilationError,
172
176
  PageComponentDefinitionSchema,
@@ -198,6 +202,7 @@ export {
198
202
  buildPageMountHref,
199
203
  canonicalContentHash,
200
204
  captureRecordEditorSubmission,
205
+ collectDeclarativePageBindingKeys,
201
206
  collectManagedFileReferences,
202
207
  collectMaterializedModelPages,
203
208
  compileBentoNodeToRenderTree,
@@ -299,6 +304,7 @@ export {
299
304
  recordEditorDraftIsDirty,
300
305
  recordEditorPathKey,
301
306
  recordEditorValuesEqual,
307
+ renderDeclarativePagePackages,
302
308
  resolveFileResourceReference,
303
309
  resolveMenuActivationId,
304
310
  resolvePage,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  canonicalContractSchemas
3
- } from "../chunk-75IO3EKE.mjs";
3
+ } from "../chunk-DOQFYTAY.mjs";
4
4
  import {
5
5
  AccessPolicySchema,
6
6
  ActionBindingSchema,
@@ -432,7 +432,7 @@ import {
432
432
  WorkflowTriggerSchema,
433
433
  WorkflowValidationIssueSchema,
434
434
  WorkspaceInteractionModeSchema
435
- } from "../chunk-TKVCHO6V.mjs";
435
+ } from "../chunk-HFNPLMKA.mjs";
436
436
  import "../chunk-3QS3WKRC.mjs";
437
437
  export {
438
438
  AccessPolicySchema,
@@ -0,0 +1,184 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "DeclarativePageOverlay"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "customer": {
14
+ "type": "string",
15
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
16
+ },
17
+ "environment": {
18
+ "type": "string",
19
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
20
+ },
21
+ "packages": {
22
+ "minItems": 1,
23
+ "maxItems": 128,
24
+ "type": "array",
25
+ "items": {
26
+ "type": "object",
27
+ "properties": {
28
+ "package": {
29
+ "anyOf": [
30
+ {
31
+ "type": "string",
32
+ "const": "_shared"
33
+ },
34
+ {
35
+ "type": "string",
36
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
37
+ }
38
+ ]
39
+ },
40
+ "pages": {
41
+ "minItems": 1,
42
+ "maxItems": 256,
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "maxLength": 256
48
+ }
49
+ }
50
+ },
51
+ "required": [
52
+ "package"
53
+ ],
54
+ "additionalProperties": false
55
+ }
56
+ },
57
+ "bindings": {
58
+ "type": "object",
59
+ "propertyNames": {
60
+ "type": "string",
61
+ "pattern": "^[a-z0-9](?:[a-z0-9._-]{0,126}[a-z0-9])?$"
62
+ },
63
+ "additionalProperties": {
64
+ "anyOf": [
65
+ {
66
+ "anyOf": [
67
+ {
68
+ "type": "object",
69
+ "properties": {
70
+ "kind": {
71
+ "type": "string",
72
+ "const": "ontology"
73
+ },
74
+ "id": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "maxLength": 256
78
+ }
79
+ },
80
+ "required": [
81
+ "kind",
82
+ "id"
83
+ ],
84
+ "additionalProperties": false
85
+ },
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "kind": {
90
+ "type": "string",
91
+ "const": "view"
92
+ },
93
+ "id": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "maxLength": 256
97
+ },
98
+ "ontologyId": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 256
102
+ }
103
+ },
104
+ "required": [
105
+ "kind",
106
+ "id"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ {
111
+ "type": "object",
112
+ "properties": {
113
+ "kind": {
114
+ "type": "string",
115
+ "const": "workflow"
116
+ },
117
+ "id": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "maxLength": 256
121
+ }
122
+ },
123
+ "required": [
124
+ "kind",
125
+ "id"
126
+ ],
127
+ "additionalProperties": false
128
+ },
129
+ {
130
+ "type": "object",
131
+ "properties": {
132
+ "kind": {
133
+ "type": "string",
134
+ "const": "team"
135
+ },
136
+ "id": {
137
+ "type": "string",
138
+ "minLength": 1,
139
+ "maxLength": 256
140
+ }
141
+ },
142
+ "required": [
143
+ "kind",
144
+ "id"
145
+ ],
146
+ "additionalProperties": false
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "type": "object",
152
+ "properties": {
153
+ "kind": {
154
+ "type": "string",
155
+ "const": "value"
156
+ },
157
+ "value": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 2048
161
+ }
162
+ },
163
+ "required": [
164
+ "kind",
165
+ "value"
166
+ ],
167
+ "additionalProperties": false
168
+ }
169
+ ]
170
+ }
171
+ }
172
+ },
173
+ "required": [
174
+ "contract",
175
+ "schemaVersion",
176
+ "customer",
177
+ "environment",
178
+ "packages",
179
+ "bindings"
180
+ ],
181
+ "additionalProperties": false,
182
+ "$id": "https://schemas.infmonkeys.com/contracts/declarative-page-overlay.schema.json",
183
+ "title": "declarative-page-overlay"
184
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "DeclarativePagePackage"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "domain": {
14
+ "anyOf": [
15
+ {
16
+ "type": "string",
17
+ "const": "_shared"
18
+ },
19
+ {
20
+ "type": "string",
21
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
22
+ }
23
+ ]
24
+ },
25
+ "applicationId": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 256
29
+ },
30
+ "customer": {
31
+ "type": "string",
32
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
33
+ },
34
+ "dependsOn": {
35
+ "default": [],
36
+ "maxItems": 64,
37
+ "type": "array",
38
+ "items": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string",
42
+ "const": "_shared"
43
+ },
44
+ {
45
+ "type": "string",
46
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ "generatedPageIds": {
52
+ "default": [],
53
+ "maxItems": 256,
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 256
59
+ }
60
+ }
61
+ },
62
+ "required": [
63
+ "contract",
64
+ "schemaVersion",
65
+ "domain",
66
+ "applicationId",
67
+ "dependsOn",
68
+ "generatedPageIds"
69
+ ],
70
+ "additionalProperties": false,
71
+ "$id": "https://schemas.infmonkeys.com/contracts/declarative-page-package.schema.json",
72
+ "title": "declarative-page-package"
73
+ }