@xemahq/contracts 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.source-stamp.json +2 -2
- package/dist/address/lib/resource-instance-address.d.ts.map +1 -1
- package/dist/address/lib/resource-instance-address.js.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent-ref-resolution.js.map +1 -1
- package/dist/agent-composition/lib/agent.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent.js.map +1 -1
- package/dist/agent-session/lib/lifecycle.d.ts +1 -1
- package/dist/biome/lib/biome-component.d.ts +24 -0
- package/dist/biome/lib/biome-component.d.ts.map +1 -1
- package/dist/biome/lib/biome-component.js +69 -14
- package/dist/biome/lib/biome-component.js.map +1 -1
- package/dist/biome/lib/biome-kind.d.ts.map +1 -1
- package/dist/biome/lib/biome-kind.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +94 -0
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +26 -1
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/biome/xema-biome.schema.json +214 -2
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts +18 -0
- package/dist/biome-catalog/lib/biome-permission-digest.d.ts.map +1 -1
- package/dist/biome-catalog/lib/biome-permission-digest.js +14 -0
- package/dist/biome-catalog/lib/biome-permission-digest.js.map +1 -1
- package/dist/biome-dependency/lib/peer-seam-table.d.ts.map +1 -1
- package/dist/biome-dependency/lib/peer-seam-table.js +18 -0
- package/dist/biome-dependency/lib/peer-seam-table.js.map +1 -1
- package/dist/caller-context/index.d.ts +2 -0
- package/dist/caller-context/index.d.ts.map +1 -1
- package/dist/caller-context/index.js +2 -0
- package/dist/caller-context/index.js.map +1 -1
- package/dist/caller-context/lib/acting-chain.d.ts +20 -0
- package/dist/caller-context/lib/acting-chain.d.ts.map +1 -0
- package/dist/caller-context/lib/acting-chain.js +46 -0
- package/dist/caller-context/lib/acting-chain.js.map +1 -0
- package/dist/caller-context/lib/org-authority.d.ts.map +1 -1
- package/dist/caller-context/lib/org-authority.js.map +1 -1
- package/dist/caller-context/lib/platform-sweep.d.ts +5 -1
- package/dist/caller-context/lib/platform-sweep.d.ts.map +1 -1
- package/dist/caller-context/lib/platform-sweep.js +10 -0
- package/dist/caller-context/lib/platform-sweep.js.map +1 -1
- package/dist/caller-context/lib/request-context.d.ts +2 -0
- package/dist/caller-context/lib/request-context.d.ts.map +1 -1
- package/dist/caller-context/lib/request-context.js.map +1 -1
- package/dist/caller-context/lib/workflow-step-credential.d.ts +120 -0
- package/dist/caller-context/lib/workflow-step-credential.d.ts.map +1 -0
- package/dist/caller-context/lib/workflow-step-credential.js +169 -0
- package/dist/caller-context/lib/workflow-step-credential.js.map +1 -0
- package/dist/capability/index.d.ts +3 -3
- package/dist/capability/index.d.ts.map +1 -1
- package/dist/capability/index.js +3 -3
- package/dist/capability/index.js.map +1 -1
- package/dist/capability/lib/capability-aperture.js +1 -1
- package/dist/capability/lib/capability-aperture.js.map +1 -1
- package/dist/capability/lib/capability-caller-constraint.d.ts +23 -0
- package/dist/capability/lib/capability-caller-constraint.d.ts.map +1 -0
- package/dist/capability/lib/capability-caller-constraint.js +45 -0
- package/dist/capability/lib/capability-caller-constraint.js.map +1 -0
- package/dist/capability/lib/capability-contribution.d.ts +3 -0
- package/dist/capability/lib/capability-contribution.d.ts.map +1 -1
- package/dist/capability/lib/capability-contribution.js +11 -0
- package/dist/capability/lib/capability-contribution.js.map +1 -1
- package/dist/capability/lib/capability-ref-error.d.ts +12 -0
- package/dist/capability/lib/capability-ref-error.d.ts.map +1 -0
- package/dist/capability/lib/capability-ref-error.js +18 -0
- package/dist/capability/lib/capability-ref-error.js.map +1 -0
- package/dist/capability/lib/capability-ref.js +7 -7
- package/dist/capability/lib/capability-ref.js.map +1 -1
- package/dist/capability/lib/connector-capability-ref.js +4 -4
- package/dist/capability/lib/connector-capability-ref.js.map +1 -1
- package/dist/capability-domain/index.d.ts +2 -0
- package/dist/capability-domain/index.d.ts.map +1 -0
- package/dist/capability-domain/index.js +18 -0
- package/dist/capability-domain/index.js.map +1 -0
- package/dist/capability-domain/lib/capability-domain.d.ts.map +1 -0
- package/dist/capability-domain/lib/capability-domain.js.map +1 -0
- package/dist/capability-error/index.d.ts +3 -0
- package/dist/capability-error/index.d.ts.map +1 -0
- package/dist/capability-error/index.js +19 -0
- package/dist/capability-error/index.js.map +1 -0
- package/dist/capability-error/lib/capability-invocation-descriptor.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.js +2 -2
- package/dist/capability-error/lib/capability-invocation-descriptor.js.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.d.ts +3 -7
- package/dist/capability-error/lib/errors.d.ts.map +1 -0
- package/dist/{capability → capability-error}/lib/errors.js +4 -12
- package/dist/capability-error/lib/errors.js.map +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts +1 -0
- package/dist/capability-projection/lib/projected-capability.d.ts.map +1 -1
- package/dist/conformance/customer-edition-definition.vectors.json +987 -0
- package/dist/conformance/edition-source-pins.vectors.json +298 -0
- package/dist/conformance/optional-operation-admission.vectors.json +44 -0
- package/dist/connector/index.d.ts +2 -0
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +2 -0
- package/dist/connector/index.js.map +1 -1
- package/dist/connector/lib/connector-adapter-contribution.d.ts +10 -3
- package/dist/connector/lib/connector-adapter-contribution.d.ts.map +1 -1
- package/dist/connector/lib/connector-adapter-contribution.js +78 -21
- package/dist/connector/lib/connector-adapter-contribution.js.map +1 -1
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts +19 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js +50 -0
- package/dist/connector/lib/connector-endpoint-source-declaration.js.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts +5 -0
- package/dist/connector/lib/connector-endpoint-source.d.ts.map +1 -0
- package/dist/connector/lib/connector-endpoint-source.js +9 -0
- package/dist/connector/lib/connector-endpoint-source.js.map +1 -0
- package/dist/connector/lib/provider-descriptor.d.ts.map +1 -1
- package/dist/connector/lib/provider-descriptor.js.map +1 -1
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind.js.map +1 -1
- package/dist/contribution/lib/sync.d.ts +6 -2
- package/dist/contribution/lib/sync.d.ts.map +1 -1
- package/dist/contribution/lib/sync.js +26 -6
- package/dist/contribution/lib/sync.js.map +1 -1
- package/dist/deployment/index.d.ts +6 -0
- package/dist/deployment/index.d.ts.map +1 -1
- package/dist/deployment/index.js +6 -0
- package/dist/deployment/index.js.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.d.ts +71 -9
- package/dist/deployment/lib/artifact-signer-trust.d.ts.map +1 -1
- package/dist/deployment/lib/artifact-signer-trust.js +228 -16
- package/dist/deployment/lib/artifact-signer-trust.js.map +1 -1
- package/dist/deployment/lib/code-unit-order.d.ts +2 -0
- package/dist/deployment/lib/code-unit-order.d.ts.map +1 -0
- package/dist/deployment/lib/code-unit-order.js +7 -0
- package/dist/deployment/lib/code-unit-order.js.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts +46 -0
- package/dist/deployment/lib/event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/event-subscription-grant.js +52 -0
- package/dist/deployment/lib/event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts +60 -0
- package/dist/deployment/lib/installed-event-subscription-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js +107 -0
- package/dist/deployment/lib/installed-event-subscription-grant.js.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts +80 -0
- package/dist/deployment/lib/installed-workload-grant.d.ts.map +1 -0
- package/dist/deployment/lib/installed-workload-grant.js +119 -0
- package/dist/deployment/lib/installed-workload-grant.js.map +1 -0
- package/dist/deployment/lib/operation-grant.d.ts +19 -0
- package/dist/deployment/lib/operation-grant.d.ts.map +1 -1
- package/dist/deployment/lib/operation-grant.js +18 -9
- package/dist/deployment/lib/operation-grant.js.map +1 -1
- package/dist/deployment/lib/org-context-relay.d.ts +10 -0
- package/dist/deployment/lib/org-context-relay.d.ts.map +1 -0
- package/dist/deployment/lib/org-context-relay.js +22 -0
- package/dist/deployment/lib/org-context-relay.js.map +1 -0
- package/dist/deployment/lib/organization-sweep-grant.d.ts.map +1 -1
- package/dist/deployment/lib/organization-sweep-grant.js +4 -6
- package/dist/deployment/lib/organization-sweep-grant.js.map +1 -1
- package/dist/deployment/lib/platform-sweep.d.ts +3 -1
- package/dist/deployment/lib/platform-sweep.d.ts.map +1 -1
- package/dist/deployment/lib/platform-sweep.js +17 -1
- package/dist/deployment/lib/platform-sweep.js.map +1 -1
- package/dist/deployment/lib/resolved-deployment.d.ts +121 -2
- package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
- package/dist/deployment/lib/resolved-deployment.js +140 -13
- package/dist/deployment/lib/resolved-deployment.js.map +1 -1
- package/dist/deployment/lib/store-event-ceiling.d.ts +43 -0
- package/dist/deployment/lib/store-event-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-event-ceiling.js +80 -0
- package/dist/deployment/lib/store-event-ceiling.js.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts +59 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.d.ts.map +1 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js +102 -0
- package/dist/deployment/lib/store-workload-grant-ceiling.js.map +1 -0
- package/dist/distribution/index.d.ts +9 -0
- package/dist/distribution/index.d.ts.map +1 -1
- package/dist/distribution/index.js +18 -6
- package/dist/distribution/index.js.map +1 -1
- package/dist/distribution/lib/customer-edition-definition.d.ts +8 -1
- package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -1
- package/dist/distribution/lib/customer-edition-definition.js +51 -2
- package/dist/distribution/lib/customer-edition-definition.js.map +1 -1
- package/dist/distribution/lib/distribution-lock.d.ts +10 -1
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +38 -11
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- package/dist/distribution/lib/distribution.d.ts +16 -0
- package/dist/distribution/lib/distribution.d.ts.map +1 -1
- package/dist/distribution/lib/distribution.js +39 -1
- package/dist/distribution/lib/distribution.js.map +1 -1
- package/dist/distribution/lib/event-subscription-admission.d.ts +22 -0
- package/dist/distribution/lib/event-subscription-admission.d.ts.map +1 -0
- package/dist/distribution/lib/event-subscription-admission.js +72 -0
- package/dist/distribution/lib/event-subscription-admission.js.map +1 -0
- package/dist/distribution/lib/image-lock.d.ts.map +1 -1
- package/dist/distribution/lib/image-lock.js +2 -10
- package/dist/distribution/lib/image-lock.js.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.d.ts +114 -10
- package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
- package/dist/distribution/lib/image-producer-evidence.js +78 -31
- package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts +21 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js +54 -0
- package/dist/distribution/lib/installed-operation-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -1
- package/dist/distribution/lib/kernel-contract-source-paths.js +24 -3
- package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.d.ts +29 -2
- package/dist/distribution/lib/operation-grant-admission.d.ts.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.js +97 -19
- package/dist/distribution/lib/operation-grant-admission.js.map +1 -1
- package/dist/distribution/lib/org-context-relay-admission.d.ts +19 -0
- package/dist/distribution/lib/org-context-relay-admission.d.ts.map +1 -0
- package/dist/distribution/lib/org-context-relay-admission.js +50 -0
- package/dist/distribution/lib/org-context-relay-admission.js.map +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts.map +1 -1
- package/dist/distribution/lib/organization-sweep-admission.js +4 -0
- package/dist/distribution/lib/organization-sweep-admission.js.map +1 -1
- package/dist/distribution/lib/package-image-lock.d.ts +99 -0
- package/dist/distribution/lib/package-image-lock.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-lock.js +167 -0
- package/dist/distribution/lib/package-image-lock.js.map +1 -0
- package/dist/distribution/lib/package-image-trust.d.ts +36 -0
- package/dist/distribution/lib/package-image-trust.d.ts.map +1 -0
- package/dist/distribution/lib/package-image-trust.js +112 -0
- package/dist/distribution/lib/package-image-trust.js.map +1 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/resolve-unsplit-deployment.js +31 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -1
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts +17 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js +40 -0
- package/dist/distribution/lib/store-workload-ceiling-admission.js.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts +6 -0
- package/dist/distribution/lib/store-workload-ceiling.d.ts.map +1 -0
- package/dist/distribution/lib/store-workload-ceiling.js +13 -0
- package/dist/distribution/lib/store-workload-ceiling.js.map +1 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts +12 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.js +148 -4
- package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
- package/dist/distribution/server/index.d.ts +8 -0
- package/dist/distribution/server/index.d.ts.map +1 -1
- package/dist/distribution/server/index.js +10 -0
- package/dist/distribution/server/index.js.map +1 -1
- package/dist/edition-protocol/edition-contract.schema.json +1 -1
- package/dist/edition-protocol/edition-protocol.json +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts +1 -1
- package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -1
- package/dist/edition-protocol/lib/edition-protocol.js +3 -2
- package/dist/edition-protocol/lib/edition-protocol.js.map +1 -1
- package/dist/event-subscription/index.d.ts +4 -0
- package/dist/event-subscription/index.d.ts.map +1 -0
- package/dist/event-subscription/index.js +20 -0
- package/dist/event-subscription/index.js.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts +61 -0
- package/dist/event-subscription/lib/event-subscription-clause.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-subscription-clause.js +102 -0
- package/dist/event-subscription/lib/event-subscription-clause.js.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts +12 -0
- package/dist/event-subscription/lib/event-type-pattern.d.ts.map +1 -0
- package/dist/event-subscription/lib/event-type-pattern.js +47 -0
- package/dist/event-subscription/lib/event-type-pattern.js.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts +10 -0
- package/dist/event-subscription/lib/visibility-tier.d.ts.map +1 -0
- package/dist/event-subscription/lib/visibility-tier.js +22 -0
- package/dist/event-subscription/lib/visibility-tier.js.map +1 -0
- package/dist/execution-environment/lib/execution-environment.d.ts +4 -2
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -1
- package/dist/execution-environment/lib/execution-environment.js +5 -6
- package/dist/execution-environment/lib/execution-environment.js.map +1 -1
- package/dist/http/lib/problem-details.d.ts.map +1 -1
- package/dist/http/lib/problem-details.js.map +1 -1
- package/dist/http/lib/xema-error.d.ts.map +1 -1
- package/dist/http/lib/xema-error.js.map +1 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +21 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +76 -2
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -1
- package/dist/resource/lib/resource-kind.d.ts +7 -1
- package/dist/resource/lib/resource-kind.d.ts.map +1 -1
- package/dist/resource/lib/resource-kind.js +6 -0
- package/dist/resource/lib/resource-kind.js.map +1 -1
- package/dist/resource-accounting/index.d.ts +0 -1
- package/dist/resource-accounting/index.d.ts.map +1 -1
- package/dist/resource-accounting/index.js +0 -1
- package/dist/resource-accounting/index.js.map +1 -1
- package/dist/resource-accounting/lib/producer.d.ts +0 -2
- package/dist/resource-accounting/lib/producer.d.ts.map +1 -1
- package/dist/resource-accounting/lib/producer.js +0 -1
- package/dist/resource-accounting/lib/producer.js.map +1 -1
- package/dist/revision-target/lib/revision-target.d.ts +10 -4
- package/dist/revision-target/lib/revision-target.d.ts.map +1 -1
- package/dist/revision-target/lib/revision-target.js +26 -5
- package/dist/revision-target/lib/revision-target.js.map +1 -1
- package/dist/setting/index.d.ts +1 -0
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/setting/index.js +1 -0
- package/dist/setting/index.js.map +1 -1
- package/dist/setting/lib/setting-lifecycle.d.ts +33 -0
- package/dist/setting/lib/setting-lifecycle.d.ts.map +1 -0
- package/dist/setting/lib/setting-lifecycle.js +64 -0
- package/dist/setting/lib/setting-lifecycle.js.map +1 -0
- package/dist/workflow/lib/compiled-run.d.ts +1 -1
- package/dist/workflow/lib/compiled-run.d.ts.map +1 -1
- package/dist/workflow/lib/enums.d.ts +2 -0
- package/dist/workflow/lib/enums.d.ts.map +1 -1
- package/dist/workflow/lib/enums.js +7 -1
- package/dist/workflow/lib/enums.js.map +1 -1
- package/dist/workflow/lib/errors.d.ts +1 -0
- package/dist/workflow/lib/errors.d.ts.map +1 -1
- package/dist/workflow/lib/errors.js +2 -0
- package/dist/workflow/lib/errors.js.map +1 -1
- package/package.json +4 -3
- package/dist/capability/lib/capability-domain.d.ts.map +0 -1
- package/dist/capability/lib/capability-domain.js.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.d.ts.map +0 -1
- package/dist/capability/lib/capability-invocation-descriptor.js.map +0 -1
- package/dist/capability/lib/errors.d.ts.map +0 -1
- package/dist/capability/lib/errors.js.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.d.ts +0 -81
- package/dist/resource-accounting/lib/reconciliation.d.ts.map +0 -1
- package/dist/resource-accounting/lib/reconciliation.js +0 -111
- package/dist/resource-accounting/lib/reconciliation.js.map +0 -1
- /package/dist/{capability → capability-domain}/lib/capability-domain.d.ts +0 -0
- /package/dist/{capability → capability-domain}/lib/capability-domain.js +0 -0
- /package/dist/{capability → capability-error}/lib/capability-invocation-descriptor.d.ts +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Conformance vectors for the vendor edition `sourcePins` key. `schema` names the definition schema the vector is parsed with. Every identifier is a fixture name. `issue` is a substring the refusal message carries. Whether a repository exists in the data root, and whether a ref differs from the shared pin, are not schema checks.",
|
|
3
|
+
"vectors": [
|
|
4
|
+
{
|
|
5
|
+
"name": "one-pin",
|
|
6
|
+
"schema": "distribution",
|
|
7
|
+
"expect": "accept",
|
|
8
|
+
"why": "A vendor edition holding one repository at an exact commit, with its exit condition.",
|
|
9
|
+
"definition": {
|
|
10
|
+
"schemaVersion": 1,
|
|
11
|
+
"id": "fixture-vendor",
|
|
12
|
+
"displayName": "Fixture vendor edition",
|
|
13
|
+
"requiredPlatforms": [
|
|
14
|
+
"linux/amd64"
|
|
15
|
+
],
|
|
16
|
+
"include": [],
|
|
17
|
+
"sourcePins": [
|
|
18
|
+
{
|
|
19
|
+
"repo": "repos/fixture-service",
|
|
20
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
21
|
+
"until": "the fixture fix is released"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "two-pins-graph-repos",
|
|
28
|
+
"schema": "distribution",
|
|
29
|
+
"expect": "accept",
|
|
30
|
+
"why": "repos/ and submodules/ paths, one entry per repository.",
|
|
31
|
+
"definition": {
|
|
32
|
+
"schemaVersion": 1,
|
|
33
|
+
"id": "fixture-vendor",
|
|
34
|
+
"displayName": "Fixture vendor edition",
|
|
35
|
+
"requiredPlatforms": [
|
|
36
|
+
"linux/amd64"
|
|
37
|
+
],
|
|
38
|
+
"include": [],
|
|
39
|
+
"sourcePins": [
|
|
40
|
+
{
|
|
41
|
+
"repo": "repos/fixture-service",
|
|
42
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
43
|
+
"until": "the fixture fix is released"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"repo": "submodules/fixture-generic-api",
|
|
47
|
+
"ref": "fedcba9876543210fedcba9876543210fedcba98",
|
|
48
|
+
"until": "the fixture fix is released"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "absent",
|
|
55
|
+
"schema": "distribution",
|
|
56
|
+
"expect": "accept",
|
|
57
|
+
"why": "Absent holds nothing; the key is never defaulted.",
|
|
58
|
+
"definition": {
|
|
59
|
+
"schemaVersion": 1,
|
|
60
|
+
"id": "fixture-vendor",
|
|
61
|
+
"displayName": "Fixture vendor edition",
|
|
62
|
+
"requiredPlatforms": [
|
|
63
|
+
"linux/amd64"
|
|
64
|
+
],
|
|
65
|
+
"include": []
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "empty-list",
|
|
70
|
+
"schema": "distribution",
|
|
71
|
+
"expect": "refuse",
|
|
72
|
+
"why": "An empty list says nothing; omit the key.",
|
|
73
|
+
"issue": "omit the key",
|
|
74
|
+
"definition": {
|
|
75
|
+
"schemaVersion": 1,
|
|
76
|
+
"id": "fixture-vendor",
|
|
77
|
+
"displayName": "Fixture vendor edition",
|
|
78
|
+
"requiredPlatforms": [
|
|
79
|
+
"linux/amd64"
|
|
80
|
+
],
|
|
81
|
+
"include": [],
|
|
82
|
+
"sourcePins": []
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "duplicate-repo",
|
|
87
|
+
"schema": "distribution",
|
|
88
|
+
"expect": "refuse",
|
|
89
|
+
"why": "A repository is held once.",
|
|
90
|
+
"issue": "is pinned twice",
|
|
91
|
+
"definition": {
|
|
92
|
+
"schemaVersion": 1,
|
|
93
|
+
"id": "fixture-vendor",
|
|
94
|
+
"displayName": "Fixture vendor edition",
|
|
95
|
+
"requiredPlatforms": [
|
|
96
|
+
"linux/amd64"
|
|
97
|
+
],
|
|
98
|
+
"include": [],
|
|
99
|
+
"sourcePins": [
|
|
100
|
+
{
|
|
101
|
+
"repo": "repos/fixture-service",
|
|
102
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
103
|
+
"until": "the fixture fix is released"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"repo": "repos/fixture-service",
|
|
107
|
+
"ref": "fedcba9876543210fedcba9876543210fedcba98",
|
|
108
|
+
"until": "the fixture fix is released"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "branch-ref",
|
|
115
|
+
"schema": "distribution",
|
|
116
|
+
"expect": "refuse",
|
|
117
|
+
"why": "A branch moves under a lock; only a commit is a hold.",
|
|
118
|
+
"issue": "exact lowercase 40-hex commit",
|
|
119
|
+
"definition": {
|
|
120
|
+
"schemaVersion": 1,
|
|
121
|
+
"id": "fixture-vendor",
|
|
122
|
+
"displayName": "Fixture vendor edition",
|
|
123
|
+
"requiredPlatforms": [
|
|
124
|
+
"linux/amd64"
|
|
125
|
+
],
|
|
126
|
+
"include": [],
|
|
127
|
+
"sourcePins": [
|
|
128
|
+
{
|
|
129
|
+
"repo": "repos/fixture-service",
|
|
130
|
+
"ref": "main",
|
|
131
|
+
"until": "the fixture fix is released"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "abbreviated-ref",
|
|
138
|
+
"schema": "distribution",
|
|
139
|
+
"expect": "refuse",
|
|
140
|
+
"why": "An abbreviation is not a commit id.",
|
|
141
|
+
"issue": "exact lowercase 40-hex commit",
|
|
142
|
+
"definition": {
|
|
143
|
+
"schemaVersion": 1,
|
|
144
|
+
"id": "fixture-vendor",
|
|
145
|
+
"displayName": "Fixture vendor edition",
|
|
146
|
+
"requiredPlatforms": [
|
|
147
|
+
"linux/amd64"
|
|
148
|
+
],
|
|
149
|
+
"include": [],
|
|
150
|
+
"sourcePins": [
|
|
151
|
+
{
|
|
152
|
+
"repo": "repos/fixture-service",
|
|
153
|
+
"ref": "0123456",
|
|
154
|
+
"until": "the fixture fix is released"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "uppercase-ref",
|
|
161
|
+
"schema": "distribution",
|
|
162
|
+
"expect": "refuse",
|
|
163
|
+
"why": "The commit id is lowercase.",
|
|
164
|
+
"issue": "exact lowercase 40-hex commit",
|
|
165
|
+
"definition": {
|
|
166
|
+
"schemaVersion": 1,
|
|
167
|
+
"id": "fixture-vendor",
|
|
168
|
+
"displayName": "Fixture vendor edition",
|
|
169
|
+
"requiredPlatforms": [
|
|
170
|
+
"linux/amd64"
|
|
171
|
+
],
|
|
172
|
+
"include": [],
|
|
173
|
+
"sourcePins": [
|
|
174
|
+
{
|
|
175
|
+
"repo": "repos/fixture-service",
|
|
176
|
+
"ref": "0123456789ABCDEF0123456789ABCDEF01234567",
|
|
177
|
+
"until": "the fixture fix is released"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "missing-until",
|
|
184
|
+
"schema": "distribution",
|
|
185
|
+
"expect": "refuse",
|
|
186
|
+
"why": "A hold states when it ends.",
|
|
187
|
+
"issue": "until",
|
|
188
|
+
"definition": {
|
|
189
|
+
"schemaVersion": 1,
|
|
190
|
+
"id": "fixture-vendor",
|
|
191
|
+
"displayName": "Fixture vendor edition",
|
|
192
|
+
"requiredPlatforms": [
|
|
193
|
+
"linux/amd64"
|
|
194
|
+
],
|
|
195
|
+
"include": [],
|
|
196
|
+
"sourcePins": [
|
|
197
|
+
{
|
|
198
|
+
"repo": "repos/fixture-service",
|
|
199
|
+
"ref": "0123456789abcdef0123456789abcdef01234567"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "blank-until",
|
|
206
|
+
"schema": "distribution",
|
|
207
|
+
"expect": "refuse",
|
|
208
|
+
"why": "A blank exit condition states nothing.",
|
|
209
|
+
"issue": "non-empty text",
|
|
210
|
+
"definition": {
|
|
211
|
+
"schemaVersion": 1,
|
|
212
|
+
"id": "fixture-vendor",
|
|
213
|
+
"displayName": "Fixture vendor edition",
|
|
214
|
+
"requiredPlatforms": [
|
|
215
|
+
"linux/amd64"
|
|
216
|
+
],
|
|
217
|
+
"include": [],
|
|
218
|
+
"sourcePins": [
|
|
219
|
+
{
|
|
220
|
+
"repo": "repos/fixture-service",
|
|
221
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
222
|
+
"until": " "
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "not-a-graph-path",
|
|
229
|
+
"schema": "distribution",
|
|
230
|
+
"expect": "refuse",
|
|
231
|
+
"why": "repo is a data-root relative repository path.",
|
|
232
|
+
"issue": "repository path",
|
|
233
|
+
"definition": {
|
|
234
|
+
"schemaVersion": 1,
|
|
235
|
+
"id": "fixture-vendor",
|
|
236
|
+
"displayName": "Fixture vendor edition",
|
|
237
|
+
"requiredPlatforms": [
|
|
238
|
+
"linux/amd64"
|
|
239
|
+
],
|
|
240
|
+
"include": [],
|
|
241
|
+
"sourcePins": [
|
|
242
|
+
{
|
|
243
|
+
"repo": "/abs/repos/fixture-service",
|
|
244
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
245
|
+
"until": "the fixture fix is released"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "unknown-key",
|
|
252
|
+
"schema": "distribution",
|
|
253
|
+
"expect": "refuse",
|
|
254
|
+
"why": "An entry is exactly {repo, ref, until}.",
|
|
255
|
+
"issue": "note",
|
|
256
|
+
"definition": {
|
|
257
|
+
"schemaVersion": 1,
|
|
258
|
+
"id": "fixture-vendor",
|
|
259
|
+
"displayName": "Fixture vendor edition",
|
|
260
|
+
"requiredPlatforms": [
|
|
261
|
+
"linux/amd64"
|
|
262
|
+
],
|
|
263
|
+
"include": [],
|
|
264
|
+
"sourcePins": [
|
|
265
|
+
{
|
|
266
|
+
"repo": "repos/fixture-service",
|
|
267
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
268
|
+
"until": "the fixture fix is released",
|
|
269
|
+
"note": "x"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "customer-refuses",
|
|
276
|
+
"schema": "customer",
|
|
277
|
+
"expect": "refuse",
|
|
278
|
+
"why": "sourcePins holds a repository of the vendor graph; a customer definition refuses it.",
|
|
279
|
+
"issue": "sourcePins",
|
|
280
|
+
"definition": {
|
|
281
|
+
"schemaVersion": 1,
|
|
282
|
+
"id": "fixture-vendor",
|
|
283
|
+
"displayName": "Fixture vendor edition",
|
|
284
|
+
"requiredPlatforms": [
|
|
285
|
+
"linux/amd64"
|
|
286
|
+
],
|
|
287
|
+
"include": [],
|
|
288
|
+
"sourcePins": [
|
|
289
|
+
{
|
|
290
|
+
"repo": "repos/fixture-service",
|
|
291
|
+
"ref": "0123456789abcdef0123456789abcdef01234567",
|
|
292
|
+
"until": "the fixture fix is released"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Conformance vectors for optional operation requirements. A `caller` biome with one service declares `requiresOperations` and `optionalOperations`; `lockBiomes` are the other biomes in the lock; `owners` map an operation domain to its owning biome (an owner need not be in the lock). Every admission implementation (kernel-contracts admitOperationGrants and the CLI resolver) must produce `grantedOperations` and `refusals` exactly; `manifestError` marks a manifest the schema must refuse.",
|
|
3
|
+
"vectors": [
|
|
4
|
+
{
|
|
5
|
+
"name": "owner-present-is-granted",
|
|
6
|
+
"caller": { "requiresOperations": [], "optionalOperations": ["billing:invoice.read@1"] },
|
|
7
|
+
"lockBiomes": ["billing"],
|
|
8
|
+
"owners": { "billing": "billing" },
|
|
9
|
+
"manifestError": false,
|
|
10
|
+
"ungrantedOperations": [], "grantedOperations": ["billing:invoice.read@1"],
|
|
11
|
+
"refusals": []
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "owner-absent-is-not-granted-and-not-refused",
|
|
15
|
+
"caller": { "requiresOperations": [], "optionalOperations": ["billing:invoice.read@1"] },
|
|
16
|
+
"lockBiomes": [],
|
|
17
|
+
"owners": { "billing": "billing" },
|
|
18
|
+
"manifestError": false,
|
|
19
|
+
"ungrantedOperations": ["billing:invoice.read@1"], "grantedOperations": [],
|
|
20
|
+
"refusals": []
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "unknown-domain-is-refused",
|
|
24
|
+
"caller": { "requiresOperations": [], "optionalOperations": ["ghost:thing.read@1"] },
|
|
25
|
+
"lockBiomes": ["billing"],
|
|
26
|
+
"owners": { "billing": "billing" },
|
|
27
|
+
"manifestError": false,
|
|
28
|
+
"ungrantedOperations": [], "grantedOperations": [],
|
|
29
|
+
"refusals": [{ "operation": "ghost:thing.read@1", "code": "unowned-domain" }]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "required-and-optional-duplicate-is-refused",
|
|
33
|
+
"caller": {
|
|
34
|
+
"requiresOperations": ["billing:invoice.read@1"],
|
|
35
|
+
"optionalOperations": ["billing:invoice.read@1"]
|
|
36
|
+
},
|
|
37
|
+
"lockBiomes": ["billing"],
|
|
38
|
+
"owners": { "billing": "billing" },
|
|
39
|
+
"manifestError": true,
|
|
40
|
+
"ungrantedOperations": [], "grantedOperations": ["billing:invoice.read@1"],
|
|
41
|
+
"refusals": [{ "operation": "billing:invoice.read@1", "code": "required-and-optional" }]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './lib/adapter-kind';
|
|
2
2
|
export * from './lib/connector-adapter-kind';
|
|
3
|
+
export * from './lib/connector-endpoint-source';
|
|
4
|
+
export * from './lib/connector-endpoint-source-declaration';
|
|
3
5
|
export * from './lib/connector-operation-exposure';
|
|
4
6
|
export * from './lib/connector-http-request';
|
|
5
7
|
export * from './lib/capability';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,C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AAC"}
|
package/dist/connector/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./lib/adapter-kind"), exports);
|
|
18
18
|
__exportStar(require("./lib/connector-adapter-kind"), exports);
|
|
19
|
+
__exportStar(require("./lib/connector-endpoint-source"), exports);
|
|
20
|
+
__exportStar(require("./lib/connector-endpoint-source-declaration"), exports);
|
|
19
21
|
__exportStar(require("./lib/connector-operation-exposure"), exports);
|
|
20
22
|
__exportStar(require("./lib/connector-http-request"), exports);
|
|
21
23
|
__exportStar(require("./lib/capability"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,+DAA6C;AAC7C,qEAAmD;AACnD,+DAA6C;AAC7C,mDAAiC;AACjC,wDAAsC;AACtC,+DAA6C;AAC7C,oEAAkD;AAClD,yEAAuD;AACvD,4DAA0C;AAC1C,4DAA0C;AAC1C,kEAAgD;AAChD,wDAAsC;AACtC,6DAA2C;AAC3C,wDAAsC;AACtC,oDAAkC;AAClC,2DAAyC;AACzC,6DAA2C;AAC3C,uEAAqD;AACrD,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,+CAA6B;AAC7B,iEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,+DAA6C;AAC7C,kEAAgD;AAChD,8EAA4D;AAC5D,qEAAmD;AACnD,+DAA6C;AAC7C,mDAAiC;AACjC,wDAAsC;AACtC,+DAA6C;AAC7C,oEAAkD;AAClD,yEAAuD;AACvD,4DAA0C;AAC1C,4DAA0C;AAC1C,kEAAgD;AAChD,wDAAsC;AACtC,6DAA2C;AAC3C,wDAAsC;AACtC,oDAAkC;AAClC,2DAAyC;AACzC,6DAA2C;AAC3C,uEAAqD;AACrD,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,+CAA6B;AAC7B,iEAA+C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { ConnectorAdapterKind } from
|
|
3
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConnectorAdapterKind } from "./connector-adapter-kind";
|
|
3
|
+
import { ConnectorEndpointSource } from "./connector-endpoint-source";
|
|
4
|
+
import { ProviderAppAuthKind } from "./provider-descriptor";
|
|
4
5
|
export declare const ContributedProviderDescriptorSchema: z.ZodObject<{
|
|
5
6
|
description: z.ZodString;
|
|
6
7
|
displayName: z.ZodString;
|
|
@@ -112,6 +113,12 @@ export declare const ConnectorAdapterContributionManifestSchema: z.ZodObject<{
|
|
|
112
113
|
hint: z.ZodOptional<z.ZodString>;
|
|
113
114
|
transform: z.ZodEnum<typeof import("./onboarding-manifest").CredentialFieldTransform>;
|
|
114
115
|
}, z.core.$strict>>>>;
|
|
116
|
+
endpoint: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Static>;
|
|
118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
119
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Connection>;
|
|
120
|
+
allowedBasePathPrefix: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strict>], "source">>;
|
|
115
122
|
}, z.core.$strict>;
|
|
116
123
|
export type ConnectorAdapterContributionManifest = z.infer<typeof ConnectorAdapterContributionManifestSchema>;
|
|
117
124
|
//# sourceMappingURL=connector-adapter-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connector-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,OAAO,EACL,mBAAmB,EAGpB,MAAM,uBAAuB,CAAC;AAqB/B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACK,CAAC;AAEtD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAQF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwNnD,CAAC;AAEL,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC"}
|
|
@@ -4,6 +4,8 @@ exports.ConnectorAdapterContributionManifestSchema = exports.ContributedProvider
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const connector_adapter_kind_1 = require("./connector-adapter-kind");
|
|
6
6
|
const connector_descriptor_1 = require("./connector-descriptor");
|
|
7
|
+
const connector_endpoint_source_1 = require("./connector-endpoint-source");
|
|
8
|
+
const connector_endpoint_source_declaration_1 = require("./connector-endpoint-source-declaration");
|
|
7
9
|
const onboarding_manifest_1 = require("./onboarding-manifest");
|
|
8
10
|
const provider_descriptor_1 = require("./provider-descriptor");
|
|
9
11
|
const CONTRIBUTED_PROVIDER_KEY_REGEX = /^[a-z][a-z0-9_-]*$/;
|
|
@@ -14,15 +16,16 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
14
16
|
provider: exports.ContributedProviderDescriptorSchema,
|
|
15
17
|
connectors: zod_1.z.array(connector_descriptor_1.ConnectorDescriptorSchema).min(1).readonly(),
|
|
16
18
|
credentialFields: zod_1.z.array(onboarding_manifest_1.CredentialFieldSpecSchema).readonly().optional(),
|
|
19
|
+
endpoint: connector_endpoint_source_declaration_1.ConnectorEndpointSourceDeclarationSchema.optional(),
|
|
17
20
|
})
|
|
18
21
|
.superRefine((manifest, ctx) => {
|
|
19
|
-
(0, provider_descriptor_1.providerOAuthEndpointsInvariant)(manifest.provider, ctx, [
|
|
22
|
+
(0, provider_descriptor_1.providerOAuthEndpointsInvariant)(manifest.provider, ctx, ["provider"]);
|
|
20
23
|
const fields = manifest.credentialFields;
|
|
21
24
|
if (manifest.provider.appAuthKind === provider_descriptor_1.ProviderAppAuthKind.None) {
|
|
22
25
|
if (fields === undefined || fields.length === 0) {
|
|
23
26
|
ctx.addIssue({
|
|
24
|
-
code:
|
|
25
|
-
path: [
|
|
27
|
+
code: "custom",
|
|
28
|
+
path: ["credentialFields"],
|
|
26
29
|
message: `provider "${manifest.provider.providerKey}" declares appAuthKind ` +
|
|
27
30
|
`"none", meaning every connection supplies its own complete secret — ` +
|
|
28
31
|
`so it MUST declare the credentialFields the install wizard asks for. ` +
|
|
@@ -35,8 +38,8 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
35
38
|
fields.forEach((field, index) => {
|
|
36
39
|
if (seenFieldKeys.has(field.key)) {
|
|
37
40
|
ctx.addIssue({
|
|
38
|
-
code:
|
|
39
|
-
path: [
|
|
41
|
+
code: "custom",
|
|
42
|
+
path: ["credentialFields", index, "key"],
|
|
40
43
|
message: `duplicate credential field key "${field.key}".`,
|
|
41
44
|
});
|
|
42
45
|
}
|
|
@@ -46,8 +49,8 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
46
49
|
}
|
|
47
50
|
else if (fields !== undefined) {
|
|
48
51
|
ctx.addIssue({
|
|
49
|
-
code:
|
|
50
|
-
path: [
|
|
52
|
+
code: "custom",
|
|
53
|
+
path: ["credentialFields"],
|
|
51
54
|
message: `provider "${manifest.provider.providerKey}" declares appAuthKind ` +
|
|
52
55
|
`"${manifest.provider.appAuthKind}", so the credential comes from the ` +
|
|
53
56
|
`consent redirect or the app installation — not from a form. Remove ` +
|
|
@@ -56,8 +59,8 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
56
59
|
}
|
|
57
60
|
if (!CONTRIBUTED_PROVIDER_KEY_REGEX.test(manifest.provider.providerKey)) {
|
|
58
61
|
ctx.addIssue({
|
|
59
|
-
code:
|
|
60
|
-
path: [
|
|
62
|
+
code: "custom",
|
|
63
|
+
path: ["provider", "providerKey"],
|
|
61
64
|
message: `providerKey "${manifest.provider.providerKey}" must be a lowercase ` +
|
|
62
65
|
`slug matching ${CONTRIBUTED_PROVIDER_KEY_REGEX.source}.`,
|
|
63
66
|
});
|
|
@@ -66,16 +69,16 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
66
69
|
manifest.connectors.forEach((connector, index) => {
|
|
67
70
|
if (!CONTRIBUTED_CONNECTOR_KEY_REGEX.test(connector.connectorKey)) {
|
|
68
71
|
ctx.addIssue({
|
|
69
|
-
code:
|
|
70
|
-
path: [
|
|
72
|
+
code: "custom",
|
|
73
|
+
path: ["connectors", index, "connectorKey"],
|
|
71
74
|
message: `connectorKey "${connector.connectorKey}" must be UPPER_SNAKE ` +
|
|
72
75
|
`matching ${CONTRIBUTED_CONNECTOR_KEY_REGEX.source}.`,
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
if (connector.providerKey !== manifest.provider.providerKey) {
|
|
76
79
|
ctx.addIssue({
|
|
77
|
-
code:
|
|
78
|
-
path: [
|
|
80
|
+
code: "custom",
|
|
81
|
+
path: ["connectors", index, "providerKey"],
|
|
79
82
|
message: `Connector "${connector.connectorKey}" references provider ` +
|
|
80
83
|
`"${connector.providerKey}" but this manifest contributes provider ` +
|
|
81
84
|
`"${manifest.provider.providerKey}" — a contribution's connectors ` +
|
|
@@ -84,21 +87,75 @@ exports.ConnectorAdapterContributionManifestSchema = zod_1.z
|
|
|
84
87
|
}
|
|
85
88
|
if (seenConnectorKeys.has(connector.connectorKey)) {
|
|
86
89
|
ctx.addIssue({
|
|
87
|
-
code:
|
|
88
|
-
path: [
|
|
90
|
+
code: "custom",
|
|
91
|
+
path: ["connectors", index, "connectorKey"],
|
|
89
92
|
message: `Duplicate connectorKey "${connector.connectorKey}" in manifest.`,
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
95
|
seenConnectorKeys.add(connector.connectorKey);
|
|
93
96
|
});
|
|
94
97
|
const hasDeclarativeOperation = manifest.connectors.some((connector) => (connector.operations ?? []).some((op) => op.adapterKind === connector_adapter_kind_1.ConnectorAdapterKind.DeclarativeHttp));
|
|
95
|
-
|
|
98
|
+
const endpoint = manifest.endpoint;
|
|
99
|
+
const providerKey = manifest.provider.providerKey;
|
|
100
|
+
if (hasDeclarativeOperation && endpoint === undefined) {
|
|
96
101
|
ctx.addIssue({
|
|
97
|
-
code:
|
|
98
|
-
path: [
|
|
99
|
-
message: `Provider "${
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
code: "custom",
|
|
103
|
+
path: ["endpoint"],
|
|
104
|
+
message: `Provider "${providerKey}" ships a declarative-http connector ` +
|
|
105
|
+
"operation, so the manifest MUST declare endpoint " +
|
|
106
|
+
`({ source: "static" } or { source: "connection" }).`,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
else if (!hasDeclarativeOperation && endpoint !== undefined) {
|
|
110
|
+
ctx.addIssue({
|
|
111
|
+
code: "custom",
|
|
112
|
+
path: ["endpoint"],
|
|
113
|
+
message: `Provider "${providerKey}" ships no declarative-http connector ` +
|
|
114
|
+
"operation, so there is nothing to resolve an endpoint for — remove endpoint.",
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (endpoint?.source === connector_endpoint_source_1.ConnectorEndpointSource.Connection) {
|
|
118
|
+
manifest.connectors.forEach((connector, connectorIndex) => {
|
|
119
|
+
(connector.operations ?? []).forEach((op, operationIndex) => {
|
|
120
|
+
if (op.adapterKind === connector_adapter_kind_1.ConnectorAdapterKind.DeclarativeHttp &&
|
|
121
|
+
!op.requiresConnection) {
|
|
122
|
+
ctx.addIssue({
|
|
123
|
+
code: "custom",
|
|
124
|
+
path: [
|
|
125
|
+
"connectors",
|
|
126
|
+
connectorIndex,
|
|
127
|
+
"operations",
|
|
128
|
+
operationIndex,
|
|
129
|
+
"requiresConnection",
|
|
130
|
+
],
|
|
131
|
+
message: `Operation "${op.capabilityRef}" is declarative-http with ` +
|
|
132
|
+
'requiresConnection: false, but endpoint source "connection" takes ' +
|
|
133
|
+
"its host from the connection — an operation that runs without one " +
|
|
134
|
+
"has no host. Remove requiresConnection: false, or change the " +
|
|
135
|
+
'endpoint source to "static".',
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (endpoint?.source === connector_endpoint_source_1.ConnectorEndpointSource.Static) {
|
|
142
|
+
if (manifest.provider.apiBaseUrl === undefined) {
|
|
143
|
+
ctx.addIssue({
|
|
144
|
+
code: "custom",
|
|
145
|
+
path: ["provider", "apiBaseUrl"],
|
|
146
|
+
message: `Provider "${providerKey}" declares endpoint source "static" but no ` +
|
|
147
|
+
'apiBaseUrl — declare provider.apiBaseUrl, or change the source to "connection".',
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
else if (endpoint?.source === connector_endpoint_source_1.ConnectorEndpointSource.Connection &&
|
|
152
|
+
manifest.provider.apiBaseUrl !== undefined) {
|
|
153
|
+
ctx.addIssue({
|
|
154
|
+
code: "custom",
|
|
155
|
+
path: ["provider", "apiBaseUrl"],
|
|
156
|
+
message: `Provider "${providerKey}" declares endpoint source "connection" and ` +
|
|
157
|
+
"also an apiBaseUrl — there is no fallback between sources; remove " +
|
|
158
|
+
'provider.apiBaseUrl, or change the source to "static".',
|
|
102
159
|
});
|
|
103
160
|
}
|
|
104
161
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-adapter-contribution.js","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"connector-adapter-contribution.js","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":";;;AA0BA,6BAAwB;AAExB,qEAAgE;AAChE,iEAAmE;AACnE,2EAAsE;AACtE,mGAAmG;AACnG,+DAAkE;AAClE,+DAI+B;AAM/B,MAAM,8BAA8B,GAAG,oBAAoB,CAAC;AAQ5D,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;AAO/C,QAAA,mCAAmC,GAC9C,kDAA4B,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAYzC,QAAA,0CAA0C,GAAG,OAAC;KACxD,YAAY,CAAC;IACZ,QAAQ,EAAE,2CAAmC;IAC7C,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,gDAAyB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IA4BhE,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,+CAAyB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAe1E,QAAQ,EAAE,gFAAwC,CAAC,QAAQ,EAAE;CAC9D,CAAC;KACD,WAAW,CAAC,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE;IAC7B,IAAA,qDAA+B,EAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAMtE,MAAM,MAAM,GAAG,QAAQ,CAAC,gBAAgB,CAAC;IACzC,IAA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;gBACpE,wDAAwD;SAC3D,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConnectorEndpointSource } from './connector-endpoint-source';
|
|
3
|
+
export declare const ConnectorStaticEndpointSourceSchema: z.ZodObject<{
|
|
4
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Static>;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare const ConnectorConnectionEndpointSourceSchema: z.ZodObject<{
|
|
7
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Connection>;
|
|
8
|
+
allowedBasePathPrefix: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const ConnectorEndpointSourceDeclarationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Static>;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
source: z.ZodLiteral<ConnectorEndpointSource.Connection>;
|
|
14
|
+
allowedBasePathPrefix: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>], "source">;
|
|
16
|
+
export type ConnectorStaticEndpointSource = z.infer<typeof ConnectorStaticEndpointSourceSchema>;
|
|
17
|
+
export type ConnectorConnectionEndpointSource = z.infer<typeof ConnectorConnectionEndpointSourceSchema>;
|
|
18
|
+
export type ConnectorEndpointSourceDeclaration = z.infer<typeof ConnectorEndpointSourceDeclarationSchema>;
|
|
19
|
+
//# sourceMappingURL=connector-endpoint-source-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-endpoint-source-declaration.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-endpoint-source-declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAkDtE,eAAO,MAAM,mCAAmC;;kBAE9C,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;kBAGlD,CAAC;AAMH,eAAO,MAAM,wCAAwC;;;;;8BAGpD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC"}
|