@aifabrix/builder 2.45.5 → 2.46.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/.cursor/rules/cli-layout.mdc +2 -0
- package/.cursor/rules/cli-product-neutral.mdc +43 -0
- package/.cursor/rules/project-rules.mdc +1 -0
- package/README.md +43 -17
- package/integration/hubspot-test/test-artifacts/wizard-hubspot-credential-real.yaml +1 -1
- package/integration/hubspot-test/test-artifacts/wizard-hubspot-env-vars.yaml +1 -1
- package/jest.config.default.js +2 -1
- package/jest.config.isolated.js +2 -1
- package/jest.global-live-fabrix-hooks.js +36 -0
- package/jest.isolated-projects.js +130 -0
- package/jest.projects.js +41 -136
- package/lib/api/api-response-errors.js +124 -0
- package/lib/api/governance-scenario-pack.api.js +159 -0
- package/lib/api/index.js +43 -3
- package/lib/api/lifecycle.api.js +77 -0
- package/lib/api/pipeline.api.js +3 -1
- package/lib/api/records-bulk.api.js +14 -1
- package/lib/api/validation-runner.js +3 -1
- package/lib/app/deploy-config.js +4 -1
- package/lib/app/down.js +20 -1
- package/lib/app/push.js +4 -5
- package/lib/app/register.js +7 -4
- package/lib/app/run-env-compose.js +84 -30
- package/lib/build/index.js +5 -0
- package/lib/certification/sync-system-certification.js +13 -6
- package/lib/cli/index.js +4 -0
- package/lib/cli/infra-guided-auth.js +109 -0
- package/lib/cli/infra-guided.js +84 -81
- package/lib/cli/setup-app.help.js +0 -31
- package/lib/cli/setup-app.js +28 -2
- package/lib/cli/setup-app.test-commands.js +5 -57
- package/lib/cli/setup-auth.js +25 -0
- package/lib/cli/setup-certification-commands.js +147 -0
- package/lib/cli/setup-certification.help.js +141 -0
- package/lib/cli/setup-environment.js +19 -2
- package/lib/cli/setup-external-system-help.js +62 -0
- package/lib/cli/setup-external-system.js +25 -3
- package/lib/cli/setup-infra.js +9 -1
- package/lib/cli/setup-platform.js +6 -1
- package/lib/cli/setup-secrets.js +33 -1
- package/lib/cli/setup-utility-help-after.js +22 -2
- package/lib/cli/setup-utility-repair.js +198 -0
- package/lib/cli/setup-utility-resolve.js +40 -4
- package/lib/cli/setup-utility-validate.js +197 -0
- package/lib/cli/setup-utility.js +4 -239
- package/lib/commands/auth-status-client-tokens.js +214 -0
- package/lib/commands/auth-status-dataplane-version.js +58 -20
- package/lib/commands/auth-status.js +41 -47
- package/lib/commands/datasource-test-trust-cli.js +27 -23
- package/lib/commands/datasource-unified-test-cli.js +6 -3
- package/lib/commands/datasource-unified-test-cli.options.js +5 -1
- package/lib/commands/datasource.js +7 -7
- package/lib/commands/dev-show-display.js +8 -1
- package/lib/commands/governance-cli-shared.js +94 -0
- package/lib/commands/governance-command-action.js +132 -0
- package/lib/commands/governance-download-external.js +34 -0
- package/lib/commands/governance-generate-external.js +71 -0
- package/lib/commands/governance-upload-external.js +36 -0
- package/lib/commands/governance-verify-external.js +64 -0
- package/lib/commands/governance.js +144 -0
- package/lib/commands/lifecycle-command-action.js +123 -0
- package/lib/commands/lifecycle-external.js +268 -0
- package/lib/commands/login.js +11 -2
- package/lib/commands/repair-auth-apply.js +127 -0
- package/lib/commands/repair-changed-files.js +41 -0
- package/lib/commands/repair-datasource-keys.js +4 -1
- package/lib/commands/repair-datasource-run.js +59 -0
- package/lib/commands/repair-datasource-test-payload.js +259 -0
- package/lib/commands/repair-datasource.js +1 -51
- package/lib/commands/repair-env-template.js +64 -13
- package/lib/commands/repair-external-run.js +216 -0
- package/lib/commands/repair-openapi-sync.js +23 -0
- package/lib/commands/repair-persist.js +4 -0
- package/lib/commands/repair-rbac.js +52 -1
- package/lib/commands/repair-steps.js +145 -0
- package/lib/commands/repair.js +29 -296
- package/lib/commands/secrets-get.js +184 -0
- package/lib/commands/secrets-remove-all.js +3 -1
- package/lib/commands/setup-image-refresh.js +146 -0
- package/lib/commands/setup-modes.js +158 -162
- package/lib/commands/setup-platform-auth.js +76 -0
- package/lib/commands/setup-prompts-admin.js +244 -0
- package/lib/commands/setup-prompts-platform-mode.js +67 -0
- package/lib/commands/setup-prompts-validators.js +36 -0
- package/lib/commands/setup-prompts.js +24 -76
- package/lib/commands/setup-run-context.js +45 -0
- package/lib/commands/setup-spinners.js +39 -0
- package/lib/commands/setup.js +27 -5
- package/lib/commands/teardown.js +39 -0
- package/lib/commands/test-e2e-external.js +24 -8
- package/lib/commands/test-governance-external.js +3 -24
- package/lib/commands/test-trust-external.js +20 -21
- package/lib/commands/up-common.js +25 -13
- package/lib/commands/up-dataplane.js +50 -13
- package/lib/commands/upload-publish-context.js +75 -0
- package/lib/commands/upload-sidecar-followups.js +89 -0
- package/lib/commands/upload.js +90 -108
- package/lib/commands/verify-governance-combined-external.js +61 -0
- package/lib/commands/verify-governance-command-action.js +64 -0
- package/lib/commands/verify-governance-db.js +102 -0
- package/lib/commands/verify-governance-external.js +77 -0
- package/lib/commands/verify-governance-result-builders.js +71 -0
- package/lib/commands/verify-operations-command-action.js +68 -0
- package/lib/commands/verify-operations-external.js +268 -0
- package/lib/commands/verify-operations-persist.js +75 -0
- package/lib/commands/verify-operations-step-plan.js +68 -0
- package/lib/commands/verify-operations-steps.js +111 -0
- package/lib/commands/verify-trust-command-action.js +70 -0
- package/lib/commands/verify-trust-external.js +67 -0
- package/lib/commands/wizard-config-normalizer.js +43 -23
- package/lib/commands/wizard-core.js +2 -0
- package/lib/core/admin-password-generator.js +38 -0
- package/lib/core/admin-secrets-bundle.js +111 -0
- package/lib/core/admin-secrets-env-overlay.js +62 -0
- package/lib/core/admin-secrets.js +32 -4
- package/lib/core/config-attach-extensions.js +3 -0
- package/lib/core/config-platform-controller.js +44 -0
- package/lib/core/config-setup-installation-profile.js +42 -0
- package/lib/core/config-setup-platform-mode.js +46 -0
- package/lib/core/config.js +46 -36
- package/lib/core/secrets-admin-env.js +6 -2
- package/lib/core/secrets-ensure.js +4 -0
- package/lib/core/secrets-env-content.js +54 -48
- package/lib/core/secrets-env-write.js +10 -1
- package/lib/core/secrets-infra-placeholder-sync.js +2 -0
- package/lib/core/setup-installation-profile.js +43 -0
- package/lib/core/setup-platform-mode.js +55 -0
- package/lib/datasource/agent-trust-debug-log.js +1 -1
- package/lib/datasource/agent-trust-run.js +5 -3
- package/lib/datasource/audit-evidence-extract-debug.js +30 -18
- package/lib/datasource/audit-evidence-extract.js +7 -4
- package/lib/datasource/audit-evidence-verify-matrix.js +54 -26
- package/lib/datasource/bulk-loader-run-batches.js +15 -3
- package/lib/datasource/datasource-load-export-context.js +3 -0
- package/lib/datasource/log-cleaner.js +2 -2
- package/lib/datasource/log-viewer.js +8 -8
- package/lib/datasource/test-e2e.js +4 -1
- package/lib/datasource/unified-validation-run-body.js +3 -1
- package/lib/datasource/unified-validation-run.js +5 -2
- package/lib/deployment/environment-poll-status.js +138 -0
- package/lib/deployment/environment.js +42 -34
- package/lib/external-system/download.js +21 -20
- package/lib/external-system/generator.js +5 -1
- package/lib/external-system/integration-auth-context.js +45 -0
- package/lib/external-system/test-auth.js +12 -5
- package/lib/external-system/test.js +6 -6
- package/lib/generator/external-controller-manifest.js +15 -0
- package/lib/governance/governance-cli-errors.js +96 -0
- package/lib/governance/governance-download-display.js +38 -0
- package/lib/governance/governance-run-display.js +215 -25
- package/lib/infrastructure/admin-secrets-apply.js +84 -0
- package/lib/infrastructure/admin-secrets-ensure.js +130 -0
- package/lib/infrastructure/admin-secrets-resolve.js +95 -0
- package/lib/infrastructure/admin-secrets-sync.js +91 -0
- package/lib/infrastructure/helpers.js +23 -129
- package/lib/infrastructure/index.js +5 -6
- package/lib/infrastructure/orphan-infra-docker-teardown.js +11 -5
- package/lib/lifecycle/certification-progress.js +231 -0
- package/lib/lifecycle/dataplane-ui-url.js +145 -0
- package/lib/lifecycle/exit-codes.js +24 -0
- package/lib/lifecycle/json-envelope.js +25 -0
- package/lib/lifecycle/lifecycle-governance-options.js +51 -0
- package/lib/lifecycle/logger-quiet.js +29 -0
- package/lib/lifecycle/open-api-published.js +59 -0
- package/lib/lifecycle/operations-readiness-metrics.js +101 -0
- package/lib/lifecycle/product-model.js +196 -0
- package/lib/lifecycle/report-display.js +471 -0
- package/lib/lifecycle/scenario-upload.js +191 -0
- package/lib/lifecycle/verify-step-progress.js +87 -0
- package/lib/parameters/infra-kv-discovery.js +27 -2
- package/lib/protection/auth-context.js +10 -4
- package/lib/schema/application-schema.json +1 -1
- package/lib/schema/datasource-test-run.schema.json +89 -6
- package/lib/schema/external-datasource.schema.json +2636 -2622
- package/lib/schema/external-system.schema.json +1089 -761
- package/lib/schema/infra.parameter.yaml +45 -0
- package/lib/schema/type/credential-field-registry.json +103 -97
- package/lib/utils/aifabrix-test-runtime-guard.js +125 -0
- package/lib/utils/api.js +55 -31
- package/lib/utils/app-relative-path-env.js +112 -0
- package/lib/utils/cli-secrets-error-format.js +83 -21
- package/lib/utils/cli-utils.js +16 -4
- package/lib/utils/compose-generate-docker-compose.js +4 -0
- package/lib/utils/compose-traefik-ingress-base.js +16 -1
- package/lib/utils/config-secrets-path.js +46 -0
- package/lib/utils/controller-url.js +88 -1
- package/lib/utils/credential-secrets-env.js +137 -9
- package/lib/utils/dataplane-resolver.js +129 -2
- package/lib/utils/declarative-url-ports.js +3 -3
- package/lib/utils/deployment-auth-mode.js +41 -0
- package/lib/utils/developer-volume-id.js +33 -0
- package/lib/utils/env-copy.js +14 -9
- package/lib/utils/env-kv-orphan-lines.js +43 -0
- package/lib/utils/error-formatters/network-errors.js +13 -4
- package/lib/utils/external-env-template.js +1 -0
- package/lib/utils/external-system-readiness-core.js +10 -0
- package/lib/utils/external-system-readiness-display.js +80 -23
- package/lib/utils/health-check.js +4 -1
- package/lib/utils/help-builder.js +11 -8
- package/lib/utils/keycloak-realm-ready.js +101 -0
- package/lib/utils/load-cip-capacity-display-config.js +61 -15
- package/lib/utils/manifest-source-emit.js +2 -0
- package/lib/utils/pipeline-upload-auth-retry.js +82 -0
- package/lib/utils/platform-controller-url.js +156 -0
- package/lib/utils/postgres-platform-bootstrap.js +199 -0
- package/lib/utils/postgres-wipe.js +9 -2
- package/lib/utils/resolve-env-mode.js +47 -0
- package/lib/utils/secrets-generator.js +31 -25
- package/lib/utils/secrets-missing-error.js +164 -0
- package/lib/utils/service-url-label.js +81 -0
- package/lib/utils/setup-quiet-output.js +25 -0
- package/lib/utils/template-helpers.js +15 -0
- package/lib/utils/token-manager-client-credentials.js +201 -0
- package/lib/utils/token-manager-messages.js +8 -0
- package/lib/utils/token-manager-refresh.js +12 -2
- package/lib/utils/token-manager.js +86 -105
- package/lib/utils/upload-pipeline-ui.js +12 -5
- package/lib/utils/upload-sync-options.js +42 -0
- package/lib/utils/url-declarative-public-base.js +21 -3
- package/lib/utils/url-declarative-vdir-inactive-env.js +14 -4
- package/lib/utils/validation-poll-ui.js +8 -0
- package/lib/utils/validation-run-stage.js +45 -0
- package/package.json +1 -1
- package/templates/applications/dataplane/application.yaml +2 -1
- package/templates/applications/dataplane/env.template +24 -1
- package/templates/applications/miso-controller/env.template +16 -0
- package/templates/external-system/README.md.hbs +74 -17
- package/templates/python/docker-compose.hbs +19 -18
- package/templates/typescript/docker-compose.hbs +18 -17
- package/lib/commands/test-governance-command-action.js +0 -55
- package/lib/commands/test-trust-command-action.js +0 -118
|
@@ -1,762 +1,1090 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "aifabrix://schema/external-system.schema.json",
|
|
4
|
+
"title": "AI Fabrix External System Configuration Schema",
|
|
5
|
+
"description": "Schema for configuring an external system connected to the AI Fabrix Dataplane. This defines authentication, system-level OpenAPI/MCP connectivity hints (not the datasource-grade vendor contract; see external-datasource.schema.json root externalSpec), field mappings defaults, metadata handling and portal inputs.",
|
|
6
|
+
"metadata": {
|
|
7
|
+
"key": "external-system-schema",
|
|
8
|
+
"name": "External System Configuration Schema",
|
|
9
|
+
"description": "JSON schema for validating ExternalSystem configuration files",
|
|
10
|
+
"version": "1.7.0",
|
|
11
|
+
"type": "schema",
|
|
12
|
+
"category": "integration",
|
|
13
|
+
"author": "AI Fabrix Team",
|
|
14
|
+
"createdAt": "2024-01-01T00:00:00Z",
|
|
15
|
+
"updatedAt": "2026-05-20T00:00:00Z",
|
|
16
|
+
"compatibility": {
|
|
17
|
+
"minVersion": "1.4.0",
|
|
18
|
+
"maxVersion": "2.0.0",
|
|
19
|
+
"deprecated": false
|
|
20
|
+
},
|
|
21
|
+
"tags": [
|
|
22
|
+
"schema",
|
|
23
|
+
"external-system",
|
|
24
|
+
"dataplane",
|
|
25
|
+
"integration",
|
|
26
|
+
"validation"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": [],
|
|
29
|
+
"changelog": [
|
|
30
|
+
{
|
|
31
|
+
"version": "1.7.0",
|
|
32
|
+
"date": "2026-05-20T00:00:00Z",
|
|
33
|
+
"changes": [
|
|
34
|
+
"Breaking: nested authentication with authType discriminator (credential | apiProvider | none)",
|
|
35
|
+
"Flat authentication.method at top level removed; credential template lives under authentication.credential",
|
|
36
|
+
"Added authentication.apiProvider.apiProviderKey for Miso delegated API Provider reference"
|
|
37
|
+
],
|
|
38
|
+
"breaking": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"version": "1.6.3",
|
|
42
|
+
"date": "2026-05-10T00:00:00Z",
|
|
43
|
+
"changes": [
|
|
44
|
+
"Documented split: system openapi/mcp objects are connectivity and bootstrap hints (specUrl, serverUrl, documentKey); datasource-level vendor/API provenance belongs in external-datasource externalSpec.",
|
|
45
|
+
"Declared optional openapi.autoDiscoverEntities (wizard/tooling); tightened openapi and mcp to additionalProperties: false."
|
|
46
|
+
],
|
|
47
|
+
"breaking": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"version": "1.6.2",
|
|
51
|
+
"date": "2026-04-23T00:00:00Z",
|
|
52
|
+
"changes": [
|
|
53
|
+
"certification.algorithm: RS256 only (removed HS256 from enum)"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"version": "1.6.1",
|
|
58
|
+
"date": "2026-04-22T00:00:00Z",
|
|
59
|
+
"changes": [
|
|
60
|
+
"Optional certification.publicKeyFingerprint (sha256: hex of SPKI DER) for RS256 public key verification"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"version": "1.6.0",
|
|
65
|
+
"date": "2026-04-09T00:00:00Z",
|
|
66
|
+
"changes": [
|
|
67
|
+
"Added identityPropagation configuration for impersonation, attribution, and system identity execution modes",
|
|
68
|
+
"Added tokenBroker mint endpoint and attribution field injection settings for runtime identity behavior"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"version": "1.5.0",
|
|
73
|
+
"date": "2026-03-07T00:00:00Z",
|
|
74
|
+
"changes": [
|
|
75
|
+
"Optional rateLimit: outbound per-system rate limit (requestsPerWindow/windowSeconds or requestsPerSecond/burstSize); dataplane enforces and handles 429"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"version": "1.4.0",
|
|
80
|
+
"date": "2026-03-07T00:00:00Z",
|
|
81
|
+
"changes": [
|
|
82
|
+
"Optional testEndpoint in authentication.variables for apikey: full URL or path (path resolved against baseUrl); credential test URL for E2E/credential step"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"version": "1.3.0",
|
|
87
|
+
"date": "2026-02-18T00:00:00Z",
|
|
88
|
+
"changes": [
|
|
89
|
+
"Template-based authentication: method, variables (baseUrl when method not none), security (kv:// only), credentialKey, writeOnce",
|
|
90
|
+
"Credential created on deploy as authentication.credentialKey or <external-system.key>-cred"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"version": "1.2.0",
|
|
95
|
+
"date": "2025-02-01T00:00:00Z",
|
|
96
|
+
"changes": [
|
|
97
|
+
"Added generateMcpContract (boolean, default true): config-only control for MCP contract generation on publish",
|
|
98
|
+
"Added generateOpenApiContract (boolean, default true): reserved for future use"
|
|
99
|
+
],
|
|
100
|
+
"breaking": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"version": "1.1.0",
|
|
104
|
+
"date": "2025-12-01T00:00:00Z",
|
|
105
|
+
"changes": [
|
|
106
|
+
"Added RBAC roles and permissions support",
|
|
107
|
+
"RBAC roles/permissions are registered with miso-controller during deployment",
|
|
108
|
+
"Roles support Azure AD group mapping via Groups property",
|
|
109
|
+
"Permissions reference roles and are used for access control"
|
|
110
|
+
],
|
|
111
|
+
"breaking": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"version": "1.0.0",
|
|
115
|
+
"date": "2024-01-01T00:00:00Z",
|
|
116
|
+
"changes": [
|
|
117
|
+
"Initial schema for External Systems",
|
|
118
|
+
"Added OpenAPI and MCP contract configuration",
|
|
119
|
+
"Added authentication and environment variables",
|
|
120
|
+
"Added portalInput for UI-driven onboarding",
|
|
121
|
+
"Compatible with field-mappings.schema and security-model.schema"
|
|
122
|
+
],
|
|
123
|
+
"breaking": false
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"$defs": {
|
|
128
|
+
"authenticationVariablesByMethod": {
|
|
129
|
+
"oauth2": {
|
|
130
|
+
"variables": [
|
|
131
|
+
{
|
|
132
|
+
"key": "baseUrl",
|
|
133
|
+
"required": true,
|
|
134
|
+
"description": "API base URL"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "tokenUrl",
|
|
138
|
+
"required": true,
|
|
139
|
+
"description": "OAuth token endpoint. Full URL (https://...) or path (e.g. /oauth/v2/token); path is resolved against baseUrl."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "authorizationUrl",
|
|
143
|
+
"required": false,
|
|
144
|
+
"description": "OAuth authorization endpoint. Full URL or path; path is resolved against baseUrl. Required when grantType is authorization_code or omitted."
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"key": "grantType",
|
|
148
|
+
"required": false,
|
|
149
|
+
"description": "OAuth 2.0 grant type. One of: client_credentials, authorization_code. Default: authorization_code."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"key": "scope",
|
|
153
|
+
"required": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"key": "tenantId",
|
|
157
|
+
"required": false
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"key": "testEndpoint",
|
|
161
|
+
"required": false,
|
|
162
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path (path resolved against baseUrl). If omitted, baseUrl + /health is used."
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"security": [
|
|
166
|
+
{
|
|
167
|
+
"key": "clientId",
|
|
168
|
+
"required": true
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"key": "clientSecret",
|
|
172
|
+
"required": true
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"aad": {
|
|
177
|
+
"variables": [
|
|
178
|
+
{
|
|
179
|
+
"key": "baseUrl",
|
|
180
|
+
"required": true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"key": "tokenUrl",
|
|
184
|
+
"required": true,
|
|
185
|
+
"description": "Token endpoint. Full URL or path (path resolved against baseUrl)."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"key": "authorizationUrl",
|
|
189
|
+
"required": false,
|
|
190
|
+
"description": "Authorization endpoint. Full URL or path (path resolved against baseUrl). Required when grantType is authorization_code or omitted."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"key": "grantType",
|
|
194
|
+
"required": false,
|
|
195
|
+
"description": "OAuth 2.0 grant type. One of: client_credentials, authorization_code. Default: authorization_code."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "tenantId",
|
|
199
|
+
"required": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"key": "testEndpoint",
|
|
203
|
+
"required": false,
|
|
204
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path (path resolved against baseUrl). If omitted, baseUrl + /health is used."
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"security": [
|
|
208
|
+
{
|
|
209
|
+
"key": "clientId",
|
|
210
|
+
"required": true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"key": "clientSecret",
|
|
214
|
+
"required": true
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"apikey": {
|
|
219
|
+
"variables": [
|
|
220
|
+
{
|
|
221
|
+
"key": "baseUrl",
|
|
222
|
+
"required": true
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"key": "headerName",
|
|
226
|
+
"required": false
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"key": "prefix",
|
|
230
|
+
"required": false
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "testEndpoint",
|
|
234
|
+
"required": false,
|
|
235
|
+
"description": "Optional URL used when testing the credential (GET). Full URL (https://...) or path (e.g. /crm/v3/objects/contacts?limit=1); path is resolved against baseUrl. If omitted, baseUrl + /health is used."
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"security": [
|
|
239
|
+
{
|
|
240
|
+
"key": "apiKey",
|
|
241
|
+
"required": true
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"bearerToken": {
|
|
246
|
+
"variables": [
|
|
247
|
+
{
|
|
248
|
+
"key": "baseUrl",
|
|
249
|
+
"required": true
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"key": "headerName",
|
|
253
|
+
"required": false
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"key": "prefix",
|
|
257
|
+
"required": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"key": "testEndpoint",
|
|
261
|
+
"required": false,
|
|
262
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path; path is resolved against baseUrl. If omitted, baseUrl + /health is used."
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"security": [
|
|
266
|
+
{
|
|
267
|
+
"key": "token",
|
|
268
|
+
"required": true
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"basic": {
|
|
273
|
+
"variables": [
|
|
274
|
+
{
|
|
275
|
+
"key": "baseUrl",
|
|
276
|
+
"required": true
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"key": "testEndpoint",
|
|
280
|
+
"required": false,
|
|
281
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path (path resolved against baseUrl). If omitted, baseUrl + /health is used."
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"security": [
|
|
285
|
+
{
|
|
286
|
+
"key": "username",
|
|
287
|
+
"required": true
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"key": "password",
|
|
291
|
+
"required": true
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"queryParam": {
|
|
296
|
+
"variables": [
|
|
297
|
+
{
|
|
298
|
+
"key": "baseUrl",
|
|
299
|
+
"required": true
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"key": "paramName",
|
|
303
|
+
"required": true
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"key": "testEndpoint",
|
|
307
|
+
"required": false,
|
|
308
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path (path resolved against baseUrl). If omitted, baseUrl + /health is used."
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"security": [
|
|
312
|
+
{
|
|
313
|
+
"key": "paramValue",
|
|
314
|
+
"required": true
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
"oidc": {
|
|
319
|
+
"variables": [
|
|
320
|
+
{
|
|
321
|
+
"key": "openIdConfigUrl",
|
|
322
|
+
"required": true
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"key": "clientId",
|
|
326
|
+
"required": true
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"key": "expectedIssuer",
|
|
330
|
+
"required": false
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"key": "algorithms",
|
|
334
|
+
"required": false
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"key": "validateSignature",
|
|
338
|
+
"required": false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"key": "clockSkewSeconds",
|
|
342
|
+
"required": false
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"key": "testEndpoint",
|
|
346
|
+
"required": false,
|
|
347
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path. For OIDC, discovery URL is typically used if testEndpoint omitted."
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"security": []
|
|
351
|
+
},
|
|
352
|
+
"hmac": {
|
|
353
|
+
"variables": [
|
|
354
|
+
{
|
|
355
|
+
"key": "baseUrl",
|
|
356
|
+
"required": false
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"key": "algorithm",
|
|
360
|
+
"required": false
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"key": "signatureHeader",
|
|
364
|
+
"required": false
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"key": "timestampHeader",
|
|
368
|
+
"required": false
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"key": "signaturePrefix",
|
|
372
|
+
"required": false
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"key": "testEndpoint",
|
|
376
|
+
"required": false,
|
|
377
|
+
"description": "Optional URL used when testing the credential (GET). Full URL or path (path resolved against baseUrl when baseUrl present)."
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"security": [
|
|
381
|
+
{
|
|
382
|
+
"key": "signingSecret",
|
|
383
|
+
"required": true
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
"none": {
|
|
388
|
+
"variables": [],
|
|
389
|
+
"security": []
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"credentialTemplate": {
|
|
393
|
+
"type": "object",
|
|
394
|
+
"description": "Local credential template (method, variables, security with kv:// only). Materialized to credentials row on deploy.",
|
|
395
|
+
"required": [
|
|
396
|
+
"method",
|
|
397
|
+
"variables"
|
|
398
|
+
],
|
|
399
|
+
"properties": {
|
|
400
|
+
"credentialKey": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"description": "Stable reference key for the active credential. Default: <external-system.key>-cred."
|
|
403
|
+
},
|
|
404
|
+
"displayName": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"description": "Display name for the credential created from this template."
|
|
407
|
+
},
|
|
408
|
+
"method": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"enum": [
|
|
411
|
+
"oauth2",
|
|
412
|
+
"apikey",
|
|
413
|
+
"bearerToken",
|
|
414
|
+
"basic",
|
|
415
|
+
"aad",
|
|
416
|
+
"none",
|
|
417
|
+
"queryParam",
|
|
418
|
+
"oidc",
|
|
419
|
+
"hmac"
|
|
420
|
+
],
|
|
421
|
+
"description": "Authentication method."
|
|
422
|
+
},
|
|
423
|
+
"variables": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"description": "Non-secret config. See $defs.authenticationVariablesByMethod for per-method keys.",
|
|
426
|
+
"additionalProperties": {
|
|
427
|
+
"type": "string"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"security": {
|
|
431
|
+
"type": "object",
|
|
432
|
+
"description": "Secret-bearing keys only. Values must be kv:// references.",
|
|
433
|
+
"additionalProperties": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"pattern": "^kv://.+$"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"writeOnce": {
|
|
439
|
+
"type": "boolean",
|
|
440
|
+
"description": "Template is immutable after first deploy.",
|
|
441
|
+
"default": true
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"additionalProperties": false
|
|
445
|
+
},
|
|
446
|
+
"apiProviderReference": {
|
|
447
|
+
"type": "object",
|
|
448
|
+
"description": "Reference to a Miso API Provider for delegated authentication (no dataplane secrets).",
|
|
449
|
+
"required": [
|
|
450
|
+
"apiProviderKey"
|
|
451
|
+
],
|
|
452
|
+
"properties": {
|
|
453
|
+
"apiProviderKey": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"minLength": 1,
|
|
456
|
+
"description": "Stable key of the Miso API Provider configuration."
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"additionalProperties": false
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"type": "object",
|
|
463
|
+
"required": [
|
|
464
|
+
"key",
|
|
465
|
+
"displayName",
|
|
466
|
+
"description",
|
|
467
|
+
"type",
|
|
468
|
+
"authentication"
|
|
469
|
+
],
|
|
470
|
+
"properties": {
|
|
471
|
+
"key": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"description": "Unique external system identifier (cannot be changed after creation). Example: 'hubspot', 'salesforce', 'teams'.",
|
|
474
|
+
"pattern": "^[a-z0-9-]+$",
|
|
475
|
+
"minLength": 3,
|
|
476
|
+
"maxLength": 40
|
|
477
|
+
},
|
|
478
|
+
"displayName": {
|
|
479
|
+
"type": "string",
|
|
480
|
+
"description": "Human-readable name for the external system",
|
|
481
|
+
"minLength": 1,
|
|
482
|
+
"maxLength": 100
|
|
483
|
+
},
|
|
484
|
+
"description": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "Description of this external system integration",
|
|
487
|
+
"minLength": 1,
|
|
488
|
+
"maxLength": 500
|
|
489
|
+
},
|
|
490
|
+
"type": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"enum": [
|
|
493
|
+
"openapi",
|
|
494
|
+
"mcp",
|
|
495
|
+
"custom"
|
|
496
|
+
],
|
|
497
|
+
"description": "Integration type: openapi and mcp indicate how the system is wired at a high level; per-datasource vendor specifications and import provenance are authored on each ExternalDataSource (external-datasource.schema.json externalSpec), not duplicated as the full contract here."
|
|
498
|
+
},
|
|
499
|
+
"enabled": {
|
|
500
|
+
"type": "boolean",
|
|
501
|
+
"default": true
|
|
502
|
+
},
|
|
503
|
+
"credentialIdOrKey": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"description": "Credential identifier (ID or key) to attach to this system. Used by dataplane when creating/updating system from deploy config."
|
|
506
|
+
},
|
|
507
|
+
"internal": {
|
|
508
|
+
"type": "boolean",
|
|
509
|
+
"description": "When true, this integration is deployed on dataplane startup (internal integration). When false or absent, deployed via pipeline only.",
|
|
510
|
+
"default": false
|
|
511
|
+
},
|
|
512
|
+
"authentication": {
|
|
513
|
+
"description": "Nested authentication: authType credential (local template), apiProvider (Miso delegated), or none.",
|
|
514
|
+
"oneOf": [
|
|
515
|
+
{
|
|
516
|
+
"type": "object",
|
|
517
|
+
"required": [
|
|
518
|
+
"authType",
|
|
519
|
+
"credential"
|
|
520
|
+
],
|
|
521
|
+
"properties": {
|
|
522
|
+
"authType": {
|
|
523
|
+
"const": "credential"
|
|
524
|
+
},
|
|
525
|
+
"credential": {
|
|
526
|
+
"$ref": "#/$defs/credentialTemplate"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"additionalProperties": false
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "object",
|
|
533
|
+
"required": [
|
|
534
|
+
"authType",
|
|
535
|
+
"apiProvider"
|
|
536
|
+
],
|
|
537
|
+
"properties": {
|
|
538
|
+
"authType": {
|
|
539
|
+
"const": "apiProvider"
|
|
540
|
+
},
|
|
541
|
+
"apiProvider": {
|
|
542
|
+
"$ref": "#/$defs/apiProviderReference"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"additionalProperties": false
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "object",
|
|
549
|
+
"required": [
|
|
550
|
+
"authType"
|
|
551
|
+
],
|
|
552
|
+
"properties": {
|
|
553
|
+
"authType": {
|
|
554
|
+
"const": "none"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"additionalProperties": false
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"openapi": {
|
|
562
|
+
"type": "object",
|
|
563
|
+
"description": "System-level connectivity and bootstrap hints for OpenAPI-backed systems (e.g. default specUrl for discovery, documentKey alignment with shared registry entries). Not the authoritative per-datasource vendor OpenAPI contract; that is declared on the datasource via externalSpec and validated against imported material.",
|
|
564
|
+
"properties": {
|
|
565
|
+
"documentKey": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"description": "Optional registry-oriented key associated with this system's default OpenAPI document (wizard/bootstrap)."
|
|
568
|
+
},
|
|
569
|
+
"specUrl": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"description": "Optional absolute URL to a representative OpenAPI specification for onboarding or tooling (not a substitute for datasource externalSpec).",
|
|
572
|
+
"pattern": "^(http|https)://.*$"
|
|
573
|
+
},
|
|
574
|
+
"autoDiscoverEntities": {
|
|
575
|
+
"type": "boolean",
|
|
576
|
+
"description": "Optional wizard or tooling hint to discover entities from the system default spec. Not part of the per-datasource vendor contract (see external-datasource externalSpec)."
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"additionalProperties": false
|
|
580
|
+
},
|
|
581
|
+
"mcp": {
|
|
582
|
+
"type": "object",
|
|
583
|
+
"description": "System-level MCP connectivity hints (server URL, tool prefix). Not the datasource-level MCP security or operation contract; those live on ExternalDataSource configuration.",
|
|
584
|
+
"properties": {
|
|
585
|
+
"serverUrl": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"description": "MCP server URL",
|
|
588
|
+
"pattern": "^(http|https)://.*$"
|
|
589
|
+
},
|
|
590
|
+
"toolPrefix": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"description": "Prefix for MCP tool names",
|
|
593
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"additionalProperties": false
|
|
597
|
+
},
|
|
598
|
+
"dataSources": {
|
|
599
|
+
"type": "array",
|
|
600
|
+
"description": "List of data source keys belonging to this external system. Each must match external-datasource.schema.json.",
|
|
601
|
+
"items": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"pattern": "^[a-z0-9-]+$"
|
|
604
|
+
},
|
|
605
|
+
"uniqueItems": true
|
|
606
|
+
},
|
|
607
|
+
"configuration": {
|
|
608
|
+
"type": "array",
|
|
609
|
+
"description": "External system configuration variables (same pattern as application-schema).",
|
|
610
|
+
"items": {
|
|
611
|
+
"type": "object",
|
|
612
|
+
"required": [
|
|
613
|
+
"name",
|
|
614
|
+
"value",
|
|
615
|
+
"location",
|
|
616
|
+
"required"
|
|
617
|
+
],
|
|
618
|
+
"properties": {
|
|
619
|
+
"name": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"pattern": "^[A-Z_][A-Z0-9_]*$"
|
|
622
|
+
},
|
|
623
|
+
"value": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"description": "Literal value or parameter reference ({{parameter}})"
|
|
626
|
+
},
|
|
627
|
+
"location": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"enum": [
|
|
630
|
+
"variable",
|
|
631
|
+
"keyvault"
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
"required": {
|
|
635
|
+
"type": "boolean"
|
|
636
|
+
},
|
|
637
|
+
"portalInput": {
|
|
638
|
+
"type": "object",
|
|
639
|
+
"required": [
|
|
640
|
+
"field",
|
|
641
|
+
"label"
|
|
642
|
+
],
|
|
643
|
+
"properties": {
|
|
644
|
+
"field": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"enum": [
|
|
647
|
+
"password",
|
|
648
|
+
"text",
|
|
649
|
+
"textarea",
|
|
650
|
+
"select",
|
|
651
|
+
"json"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"label": {
|
|
655
|
+
"type": "string"
|
|
656
|
+
},
|
|
657
|
+
"placeholder": {
|
|
658
|
+
"type": "string"
|
|
659
|
+
},
|
|
660
|
+
"options": {
|
|
661
|
+
"type": "array",
|
|
662
|
+
"items": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"masked": {
|
|
667
|
+
"type": "boolean"
|
|
668
|
+
},
|
|
669
|
+
"validation": {
|
|
670
|
+
"type": "object",
|
|
671
|
+
"properties": {
|
|
672
|
+
"minLength": {
|
|
673
|
+
"type": "integer"
|
|
674
|
+
},
|
|
675
|
+
"maxLength": {
|
|
676
|
+
"type": "integer"
|
|
677
|
+
},
|
|
678
|
+
"pattern": {
|
|
679
|
+
"type": "string"
|
|
680
|
+
},
|
|
681
|
+
"required": {
|
|
682
|
+
"type": "boolean"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"additionalProperties": false
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"additionalProperties": false
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"additionalProperties": false
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"tags": {
|
|
695
|
+
"type": "array",
|
|
696
|
+
"description": "Optional tags for search / filtering",
|
|
697
|
+
"items": {
|
|
698
|
+
"type": "string"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"roles": {
|
|
702
|
+
"type": "array",
|
|
703
|
+
"description": "External system roles for Azure AD group mapping",
|
|
704
|
+
"items": {
|
|
705
|
+
"type": "object",
|
|
706
|
+
"required": [
|
|
707
|
+
"name",
|
|
708
|
+
"value",
|
|
709
|
+
"description"
|
|
710
|
+
],
|
|
711
|
+
"properties": {
|
|
712
|
+
"name": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"description": "Human-readable role name",
|
|
715
|
+
"minLength": 1,
|
|
716
|
+
"maxLength": 100
|
|
717
|
+
},
|
|
718
|
+
"value": {
|
|
719
|
+
"type": "string",
|
|
720
|
+
"description": "Role identifier (used in JWT and ACL)",
|
|
721
|
+
"pattern": "^[a-z0-9-]+$"
|
|
722
|
+
},
|
|
723
|
+
"description": {
|
|
724
|
+
"type": "string",
|
|
725
|
+
"description": "Role description",
|
|
726
|
+
"minLength": 1,
|
|
727
|
+
"maxLength": 500
|
|
728
|
+
},
|
|
729
|
+
"groups": {
|
|
730
|
+
"type": "array",
|
|
731
|
+
"description": "Azure AD groups mapped to this role",
|
|
732
|
+
"items": {
|
|
733
|
+
"type": "string",
|
|
734
|
+
"minLength": 1,
|
|
735
|
+
"maxLength": 100
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"additionalProperties": false
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"permissions": {
|
|
743
|
+
"type": "array",
|
|
744
|
+
"description": "External system permissions with role mappings for access control",
|
|
745
|
+
"items": {
|
|
746
|
+
"type": "object",
|
|
747
|
+
"required": [
|
|
748
|
+
"name",
|
|
749
|
+
"roles",
|
|
750
|
+
"description"
|
|
751
|
+
],
|
|
752
|
+
"properties": {
|
|
753
|
+
"name": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"description": "Permission identifier (e.g., 'documentstore:read', 'flowise:dev:access')",
|
|
756
|
+
"pattern": "^[a-z0-9-:]+$",
|
|
757
|
+
"minLength": 1,
|
|
758
|
+
"maxLength": 100
|
|
759
|
+
},
|
|
760
|
+
"roles": {
|
|
761
|
+
"type": "array",
|
|
762
|
+
"description": "Roles that have this permission",
|
|
763
|
+
"items": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"pattern": "^[a-z0-9-]+$",
|
|
766
|
+
"minLength": 1,
|
|
767
|
+
"maxLength": 50
|
|
768
|
+
},
|
|
769
|
+
"minItems": 1
|
|
770
|
+
},
|
|
771
|
+
"description": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Permission description",
|
|
774
|
+
"minLength": 1,
|
|
775
|
+
"maxLength": 500
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"additionalProperties": false
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"endpoints": {
|
|
782
|
+
"type": "array",
|
|
783
|
+
"description": "API endpoint configurations for this external system. Used for dynamic endpoint registration at application startup.",
|
|
784
|
+
"items": {
|
|
785
|
+
"type": "object",
|
|
786
|
+
"required": [
|
|
787
|
+
"type",
|
|
788
|
+
"path"
|
|
789
|
+
],
|
|
790
|
+
"properties": {
|
|
791
|
+
"type": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"description": "Endpoint type identifier (e.g., 'commands', 'events', 'notifications')",
|
|
794
|
+
"pattern": "^[a-z0-9-]+$"
|
|
795
|
+
},
|
|
796
|
+
"path": {
|
|
797
|
+
"type": "string",
|
|
798
|
+
"description": "URL path for this endpoint (e.g., '/commands', '/events')",
|
|
799
|
+
"pattern": "^/[a-z0-9/-]*$"
|
|
800
|
+
},
|
|
801
|
+
"description": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"description": "Human-readable description of the endpoint"
|
|
804
|
+
},
|
|
805
|
+
"active": {
|
|
806
|
+
"type": "boolean",
|
|
807
|
+
"description": "Whether this endpoint should be registered (defaults to true)",
|
|
808
|
+
"default": true
|
|
809
|
+
},
|
|
810
|
+
"router": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "Custom router module path override (defaults to auto-discovery based on naming convention)"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"additionalProperties": false
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"endpointsActive": {
|
|
819
|
+
"type": "boolean",
|
|
820
|
+
"description": "Master switch for all endpoints in this system. If false, no endpoints are registered regardless of individual endpoint active flags.",
|
|
821
|
+
"default": true
|
|
822
|
+
},
|
|
823
|
+
"generateMcpContract": {
|
|
824
|
+
"type": "boolean",
|
|
825
|
+
"description": "Whether to generate MCP contract on publish. Config only (no query parameter); default true when absent.",
|
|
826
|
+
"default": true
|
|
827
|
+
},
|
|
828
|
+
"generateOpenApiContract": {
|
|
829
|
+
"type": "boolean",
|
|
830
|
+
"description": "Reserved: whether to generate or expose OpenAPI contract on publish. Not yet implemented.",
|
|
831
|
+
"default": true
|
|
832
|
+
},
|
|
833
|
+
"triggerPathsHash": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"description": "SHA256 hash of triggerPaths payload (64-char hex). Used to detect structural changes. Optional; Dataplane computes when absent.",
|
|
836
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
837
|
+
},
|
|
838
|
+
"identityPropagation": {
|
|
839
|
+
"type": "object",
|
|
840
|
+
"description": "Declares supported identity propagation modes and defaults for outbound operations.",
|
|
841
|
+
"required": [
|
|
842
|
+
"modes",
|
|
843
|
+
"default"
|
|
844
|
+
],
|
|
845
|
+
"properties": {
|
|
846
|
+
"modes": {
|
|
847
|
+
"type": "array",
|
|
848
|
+
"items": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"enum": [
|
|
851
|
+
"impersonation",
|
|
852
|
+
"attribution",
|
|
853
|
+
"system"
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"uniqueItems": true,
|
|
857
|
+
"minItems": 1
|
|
858
|
+
},
|
|
859
|
+
"default": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"enum": [
|
|
862
|
+
"impersonation",
|
|
863
|
+
"attribution",
|
|
864
|
+
"system"
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
"impersonation": {
|
|
868
|
+
"type": "object",
|
|
869
|
+
"properties": {
|
|
870
|
+
"tokenBroker": {
|
|
871
|
+
"type": "object",
|
|
872
|
+
"properties": {
|
|
873
|
+
"mintEndpoint": {
|
|
874
|
+
"type": "string",
|
|
875
|
+
"default": "/api/v1/auth/token/mint",
|
|
876
|
+
"description": "Controller endpoint for delegated token minting."
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"additionalProperties": false
|
|
880
|
+
},
|
|
881
|
+
"scopes": {
|
|
882
|
+
"type": "array",
|
|
883
|
+
"items": {
|
|
884
|
+
"type": "string"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"requiredUserConsent": {
|
|
888
|
+
"type": "boolean",
|
|
889
|
+
"default": false
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"additionalProperties": false
|
|
893
|
+
},
|
|
894
|
+
"attribution": {
|
|
895
|
+
"type": "object",
|
|
896
|
+
"properties": {
|
|
897
|
+
"actorFieldMappings": {
|
|
898
|
+
"type": "object",
|
|
899
|
+
"description": "Map target fields to actor templates (supports {{actor.*}} and {{request.*}}).",
|
|
900
|
+
"additionalProperties": {
|
|
901
|
+
"type": [
|
|
902
|
+
"string",
|
|
903
|
+
"number",
|
|
904
|
+
"boolean"
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"commentTemplate": {
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "Optional comment template for attribution logs (supports {{actor.*}})."
|
|
911
|
+
},
|
|
912
|
+
"injectionLocations": {
|
|
913
|
+
"type": "array",
|
|
914
|
+
"items": {
|
|
915
|
+
"type": "string",
|
|
916
|
+
"enum": [
|
|
917
|
+
"body",
|
|
918
|
+
"headers",
|
|
919
|
+
"query",
|
|
920
|
+
"comment"
|
|
921
|
+
]
|
|
922
|
+
},
|
|
923
|
+
"default": [
|
|
924
|
+
"body"
|
|
925
|
+
],
|
|
926
|
+
"uniqueItems": true
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
"additionalProperties": false
|
|
930
|
+
},
|
|
931
|
+
"system": {
|
|
932
|
+
"type": "object",
|
|
933
|
+
"properties": {
|
|
934
|
+
"allowWrites": {
|
|
935
|
+
"type": "boolean",
|
|
936
|
+
"default": true
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"additionalProperties": false
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"additionalProperties": false
|
|
943
|
+
},
|
|
944
|
+
"rateLimit": {
|
|
945
|
+
"type": "object",
|
|
946
|
+
"description": "Outbound rate limit for requests from the dataplane to this external system. When set, the dataplane enforces the limit per base URL and handles HTTP 429 (wait and retry). When absent, global env defaults apply (CIP_EXECUTION_RATE_LIMIT_REQUESTS_PER_SECOND, CIP_EXECUTION_RATE_LIMIT_BURST_SIZE). Supports window-based (e.g. HubSpot 100/10s) or token-bucket style (requestsPerSecond + burstSize).",
|
|
947
|
+
"properties": {
|
|
948
|
+
"requestsPerWindow": {
|
|
949
|
+
"type": "integer",
|
|
950
|
+
"minimum": 1,
|
|
951
|
+
"description": "Maximum requests allowed in the time window (window-based limit). Example: 100 for HubSpot's 100 requests per 10 seconds."
|
|
952
|
+
},
|
|
953
|
+
"windowSeconds": {
|
|
954
|
+
"type": "integer",
|
|
955
|
+
"minimum": 1,
|
|
956
|
+
"description": "Time window in seconds. Used with requestsPerWindow. Example: 10 for HubSpot (100 requests per 10 seconds)."
|
|
957
|
+
},
|
|
958
|
+
"requestsPerSecond": {
|
|
959
|
+
"type": "number",
|
|
960
|
+
"minimum": 0.1,
|
|
961
|
+
"description": "Sustained request rate (token-bucket style). When used with burstSize, allows short bursts up to burstSize while refilling at this rate."
|
|
962
|
+
},
|
|
963
|
+
"burstSize": {
|
|
964
|
+
"type": "integer",
|
|
965
|
+
"minimum": 1,
|
|
966
|
+
"description": "Maximum burst size in tokens (token-bucket style). Used with requestsPerSecond."
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"additionalProperties": false,
|
|
970
|
+
"oneOf": [
|
|
971
|
+
{
|
|
972
|
+
"required": [
|
|
973
|
+
"requestsPerWindow",
|
|
974
|
+
"windowSeconds"
|
|
975
|
+
]
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"required": [
|
|
979
|
+
"requestsPerSecond",
|
|
980
|
+
"burstSize"
|
|
981
|
+
]
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"examples": [
|
|
985
|
+
{
|
|
986
|
+
"requestsPerWindow": 100,
|
|
987
|
+
"windowSeconds": 10
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"requestsPerSecond": 10,
|
|
991
|
+
"burstSize": 100
|
|
992
|
+
}
|
|
993
|
+
]
|
|
994
|
+
},
|
|
995
|
+
"performance": {
|
|
996
|
+
"type": "object",
|
|
997
|
+
"description": "Performance defaults for runtime paths in this external system.",
|
|
998
|
+
"properties": {
|
|
999
|
+
"cacheDefaults": {
|
|
1000
|
+
"type": "object",
|
|
1001
|
+
"description": "Default cache policy inherited by datasources unless overridden under sync.cache.",
|
|
1002
|
+
"properties": {
|
|
1003
|
+
"enabled": {
|
|
1004
|
+
"type": "boolean",
|
|
1005
|
+
"default": true
|
|
1006
|
+
},
|
|
1007
|
+
"ttlSeconds": {
|
|
1008
|
+
"type": "integer",
|
|
1009
|
+
"minimum": 1,
|
|
1010
|
+
"maximum": 604800,
|
|
1011
|
+
"default": 1800
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"additionalProperties": false
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"additionalProperties": false
|
|
1018
|
+
},
|
|
1019
|
+
"certification": {
|
|
1020
|
+
"type": "object",
|
|
1021
|
+
"description": "Public certification settings for external system version verification.",
|
|
1022
|
+
"required": [
|
|
1023
|
+
"enabled",
|
|
1024
|
+
"publicKey",
|
|
1025
|
+
"algorithm",
|
|
1026
|
+
"issuer",
|
|
1027
|
+
"version"
|
|
1028
|
+
],
|
|
1029
|
+
"properties": {
|
|
1030
|
+
"enabled": {
|
|
1031
|
+
"type": "boolean",
|
|
1032
|
+
"description": "Enable public certification metadata for this external system."
|
|
1033
|
+
},
|
|
1034
|
+
"publicKey": {
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"minLength": 1,
|
|
1037
|
+
"description": "Public verification material (SPKI PEM for RS256). Private keys must never appear in config."
|
|
1038
|
+
},
|
|
1039
|
+
"publicKeyFingerprint": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"pattern": "^sha256:[0-9a-f]{64}$",
|
|
1042
|
+
"description": "SHA-256 fingerprint of the SubjectPublicKeyInfo DER (same convention as integration certificate publicKeyFingerprint); must match embedded publicKey."
|
|
1043
|
+
},
|
|
1044
|
+
"contractHash": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"pattern": "^sha256:[0-9a-f]{64}$",
|
|
1047
|
+
"description": "Optional copy of the active integration certificate contractHash (certification contract material digest) for drift checks; should match the dataplane active trusted certificate when present."
|
|
1048
|
+
},
|
|
1049
|
+
"algorithm": {
|
|
1050
|
+
"type": "string",
|
|
1051
|
+
"enum": [
|
|
1052
|
+
"RS256"
|
|
1053
|
+
],
|
|
1054
|
+
"description": "Signing algorithm for integration certificate verification (RS256 only)."
|
|
1055
|
+
},
|
|
1056
|
+
"issuer": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"minLength": 1,
|
|
1059
|
+
"description": "Certificate issuer identifier."
|
|
1060
|
+
},
|
|
1061
|
+
"version": {
|
|
1062
|
+
"type": "string",
|
|
1063
|
+
"minLength": 1,
|
|
1064
|
+
"description": "Certification version identifier; must align with external system versioning."
|
|
1065
|
+
},
|
|
1066
|
+
"status": {
|
|
1067
|
+
"type": "string",
|
|
1068
|
+
"enum": [
|
|
1069
|
+
"passed",
|
|
1070
|
+
"not_passed",
|
|
1071
|
+
"pending"
|
|
1072
|
+
],
|
|
1073
|
+
"description": "Outcome of certification evaluation for this block (aligns with DatasourceTestRun certificate.status)."
|
|
1074
|
+
},
|
|
1075
|
+
"level": {
|
|
1076
|
+
"type": "string",
|
|
1077
|
+
"enum": [
|
|
1078
|
+
"BRONZE",
|
|
1079
|
+
"SILVER",
|
|
1080
|
+
"GOLD",
|
|
1081
|
+
"PLATINUM"
|
|
1082
|
+
],
|
|
1083
|
+
"description": "Achieved certification tier (aligns with integration certificate certificationLevel)."
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"additionalProperties": false
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"additionalProperties": false
|
|
1090
|
+
}
|