@xemahq/contracts 0.78.0 → 0.80.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/authorization-facts/lib/facts-apply.d.ts +1 -0
- package/dist/authorization-facts/lib/facts-apply.d.ts.map +1 -1
- package/dist/authorization-facts/lib/facts-apply.js +1 -0
- package/dist/authorization-facts/lib/facts-apply.js.map +1 -1
- package/dist/authorization-facts/lib/facts-writer-authority.d.ts +12 -1
- package/dist/authorization-facts/lib/facts-writer-authority.d.ts.map +1 -1
- package/dist/authorization-facts/lib/facts-writer-authority.js +69 -5
- package/dist/authorization-facts/lib/facts-writer-authority.js.map +1 -1
- package/dist/authorization-module/lib/authorization-composition-error.d.ts +1 -0
- package/dist/authorization-module/lib/authorization-composition-error.d.ts.map +1 -1
- package/dist/authorization-module/lib/authorization-composition-error.js +1 -0
- package/dist/authorization-module/lib/authorization-composition-error.js.map +1 -1
- package/dist/authorization-module/lib/platform-authorization-modules.d.ts.map +1 -1
- package/dist/authorization-module/lib/platform-authorization-modules.js +1 -0
- package/dist/authorization-module/lib/platform-authorization-modules.js.map +1 -1
- package/dist/authorization-module/server/compose-authorization-base.d.ts.map +1 -1
- package/dist/authorization-module/server/compose-authorization-base.js +30 -0
- package/dist/authorization-module/server/compose-authorization-base.js.map +1 -1
- package/dist/biome/lib/biome-component.d.ts +18 -0
- package/dist/biome/lib/biome-component.d.ts.map +1 -1
- package/dist/biome/lib/biome-component.js +100 -5
- package/dist/biome/lib/biome-component.js.map +1 -1
- package/dist/biome/lib/biome-generated-index.d.ts +75 -1
- package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
- package/dist/biome/lib/biome-generated-index.js +14 -0
- package/dist/biome/lib/biome-generated-index.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +36 -0
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/xema-biome.schema.json +104 -0
- package/dist/connector/index.d.ts +1 -0
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +1 -0
- package/dist/connector/index.js.map +1 -1
- package/dist/connector/lib/connector-adapter-contribution.d.ts +1 -0
- package/dist/connector/lib/connector-adapter-contribution.d.ts.map +1 -1
- package/dist/connector/lib/connector-descriptor.d.ts +4 -0
- package/dist/connector/lib/connector-descriptor.d.ts.map +1 -1
- package/dist/connector/lib/connector-descriptor.js +2 -0
- package/dist/connector/lib/connector-descriptor.js.map +1 -1
- package/dist/connector/lib/connector-operation-exposure.d.ts +8 -0
- package/dist/connector/lib/connector-operation-exposure.d.ts.map +1 -0
- package/dist/connector/lib/connector-operation-exposure.js +12 -0
- package/dist/connector/lib/connector-operation-exposure.js.map +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind.js +1 -0
- package/dist/contribution/lib/contribution-kind.js.map +1 -1
- package/dist/deployment/index.d.ts +4 -0
- package/dist/deployment/index.d.ts.map +1 -1
- package/dist/deployment/index.js +4 -0
- package/dist/deployment/index.js.map +1 -1
- package/dist/deployment/lib/operation-grant.d.ts +22 -0
- package/dist/deployment/lib/operation-grant.d.ts.map +1 -0
- package/dist/deployment/lib/operation-grant.js +45 -0
- package/dist/deployment/lib/operation-grant.js.map +1 -0
- package/dist/deployment/lib/operation-id.d.ts +6 -0
- package/dist/deployment/lib/operation-id.d.ts.map +1 -0
- package/dist/deployment/lib/operation-id.js +12 -0
- package/dist/deployment/lib/operation-id.js.map +1 -0
- package/dist/deployment/lib/organization-sweep-grant.d.ts +18 -0
- package/dist/deployment/lib/organization-sweep-grant.d.ts.map +1 -0
- package/dist/deployment/lib/organization-sweep-grant.js +25 -0
- package/dist/deployment/lib/organization-sweep-grant.js.map +1 -0
- package/dist/deployment/lib/platform-sweep.d.ts +17 -0
- package/dist/deployment/lib/platform-sweep.d.ts.map +1 -0
- package/dist/deployment/lib/platform-sweep.js +21 -0
- package/dist/deployment/lib/platform-sweep.js.map +1 -0
- package/dist/deployment/lib/resolved-deployment.d.ts +24 -2
- package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
- package/dist/deployment/lib/resolved-deployment.js +47 -1
- package/dist/deployment/lib/resolved-deployment.js.map +1 -1
- package/dist/distribution/index.d.ts +5 -0
- package/dist/distribution/index.d.ts.map +1 -1
- package/dist/distribution/index.js +12 -1
- package/dist/distribution/index.js.map +1 -1
- package/dist/distribution/lib/capability-domain-owner-duplicates.d.ts +10 -0
- package/dist/distribution/lib/capability-domain-owner-duplicates.d.ts.map +1 -0
- package/dist/distribution/lib/capability-domain-owner-duplicates.js +21 -0
- package/dist/distribution/lib/capability-domain-owner-duplicates.js.map +1 -0
- package/dist/distribution/lib/code-unit-order.d.ts +2 -0
- package/dist/distribution/lib/code-unit-order.d.ts.map +1 -0
- package/dist/distribution/lib/code-unit-order.js +7 -0
- package/dist/distribution/lib/code-unit-order.js.map +1 -0
- package/dist/distribution/lib/distribution-lock.d.ts +8 -0
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +92 -8
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- 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 +10 -1
- package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -1
- package/dist/distribution/lib/operation-grant-admission.d.ts +23 -0
- package/dist/distribution/lib/operation-grant-admission.d.ts.map +1 -0
- package/dist/distribution/lib/operation-grant-admission.js +72 -0
- package/dist/distribution/lib/operation-grant-admission.js.map +1 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts +20 -0
- package/dist/distribution/lib/organization-sweep-admission.d.ts.map +1 -0
- package/dist/distribution/lib/organization-sweep-admission.js +45 -0
- package/dist/distribution/lib/organization-sweep-admission.js.map +1 -0
- package/dist/distribution/lib/platform-service-source-index.d.ts +2 -0
- package/dist/distribution/lib/platform-service-source-index.d.ts.map +1 -1
- package/dist/distribution/lib/platform-service-source-index.js +17 -0
- package/dist/distribution/lib/platform-service-source-index.js.map +1 -1
- package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/resolve-unsplit-deployment.js +20 -0
- package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -1
- package/dist/distribution/lib/sorted-unique-non-empty.d.ts +3 -0
- package/dist/distribution/lib/sorted-unique-non-empty.d.ts.map +1 -0
- package/dist/distribution/lib/sorted-unique-non-empty.js +29 -0
- package/dist/distribution/lib/sorted-unique-non-empty.js.map +1 -0
- package/dist/distribution/lib/verify-resolved-deployment.d.ts +6 -1
- package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
- package/dist/distribution/lib/verify-resolved-deployment.js +87 -3
- package/dist/distribution/lib/verify-resolved-deployment.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.js +2 -2
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +5 -0
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -1
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +38 -4
- package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -1
- package/dist/resource/lib/resource-kind.d.ts +1 -0
- package/dist/resource/lib/resource-kind.d.ts.map +1 -1
- package/dist/resource/lib/resource-kind.js +1 -0
- package/dist/resource/lib/resource-kind.js.map +1 -1
- package/dist/setting/index.d.ts +10 -0
- package/dist/setting/index.d.ts.map +1 -0
- package/dist/setting/index.js +26 -0
- package/dist/setting/index.js.map +1 -0
- package/dist/setting/lib/setting-constraints.d.ts +32 -0
- package/dist/setting/lib/setting-constraints.d.ts.map +1 -0
- package/dist/setting/lib/setting-constraints.js +27 -0
- package/dist/setting/lib/setting-constraints.js.map +1 -0
- package/dist/setting/lib/setting-definition.d.ts +70 -0
- package/dist/setting/lib/setting-definition.d.ts.map +1 -0
- package/dist/setting/lib/setting-definition.js +144 -0
- package/dist/setting/lib/setting-definition.js.map +1 -0
- package/dist/setting/lib/setting-duration.d.ts +3 -0
- package/dist/setting/lib/setting-duration.d.ts.map +1 -0
- package/dist/setting/lib/setting-duration.js +39 -0
- package/dist/setting/lib/setting-duration.js.map +1 -0
- package/dist/setting/lib/setting-enums.d.ts +27 -0
- package/dist/setting/lib/setting-enums.d.ts.map +1 -0
- package/dist/setting/lib/setting-enums.js +34 -0
- package/dist/setting/lib/setting-enums.js.map +1 -0
- package/dist/setting/lib/setting-key.d.ts +19 -0
- package/dist/setting/lib/setting-key.d.ts.map +1 -0
- package/dist/setting/lib/setting-key.js +70 -0
- package/dist/setting/lib/setting-key.js.map +1 -0
- package/dist/setting/lib/setting-merge.d.ts +7 -0
- package/dist/setting/lib/setting-merge.d.ts.map +1 -0
- package/dist/setting/lib/setting-merge.js +36 -0
- package/dist/setting/lib/setting-merge.js.map +1 -0
- package/dist/setting/lib/setting-resolve.d.ts +11 -0
- package/dist/setting/lib/setting-resolve.d.ts.map +1 -0
- package/dist/setting/lib/setting-resolve.js +39 -0
- package/dist/setting/lib/setting-resolve.js.map +1 -0
- package/dist/setting/lib/setting-revision.d.ts +5 -0
- package/dist/setting/lib/setting-revision.d.ts.map +1 -0
- package/dist/setting/lib/setting-revision.js +68 -0
- package/dist/setting/lib/setting-revision.js.map +1 -0
- package/dist/setting/lib/setting-value.d.ts +5 -0
- package/dist/setting/lib/setting-value.d.ts.map +1 -0
- package/dist/setting/lib/setting-value.js +57 -0
- package/dist/setting/lib/setting-value.js.map +1 -0
- package/dist/space/index.d.ts +0 -1
- package/dist/space/index.d.ts.map +1 -1
- package/dist/space/index.js +0 -1
- package/dist/space/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/space/lib/scoped-setting.d.ts +0 -28
- package/dist/space/lib/scoped-setting.d.ts.map +0 -1
- package/dist/space/lib/scoped-setting.js +0 -60
- package/dist/space/lib/scoped-setting.js.map +0 -1
|
@@ -895,6 +895,58 @@
|
|
|
895
895
|
},
|
|
896
896
|
"additionalProperties": false
|
|
897
897
|
},
|
|
898
|
+
"dispatchesRuntimeComponents": {
|
|
899
|
+
"minItems": 1,
|
|
900
|
+
"type": "array",
|
|
901
|
+
"items": {
|
|
902
|
+
"type": "object",
|
|
903
|
+
"properties": {
|
|
904
|
+
"biomeId": {
|
|
905
|
+
"type": "string",
|
|
906
|
+
"minLength": 1,
|
|
907
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
908
|
+
},
|
|
909
|
+
"componentKey": {
|
|
910
|
+
"type": "string",
|
|
911
|
+
"minLength": 1,
|
|
912
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"required": [
|
|
916
|
+
"biomeId",
|
|
917
|
+
"componentKey"
|
|
918
|
+
],
|
|
919
|
+
"additionalProperties": false
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"requiresOperations": {
|
|
923
|
+
"type": "array",
|
|
924
|
+
"items": {
|
|
925
|
+
"type": "string",
|
|
926
|
+
"maxLength": 128,
|
|
927
|
+
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[a-z][a-z0-9]*(?:[-.][a-z0-9]+)*@[1-9][0-9]{0,3}$"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"requiresOrganizationSweeps": {
|
|
931
|
+
"type": "array",
|
|
932
|
+
"items": {
|
|
933
|
+
"type": "string",
|
|
934
|
+
"enum": [
|
|
935
|
+
"erase-sweep",
|
|
936
|
+
"org-erasure",
|
|
937
|
+
"app-erasure",
|
|
938
|
+
"index-maintenance",
|
|
939
|
+
"connector-secret-custody",
|
|
940
|
+
"credential-refresh",
|
|
941
|
+
"connection-health-probe",
|
|
942
|
+
"member-notification",
|
|
943
|
+
"ended-holder-erasure",
|
|
944
|
+
"scm-project-binding-maintenance",
|
|
945
|
+
"contribution-convergence",
|
|
946
|
+
"retention-expiry-erasure"
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
},
|
|
898
950
|
"executionModes": {
|
|
899
951
|
"minItems": 1,
|
|
900
952
|
"type": "array",
|
|
@@ -2667,6 +2719,58 @@
|
|
|
2667
2719
|
},
|
|
2668
2720
|
"additionalProperties": false
|
|
2669
2721
|
},
|
|
2722
|
+
"dispatchesRuntimeComponents": {
|
|
2723
|
+
"minItems": 1,
|
|
2724
|
+
"type": "array",
|
|
2725
|
+
"items": {
|
|
2726
|
+
"type": "object",
|
|
2727
|
+
"properties": {
|
|
2728
|
+
"biomeId": {
|
|
2729
|
+
"type": "string",
|
|
2730
|
+
"minLength": 1,
|
|
2731
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
2732
|
+
},
|
|
2733
|
+
"componentKey": {
|
|
2734
|
+
"type": "string",
|
|
2735
|
+
"minLength": 1,
|
|
2736
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
2737
|
+
}
|
|
2738
|
+
},
|
|
2739
|
+
"required": [
|
|
2740
|
+
"biomeId",
|
|
2741
|
+
"componentKey"
|
|
2742
|
+
],
|
|
2743
|
+
"additionalProperties": false
|
|
2744
|
+
}
|
|
2745
|
+
},
|
|
2746
|
+
"requiresOperations": {
|
|
2747
|
+
"type": "array",
|
|
2748
|
+
"items": {
|
|
2749
|
+
"type": "string",
|
|
2750
|
+
"maxLength": 128,
|
|
2751
|
+
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[a-z][a-z0-9]*(?:[-.][a-z0-9]+)*@[1-9][0-9]{0,3}$"
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
"requiresOrganizationSweeps": {
|
|
2755
|
+
"type": "array",
|
|
2756
|
+
"items": {
|
|
2757
|
+
"type": "string",
|
|
2758
|
+
"enum": [
|
|
2759
|
+
"erase-sweep",
|
|
2760
|
+
"org-erasure",
|
|
2761
|
+
"app-erasure",
|
|
2762
|
+
"index-maintenance",
|
|
2763
|
+
"connector-secret-custody",
|
|
2764
|
+
"credential-refresh",
|
|
2765
|
+
"connection-health-probe",
|
|
2766
|
+
"member-notification",
|
|
2767
|
+
"ended-holder-erasure",
|
|
2768
|
+
"scm-project-binding-maintenance",
|
|
2769
|
+
"contribution-convergence",
|
|
2770
|
+
"retention-expiry-erasure"
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2670
2774
|
"executionModes": {
|
|
2671
2775
|
"minItems": 1,
|
|
2672
2776
|
"type": "array",
|
|
@@ -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,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,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC"}
|
|
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,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC"}
|
package/dist/connector/index.js
CHANGED
|
@@ -16,6 +16,7 @@ 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-operation-exposure"), exports);
|
|
19
20
|
__exportStar(require("./lib/connector-http-request"), exports);
|
|
20
21
|
__exportStar(require("./lib/capability"), exports);
|
|
21
22
|
__exportStar(require("./lib/credential-kind"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,+DAA6C;AAC7C,+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"}
|
|
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"}
|
|
@@ -95,6 +95,7 @@ export declare const ConnectorAdapterContributionManifestSchema: z.ZodObject<{
|
|
|
95
95
|
}, z.core.$strict>;
|
|
96
96
|
}, z.core.$strict>>;
|
|
97
97
|
canonical: z.ZodOptional<z.ZodType<import("./canonical-operation-binding").CanonicalOperationBinding, unknown, z.core.$ZodTypeInternals<import("./canonical-operation-binding").CanonicalOperationBinding, unknown>>>;
|
|
98
|
+
exposure: z.ZodOptional<z.ZodEnum<typeof import("./connector-operation-exposure").ConnectorOperationExposure>>;
|
|
98
99
|
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
100
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
100
101
|
riskTier: z.ZodOptional<z.ZodEnum<typeof import("../../capability").CapabilityRiskTier>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,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
|
|
1
|
+
{"version":3,"file":"connector-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-adapter-contribution.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2InD,CAAC;AAEL,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { type CapabilityRef, type CapabilityRiskTier } from '../../capability';
|
|
|
3
3
|
import { type CanonicalOperationBinding } from './canonical-operation-binding';
|
|
4
4
|
import { type CredentialKindRef } from './credential-kind';
|
|
5
5
|
import { ConnectorAdapterKind } from './connector-adapter-kind';
|
|
6
|
+
import { type ConnectorOperationExposure } from './connector-operation-exposure';
|
|
6
7
|
import { type ConnectorHttpRequestTemplate } from './connector-http-request';
|
|
7
8
|
import type { AdapterKindRef } from './adapter-kind';
|
|
8
9
|
export interface ConnectorOperationDescriptor {
|
|
@@ -12,6 +13,7 @@ export interface ConnectorOperationDescriptor {
|
|
|
12
13
|
readonly requiresConnection: boolean;
|
|
13
14
|
readonly httpRequest?: ConnectorHttpRequestTemplate;
|
|
14
15
|
readonly canonical?: CanonicalOperationBinding;
|
|
16
|
+
readonly exposure?: ConnectorOperationExposure;
|
|
15
17
|
readonly inputSchema?: Record<string, unknown>;
|
|
16
18
|
readonly outputSchema?: Record<string, unknown>;
|
|
17
19
|
readonly riskTier?: CapabilityRiskTier;
|
|
@@ -36,6 +38,7 @@ export declare const ConnectorOperationDescriptorSchema: z.ZodObject<{
|
|
|
36
38
|
}, z.core.$strict>;
|
|
37
39
|
}, z.core.$strict>>;
|
|
38
40
|
canonical: z.ZodOptional<z.ZodType<CanonicalOperationBinding, unknown, z.core.$ZodTypeInternals<CanonicalOperationBinding, unknown>>>;
|
|
41
|
+
exposure: z.ZodOptional<z.ZodEnum<typeof ConnectorOperationExposure>>;
|
|
39
42
|
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
43
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
44
|
riskTier: z.ZodOptional<z.ZodEnum<typeof CapabilityRiskTier>>;
|
|
@@ -80,6 +83,7 @@ export declare const ConnectorDescriptorSchema: z.ZodObject<{
|
|
|
80
83
|
}, z.core.$strict>;
|
|
81
84
|
}, z.core.$strict>>;
|
|
82
85
|
canonical: z.ZodOptional<z.ZodType<CanonicalOperationBinding, unknown, z.core.$ZodTypeInternals<CanonicalOperationBinding, unknown>>>;
|
|
86
|
+
exposure: z.ZodOptional<z.ZodEnum<typeof ConnectorOperationExposure>>;
|
|
83
87
|
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
84
88
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
85
89
|
riskTier: z.ZodOptional<z.ZodEnum<typeof CapabilityRiskTier>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-descriptor.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-descriptor.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAkBrD,MAAM,WAAW,4BAA4B;IAO3C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAKtC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAQ3C,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAQnC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IASrC,QAAQ,CAAC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IASpD,QAAQ,CAAC,SAAS,CAAC,EAAE,yBAAyB,CAAC;IA4B/C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OA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AC,4BAA4B,CAAC,CACtD;IACD,aAAa,CACX,4BAA4B,EAC5B,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CACnD;CACF,CAAC;AACF,MAAM,MAAM,sCAAsC,GAAG;IACnD,aAAa,CACX,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EACzC,uBAAuB,CAAC,mBAAmB,CAAC,CAC7C;IACD,aAAa,CAAC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;CAC9E,CAAC"}
|
|
@@ -6,6 +6,7 @@ const capability_1 = require("../../capability");
|
|
|
6
6
|
const canonical_operation_binding_1 = require("./canonical-operation-binding");
|
|
7
7
|
const credential_kind_1 = require("./credential-kind");
|
|
8
8
|
const connector_adapter_kind_1 = require("./connector-adapter-kind");
|
|
9
|
+
const connector_operation_exposure_1 = require("./connector-operation-exposure");
|
|
9
10
|
const connector_http_request_1 = require("./connector-http-request");
|
|
10
11
|
exports.ConnectorOperationDescriptorSchema = zod_1.z
|
|
11
12
|
.strictObject({
|
|
@@ -15,6 +16,7 @@ exports.ConnectorOperationDescriptorSchema = zod_1.z
|
|
|
15
16
|
requiresConnection: zod_1.z.boolean(),
|
|
16
17
|
httpRequest: connector_http_request_1.ConnectorHttpRequestTemplateSchema.optional(),
|
|
17
18
|
canonical: canonical_operation_binding_1.CanonicalOperationBindingSchema.optional(),
|
|
19
|
+
exposure: connector_operation_exposure_1.ConnectorOperationExposureSchema.optional(),
|
|
18
20
|
inputSchema: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
19
21
|
outputSchema: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
20
22
|
riskTier: capability_1.CapabilityRiskTierSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-descriptor.js","sourceRoot":"","sources":["../../../src/connector/lib/connector-descriptor.ts"],"names":[],"mappings":";;;AAoBA,6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MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,wBAAwB,EAAE,yCAAuB;IACjD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,0CAAkC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9E,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum ConnectorOperationExposure {
|
|
3
|
+
Agent = "agent",
|
|
4
|
+
Internal = "internal"
|
|
5
|
+
}
|
|
6
|
+
export declare const ConnectorOperationExposureSchema: z.ZodEnum<typeof ConnectorOperationExposure>;
|
|
7
|
+
export declare const DEFAULT_CONNECTOR_OPERATION_EXPOSURE = ConnectorOperationExposure.Agent;
|
|
8
|
+
//# sourceMappingURL=connector-operation-exposure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-operation-exposure.d.ts","sourceRoot":"","sources":["../../../src/connector/lib/connector-operation-exposure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAOD,eAAO,MAAM,gCAAgC,8CAE5C,CAAC;AAOF,eAAO,MAAM,oCAAoC,mCACf,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_CONNECTOR_OPERATION_EXPOSURE = exports.ConnectorOperationExposureSchema = exports.ConnectorOperationExposure = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var ConnectorOperationExposure;
|
|
6
|
+
(function (ConnectorOperationExposure) {
|
|
7
|
+
ConnectorOperationExposure["Agent"] = "agent";
|
|
8
|
+
ConnectorOperationExposure["Internal"] = "internal";
|
|
9
|
+
})(ConnectorOperationExposure || (exports.ConnectorOperationExposure = ConnectorOperationExposure = {}));
|
|
10
|
+
exports.ConnectorOperationExposureSchema = zod_1.z.nativeEnum(ConnectorOperationExposure);
|
|
11
|
+
exports.DEFAULT_CONNECTOR_OPERATION_EXPOSURE = ConnectorOperationExposure.Agent;
|
|
12
|
+
//# sourceMappingURL=connector-operation-exposure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-operation-exposure.js","sourceRoot":"","sources":["../../../src/connector/lib/connector-operation-exposure.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAkBxB,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,mDAAqB,CAAA;AACvB,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAOY,QAAA,gCAAgC,GAAG,OAAC,CAAC,UAAU,CAC1D,0BAA0B,CAC3B,CAAC;AAOW,QAAA,oCAAoC,GAC/C,0BAA0B,CAAC,KAAK,CAAC"}
|
|
@@ -38,6 +38,7 @@ export declare enum ContributionKind {
|
|
|
38
38
|
CanonicalObjectType = "canonical-object-type",
|
|
39
39
|
ResourceRole = "resource-role",
|
|
40
40
|
ResourceRoleDefaultBinding = "resource-role-default-binding",
|
|
41
|
+
SettingDefinition = "setting-definition",
|
|
41
42
|
IngestionSource = "ingestion-source",
|
|
42
43
|
NotificationDescriptor = "notification-descriptor",
|
|
43
44
|
ContributionKindDescriptor = "contribution-kind"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contribution-kind.d.ts","sourceRoot":"","sources":["../../../src/contribution/lib/contribution-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqFxB,oBAAY,gBAAgB;IAW1B,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAuC5B,SAAS,eAAe;IAmBxB,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;IA2B1B,WAAW,iBAAiB;IAQ5B,YAAY,kBAAkB;IAE9B,YAAY,kBAAkB;IAE9B,gBAAgB,uBAAuB;IAEvC,QAAQ,aAAa;IAErB,YAAY,kBAAkB;IAM9B,WAAW,iBAAiB;IAW5B,cAAc,oBAAoB;IAclC,kBAAkB,yBAAyB;IAY3C,IAAI,SAAS;IAEb,UAAU,gBAAgB;IAe1B,oBAAoB,0BAA0B;IAG9C,gBAAgB,sBAAsB;IAmBtC,eAAe,qBAAqB;IAIpC,cAAc,oBAAoB;IAElC,eAAe,qBAAqB;IAEpC,iBAAiB,uBAAuB;IAMxC,WAAW,iBAAiB;IAI5B,UAAU,gBAAgB;IA4C1B,YAAY,kBAAkB;IAuB9B,cAAc,oBAAoB;IAmClC,UAAU,eAAe;IAsBzB,iBAAiB,uBAAuB;IA8CxC,YAAY,kBAAkB;IAsB9B,mBAAmB,yBAAyB;IAa5C,kBAAkB,wBAAwB;IAc1C,YAAY,kBAAkB;IAkB9B,UAAU,gBAAgB;IAoB1B,kBAAkB,wBAAwB;IAmB1C,mBAAmB,0BAA0B;IA4B7C,YAAY,kBAAkB;IA0B9B,0BAA0B,kCAAkC;
|
|
1
|
+
{"version":3,"file":"contribution-kind.d.ts","sourceRoot":"","sources":["../../../src/contribution/lib/contribution-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqFxB,oBAAY,gBAAgB;IAW1B,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAuC5B,SAAS,eAAe;IAmBxB,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;IA2B1B,WAAW,iBAAiB;IAQ5B,YAAY,kBAAkB;IAE9B,YAAY,kBAAkB;IAE9B,gBAAgB,uBAAuB;IAEvC,QAAQ,aAAa;IAErB,YAAY,kBAAkB;IAM9B,WAAW,iBAAiB;IAW5B,cAAc,oBAAoB;IAclC,kBAAkB,yBAAyB;IAY3C,IAAI,SAAS;IAEb,UAAU,gBAAgB;IAe1B,oBAAoB,0BAA0B;IAG9C,gBAAgB,sBAAsB;IAmBtC,eAAe,qBAAqB;IAIpC,cAAc,oBAAoB;IAElC,eAAe,qBAAqB;IAEpC,iBAAiB,uBAAuB;IAMxC,WAAW,iBAAiB;IAI5B,UAAU,gBAAgB;IA4C1B,YAAY,kBAAkB;IAuB9B,cAAc,oBAAoB;IAmClC,UAAU,eAAe;IAsBzB,iBAAiB,uBAAuB;IA8CxC,YAAY,kBAAkB;IAsB9B,mBAAmB,yBAAyB;IAa5C,kBAAkB,wBAAwB;IAc1C,YAAY,kBAAkB;IAkB9B,UAAU,gBAAgB;IAoB1B,kBAAkB,wBAAwB;IAmB1C,mBAAmB,0BAA0B;IA4B7C,YAAY,kBAAkB;IA0B9B,0BAA0B,kCAAkC;IAgB5D,iBAAiB,uBAAuB;IAkBxC,eAAe,qBAAqB;IAsCpC,sBAAsB,4BAA4B;IAoClD,0BAA0B,sBAAsB;CACjD;AAMD,eAAO,MAAM,sBAAsB,oCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG,GAAG,gBAAgB,EAAE,CAAC"}
|
|
@@ -42,6 +42,7 @@ var ContributionKind;
|
|
|
42
42
|
ContributionKind["CanonicalObjectType"] = "canonical-object-type";
|
|
43
43
|
ContributionKind["ResourceRole"] = "resource-role";
|
|
44
44
|
ContributionKind["ResourceRoleDefaultBinding"] = "resource-role-default-binding";
|
|
45
|
+
ContributionKind["SettingDefinition"] = "setting-definition";
|
|
45
46
|
ContributionKind["IngestionSource"] = "ingestion-source";
|
|
46
47
|
ContributionKind["NotificationDescriptor"] = "notification-descriptor";
|
|
47
48
|
ContributionKind["ContributionKindDescriptor"] = "contribution-kind";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contribution-kind.js","sourceRoot":"","sources":["../../../src/contribution/lib/contribution-kind.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAqFxB,IAAY,
|
|
1
|
+
{"version":3,"file":"contribution-kind.js","sourceRoot":"","sources":["../../../src/contribution/lib/contribution-kind.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAqFxB,IAAY,gBA8oBX;AA9oBD,WAAY,gBAAgB;IAW1B,kDAA8B,CAAA;IAC9B,8CAA0B,CAAA;IAC1B,gDAA4B,CAAA;IAuC5B,4CAAwB,CAAA;IAmBxB,kDAA8B,CAAA;IAC9B,8CAA0B,CAAA;IA2B1B,gDAA4B,CAAA;IAQ5B,kDAA8B,CAAA;IAE9B,kDAA8B,CAAA;IAE9B,2DAAuC,CAAA;IAEvC,yCAAqB,CAAA;IAErB,kDAA8B,CAAA;IAM9B,gDAA4B,CAAA;IAW5B,sDAAkC,CAAA;IAclC,+DAA2C,CAAA;IAY3C,iCAAa,CAAA;IAEb,8CAA0B,CAAA;IAe1B,kEAA8C,CAAA;IAG9C,0DAAsC,CAAA;IAmBtC,wDAAoC,CAAA;IAIpC,sDAAkC,CAAA;IAElC,wDAAoC,CAAA;IAEpC,4DAAwC,CAAA;IAMxC,gDAA4B,CAAA;IAI5B,8CAA0B,CAAA;IA4C1B,kDAA8B,CAAA;IAuB9B,sDAAkC,CAAA;IAmClC,6CAAyB,CAAA;IAsBzB,4DAAwC,CAAA;IA8CxC,kDAA8B,CAAA;IAsB9B,gEAA4C,CAAA;IAa5C,8DAA0C,CAAA;IAc1C,kDAA8B,CAAA;IAkB9B,8CAA0B,CAAA;IAoB1B,8DAA0C,CAAA;IAmB1C,iEAA6C,CAAA;IA4B7C,kDAA8B,CAAA;IA0B9B,gFAA4D,CAAA;IAgB5D,4DAAwC,CAAA;IAkBxC,wDAAoC,CAAA;IAsCpC,sEAAkD,CAAA;IAoClD,oEAAgD,CAAA;AAClD,CAAC,EA9oBW,gBAAgB,gCAAhB,gBAAgB,QA8oB3B;AAMY,QAAA,sBAAsB,GAAG,OAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -3,4 +3,8 @@ export * from './lib/trust-domain';
|
|
|
3
3
|
export * from './lib/resolved-deployment';
|
|
4
4
|
export * from './lib/trust-partition';
|
|
5
5
|
export * from './lib/artifact-signer-trust';
|
|
6
|
+
export * from './lib/operation-grant';
|
|
7
|
+
export * from './lib/platform-sweep';
|
|
8
|
+
export * from './lib/organization-sweep-grant';
|
|
9
|
+
export * from './lib/operation-id';
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC"}
|
package/dist/deployment/index.js
CHANGED
|
@@ -19,4 +19,8 @@ __exportStar(require("./lib/trust-domain"), exports);
|
|
|
19
19
|
__exportStar(require("./lib/resolved-deployment"), exports);
|
|
20
20
|
__exportStar(require("./lib/trust-partition"), exports);
|
|
21
21
|
__exportStar(require("./lib/artifact-signer-trust"), exports);
|
|
22
|
+
__exportStar(require("./lib/operation-grant"), exports);
|
|
23
|
+
__exportStar(require("./lib/platform-sweep"), exports);
|
|
24
|
+
__exportStar(require("./lib/organization-sweep-grant"), exports);
|
|
25
|
+
__exportStar(require("./lib/operation-id"), exports);
|
|
22
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC;AACtC,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC;AACtC,8DAA4C;AAC5C,wDAAsC;AACtC,uDAAqC;AACrC,iEAA+C;AAC/C,qDAAmC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum OperationGrantReceiverKind {
|
|
3
|
+
Biome = "biome",
|
|
4
|
+
PlatformService = "platform-service"
|
|
5
|
+
}
|
|
6
|
+
export declare const OperationGrantSchema: z.ZodObject<{
|
|
7
|
+
caller: z.ZodObject<{
|
|
8
|
+
biome: z.ZodString;
|
|
9
|
+
component: z.ZodString;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
operation: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
12
|
+
receiver: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<OperationGrantReceiverKind.Biome>;
|
|
14
|
+
biome: z.ZodString;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<OperationGrantReceiverKind.PlatformService>;
|
|
17
|
+
service: z.ZodString;
|
|
18
|
+
}, z.core.$strict>], "kind">;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export type OperationGrant = z.infer<typeof OperationGrantSchema>;
|
|
21
|
+
export declare function compareOperationGrants(a: Pick<OperationGrant, 'caller' | 'operation'>, b: Pick<OperationGrant, 'caller' | 'operation'>): number;
|
|
22
|
+
//# sourceMappingURL=operation-grant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-grant.d.ts","sourceRoot":"","sources":["../../../src/deployment/lib/operation-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,oBAAY,0BAA0B;IAEpC,KAAK,UAAU;IAEf,eAAe,qBAAqB;CACrC;AAsBD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;kBAMtB,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAUlE,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,EAC/C,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAC9C,MAAM,CAMR"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperationGrantSchema = exports.OperationGrantReceiverKind = void 0;
|
|
4
|
+
exports.compareOperationGrants = compareOperationGrants;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const operation_id_1 = require("./operation-id");
|
|
7
|
+
const trust_domain_1 = require("./trust-domain");
|
|
8
|
+
var OperationGrantReceiverKind;
|
|
9
|
+
(function (OperationGrantReceiverKind) {
|
|
10
|
+
OperationGrantReceiverKind["Biome"] = "biome";
|
|
11
|
+
OperationGrantReceiverKind["PlatformService"] = "platform-service";
|
|
12
|
+
})(OperationGrantReceiverKind || (exports.OperationGrantReceiverKind = OperationGrantReceiverKind = {}));
|
|
13
|
+
const GrantBiomeIdSchema = zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.regex(trust_domain_1.TRUST_DOMAIN_BIOME_ID_PATTERN, 'biome id must be lowercase kebab-case');
|
|
16
|
+
const OperationGrantReceiverSchema = zod_1.z.discriminatedUnion('kind', [
|
|
17
|
+
zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
kind: zod_1.z.literal(OperationGrantReceiverKind.Biome),
|
|
20
|
+
biome: GrantBiomeIdSchema,
|
|
21
|
+
})
|
|
22
|
+
.strict(),
|
|
23
|
+
zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
kind: zod_1.z.literal(OperationGrantReceiverKind.PlatformService),
|
|
26
|
+
service: zod_1.z.string().min(1),
|
|
27
|
+
})
|
|
28
|
+
.strict(),
|
|
29
|
+
]);
|
|
30
|
+
exports.OperationGrantSchema = zod_1.z
|
|
31
|
+
.object({
|
|
32
|
+
caller: zod_1.z.object({ biome: GrantBiomeIdSchema, component: zod_1.z.string().min(1) }).strict(),
|
|
33
|
+
operation: operation_id_1.OperationIdSchema,
|
|
34
|
+
receiver: OperationGrantReceiverSchema,
|
|
35
|
+
})
|
|
36
|
+
.strict();
|
|
37
|
+
function compareCodeUnits(a, b) {
|
|
38
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
39
|
+
}
|
|
40
|
+
function compareOperationGrants(a, b) {
|
|
41
|
+
return (compareCodeUnits(a.caller.biome, b.caller.biome) ||
|
|
42
|
+
compareCodeUnits(a.caller.component, b.caller.component) ||
|
|
43
|
+
compareCodeUnits(a.operation, b.operation));
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=operation-grant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-grant.js","sourceRoot":"","sources":["../../../src/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AAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAMD,SAAgB,sBAAsB,CACpC,CAA+C,EAC/C,CAA+C;IAE/C,OAAO,CACL,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAChD,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;QACxD,gBAAgB,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OPERATION_ID_PATTERN: RegExp;
|
|
3
|
+
export declare const MAX_OPERATION_ID_CHARS = 128;
|
|
4
|
+
export declare const OperationIdSchema: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
5
|
+
export type OperationId = z.infer<typeof OperationIdSchema>;
|
|
6
|
+
//# sourceMappingURL=operation-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-id.d.ts","sourceRoot":"","sources":["../../../src/deployment/lib/operation-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,oBAAoB,QACmD,CAAC;AAGrF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,eAAO,MAAM,iBAAiB,uDAIL,CAAC;AAG1B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperationIdSchema = exports.MAX_OPERATION_ID_CHARS = exports.OPERATION_ID_PATTERN = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.OPERATION_ID_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[a-z][a-z0-9]*(?:[-.][a-z0-9]+)*@[1-9][0-9]{0,3}$/;
|
|
6
|
+
exports.MAX_OPERATION_ID_CHARS = 128;
|
|
7
|
+
exports.OperationIdSchema = zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.max(exports.MAX_OPERATION_ID_CHARS)
|
|
10
|
+
.regex(exports.OPERATION_ID_PATTERN, 'must be an operation id, <domain>:<operation>@<version>')
|
|
11
|
+
.brand();
|
|
12
|
+
//# sourceMappingURL=operation-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-id.js","sourceRoot":"","sources":["../../../src/deployment/lib/operation-id.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAeX,QAAA,oBAAoB,GAC/B,kFAAkF,CAAC;AAGxE,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAE7B,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,8BAAsB,CAAC;KAC3B,KAAK,CAAC,4BAAoB,EAAE,yDAAyD,CAAC;KACtF,KAAK,EAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type PlatformSweep } from './platform-sweep';
|
|
3
|
+
export declare const OrganizationSweepGrantSchema: z.ZodObject<{
|
|
4
|
+
caller: z.ZodObject<{
|
|
5
|
+
biome: z.ZodString;
|
|
6
|
+
component: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
sweep: z.ZodEnum<typeof PlatformSweep>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export type OrganizationSweepGrant = z.infer<typeof OrganizationSweepGrantSchema>;
|
|
11
|
+
export declare function compareOrganizationSweepGrants(a: {
|
|
12
|
+
readonly caller: OrganizationSweepGrant['caller'];
|
|
13
|
+
readonly sweep: PlatformSweep | string;
|
|
14
|
+
}, b: {
|
|
15
|
+
readonly caller: OrganizationSweepGrant['caller'];
|
|
16
|
+
readonly sweep: PlatformSweep | string;
|
|
17
|
+
}): number;
|
|
18
|
+
//# sourceMappingURL=organization-sweep-grant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-sweep-grant.d.ts","sourceRoot":"","sources":["../../../src/deployment/lib/organization-sweep-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAoB3E,eAAO,MAAM,4BAA4B;;;;;;kBAK9B,CAAC;AAEZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAUlF,wBAAgB,8BAA8B,CAC5C,CAAC,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAAA;CAAE,EAChG,CAAC,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAAA;CAAE,GAC/F,MAAM,CAMR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationSweepGrantSchema = void 0;
|
|
4
|
+
exports.compareOrganizationSweepGrants = compareOrganizationSweepGrants;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const platform_sweep_1 = require("./platform-sweep");
|
|
7
|
+
const trust_domain_1 = require("./trust-domain");
|
|
8
|
+
const SweepBiomeIdSchema = zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.regex(trust_domain_1.TRUST_DOMAIN_BIOME_ID_PATTERN, 'biome id must be lowercase kebab-case');
|
|
11
|
+
exports.OrganizationSweepGrantSchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
caller: zod_1.z.object({ biome: SweepBiomeIdSchema, component: zod_1.z.string().min(1) }).strict(),
|
|
14
|
+
sweep: platform_sweep_1.PlatformSweepSchema,
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
function compareCodeUnits(a, b) {
|
|
18
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
19
|
+
}
|
|
20
|
+
function compareOrganizationSweepGrants(a, b) {
|
|
21
|
+
return (compareCodeUnits(a.caller.biome, b.caller.biome) ||
|
|
22
|
+
compareCodeUnits(a.caller.component, b.caller.component) ||
|
|
23
|
+
compareCodeUnits(a.sweep, b.sweep));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=organization-sweep-grant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-sweep-grant.js","sourceRoot":"","sources":["../../../src/deployment/lib/organization-sweep-grant.ts"],"names":[],"mappings":";;;AAuCA,wEASC;AAhDD,6BAAwB;AAExB,qDAA2E;AAC3E,iDAA+D;AAc/D,MAAM,kBAAkB,GAAG,OAAC;KACzB,MAAM,EAAE;KACR,KAAK,CAAC,4CAA6B,EAAE,uCAAuC,CAAC,CAAC;AAGpE,QAAA,4BAA4B,GAAG,OAAC;KAC1C,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACtF,KAAK,EAAE,oCAAmB;CAC3B,CAAC;KACD,MAAM,EAAE,CAAC;AAIZ,SAAS,gBAAgB,CAAC,CAAS,EAAE,CAAS;IAC5C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAMD,SAAgB,8BAA8B,CAC5C,CAAgG,EAChG,CAAgG;IAEhG,OAAO,CACL,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAChD,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;QACxD,gBAAgB,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CACnC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum PlatformSweep {
|
|
3
|
+
EraseSweep = "erase-sweep",
|
|
4
|
+
OrgErasure = "org-erasure",
|
|
5
|
+
AppErasure = "app-erasure",
|
|
6
|
+
IndexMaintenance = "index-maintenance",
|
|
7
|
+
ConnectorSecretCustody = "connector-secret-custody",
|
|
8
|
+
CredentialRefresh = "credential-refresh",
|
|
9
|
+
ConnectionHealthProbe = "connection-health-probe",
|
|
10
|
+
MemberNotification = "member-notification",
|
|
11
|
+
EndedHolderErasure = "ended-holder-erasure",
|
|
12
|
+
ScmProjectBindingMaintenance = "scm-project-binding-maintenance",
|
|
13
|
+
ContributionConvergence = "contribution-convergence",
|
|
14
|
+
RetentionExpiryErasure = "retention-expiry-erasure"
|
|
15
|
+
}
|
|
16
|
+
export declare const PlatformSweepSchema: z.ZodEnum<typeof PlatformSweep>;
|
|
17
|
+
//# sourceMappingURL=platform-sweep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-sweep.d.ts","sourceRoot":"","sources":["../../../src/deployment/lib/platform-sweep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,oBAAY,aAAa;IAUvB,UAAU,gBAAgB;IAO1B,UAAU,gBAAgB;IAK1B,UAAU,gBAAgB;IAM1B,gBAAgB,sBAAsB;IAKtC,sBAAsB,6BAA6B;IAKnD,iBAAiB,uBAAuB;IAMxC,qBAAqB,4BAA4B;IAOjD,kBAAkB,wBAAwB;IAU1C,kBAAkB,yBAAyB;IAU3C,4BAA4B,oCAAoC;IAMhE,uBAAuB,6BAA6B;IAQpD,sBAAsB,6BAA6B;CACpD;AAGD,eAAO,MAAM,mBAAmB,iCAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformSweepSchema = exports.PlatformSweep = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var PlatformSweep;
|
|
6
|
+
(function (PlatformSweep) {
|
|
7
|
+
PlatformSweep["EraseSweep"] = "erase-sweep";
|
|
8
|
+
PlatformSweep["OrgErasure"] = "org-erasure";
|
|
9
|
+
PlatformSweep["AppErasure"] = "app-erasure";
|
|
10
|
+
PlatformSweep["IndexMaintenance"] = "index-maintenance";
|
|
11
|
+
PlatformSweep["ConnectorSecretCustody"] = "connector-secret-custody";
|
|
12
|
+
PlatformSweep["CredentialRefresh"] = "credential-refresh";
|
|
13
|
+
PlatformSweep["ConnectionHealthProbe"] = "connection-health-probe";
|
|
14
|
+
PlatformSweep["MemberNotification"] = "member-notification";
|
|
15
|
+
PlatformSweep["EndedHolderErasure"] = "ended-holder-erasure";
|
|
16
|
+
PlatformSweep["ScmProjectBindingMaintenance"] = "scm-project-binding-maintenance";
|
|
17
|
+
PlatformSweep["ContributionConvergence"] = "contribution-convergence";
|
|
18
|
+
PlatformSweep["RetentionExpiryErasure"] = "retention-expiry-erasure";
|
|
19
|
+
})(PlatformSweep || (exports.PlatformSweep = PlatformSweep = {}));
|
|
20
|
+
exports.PlatformSweepSchema = zod_1.z.enum(PlatformSweep);
|
|
21
|
+
//# sourceMappingURL=platform-sweep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-sweep.js","sourceRoot":"","sources":["../../../src/deployment/lib/platform-sweep.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAuBxB,IAAY,aAsFX;AAtFD,WAAY,aAAa;IAUvB,2CAA0B,CAAA;IAO1B,2CAA0B,CAAA;IAK1B,2CAA0B,CAAA;IAM1B,uDAAsC,CAAA;IAKtC,oEAAmD,CAAA;IAKnD,yDAAwC,CAAA;IAMxC,kEAAiD,CAAA;IAOjD,2DAA0C,CAAA;IAU1C,4DAA2C,CAAA;IAU3C,iFAAgE,CAAA;IAMhE,qEAAoD,CAAA;IAQpD,oEAAmD,CAAA;AACrD,CAAC,EAtFW,aAAa,6BAAb,aAAa,QAsFxB;AAGY,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import { OperationGrantReceiverKind } from './operation-grant';
|
|
3
|
+
export declare const RESOLVED_DEPLOYMENT_SCHEMA_VERSION: 3;
|
|
3
4
|
export declare const RESOLVER_PACKAGE: "@xemahq/contracts";
|
|
4
5
|
export declare enum ResolvedDeploymentProvenanceKind {
|
|
5
6
|
Engine = "engine",
|
|
@@ -9,7 +10,7 @@ export declare const DNS_LABEL_PATTERN: RegExp;
|
|
|
9
10
|
export declare const EDITION_OCI_REF_PATTERN: RegExp;
|
|
10
11
|
export declare const EditionOciRefSchema: z.ZodString;
|
|
11
12
|
export declare const ResolvedDeploymentSchema: z.ZodObject<{
|
|
12
|
-
schemaVersion: z.ZodLiteral<
|
|
13
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
13
14
|
deployment: z.ZodString;
|
|
14
15
|
runtimeNamespace: z.ZodString;
|
|
15
16
|
edition: z.ZodObject<{
|
|
@@ -34,6 +35,27 @@ export declare const ResolvedDeploymentSchema: z.ZodObject<{
|
|
|
34
35
|
component: z.ZodString;
|
|
35
36
|
}, z.core.$strict>>;
|
|
36
37
|
}, z.core.$strict>>;
|
|
38
|
+
operationGrants: z.ZodArray<z.ZodObject<{
|
|
39
|
+
caller: z.ZodObject<{
|
|
40
|
+
biome: z.ZodString;
|
|
41
|
+
component: z.ZodString;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
operation: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
44
|
+
receiver: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
kind: z.ZodLiteral<OperationGrantReceiverKind.Biome>;
|
|
46
|
+
biome: z.ZodString;
|
|
47
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
48
|
+
kind: z.ZodLiteral<OperationGrantReceiverKind.PlatformService>;
|
|
49
|
+
service: z.ZodString;
|
|
50
|
+
}, z.core.$strict>], "kind">;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
organizationSweeps: z.ZodArray<z.ZodObject<{
|
|
53
|
+
caller: z.ZodObject<{
|
|
54
|
+
biome: z.ZodString;
|
|
55
|
+
component: z.ZodString;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
sweep: z.ZodEnum<typeof import("./platform-sweep").PlatformSweep>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
37
59
|
provenance: z.ZodUnion<readonly [z.ZodObject<{
|
|
38
60
|
kind: z.ZodOptional<z.ZodLiteral<ResolvedDeploymentProvenanceKind.Engine>>;
|
|
39
61
|
topologyInputHash: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolved-deployment.d.ts","sourceRoot":"","sources":["../../../src/deployment/lib/resolved-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"resolved-deployment.d.ts","sourceRoot":"","sources":["../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