@xemahq/authorization-internal-api-client 0.5.2 → 0.6.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.
Files changed (150) hide show
  1. package/dist/endpoints/authorization/authorization.d.ts +1 -19
  2. package/dist/endpoints/authorization/authorization.js +1 -52
  3. package/dist/endpoints/authorization-policy-sets/authorization-policy-sets.d.ts +27 -0
  4. package/dist/endpoints/authorization-policy-sets/authorization-policy-sets.js +65 -0
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/models/adoptOrgPolicySetDto.d.ts +21 -0
  8. package/dist/models/dataClassification.d.ts +3 -0
  9. package/dist/models/executionEnvironmentKind.d.ts +1 -1
  10. package/dist/models/index.d.ts +19 -56
  11. package/dist/models/index.js +19 -56
  12. package/dist/models/orgPolicySetDto.d.ts +18 -0
  13. package/dist/models/orgPolicySetDtoDataEnvelope.d.ts +9 -0
  14. package/dist/models/{policyRouteHintDtoRequiredRunnerLabels.d.ts → orgPolicySetDtoModel.d.ts} +5 -2
  15. package/dist/models/orgPolicySetDtoModules.d.ts +11 -0
  16. package/dist/models/policySetTestFileDto.d.ts +22 -0
  17. package/dist/models/policySetTestFileResultDto.d.ts +11 -0
  18. package/dist/models/policySetTestResultsDto.d.ts +9 -0
  19. package/dist/models/policySetTestResultsDtoDataEnvelope.d.ts +9 -0
  20. package/dist/models/problemActionableBy.d.ts +15 -0
  21. package/dist/models/{policyDecisionKind.js → problemActionableBy.js} +6 -5
  22. package/dist/models/problemDetailsDto.d.ts +9 -0
  23. package/dist/models/problemDetailsDtoParams.d.ts +11 -0
  24. package/dist/models/problemFieldIssueDto.d.ts +6 -0
  25. package/dist/models/problemFieldIssueDto.js +0 -5
  26. package/dist/models/problemFieldIssueDtoParams.d.ts +11 -0
  27. package/dist/models/problemRetry.d.ts +14 -0
  28. package/dist/models/{sessionParticipantRole.js → problemRetry.js} +5 -5
  29. package/dist/models/retiredNamespaceDto.d.ts +9 -0
  30. package/dist/models/retiredNamespaceDto.js +7 -0
  31. package/dist/models/retiredNamespaceDtoDataEnvelope.d.ts +9 -0
  32. package/dist/models/runPolicySetTestsDto.d.ts +12 -0
  33. package/dist/models/runPolicySetTestsDtoModel.d.ts +11 -0
  34. package/dist/models/runPolicySetTestsDtoModel.js +7 -0
  35. package/dist/models/runtimeModuleContributionDto.d.ts +20 -0
  36. package/dist/models/runtimeModuleContributionDtoManifest.d.ts +11 -0
  37. package/dist/models/runtimeModuleContributionDtoManifest.js +7 -0
  38. package/dist/models/spaceKind.d.ts +3 -0
  39. package/package.json +1 -1
  40. package/dist/endpoints/resources/resources.d.ts +0 -59
  41. package/dist/endpoints/resources/resources.js +0 -141
  42. package/dist/models/addResourceShareDto.d.ts +0 -12
  43. package/dist/models/authorizationCheckRequestDto.d.ts +0 -39
  44. package/dist/models/authorizationCheckResponseDto.d.ts +0 -14
  45. package/dist/models/authorizationCheckResponseDtoDataEnvelope.d.ts +0 -9
  46. package/dist/models/authorizationDecisionCode.d.ts +0 -18
  47. package/dist/models/authorizationDecisionCode.js +0 -20
  48. package/dist/models/authorizationReasonDto.d.ts +0 -11
  49. package/dist/models/authorizationSuggestionDto.d.ts +0 -25
  50. package/dist/models/authorizationSuggestionKind.d.ts +0 -11
  51. package/dist/models/authorizationSuggestionKind.js +0 -13
  52. package/dist/models/biomeExecutionTrustTier.d.ts +0 -10
  53. package/dist/models/biomeExecutionTrustTier.js +0 -12
  54. package/dist/models/callerKind.d.ts +0 -14
  55. package/dist/models/callerKind.js +0 -16
  56. package/dist/models/credentialPrecedenceSource.d.ts +0 -17
  57. package/dist/models/credentialPrecedenceSource.js +0 -16
  58. package/dist/models/dataResidency.d.ts +0 -9
  59. package/dist/models/dataResidency.js +0 -11
  60. package/dist/models/listRegisteredResourcesDto.d.ts +0 -12
  61. package/dist/models/listVisibleResourcesDto.d.ts +0 -20
  62. package/dist/models/policyActingAgentDto.d.ts +0 -14
  63. package/dist/models/policyActingAgentDtoKind.d.ts +0 -9
  64. package/dist/models/policyActingAgentDtoKind.js +0 -11
  65. package/dist/models/policyActingForDto.d.ts +0 -29
  66. package/dist/models/policyActingForDto.js +0 -2
  67. package/dist/models/policyBiomeDto.d.ts +0 -14
  68. package/dist/models/policyBiomeDto.js +0 -2
  69. package/dist/models/policyCallerDto.d.ts +0 -17
  70. package/dist/models/policyCallerDto.js +0 -2
  71. package/dist/models/policyCapabilityDto.d.ts +0 -14
  72. package/dist/models/policyCheckBatchRequestDto.d.ts +0 -13
  73. package/dist/models/policyCheckBatchRequestDto.js +0 -2
  74. package/dist/models/policyCheckBatchResponseDto.d.ts +0 -10
  75. package/dist/models/policyCheckBatchResponseDto.js +0 -2
  76. package/dist/models/policyCheckBatchResponseDtoDataEnvelope.d.ts +0 -9
  77. package/dist/models/policyCheckBatchResponseDtoDataEnvelope.js +0 -2
  78. package/dist/models/policyCheckRequestDto.d.ts +0 -96
  79. package/dist/models/policyCheckRequestDto.js +0 -2
  80. package/dist/models/policyCheckRequestDtoAperture.d.ts +0 -11
  81. package/dist/models/policyConstraintsDto.d.ts +0 -12
  82. package/dist/models/policyDecisionDto.d.ts +0 -26
  83. package/dist/models/policyDecisionDto.js +0 -2
  84. package/dist/models/policyDecisionDtoDataEnvelope.d.ts +0 -9
  85. package/dist/models/policyDecisionDtoDataEnvelope.js +0 -2
  86. package/dist/models/policyDecisionKind.d.ts +0 -11
  87. package/dist/models/policyDelegatedAuthorityDto.d.ts +0 -25
  88. package/dist/models/policyDelegatedAuthorityDto.js +0 -2
  89. package/dist/models/policyEnvironmentDto.d.ts +0 -15
  90. package/dist/models/policyEnvironmentDto.js +0 -2
  91. package/dist/models/policyObligationDto.d.ts +0 -29
  92. package/dist/models/policyObligationDto.js +0 -2
  93. package/dist/models/policyObligationKind.d.ts +0 -17
  94. package/dist/models/policyObligationKind.js +0 -19
  95. package/dist/models/policyResourceDto.d.ts +0 -15
  96. package/dist/models/policyResourceDto.js +0 -2
  97. package/dist/models/policyRouteHintDto.d.ts +0 -14
  98. package/dist/models/policyRouteHintDto.js +0 -2
  99. package/dist/models/policySpaceRefDto.d.ts +0 -23
  100. package/dist/models/policySpaceRefDto.js +0 -2
  101. package/dist/models/policySubjectRefDto.d.ts +0 -14
  102. package/dist/models/policySubjectRefDto.js +0 -2
  103. package/dist/models/registerResourceOwnershipDto.d.ts +0 -34
  104. package/dist/models/registerResourceOwnershipDto.js +0 -2
  105. package/dist/models/registeredResourceDto.d.ts +0 -12
  106. package/dist/models/registeredResourceDto.js +0 -2
  107. package/dist/models/registeredResourcesDto.d.ts +0 -10
  108. package/dist/models/registeredResourcesDto.js +0 -2
  109. package/dist/models/registeredResourcesDtoDataEnvelope.d.ts +0 -9
  110. package/dist/models/registeredResourcesDtoDataEnvelope.js +0 -2
  111. package/dist/models/removeResourceShareDto.d.ts +0 -10
  112. package/dist/models/removeResourceShareDto.js +0 -2
  113. package/dist/models/replaceResourceOwnershipDto.d.ts +0 -34
  114. package/dist/models/replaceResourceOwnershipDto.js +0 -2
  115. package/dist/models/resourceOwnershipDto.d.ts +0 -15
  116. package/dist/models/resourceOwnershipDto.js +0 -2
  117. package/dist/models/resourceOwnershipDtoDataEnvelope.d.ts +0 -9
  118. package/dist/models/resourceOwnershipDtoDataEnvelope.js +0 -2
  119. package/dist/models/resourceOwnershipEntryDto.d.ts +0 -17
  120. package/dist/models/resourceOwnershipEntryDto.js +0 -2
  121. package/dist/models/resourceOwnershipReadDto.d.ts +0 -16
  122. package/dist/models/resourceOwnershipReadDto.js +0 -2
  123. package/dist/models/resourceOwnershipReadDtoDataEnvelope.d.ts +0 -9
  124. package/dist/models/resourceOwnershipReadDtoDataEnvelope.js +0 -2
  125. package/dist/models/resourceShareRefDto.d.ts +0 -21
  126. package/dist/models/resourceShareRefDto.js +0 -2
  127. package/dist/models/resourceVisibilityPattern.d.ts +0 -11
  128. package/dist/models/resourceVisibilityPattern.js +0 -13
  129. package/dist/models/runnerKind.d.ts +0 -15
  130. package/dist/models/runnerKind.js +0 -17
  131. package/dist/models/sessionParticipantRole.d.ts +0 -14
  132. package/dist/models/subjectRefDto.d.ts +0 -15
  133. package/dist/models/subjectRefDto.js +0 -2
  134. package/dist/models/visibleResourcesDto.d.ts +0 -9
  135. package/dist/models/visibleResourcesDtoDataEnvelope.d.ts +0 -9
  136. package/dist/models/visibleResourcesDtoDataEnvelope.js +0 -2
  137. /package/dist/models/{addResourceShareDto.js → adoptOrgPolicySetDto.js} +0 -0
  138. /package/dist/models/{authorizationCheckRequestDto.js → orgPolicySetDto.js} +0 -0
  139. /package/dist/models/{authorizationCheckResponseDto.js → orgPolicySetDtoDataEnvelope.js} +0 -0
  140. /package/dist/models/{listRegisteredResourcesDto.js → orgPolicySetDtoModel.js} +0 -0
  141. /package/dist/models/{policyCapabilityDto.js → orgPolicySetDtoModules.js} +0 -0
  142. /package/dist/models/{policyCheckRequestDtoAperture.js → policySetTestFileDto.js} +0 -0
  143. /package/dist/models/{policyConstraintsDto.js → policySetTestFileResultDto.js} +0 -0
  144. /package/dist/models/{authorizationCheckResponseDtoDataEnvelope.js → policySetTestResultsDto.js} +0 -0
  145. /package/dist/models/{authorizationReasonDto.js → policySetTestResultsDtoDataEnvelope.js} +0 -0
  146. /package/dist/models/{policyRouteHintDtoRequiredRunnerLabels.js → problemDetailsDtoParams.js} +0 -0
  147. /package/dist/models/{visibleResourcesDto.js → problemFieldIssueDtoParams.js} +0 -0
  148. /package/dist/models/{authorizationSuggestionDto.js → retiredNamespaceDtoDataEnvelope.js} +0 -0
  149. /package/dist/models/{listVisibleResourcesDto.js → runPolicySetTestsDto.js} +0 -0
  150. /package/dist/models/{policyActingAgentDto.js → runtimeModuleContributionDto.js} +0 -0
@@ -3,28 +3,10 @@
3
3
  * Authorization API
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
- import type { AuthorizationCheckRequestDto, AuthorizationCheckResponseDtoDataEnvelope, GrantVersionResponseDtoDataEnvelope, PolicyCheckBatchRequestDto, PolicyCheckBatchResponseDtoDataEnvelope, PolicyCheckRequestDto, PolicyDecisionDtoDataEnvelope } from '../../models';
7
- export declare const getAuthorizationControllerCheckUrl: () => string;
8
- /**
9
- * Called by xema-capability-router on every invocation. The verdict is OpenFGA-authoritative and then narrowed, in order, by the delegation clamp, the agent reach tier, and the ENVIRONMENT reach ceiling (the environment runs last on purpose: it is the outer boundary, so it must see the tier's output — a `connected` tier extends a deny into an allow, and the environment may then take that away). `requiresApproval` denies with APPROVAL_REQUIRED. NOT enforced here: `rateLimit` (accepted on a grant, read by nothing) and `ExecutionEnvironment.allowedCapabilities` (an enumerated per-ref list, deliberately not wired for the built-ins — see `environment-reach-ceiling`; it is enforced only by app-function-broker, for org-custom environments).
10
- * @summary Runtime allow/deny decision for a (subject, capability) tuple
11
- */
12
- export declare const authorizationControllerCheck: (authorizationCheckRequestDto: AuthorizationCheckRequestDto, options?: RequestInit) => Promise<AuthorizationCheckResponseDtoDataEnvelope>;
6
+ import type { GrantVersionResponseDtoDataEnvelope } from '../../models';
13
7
  export declare const getAuthorizationControllerGrantVersionUrl: (orgId: string) => string;
14
8
  /**
15
9
  * A cheap read of the per-org grant-version counter — bumped on every grant/environment/membership change. Consumers (e.g. app-platform delegated-session verify) key a short-lived effective-capability cache by it so a revoked role takes effect at the next miss rather than at token expiry. Fail-closed: an unavailable version store surfaces as a 5xx so the caller denies.
16
10
  * @summary Current durable monotonic grant-version for an org
17
11
  */
18
12
  export declare const authorizationControllerGrantVersion: (orgId: string, options?: RequestInit) => Promise<GrantVersionResponseDtoDataEnvelope>;
19
- export declare const getAuthorizationControllerPolicyCheckUrl: () => string;
20
- /**
21
- * wire surface. Accepts a PolicyRequest (== ExecutionContext) constructed by the capability router at the gateway boundary; returns a typed PolicyDecision { kind, reason?, obligations?, routeHints? }. The same decision matrix that powers POST /authorization/check is reused — this endpoint projects the verdict into the v4.3 envelope so the router can branch structurally on PolicyDecisionKind without parsing strings.
22
- * @summary Typed PolicyDecision for an ExecutionContext
23
- */
24
- export declare const authorizationControllerPolicyCheck: (policyCheckRequestDto: PolicyCheckRequestDto, options?: RequestInit) => Promise<PolicyDecisionDtoDataEnvelope>;
25
- export declare const getAuthorizationControllerPolicyCheckBatchUrl: () => string;
26
- /**
27
- * Wave-4 M1 batch surface. Accepts up to 128 independent PolicyRequests (each the EXACT single policy-check shape; 422 beyond the bound) and returns PolicyDecisions POSITIONALLY aligned with the request (results[i] is the decision for checks[i]). Every item runs the SAME decision pipeline as POST /authorization/policy-check — the batch only amortises HTTP round-trips for enumerating consumers (the capability BFF list path). Never-partial: a per-item DENY is a result, but any infrastructure failure mid-batch fails the whole call with 503. The PDP does not add batch-level caching; consumers own caching.
28
- * @summary Batch of typed PolicyDecisions for independent ExecutionContexts
29
- */
30
- export declare const authorizationControllerPolicyCheckBatch: (policyCheckBatchRequestDto: PolicyCheckBatchRequestDto, options?: RequestInit) => Promise<PolicyCheckBatchResponseDtoDataEnvelope>;
@@ -1,24 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.authorizationControllerPolicyCheckBatch = exports.getAuthorizationControllerPolicyCheckBatchUrl = exports.authorizationControllerPolicyCheck = exports.getAuthorizationControllerPolicyCheckUrl = exports.authorizationControllerGrantVersion = exports.getAuthorizationControllerGrantVersionUrl = exports.authorizationControllerCheck = exports.getAuthorizationControllerCheckUrl = void 0;
3
+ exports.authorizationControllerGrantVersion = exports.getAuthorizationControllerGrantVersionUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- const getAuthorizationControllerCheckUrl = () => {
6
- return `/authorization/check`;
7
- };
8
- exports.getAuthorizationControllerCheckUrl = getAuthorizationControllerCheckUrl;
9
- /**
10
- * Called by xema-capability-router on every invocation. The verdict is OpenFGA-authoritative and then narrowed, in order, by the delegation clamp, the agent reach tier, and the ENVIRONMENT reach ceiling (the environment runs last on purpose: it is the outer boundary, so it must see the tier's output — a `connected` tier extends a deny into an allow, and the environment may then take that away). `requiresApproval` denies with APPROVAL_REQUIRED. NOT enforced here: `rateLimit` (accepted on a grant, read by nothing) and `ExecutionEnvironment.allowedCapabilities` (an enumerated per-ref list, deliberately not wired for the built-ins — see `environment-reach-ceiling`; it is enforced only by app-function-broker, for org-custom environments).
11
- * @summary Runtime allow/deny decision for a (subject, capability) tuple
12
- */
13
- const authorizationControllerCheck = async (authorizationCheckRequestDto, options) => {
14
- return (0, custom_fetch_1.customFetch)((0, exports.getAuthorizationControllerCheckUrl)(), {
15
- ...options,
16
- method: 'POST',
17
- headers: { 'Content-Type': 'application/json', ...options?.headers },
18
- body: JSON.stringify(authorizationCheckRequestDto)
19
- });
20
- };
21
- exports.authorizationControllerCheck = authorizationControllerCheck;
22
5
  const getAuthorizationControllerGrantVersionUrl = (orgId) => {
23
6
  return `/authorization/grant-version/${orgId}`;
24
7
  };
@@ -34,37 +17,3 @@ const authorizationControllerGrantVersion = async (orgId, options) => {
34
17
  });
35
18
  };
36
19
  exports.authorizationControllerGrantVersion = authorizationControllerGrantVersion;
37
- const getAuthorizationControllerPolicyCheckUrl = () => {
38
- return `/authorization/policy-check`;
39
- };
40
- exports.getAuthorizationControllerPolicyCheckUrl = getAuthorizationControllerPolicyCheckUrl;
41
- /**
42
- * wire surface. Accepts a PolicyRequest (== ExecutionContext) constructed by the capability router at the gateway boundary; returns a typed PolicyDecision { kind, reason?, obligations?, routeHints? }. The same decision matrix that powers POST /authorization/check is reused — this endpoint projects the verdict into the v4.3 envelope so the router can branch structurally on PolicyDecisionKind without parsing strings.
43
- * @summary Typed PolicyDecision for an ExecutionContext
44
- */
45
- const authorizationControllerPolicyCheck = async (policyCheckRequestDto, options) => {
46
- return (0, custom_fetch_1.customFetch)((0, exports.getAuthorizationControllerPolicyCheckUrl)(), {
47
- ...options,
48
- method: 'POST',
49
- headers: { 'Content-Type': 'application/json', ...options?.headers },
50
- body: JSON.stringify(policyCheckRequestDto)
51
- });
52
- };
53
- exports.authorizationControllerPolicyCheck = authorizationControllerPolicyCheck;
54
- const getAuthorizationControllerPolicyCheckBatchUrl = () => {
55
- return `/authorization/policy-check/batch`;
56
- };
57
- exports.getAuthorizationControllerPolicyCheckBatchUrl = getAuthorizationControllerPolicyCheckBatchUrl;
58
- /**
59
- * Wave-4 M1 batch surface. Accepts up to 128 independent PolicyRequests (each the EXACT single policy-check shape; 422 beyond the bound) and returns PolicyDecisions POSITIONALLY aligned with the request (results[i] is the decision for checks[i]). Every item runs the SAME decision pipeline as POST /authorization/policy-check — the batch only amortises HTTP round-trips for enumerating consumers (the capability BFF list path). Never-partial: a per-item DENY is a result, but any infrastructure failure mid-batch fails the whole call with 503. The PDP does not add batch-level caching; consumers own caching.
60
- * @summary Batch of typed PolicyDecisions for independent ExecutionContexts
61
- */
62
- const authorizationControllerPolicyCheckBatch = async (policyCheckBatchRequestDto, options) => {
63
- return (0, custom_fetch_1.customFetch)((0, exports.getAuthorizationControllerPolicyCheckBatchUrl)(), {
64
- ...options,
65
- method: 'POST',
66
- headers: { 'Content-Type': 'application/json', ...options?.headers },
67
- body: JSON.stringify(policyCheckBatchRequestDto)
68
- });
69
- };
70
- exports.authorizationControllerPolicyCheckBatch = authorizationControllerPolicyCheckBatch;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { AdoptOrgPolicySetDto, OrgPolicySetDtoDataEnvelope, PolicySetTestResultsDtoDataEnvelope, RetiredNamespaceDtoDataEnvelope, RunPolicySetTestsDto } from '../../models';
7
+ export declare const getPolicySetsControllerOrgPolicySetUrl: (orgId: string) => string;
8
+ /**
9
+ * @summary The org's own policy set, or policySetId null when it runs the sealed base
10
+ */
11
+ export declare const policySetsControllerOrgPolicySet: (orgId: string, options?: RequestInit) => Promise<OrgPolicySetDtoDataEnvelope>;
12
+ export declare const getPolicySetsControllerAdoptUrl: (orgId: string) => string;
13
+ /**
14
+ * The PDP composes the base with runtimeModules itself. 422 POLICY_SET_HASH_MISMATCH when that composition is not policySetId; 422 POLICY_SET_COMPOSITION_REFUSED when the kernel composer refuses it; 409 POLICY_SET_SWITCH_CONFLICT when the pointer is no longer expectedCurrentPolicySetId. Identical compositions share one stored model. Moves this org only; an empty set returns it to the base.
15
+ * @summary Adopt a composed policy set for ONE org (CAS on its pointer)
16
+ */
17
+ export declare const policySetsControllerAdopt: (orgId: string, adoptOrgPolicySetDto: AdoptOrgPolicySetDto, options?: RequestInit) => Promise<void>;
18
+ export declare const getPolicySetsControllerRetireUrl: (orgId: string, namespace: string) => string;
19
+ /**
20
+ * @summary Uninstall steps 1–2 for one org: deny the namespace, delete its facts and the parent facts into it
21
+ */
22
+ export declare const policySetsControllerRetire: (orgId: string, namespace: string, options?: RequestInit) => Promise<RetiredNamespaceDtoDataEnvelope>;
23
+ export declare const getPolicySetsControllerRunTestsUrl: () => string;
24
+ /**
25
+ * @summary Run a composed model's .fga.yaml tests against the real OpenFGA server, each in an ephemeral store
26
+ */
27
+ export declare const policySetsControllerRunTests: (runPolicySetTestsDto: RunPolicySetTestsDto, options?: RequestInit) => Promise<PolicySetTestResultsDtoDataEnvelope>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.policySetsControllerRunTests = exports.getPolicySetsControllerRunTestsUrl = exports.policySetsControllerRetire = exports.getPolicySetsControllerRetireUrl = exports.policySetsControllerAdopt = exports.getPolicySetsControllerAdoptUrl = exports.policySetsControllerOrgPolicySet = exports.getPolicySetsControllerOrgPolicySetUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getPolicySetsControllerOrgPolicySetUrl = (orgId) => {
6
+ return `/internal/authorization/orgs/${orgId}/policy-set`;
7
+ };
8
+ exports.getPolicySetsControllerOrgPolicySetUrl = getPolicySetsControllerOrgPolicySetUrl;
9
+ /**
10
+ * @summary The org's own policy set, or policySetId null when it runs the sealed base
11
+ */
12
+ const policySetsControllerOrgPolicySet = async (orgId, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getPolicySetsControllerOrgPolicySetUrl)(orgId), {
14
+ ...options,
15
+ method: 'GET'
16
+ });
17
+ };
18
+ exports.policySetsControllerOrgPolicySet = policySetsControllerOrgPolicySet;
19
+ const getPolicySetsControllerAdoptUrl = (orgId) => {
20
+ return `/internal/authorization/orgs/${orgId}/policy-set`;
21
+ };
22
+ exports.getPolicySetsControllerAdoptUrl = getPolicySetsControllerAdoptUrl;
23
+ /**
24
+ * The PDP composes the base with runtimeModules itself. 422 POLICY_SET_HASH_MISMATCH when that composition is not policySetId; 422 POLICY_SET_COMPOSITION_REFUSED when the kernel composer refuses it; 409 POLICY_SET_SWITCH_CONFLICT when the pointer is no longer expectedCurrentPolicySetId. Identical compositions share one stored model. Moves this org only; an empty set returns it to the base.
25
+ * @summary Adopt a composed policy set for ONE org (CAS on its pointer)
26
+ */
27
+ const policySetsControllerAdopt = async (orgId, adoptOrgPolicySetDto, options) => {
28
+ return (0, custom_fetch_1.customFetch)((0, exports.getPolicySetsControllerAdoptUrl)(orgId), {
29
+ ...options,
30
+ method: 'PUT',
31
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
32
+ body: JSON.stringify(adoptOrgPolicySetDto)
33
+ });
34
+ };
35
+ exports.policySetsControllerAdopt = policySetsControllerAdopt;
36
+ const getPolicySetsControllerRetireUrl = (orgId, namespace) => {
37
+ return `/internal/authorization/orgs/${orgId}/module-namespaces/${namespace}/retire`;
38
+ };
39
+ exports.getPolicySetsControllerRetireUrl = getPolicySetsControllerRetireUrl;
40
+ /**
41
+ * @summary Uninstall steps 1–2 for one org: deny the namespace, delete its facts and the parent facts into it
42
+ */
43
+ const policySetsControllerRetire = async (orgId, namespace, options) => {
44
+ return (0, custom_fetch_1.customFetch)((0, exports.getPolicySetsControllerRetireUrl)(orgId, namespace), {
45
+ ...options,
46
+ method: 'POST'
47
+ });
48
+ };
49
+ exports.policySetsControllerRetire = policySetsControllerRetire;
50
+ const getPolicySetsControllerRunTestsUrl = () => {
51
+ return `/internal/authorization/policy-sets/test`;
52
+ };
53
+ exports.getPolicySetsControllerRunTestsUrl = getPolicySetsControllerRunTestsUrl;
54
+ /**
55
+ * @summary Run a composed model's .fga.yaml tests against the real OpenFGA server, each in an ephemeral store
56
+ */
57
+ const policySetsControllerRunTests = async (runPolicySetTestsDto, options) => {
58
+ return (0, custom_fetch_1.customFetch)((0, exports.getPolicySetsControllerRunTestsUrl)(), {
59
+ ...options,
60
+ method: 'POST',
61
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
62
+ body: JSON.stringify(runPolicySetTestsDto)
63
+ });
64
+ };
65
+ exports.policySetsControllerRunTests = policySetsControllerRunTests;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { configureClient, getClientConfig, ClientError, customFetch, type Client
2
2
  export * from './models';
3
3
  export * from './endpoints/agents/agents';
4
4
  export * from './endpoints/authorization/authorization';
5
+ export * from './endpoints/authorization-policy-sets/authorization-policy-sets';
5
6
  export * from './endpoints/capability-authority-requests/capability-authority-requests';
6
7
  export * from './endpoints/contribution-sync/contribution-sync';
7
8
  export * from './endpoints/credential-defaults/credential-defaults';
@@ -13,6 +14,5 @@ export * from './endpoints/output-routes/output-routes';
13
14
  export * from './endpoints/profiles/profiles';
14
15
  export * from './endpoints/relationships/relationships';
15
16
  export * from './endpoints/resource-revisions/resource-revisions';
16
- export * from './endpoints/resources/resources';
17
17
  export * from './endpoints/roles/roles';
18
18
  export * from './endpoints/teams/teams';
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "customFetch", { enumerable: true, get: function
24
24
  __exportStar(require("./models"), exports);
25
25
  __exportStar(require("./endpoints/agents/agents"), exports);
26
26
  __exportStar(require("./endpoints/authorization/authorization"), exports);
27
+ __exportStar(require("./endpoints/authorization-policy-sets/authorization-policy-sets"), exports);
27
28
  __exportStar(require("./endpoints/capability-authority-requests/capability-authority-requests"), exports);
28
29
  __exportStar(require("./endpoints/contribution-sync/contribution-sync"), exports);
29
30
  __exportStar(require("./endpoints/credential-defaults/credential-defaults"), exports);
@@ -35,6 +36,5 @@ __exportStar(require("./endpoints/output-routes/output-routes"), exports);
35
36
  __exportStar(require("./endpoints/profiles/profiles"), exports);
36
37
  __exportStar(require("./endpoints/relationships/relationships"), exports);
37
38
  __exportStar(require("./endpoints/resource-revisions/resource-revisions"), exports);
38
- __exportStar(require("./endpoints/resources/resources"), exports);
39
39
  __exportStar(require("./endpoints/roles/roles"), exports);
40
40
  __exportStar(require("./endpoints/teams/teams"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { RuntimeModuleContributionDto } from './runtimeModuleContributionDto.js';
7
+ export interface AdoptOrgPolicySetDto {
8
+ /**
9
+ * The composer modelHash biome-host composed and tested for base + runtimeModules.
10
+ * @pattern SHA256_HEX
11
+ */
12
+ policySetId: string;
13
+ /** The org's COMPLETE runtime module set; empty moves the org back to the base. */
14
+ runtimeModules: RuntimeModuleContributionDto[];
15
+ /**
16
+ * The pointer the caller composed against; null when it read the base.
17
+ * @nullable
18
+ * @pattern SHA256_HEX
19
+ */
20
+ expectedCurrentPolicySetId: string | null;
21
+ }
@@ -3,6 +3,9 @@
3
3
  * Authorization API
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
+ /**
7
+ * The environment's DATA ceiling: the most restrictive `DataClassification` an invocation may carry and still run here. The PDP compares it against `join(space floor, resource tag)` and DENIES when it is exceeded. `regulated` (the top of the rank) admits everything and is the default, so the ceiling refuses nothing until it is lowered.
8
+ */
6
9
  export type DataClassification = typeof DataClassification[keyof typeof DataClassification];
7
10
  export declare const DataClassification: {
8
11
  readonly public: "public";
@@ -4,7 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  /**
7
- * Closed set of built-in execution-environment classifications. Environment IDENTITY is a separate `environment:<slug>` ref — an org-custom environment carries its own slug there, and is still classified by one of these kinds.
7
+ * Every execution environment in which the subject holds this capability (closed enum).
8
8
  */
9
9
  export type ExecutionEnvironmentKind = typeof ExecutionEnvironmentKind[keyof typeof ExecutionEnvironmentKind];
10
10
  export declare const ExecutionEnvironmentKind: {
@@ -1,21 +1,12 @@
1
- export * from './addResourceShareDto';
2
1
  export * from './addRoleGrantDto';
3
2
  export * from './addTeamMemberDto';
3
+ export * from './adoptOrgPolicySetDto';
4
4
  export * from './agentProvisionDecision';
5
5
  export * from './agentProvisionReason';
6
6
  export * from './agentReachTier';
7
7
  export * from './assignRoleDto';
8
8
  export * from './authorityRowOwnerSpaceKind';
9
- export * from './authorizationCheckRequestDto';
10
- export * from './authorizationCheckResponseDto';
11
- export * from './authorizationCheckResponseDtoDataEnvelope';
12
- export * from './authorizationDecisionCode';
13
- export * from './authorizationReasonDto';
14
- export * from './authorizationSuggestionDto';
15
- export * from './authorizationSuggestionKind';
16
- export * from './biomeExecutionTrustTier';
17
9
  export * from './biomePermissionProfile';
18
- export * from './callerKind';
19
10
  export * from './capabilityAuthorityRequestDto';
20
11
  export * from './capabilityAuthorityRequestDtoDataArrayEnvelope';
21
12
  export * from './capabilityAuthorityRequestDtoDataEnvelope';
@@ -44,9 +35,7 @@ export * from './credentialDefaultDtoDataEnvelope';
44
35
  export * from './credentialDefaultsControllerDeleteParams';
45
36
  export * from './credentialDefaultsControllerGetParams';
46
37
  export * from './credentialDefaultsControllerListParams';
47
- export * from './credentialPrecedenceSource';
48
38
  export * from './dataClassification';
49
- export * from './dataResidency';
50
39
  export * from './describeObjectsResponseDto';
51
40
  export * from './describeObjectsResponseDtoDataEnvelope';
52
41
  export * from './environmentCeilingSource';
@@ -83,14 +72,16 @@ export * from './grantVersionResponseDtoDataEnvelope';
83
72
  export * from './grantsControllerListParams';
84
73
  export * from './impactedOutputRouteConsumerDto';
85
74
  export * from './impactedOutputRouteConsumerDtoDataArrayEnvelope';
86
- export * from './listRegisteredResourcesDto';
87
- export * from './listVisibleResourcesDto';
88
75
  export * from './object';
89
76
  export * from './objectLifecycle';
90
77
  export * from './openCapabilityAuthorityRequestDto';
91
78
  export * from './openCapabilityAuthorityRequestDtoSubjectKind';
92
79
  export * from './openFgaRelationshipDto';
93
80
  export * from './openFgaRelationshipDtoPaginatedEnvelope';
81
+ export * from './orgPolicySetDto';
82
+ export * from './orgPolicySetDtoDataEnvelope';
83
+ export * from './orgPolicySetDtoModel';
84
+ export * from './orgPolicySetDtoModules';
94
85
  export * from './outputRouteAuthorityDto';
95
86
  export * from './outputRouteAuthorityDtoAllowedOutputSchema';
96
87
  export * from './outputRouteAuthorityDtoDataEnvelope';
@@ -107,33 +98,17 @@ export * from './outputRouteRevisionDto';
107
98
  export * from './outputRouteRevisionDtoAllowedOutputSchema';
108
99
  export * from './outputRouteRevisionsControllerReleaseHistoryParams';
109
100
  export * from './paginationMeta';
110
- export * from './policyActingAgentDto';
111
- export * from './policyActingAgentDtoKind';
112
- export * from './policyActingForDto';
113
- export * from './policyBiomeDto';
114
- export * from './policyCallerDto';
115
- export * from './policyCapabilityDto';
116
- export * from './policyCheckBatchRequestDto';
117
- export * from './policyCheckBatchResponseDto';
118
- export * from './policyCheckBatchResponseDtoDataEnvelope';
119
- export * from './policyCheckRequestDto';
120
- export * from './policyCheckRequestDtoAperture';
121
- export * from './policyConstraintsDto';
122
- export * from './policyDecisionDto';
123
- export * from './policyDecisionDtoDataEnvelope';
124
- export * from './policyDecisionKind';
125
- export * from './policyDelegatedAuthorityDto';
126
- export * from './policyEnvironmentDto';
127
- export * from './policyObligationDto';
128
- export * from './policyObligationKind';
129
- export * from './policyResourceDto';
130
- export * from './policyRouteHintDto';
131
- export * from './policyRouteHintDtoRequiredRunnerLabels';
132
- export * from './policySpaceRefDto';
133
- export * from './policySubjectRefDto';
101
+ export * from './policySetTestFileDto';
102
+ export * from './policySetTestFileResultDto';
103
+ export * from './policySetTestResultsDto';
104
+ export * from './policySetTestResultsDtoDataEnvelope';
134
105
  export * from './previewOutputRouteImpactDto';
106
+ export * from './problemActionableBy';
135
107
  export * from './problemDetailsDto';
108
+ export * from './problemDetailsDtoParams';
136
109
  export * from './problemFieldIssueDto';
110
+ export * from './problemFieldIssueDtoParams';
111
+ export * from './problemRetry';
137
112
  export * from './profilePolicyTemplateDto';
138
113
  export * from './profilePolicyTemplateDtoDataArrayEnvelope';
139
114
  export * from './profilePolicyTemplateDtoNotes';
@@ -142,16 +117,10 @@ export * from './provisionAgentResultDto';
142
117
  export * from './provisionAgentResultDtoDataEnvelope';
143
118
  export * from './provisionedCapabilityDto';
144
119
  export * from './recordAgentReachTierRequestDto';
145
- export * from './registerResourceOwnershipDto';
146
120
  export * from './registerResourceRevisionDto';
147
- export * from './registeredResourceDto';
148
121
  export * from './registeredResourceRevisionDto';
149
122
  export * from './registeredResourceRevisionDtoDataEnvelope';
150
- export * from './registeredResourcesDto';
151
- export * from './registeredResourcesDtoDataEnvelope';
152
123
  export * from './relationshipsControllerListParams';
153
- export * from './removeResourceShareDto';
154
- export * from './replaceResourceOwnershipDto';
155
124
  export * from './requestOutputRouteRetirementDto';
156
125
  export * from './requestOutputRouteRevisionReleaseDto';
157
126
  export * from './requestOutputRouteRevisionReleaseDtoAllowedOutputSchema';
@@ -160,15 +129,10 @@ export * from './resolveExactOutputRouteDto';
160
129
  export * from './resolveExactResourceRevisionDto';
161
130
  export * from './resolveOutputRouteChannelDto';
162
131
  export * from './resourceManagedBy';
163
- export * from './resourceOwnershipDto';
164
- export * from './resourceOwnershipDtoDataEnvelope';
165
- export * from './resourceOwnershipEntryDto';
166
- export * from './resourceOwnershipReadDto';
167
- export * from './resourceOwnershipReadDtoDataEnvelope';
168
- export * from './resourceShareRefDto';
169
132
  export * from './resourceSubjectAccessResult';
170
133
  export * from './resourceSubjectRefDto';
171
- export * from './resourceVisibilityPattern';
134
+ export * from './retiredNamespaceDto';
135
+ export * from './retiredNamespaceDtoDataEnvelope';
172
136
  export * from './roleAssignmentDto';
173
137
  export * from './roleAssignmentDtoDataArrayEnvelope';
174
138
  export * from './roleAssignmentDtoDataEnvelope';
@@ -180,11 +144,12 @@ export * from './roleGrantDtoDataArrayEnvelope';
180
144
  export * from './roleGrantDtoDataEnvelope';
181
145
  export * from './rolesControllerListParams';
182
146
  export * from './rollbackExecutionEnvironmentDto';
183
- export * from './runnerKind';
184
- export * from './sessionParticipantRole';
147
+ export * from './runPolicySetTestsDto';
148
+ export * from './runPolicySetTestsDtoModel';
149
+ export * from './runtimeModuleContributionDto';
150
+ export * from './runtimeModuleContributionDtoManifest';
185
151
  export * from './spaceKind';
186
152
  export * from './subjectKind';
187
- export * from './subjectRefDto';
188
153
  export * from './teamDto';
189
154
  export * from './teamDtoDataArrayEnvelope';
190
155
  export * from './teamDtoDataEnvelope';
@@ -200,8 +165,6 @@ export * from './updateGrantDto';
200
165
  export * from './updateRoleDto';
201
166
  export * from './updateTeamDto';
202
167
  export * from './upsertCredentialDefaultDto';
203
- export * from './visibleResourcesDto';
204
- export * from './visibleResourcesDtoDataEnvelope';
205
168
  export * from './xemaObjectKind';
206
169
  export * from './xemaObjectResponseDto';
207
170
  export * from './xemaObjectResponseDtoPayload';
@@ -15,24 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
- __exportStar(require("./addResourceShareDto"), exports);
19
18
  __exportStar(require("./addRoleGrantDto"), exports);
20
19
  __exportStar(require("./addTeamMemberDto"), exports);
20
+ __exportStar(require("./adoptOrgPolicySetDto"), exports);
21
21
  __exportStar(require("./agentProvisionDecision"), exports);
22
22
  __exportStar(require("./agentProvisionReason"), exports);
23
23
  __exportStar(require("./agentReachTier"), exports);
24
24
  __exportStar(require("./assignRoleDto"), exports);
25
25
  __exportStar(require("./authorityRowOwnerSpaceKind"), exports);
26
- __exportStar(require("./authorizationCheckRequestDto"), exports);
27
- __exportStar(require("./authorizationCheckResponseDto"), exports);
28
- __exportStar(require("./authorizationCheckResponseDtoDataEnvelope"), exports);
29
- __exportStar(require("./authorizationDecisionCode"), exports);
30
- __exportStar(require("./authorizationReasonDto"), exports);
31
- __exportStar(require("./authorizationSuggestionDto"), exports);
32
- __exportStar(require("./authorizationSuggestionKind"), exports);
33
- __exportStar(require("./biomeExecutionTrustTier"), exports);
34
26
  __exportStar(require("./biomePermissionProfile"), exports);
35
- __exportStar(require("./callerKind"), exports);
36
27
  __exportStar(require("./capabilityAuthorityRequestDto"), exports);
37
28
  __exportStar(require("./capabilityAuthorityRequestDtoDataArrayEnvelope"), exports);
38
29
  __exportStar(require("./capabilityAuthorityRequestDtoDataEnvelope"), exports);
@@ -61,9 +52,7 @@ __exportStar(require("./credentialDefaultDtoDataEnvelope"), exports);
61
52
  __exportStar(require("./credentialDefaultsControllerDeleteParams"), exports);
62
53
  __exportStar(require("./credentialDefaultsControllerGetParams"), exports);
63
54
  __exportStar(require("./credentialDefaultsControllerListParams"), exports);
64
- __exportStar(require("./credentialPrecedenceSource"), exports);
65
55
  __exportStar(require("./dataClassification"), exports);
66
- __exportStar(require("./dataResidency"), exports);
67
56
  __exportStar(require("./describeObjectsResponseDto"), exports);
68
57
  __exportStar(require("./describeObjectsResponseDtoDataEnvelope"), exports);
69
58
  __exportStar(require("./environmentCeilingSource"), exports);
@@ -100,14 +89,16 @@ __exportStar(require("./grantVersionResponseDtoDataEnvelope"), exports);
100
89
  __exportStar(require("./grantsControllerListParams"), exports);
101
90
  __exportStar(require("./impactedOutputRouteConsumerDto"), exports);
102
91
  __exportStar(require("./impactedOutputRouteConsumerDtoDataArrayEnvelope"), exports);
103
- __exportStar(require("./listRegisteredResourcesDto"), exports);
104
- __exportStar(require("./listVisibleResourcesDto"), exports);
105
92
  __exportStar(require("./object"), exports);
106
93
  __exportStar(require("./objectLifecycle"), exports);
107
94
  __exportStar(require("./openCapabilityAuthorityRequestDto"), exports);
108
95
  __exportStar(require("./openCapabilityAuthorityRequestDtoSubjectKind"), exports);
109
96
  __exportStar(require("./openFgaRelationshipDto"), exports);
110
97
  __exportStar(require("./openFgaRelationshipDtoPaginatedEnvelope"), exports);
98
+ __exportStar(require("./orgPolicySetDto"), exports);
99
+ __exportStar(require("./orgPolicySetDtoDataEnvelope"), exports);
100
+ __exportStar(require("./orgPolicySetDtoModel"), exports);
101
+ __exportStar(require("./orgPolicySetDtoModules"), exports);
111
102
  __exportStar(require("./outputRouteAuthorityDto"), exports);
112
103
  __exportStar(require("./outputRouteAuthorityDtoAllowedOutputSchema"), exports);
113
104
  __exportStar(require("./outputRouteAuthorityDtoDataEnvelope"), exports);
@@ -124,33 +115,17 @@ __exportStar(require("./outputRouteRevisionDto"), exports);
124
115
  __exportStar(require("./outputRouteRevisionDtoAllowedOutputSchema"), exports);
125
116
  __exportStar(require("./outputRouteRevisionsControllerReleaseHistoryParams"), exports);
126
117
  __exportStar(require("./paginationMeta"), exports);
127
- __exportStar(require("./policyActingAgentDto"), exports);
128
- __exportStar(require("./policyActingAgentDtoKind"), exports);
129
- __exportStar(require("./policyActingForDto"), exports);
130
- __exportStar(require("./policyBiomeDto"), exports);
131
- __exportStar(require("./policyCallerDto"), exports);
132
- __exportStar(require("./policyCapabilityDto"), exports);
133
- __exportStar(require("./policyCheckBatchRequestDto"), exports);
134
- __exportStar(require("./policyCheckBatchResponseDto"), exports);
135
- __exportStar(require("./policyCheckBatchResponseDtoDataEnvelope"), exports);
136
- __exportStar(require("./policyCheckRequestDto"), exports);
137
- __exportStar(require("./policyCheckRequestDtoAperture"), exports);
138
- __exportStar(require("./policyConstraintsDto"), exports);
139
- __exportStar(require("./policyDecisionDto"), exports);
140
- __exportStar(require("./policyDecisionDtoDataEnvelope"), exports);
141
- __exportStar(require("./policyDecisionKind"), exports);
142
- __exportStar(require("./policyDelegatedAuthorityDto"), exports);
143
- __exportStar(require("./policyEnvironmentDto"), exports);
144
- __exportStar(require("./policyObligationDto"), exports);
145
- __exportStar(require("./policyObligationKind"), exports);
146
- __exportStar(require("./policyResourceDto"), exports);
147
- __exportStar(require("./policyRouteHintDto"), exports);
148
- __exportStar(require("./policyRouteHintDtoRequiredRunnerLabels"), exports);
149
- __exportStar(require("./policySpaceRefDto"), exports);
150
- __exportStar(require("./policySubjectRefDto"), exports);
118
+ __exportStar(require("./policySetTestFileDto"), exports);
119
+ __exportStar(require("./policySetTestFileResultDto"), exports);
120
+ __exportStar(require("./policySetTestResultsDto"), exports);
121
+ __exportStar(require("./policySetTestResultsDtoDataEnvelope"), exports);
151
122
  __exportStar(require("./previewOutputRouteImpactDto"), exports);
123
+ __exportStar(require("./problemActionableBy"), exports);
152
124
  __exportStar(require("./problemDetailsDto"), exports);
125
+ __exportStar(require("./problemDetailsDtoParams"), exports);
153
126
  __exportStar(require("./problemFieldIssueDto"), exports);
127
+ __exportStar(require("./problemFieldIssueDtoParams"), exports);
128
+ __exportStar(require("./problemRetry"), exports);
154
129
  __exportStar(require("./profilePolicyTemplateDto"), exports);
155
130
  __exportStar(require("./profilePolicyTemplateDtoDataArrayEnvelope"), exports);
156
131
  __exportStar(require("./profilePolicyTemplateDtoNotes"), exports);
@@ -159,16 +134,10 @@ __exportStar(require("./provisionAgentResultDto"), exports);
159
134
  __exportStar(require("./provisionAgentResultDtoDataEnvelope"), exports);
160
135
  __exportStar(require("./provisionedCapabilityDto"), exports);
161
136
  __exportStar(require("./recordAgentReachTierRequestDto"), exports);
162
- __exportStar(require("./registerResourceOwnershipDto"), exports);
163
137
  __exportStar(require("./registerResourceRevisionDto"), exports);
164
- __exportStar(require("./registeredResourceDto"), exports);
165
138
  __exportStar(require("./registeredResourceRevisionDto"), exports);
166
139
  __exportStar(require("./registeredResourceRevisionDtoDataEnvelope"), exports);
167
- __exportStar(require("./registeredResourcesDto"), exports);
168
- __exportStar(require("./registeredResourcesDtoDataEnvelope"), exports);
169
140
  __exportStar(require("./relationshipsControllerListParams"), exports);
170
- __exportStar(require("./removeResourceShareDto"), exports);
171
- __exportStar(require("./replaceResourceOwnershipDto"), exports);
172
141
  __exportStar(require("./requestOutputRouteRetirementDto"), exports);
173
142
  __exportStar(require("./requestOutputRouteRevisionReleaseDto"), exports);
174
143
  __exportStar(require("./requestOutputRouteRevisionReleaseDtoAllowedOutputSchema"), exports);
@@ -177,15 +146,10 @@ __exportStar(require("./resolveExactOutputRouteDto"), exports);
177
146
  __exportStar(require("./resolveExactResourceRevisionDto"), exports);
178
147
  __exportStar(require("./resolveOutputRouteChannelDto"), exports);
179
148
  __exportStar(require("./resourceManagedBy"), exports);
180
- __exportStar(require("./resourceOwnershipDto"), exports);
181
- __exportStar(require("./resourceOwnershipDtoDataEnvelope"), exports);
182
- __exportStar(require("./resourceOwnershipEntryDto"), exports);
183
- __exportStar(require("./resourceOwnershipReadDto"), exports);
184
- __exportStar(require("./resourceOwnershipReadDtoDataEnvelope"), exports);
185
- __exportStar(require("./resourceShareRefDto"), exports);
186
149
  __exportStar(require("./resourceSubjectAccessResult"), exports);
187
150
  __exportStar(require("./resourceSubjectRefDto"), exports);
188
- __exportStar(require("./resourceVisibilityPattern"), exports);
151
+ __exportStar(require("./retiredNamespaceDto"), exports);
152
+ __exportStar(require("./retiredNamespaceDtoDataEnvelope"), exports);
189
153
  __exportStar(require("./roleAssignmentDto"), exports);
190
154
  __exportStar(require("./roleAssignmentDtoDataArrayEnvelope"), exports);
191
155
  __exportStar(require("./roleAssignmentDtoDataEnvelope"), exports);
@@ -197,11 +161,12 @@ __exportStar(require("./roleGrantDtoDataArrayEnvelope"), exports);
197
161
  __exportStar(require("./roleGrantDtoDataEnvelope"), exports);
198
162
  __exportStar(require("./rolesControllerListParams"), exports);
199
163
  __exportStar(require("./rollbackExecutionEnvironmentDto"), exports);
200
- __exportStar(require("./runnerKind"), exports);
201
- __exportStar(require("./sessionParticipantRole"), exports);
164
+ __exportStar(require("./runPolicySetTestsDto"), exports);
165
+ __exportStar(require("./runPolicySetTestsDtoModel"), exports);
166
+ __exportStar(require("./runtimeModuleContributionDto"), exports);
167
+ __exportStar(require("./runtimeModuleContributionDtoManifest"), exports);
202
168
  __exportStar(require("./spaceKind"), exports);
203
169
  __exportStar(require("./subjectKind"), exports);
204
- __exportStar(require("./subjectRefDto"), exports);
205
170
  __exportStar(require("./teamDto"), exports);
206
171
  __exportStar(require("./teamDtoDataArrayEnvelope"), exports);
207
172
  __exportStar(require("./teamDtoDataEnvelope"), exports);
@@ -217,8 +182,6 @@ __exportStar(require("./updateGrantDto"), exports);
217
182
  __exportStar(require("./updateRoleDto"), exports);
218
183
  __exportStar(require("./updateTeamDto"), exports);
219
184
  __exportStar(require("./upsertCredentialDefaultDto"), exports);
220
- __exportStar(require("./visibleResourcesDto"), exports);
221
- __exportStar(require("./visibleResourcesDtoDataEnvelope"), exports);
222
185
  __exportStar(require("./xemaObjectKind"), exports);
223
186
  __exportStar(require("./xemaObjectResponseDto"), exports);
224
187
  __exportStar(require("./xemaObjectResponseDtoPayload"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { OrgPolicySetDtoModel } from './orgPolicySetDtoModel.js';
7
+ import type { OrgPolicySetDtoModules } from './orgPolicySetDtoModules.js';
8
+ export interface OrgPolicySetDto {
9
+ /**
10
+ * The policy set content address, or null for the base.
11
+ * @nullable
12
+ */
13
+ policySetId: string | null;
14
+ /** The OpenFGA JSON model. */
15
+ model?: OrgPolicySetDtoModel;
16
+ /** namespace → { moduleVersion, contentHash }. */
17
+ modules?: OrgPolicySetDtoModules;
18
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { OrgPolicySetDto } from './orgPolicySetDto.js';
7
+ export interface OrgPolicySetDtoDataEnvelope {
8
+ data: OrgPolicySetDto;
9
+ }
@@ -3,6 +3,9 @@
3
3
  * Authorization API
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
- export type PolicyRouteHintDtoRequiredRunnerLabels = {
7
- [key: string]: string;
6
+ /**
7
+ * The OpenFGA JSON model.
8
+ */
9
+ export type OrgPolicySetDtoModel = {
10
+ [key: string]: unknown;
8
11
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * namespace → { moduleVersion, contentHash }.
8
+ */
9
+ export type OrgPolicySetDtoModules = {
10
+ [key: string]: unknown;
11
+ };