@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
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AuthorizationDecisionCode = void 0;
9
- exports.AuthorizationDecisionCode = {
10
- MATCHED_GRANT: 'MATCHED_GRANT',
11
- NO_GRANT_FOUND: 'NO_GRANT_FOUND',
12
- GRANT_REVOKED: 'GRANT_REVOKED',
13
- CAPABILITY_DENIED_BY_ENVIRONMENT: 'CAPABILITY_DENIED_BY_ENVIRONMENT',
14
- CAPABILITY_REQUIRES_APPROVAL: 'CAPABILITY_REQUIRES_APPROVAL',
15
- DELEGATION_GRANT_INSUFFICIENT: 'DELEGATION_GRANT_INSUFFICIENT',
16
- RESOURCE_NOT_OWNED: 'RESOURCE_NOT_OWNED',
17
- RESOURCE_SHARE_LEVEL_INSUFFICIENT: 'RESOURCE_SHARE_LEVEL_INSUFFICIENT',
18
- RESOURCE_UNREGISTERED: 'RESOURCE_UNREGISTERED',
19
- REACH_TIER_DENIED: 'REACH_TIER_DENIED',
20
- };
@@ -1,11 +0,0 @@
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 { AuthorizationDecisionCode } from './authorizationDecisionCode.js';
7
- export interface AuthorizationReasonDto {
8
- code: AuthorizationDecisionCode;
9
- /** @minLength 1 */
10
- detail: string;
11
- }
@@ -1,25 +0,0 @@
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 { AuthorizationSuggestionKind } from './authorizationSuggestionKind.js';
7
- export interface AuthorizationSuggestionDto {
8
- kind: AuthorizationSuggestionKind;
9
- /** @minLength 1 */
10
- capability?: string;
11
- /** @minLength 1 */
12
- environment?: string;
13
- /** @minLength 1 */
14
- resource?: string;
15
- /**
16
- * For `switch-environment`: the environment the request was sent with (denied). For other kinds, undefined.
17
- * @minLength 1
18
- */
19
- from?: string;
20
- /**
21
- * For `switch-environment`: a environment the caller already holds a matching grant in. For other kinds, undefined.
22
- * @minLength 1
23
- */
24
- to?: string;
25
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type AuthorizationSuggestionKind = typeof AuthorizationSuggestionKind[keyof typeof AuthorizationSuggestionKind];
7
- export declare const AuthorizationSuggestionKind: {
8
- readonly 'request-grant': "request-grant";
9
- readonly 'switch-environment': "switch-environment";
10
- readonly 'request-approval': "request-approval";
11
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AuthorizationSuggestionKind = void 0;
9
- exports.AuthorizationSuggestionKind = {
10
- 'request-grant': 'request-grant',
11
- 'switch-environment': 'switch-environment',
12
- 'request-approval': 'request-approval',
13
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type BiomeExecutionTrustTier = typeof BiomeExecutionTrustTier[keyof typeof BiomeExecutionTrustTier];
7
- export declare const BiomeExecutionTrustTier: {
8
- readonly official: "official";
9
- readonly verified: "verified";
10
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.BiomeExecutionTrustTier = void 0;
9
- exports.BiomeExecutionTrustTier = {
10
- official: 'official',
11
- verified: 'verified',
12
- };
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type CallerKind = typeof CallerKind[keyof typeof CallerKind];
7
- export declare const CallerKind: {
8
- readonly web: "web";
9
- readonly api: "api";
10
- readonly agent: "agent";
11
- readonly workflow: "workflow";
12
- readonly shell: "shell";
13
- readonly scheduler: "scheduler";
14
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CallerKind = void 0;
9
- exports.CallerKind = {
10
- web: 'web',
11
- api: 'api',
12
- agent: 'agent',
13
- workflow: 'workflow',
14
- shell: 'shell',
15
- scheduler: 'scheduler',
16
- };
@@ -1,17 +0,0 @@
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
- * Which precedence tier supplied `credentialBindingId` (explicit grant > capability default > project default > org default). Populated iff `credentialBindingId` is present.
8
- */
9
- export type CredentialPrecedenceSource = typeof CredentialPrecedenceSource[keyof typeof CredentialPrecedenceSource];
10
- export declare const CredentialPrecedenceSource: {
11
- readonly explicit: "explicit";
12
- readonly capability_default: "capability_default";
13
- readonly user_default: "user_default";
14
- readonly project_default: "project_default";
15
- readonly org_default: "org_default";
16
- readonly platform_default: "platform_default";
17
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CredentialPrecedenceSource = void 0;
9
- exports.CredentialPrecedenceSource = {
10
- explicit: 'explicit',
11
- capability_default: 'capability_default',
12
- user_default: 'user_default',
13
- project_default: 'project_default',
14
- org_default: 'org_default',
15
- platform_default: 'platform_default',
16
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type DataResidency = typeof DataResidency[keyof typeof DataResidency];
7
- export declare const DataResidency: {
8
- readonly 'customer-private': "customer-private";
9
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DataResidency = void 0;
9
- exports.DataResidency = {
10
- 'customer-private': 'customer-private',
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export interface ListRegisteredResourcesDto {
7
- /**
8
- * Resource kind/type slug.
9
- * @minLength 1
10
- */
11
- resourceType: string;
12
- }
@@ -1,20 +0,0 @@
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 { ResourceSubjectRefDto } from './resourceSubjectRefDto.js';
7
- export interface ListVisibleResourcesDto {
8
- /**
9
- * Resource kind/type slug.
10
- * @minLength 1
11
- */
12
- resourceType: string;
13
- /**
14
- * The resource kind's own name for the MINIMUM level the subject must hold. Omitted = the visibility question (owner ∪ shared at any level ∪ org-shared). Present = the authority question (owner ∪ shared at or above this level); org-shared instances are NOT included, because org-shared is a visibility pattern rather than a rung.
15
- * @minLength 1
16
- */
17
- minLevel?: string;
18
- /** The subject whose visible instances are enumerated. */
19
- subject: ResourceSubjectRefDto;
20
- }
@@ -1,14 +0,0 @@
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 { PolicyActingAgentDtoKind } from './policyActingAgentDtoKind.js';
7
- export interface PolicyActingAgentDto {
8
- kind: PolicyActingAgentDtoKind;
9
- /**
10
- * The agent's stable composition SLUG.
11
- * @minLength 1
12
- */
13
- id: string;
14
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type PolicyActingAgentDtoKind = typeof PolicyActingAgentDtoKind[keyof typeof PolicyActingAgentDtoKind];
7
- export declare const PolicyActingAgentDtoKind: {
8
- readonly agent: "agent";
9
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.PolicyActingAgentDtoKind = void 0;
9
- exports.PolicyActingAgentDtoKind = {
10
- agent: 'agent',
11
- };
@@ -1,29 +0,0 @@
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 { SubjectKind } from './subjectKind.js';
7
- export interface PolicyActingForDto {
8
- kind: SubjectKind;
9
- /** @minLength 1 */
10
- id: string;
11
- /**
12
- * Mirrors kernel `ActingForRef.clientId` — the ISSUER-STAMPED OAuth client
13
- * identity of this delegation hop (`azp`, else `client_id`). Never
14
- * caller-asserted: an OAuth client cannot claim another client's id inside a
15
- * token the issuer signed. Absent ⇒ "unknown", never a match.
16
- * @minLength 1
17
- */
18
- clientId?: string;
19
- /**
20
- * Mirrors kernel `ActingForRef.principalId` — the ISSUER-STAMPED,
21
- * rotation-stable identity-api principal id of this hop (`principal_id`).
22
- * `resolveActorChainFromClaims` stamps it on every hop whose claims carry
23
- * one, so a gateway forwarding a verified chain sends it. Undeclared here,
24
- * `forbidNonWhitelisted` refused the whole policy check with a 400 — which
25
- * the gateway fails closed on — for any chain containing such a hop.
26
- * @minLength 1
27
- */
28
- principalId?: string;
29
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
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 { BiomeExecutionTrustTier } from './biomeExecutionTrustTier.js';
7
- export interface PolicyBiomeDto {
8
- /** @minLength 1 */
9
- id: string;
10
- /** @minLength 1 */
11
- version: string;
12
- trustTier: BiomeExecutionTrustTier;
13
- signatureVerified: boolean;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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 { CallerKind } from './callerKind.js';
7
- export interface PolicyCallerDto {
8
- kind: CallerKind;
9
- /** @minLength 1 */
10
- appId?: string;
11
- /** @minLength 1 */
12
- sessionId?: string;
13
- /** @minLength 1 */
14
- ip?: string;
15
- /** @minLength 1 */
16
- userAgent?: string;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export interface PolicyCapabilityDto {
7
- /**
8
- * <biome>:<verb>@<major> canonical CapabilityRef.
9
- * @minLength 1
10
- */
11
- ref: string;
12
- /** @minLength 1 */
13
- inputHash?: string;
14
- }
@@ -1,13 +0,0 @@
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 { PolicyCheckRequestDto } from './policyCheckRequestDto.js';
7
- export interface PolicyCheckBatchRequestDto {
8
- /**
9
- * Independent policy checks — each item is the EXACT single `POST /authorization/policy-check` request shape. At most 128 per call (422 beyond).
10
- * @maxItems 128
11
- */
12
- checks: PolicyCheckRequestDto[];
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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 { PolicyDecisionDto } from './policyDecisionDto.js';
7
- export interface PolicyCheckBatchResponseDto {
8
- /** Positionally aligned with `checks` — results[i] is the decision for checks[i]. A per-item DENY is a result, never an error; the response is never partial (any infrastructure failure fails the whole call). */
9
- results: PolicyDecisionDto[];
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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 { PolicyCheckBatchResponseDto } from './policyCheckBatchResponseDto.js';
7
- export interface PolicyCheckBatchResponseDtoDataEnvelope {
8
- data: PolicyCheckBatchResponseDto;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,96 +0,0 @@
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 { PolicyActingAgentDto } from './policyActingAgentDto.js';
7
- import type { PolicyActingForDto } from './policyActingForDto.js';
8
- import type { PolicyBiomeDto } from './policyBiomeDto.js';
9
- import type { PolicyCallerDto } from './policyCallerDto.js';
10
- import type { PolicyCapabilityDto } from './policyCapabilityDto.js';
11
- import type { PolicyCheckRequestDtoAperture } from './policyCheckRequestDtoAperture.js';
12
- import type { PolicyConstraintsDto } from './policyConstraintsDto.js';
13
- import type { PolicyDelegatedAuthorityDto } from './policyDelegatedAuthorityDto.js';
14
- import type { PolicyEnvironmentDto } from './policyEnvironmentDto.js';
15
- import type { PolicyResourceDto } from './policyResourceDto.js';
16
- import type { PolicySpaceRefDto } from './policySpaceRefDto.js';
17
- import type { PolicySubjectRefDto } from './policySubjectRefDto.js';
18
- import type { SessionParticipantRole } from './sessionParticipantRole.js';
19
- export interface PolicyCheckRequestDto {
20
- /** @minLength 1 */
21
- id: string;
22
- /** @minLength 1 */
23
- requestId: string;
24
- /** @minLength 1 */
25
- traceId: string;
26
- subject: PolicySubjectRefDto;
27
- caller: PolicyCallerDto;
28
- space: PolicySpaceRefDto;
29
- environment: PolicyEnvironmentDto;
30
- biome?: PolicyBiomeDto;
31
- capability: PolicyCapabilityDto;
32
- resource?: PolicyResourceDto;
33
- constraints?: PolicyConstraintsDto;
34
- actorChain?: PolicyActingForDto[];
35
- /**
36
- * The caller's VERIFIED delegated authority (kernel
37
- * `ExecutionContext.delegation`). A CEILING, never a grant — see
38
- * {@link PolicyDelegatedAuthorityDto} and the PDP stage that reads it
39
- * (`AuthorizationService.applyDelegatedAuthorityCeiling`).
40
- */
41
- delegation?: PolicyDelegatedAuthorityDto;
42
- /**
43
- * Opaque credential-binding id already selected for this invocation. Carried
44
- * on the kernel envelope (a re-checked / replayed context round-trips it), so
45
- * the wire must accept it. NEVER a secret. The PDP re-resolves the binding
46
- * itself via the precedence ladder and returns it on `PolicyDecision` — it
47
- * does not trust an inbound value.
48
- * @minLength 1
49
- */
50
- credentialBindingId?: string;
51
- /**
52
- * WHICH AGENT is acting — an IDENTITY, never an authority value.
53
- *
54
- * ── WHAT IT REPLACED, AND WHY THAT FIELD IS GONE (04-critical-defects B5) ──
55
- *
56
- * `reachTier` used to be declared here: the acting agent's permission
57
- * CEILING, taken off the request body. This endpoint is fenced by
58
- * `ServiceActorGuard`, so any platform service token could name one — and the
59
- * tier is not narrowing-only. `connected` turns a DENY into an ALLOW for
60
- * integration-reach capabilities and `full` LIFTS the delegation clamp, so a
61
- * caller could ask this service to stop attenuating an agent to its
62
- * delegators. That is the caller-supplied security input
63
- * `.claude/rules/public-and-internal-route-guarding.md` forbids outright.
64
- *
65
- * The property is DELETED rather than ignored, and the deletion is the
66
- * enforcement: the canonical pipe runs `forbidNonWhitelisted: true`, so a
67
- * body still carrying `reachTier` is a `400 property reachTier should not
68
- * exist`. There is no path that accepts it and drops it quietly.
69
- *
70
- * ── THE ANSWER IS RESOLVED HERE, FROM THIS SERVICE'S OWN RECORDS ──────────
71
- *
72
- * `AuthorizationService.resolveEffectiveReachTier` reads the ceiling from
73
- * `agent_reach_tier_projection` — LOCAL rows keyed by the agent slug this
74
- * field carries. A caller naming another agent therefore gets THAT agent's
75
- * declaration, never one it invented, and a caller naming no agent gets the
76
- * platform default.
77
- *
78
- * ── WHY THE AGENT NEEDS ITS OWN FIELD AND `subject` WILL NOT DO ───────────
79
- *
80
- * `subject` names the agent only on an AUTONOMOUS invocation. A DELEGATED one
81
- * arrives as `subject = { kind: user, id: <owner> }` — the agent acts as its
82
- * owner — so the acting agent is not on the envelope at all, and a ceiling
83
- * keyed on `subject.id` silently stops applying the moment a human is in the
84
- * session. That is precisely the path where a `sandbox` agent must stay
85
- * sandboxed.
86
- *
87
- * Stamped by the surface that owns the agent's identity from its own verified
88
- * credential (the MCP bridge-token claims), forwarded in-process by
89
- * `xema-capability-router`, and never supplied by an agent.
90
- */
91
- actingAgent?: PolicyActingAgentDto;
92
- /** Role the acting subject holds in the originating agent session. Precedence `owner > editor > viewer`. Absent for non-session invocations (workflow steps, service calls). */
93
- participantRole?: SessionParticipantRole;
94
- /** The acting agent's capability aperture (kernel `CapabilityAperture`): `{ kind: "unrestricted" }` or `{ kind: "armed", refs: string[] }`. Enforced at the capability-router funnel, carried here for the audit trail. */
95
- aperture?: PolicyCheckRequestDtoAperture;
96
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
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
- * The acting agent's capability aperture (kernel `CapabilityAperture`): `{ kind: "unrestricted" }` or `{ kind: "armed", refs: string[] }`. Enforced at the capability-router funnel, carried here for the audit trail.
8
- */
9
- export type PolicyCheckRequestDtoAperture = {
10
- [key: string]: unknown;
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export interface PolicyConstraintsDto {
7
- maxCostUsd?: number;
8
- maxDurationSeconds?: number;
9
- requireApproval?: boolean;
10
- requireAudit?: boolean;
11
- requireCustomerEdge?: boolean;
12
- }
@@ -1,26 +0,0 @@
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 { CredentialPrecedenceSource } from './credentialPrecedenceSource.js';
7
- import type { PolicyDecisionKind } from './policyDecisionKind.js';
8
- import type { PolicyObligationDto } from './policyObligationDto.js';
9
- import type { PolicyRouteHintDto } from './policyRouteHintDto.js';
10
- export interface PolicyDecisionDto {
11
- kind: PolicyDecisionKind;
12
- /**
13
- * Stable wire-code denial reason from the OPA bundle / authorization-api decision matrix. Free-form here; closed by the bundle. Surfaced verbatim in audit + capability-router error envelopes.
14
- * @minLength 1
15
- */
16
- reason?: string;
17
- obligations?: PolicyObligationDto[];
18
- routeHints?: PolicyRouteHintDto;
19
- /**
20
- * Credential binding the executing gateway MUST use to resolve the external credential for this invocation. Present ONLY on an `allow` for a capability that declares an `externalServiceRef`. Opaque id — never a secret; the broker re-validates it before reading custody.
21
- * @minLength 1
22
- */
23
- credentialBindingId?: string;
24
- /** Which precedence tier supplied `credentialBindingId` (explicit grant > capability default > project default > org default). Populated iff `credentialBindingId` is present. */
25
- credentialPrecedenceApplied?: CredentialPrecedenceSource;
26
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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 { PolicyDecisionDto } from './policyDecisionDto.js';
7
- export interface PolicyDecisionDtoDataEnvelope {
8
- data: PolicyDecisionDto;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export type PolicyDecisionKind = typeof PolicyDecisionKind[keyof typeof PolicyDecisionKind];
7
- export declare const PolicyDecisionKind: {
8
- readonly allow: "allow";
9
- readonly deny: "deny";
10
- readonly needs_approval: "needs_approval";
11
- };
@@ -1,25 +0,0 @@
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 { PolicyActingForDto } from './policyActingForDto.js';
7
- export interface PolicyDelegatedAuthorityDto {
8
- /** @minLength 1 */
9
- delegationId: string;
10
- actor: PolicyActingForDto;
11
- /** @minItems 1 */
12
- actorChain: PolicyActingForDto[];
13
- /**
14
- * @minItems 1
15
- * @items.minLength 1
16
- */
17
- capabilities: string[];
18
- /**
19
- * @minItems 1
20
- * @items.minLength 1
21
- */
22
- resourceScope?: string[];
23
- /** @minLength 1 */
24
- authorizedBy?: string;
25
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });