@xemahq/authorization-internal-api-client 0.5.3 → 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.
- package/dist/endpoints/authorization/authorization.d.ts +1 -19
- package/dist/endpoints/authorization/authorization.js +1 -52
- package/dist/endpoints/authorization-policy-sets/authorization-policy-sets.d.ts +27 -0
- package/dist/endpoints/authorization-policy-sets/authorization-policy-sets.js +65 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/adoptOrgPolicySetDto.d.ts +21 -0
- package/dist/models/dataClassification.d.ts +3 -0
- package/dist/models/executionEnvironmentKind.d.ts +1 -1
- package/dist/models/index.d.ts +15 -56
- package/dist/models/index.js +15 -56
- package/dist/models/orgPolicySetDto.d.ts +18 -0
- package/dist/models/orgPolicySetDtoDataEnvelope.d.ts +9 -0
- package/dist/models/{policyRouteHintDtoRequiredRunnerLabels.d.ts → orgPolicySetDtoModel.d.ts} +5 -2
- package/dist/models/orgPolicySetDtoModules.d.ts +11 -0
- package/dist/models/policySetTestFileDto.d.ts +22 -0
- package/dist/models/policySetTestFileResultDto.d.ts +11 -0
- package/dist/models/policySetTestResultsDto.d.ts +9 -0
- package/dist/models/policySetTestResultsDtoDataEnvelope.d.ts +9 -0
- package/dist/models/retiredNamespaceDto.d.ts +9 -0
- package/dist/models/retiredNamespaceDtoDataEnvelope.d.ts +9 -0
- package/dist/models/runPolicySetTestsDto.d.ts +12 -0
- package/dist/models/runPolicySetTestsDtoModel.d.ts +11 -0
- package/dist/models/runtimeModuleContributionDto.d.ts +20 -0
- package/dist/models/runtimeModuleContributionDtoManifest.d.ts +11 -0
- package/dist/models/runtimeModuleContributionDtoManifest.js +7 -0
- package/dist/models/spaceKind.d.ts +3 -0
- package/package.json +1 -1
- package/dist/endpoints/resources/resources.d.ts +0 -59
- package/dist/endpoints/resources/resources.js +0 -141
- package/dist/models/addResourceShareDto.d.ts +0 -12
- package/dist/models/authorizationCheckRequestDto.d.ts +0 -39
- package/dist/models/authorizationCheckResponseDto.d.ts +0 -14
- package/dist/models/authorizationCheckResponseDtoDataEnvelope.d.ts +0 -9
- package/dist/models/authorizationDecisionCode.d.ts +0 -18
- package/dist/models/authorizationDecisionCode.js +0 -20
- package/dist/models/authorizationReasonDto.d.ts +0 -11
- package/dist/models/authorizationSuggestionDto.d.ts +0 -25
- package/dist/models/authorizationSuggestionKind.d.ts +0 -11
- package/dist/models/authorizationSuggestionKind.js +0 -13
- package/dist/models/biomeExecutionTrustTier.d.ts +0 -10
- package/dist/models/biomeExecutionTrustTier.js +0 -12
- package/dist/models/callerKind.d.ts +0 -14
- package/dist/models/callerKind.js +0 -16
- package/dist/models/credentialPrecedenceSource.d.ts +0 -17
- package/dist/models/credentialPrecedenceSource.js +0 -16
- package/dist/models/dataResidency.d.ts +0 -9
- package/dist/models/dataResidency.js +0 -11
- package/dist/models/listRegisteredResourcesDto.d.ts +0 -12
- package/dist/models/listVisibleResourcesDto.d.ts +0 -20
- package/dist/models/policyActingAgentDto.d.ts +0 -14
- package/dist/models/policyActingAgentDtoKind.d.ts +0 -9
- package/dist/models/policyActingAgentDtoKind.js +0 -11
- package/dist/models/policyActingForDto.d.ts +0 -29
- package/dist/models/policyActingForDto.js +0 -2
- package/dist/models/policyBiomeDto.d.ts +0 -14
- package/dist/models/policyBiomeDto.js +0 -2
- package/dist/models/policyCallerDto.d.ts +0 -17
- package/dist/models/policyCallerDto.js +0 -2
- package/dist/models/policyCapabilityDto.d.ts +0 -14
- package/dist/models/policyCheckBatchRequestDto.d.ts +0 -13
- package/dist/models/policyCheckBatchRequestDto.js +0 -2
- package/dist/models/policyCheckBatchResponseDto.d.ts +0 -10
- package/dist/models/policyCheckBatchResponseDto.js +0 -2
- package/dist/models/policyCheckBatchResponseDtoDataEnvelope.d.ts +0 -9
- package/dist/models/policyCheckBatchResponseDtoDataEnvelope.js +0 -2
- package/dist/models/policyCheckRequestDto.d.ts +0 -96
- package/dist/models/policyCheckRequestDto.js +0 -2
- package/dist/models/policyCheckRequestDtoAperture.d.ts +0 -11
- package/dist/models/policyConstraintsDto.d.ts +0 -12
- package/dist/models/policyDecisionDto.d.ts +0 -26
- package/dist/models/policyDecisionDto.js +0 -2
- package/dist/models/policyDecisionDtoDataEnvelope.d.ts +0 -9
- package/dist/models/policyDecisionDtoDataEnvelope.js +0 -2
- package/dist/models/policyDecisionKind.d.ts +0 -11
- package/dist/models/policyDecisionKind.js +0 -13
- package/dist/models/policyDelegatedAuthorityDto.d.ts +0 -25
- package/dist/models/policyDelegatedAuthorityDto.js +0 -2
- package/dist/models/policyEnvironmentDto.d.ts +0 -15
- package/dist/models/policyEnvironmentDto.js +0 -2
- package/dist/models/policyObligationDto.d.ts +0 -29
- package/dist/models/policyObligationDto.js +0 -2
- package/dist/models/policyObligationKind.d.ts +0 -17
- package/dist/models/policyObligationKind.js +0 -19
- package/dist/models/policyResourceDto.d.ts +0 -15
- package/dist/models/policyResourceDto.js +0 -2
- package/dist/models/policyRouteHintDto.d.ts +0 -14
- package/dist/models/policyRouteHintDto.js +0 -2
- package/dist/models/policySpaceRefDto.d.ts +0 -23
- package/dist/models/policySpaceRefDto.js +0 -2
- package/dist/models/policySubjectRefDto.d.ts +0 -14
- package/dist/models/policySubjectRefDto.js +0 -2
- package/dist/models/registerResourceOwnershipDto.d.ts +0 -34
- package/dist/models/registerResourceOwnershipDto.js +0 -2
- package/dist/models/registeredResourceDto.d.ts +0 -12
- package/dist/models/registeredResourceDto.js +0 -2
- package/dist/models/registeredResourcesDto.d.ts +0 -10
- package/dist/models/registeredResourcesDto.js +0 -2
- package/dist/models/registeredResourcesDtoDataEnvelope.d.ts +0 -9
- package/dist/models/registeredResourcesDtoDataEnvelope.js +0 -2
- package/dist/models/removeResourceShareDto.d.ts +0 -10
- package/dist/models/removeResourceShareDto.js +0 -2
- package/dist/models/replaceResourceOwnershipDto.d.ts +0 -34
- package/dist/models/replaceResourceOwnershipDto.js +0 -2
- package/dist/models/resourceOwnershipDto.d.ts +0 -15
- package/dist/models/resourceOwnershipDto.js +0 -2
- package/dist/models/resourceOwnershipDtoDataEnvelope.d.ts +0 -9
- package/dist/models/resourceOwnershipDtoDataEnvelope.js +0 -2
- package/dist/models/resourceOwnershipEntryDto.d.ts +0 -17
- package/dist/models/resourceOwnershipEntryDto.js +0 -2
- package/dist/models/resourceOwnershipReadDto.d.ts +0 -16
- package/dist/models/resourceOwnershipReadDto.js +0 -2
- package/dist/models/resourceOwnershipReadDtoDataEnvelope.d.ts +0 -9
- package/dist/models/resourceOwnershipReadDtoDataEnvelope.js +0 -2
- package/dist/models/resourceShareRefDto.d.ts +0 -21
- package/dist/models/resourceShareRefDto.js +0 -2
- package/dist/models/resourceVisibilityPattern.d.ts +0 -11
- package/dist/models/resourceVisibilityPattern.js +0 -13
- package/dist/models/runnerKind.d.ts +0 -15
- package/dist/models/runnerKind.js +0 -17
- package/dist/models/sessionParticipantRole.d.ts +0 -14
- package/dist/models/sessionParticipantRole.js +0 -13
- package/dist/models/subjectRefDto.d.ts +0 -15
- package/dist/models/subjectRefDto.js +0 -2
- package/dist/models/visibleResourcesDto.d.ts +0 -9
- package/dist/models/visibleResourcesDtoDataEnvelope.d.ts +0 -9
- package/dist/models/visibleResourcesDtoDataEnvelope.js +0 -2
- /package/dist/models/{addResourceShareDto.js → adoptOrgPolicySetDto.js} +0 -0
- /package/dist/models/{authorizationCheckRequestDto.js → orgPolicySetDto.js} +0 -0
- /package/dist/models/{authorizationCheckResponseDto.js → orgPolicySetDtoDataEnvelope.js} +0 -0
- /package/dist/models/{listRegisteredResourcesDto.js → orgPolicySetDtoModel.js} +0 -0
- /package/dist/models/{policyCapabilityDto.js → orgPolicySetDtoModules.js} +0 -0
- /package/dist/models/{policyCheckRequestDtoAperture.js → policySetTestFileDto.js} +0 -0
- /package/dist/models/{policyConstraintsDto.js → policySetTestFileResultDto.js} +0 -0
- /package/dist/models/{authorizationCheckResponseDtoDataEnvelope.js → policySetTestResultsDto.js} +0 -0
- /package/dist/models/{authorizationReasonDto.js → policySetTestResultsDtoDataEnvelope.js} +0 -0
- /package/dist/models/{policyRouteHintDtoRequiredRunnerLabels.js → retiredNamespaceDto.js} +0 -0
- /package/dist/models/{authorizationSuggestionDto.js → retiredNamespaceDtoDataEnvelope.js} +0 -0
- /package/dist/models/{listVisibleResourcesDto.js → runPolicySetTestsDto.js} +0 -0
- /package/dist/models/{visibleResourcesDto.js → runPolicySetTestsDtoModel.js} +0 -0
- /package/dist/models/{policyActingAgentDto.js → runtimeModuleContributionDto.js} +0 -0
|
@@ -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,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,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,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,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,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,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,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,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,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,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.PolicyDecisionKind = void 0;
|
|
9
|
-
exports.PolicyDecisionKind = {
|
|
10
|
-
allow: 'allow',
|
|
11
|
-
deny: 'deny',
|
|
12
|
-
needs_approval: 'needs_approval',
|
|
13
|
-
};
|
|
@@ -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,15 +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 { ExecutionEnvironmentKind } from './executionEnvironmentKind.js';
|
|
7
|
-
export interface PolicyEnvironmentDto {
|
|
8
|
-
/**
|
|
9
|
-
* environment:<slug> ref string.
|
|
10
|
-
* @minLength 1
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
/** 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. */
|
|
14
|
-
kind: ExecutionEnvironmentKind;
|
|
15
|
-
}
|
|
@@ -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 { DataClassification } from './dataClassification.js';
|
|
7
|
-
import type { DataResidency } from './dataResidency.js';
|
|
8
|
-
import type { PolicyObligationKind } from './policyObligationKind.js';
|
|
9
|
-
import type { RunnerKind } from './runnerKind.js';
|
|
10
|
-
export interface PolicyObligationDto {
|
|
11
|
-
kind: PolicyObligationKind;
|
|
12
|
-
runnerKind?: RunnerKind;
|
|
13
|
-
/** @minLength 1 */
|
|
14
|
-
approverRole?: string;
|
|
15
|
-
maxDurationSeconds?: number;
|
|
16
|
-
maxCostUsd?: number;
|
|
17
|
-
maxClassification?: DataClassification;
|
|
18
|
-
residency?: DataResidency;
|
|
19
|
-
/**
|
|
20
|
-
* Egress allowlist patterns (wildcard host or https:// URL-prefix). Present only when kind=egress-allowlist.
|
|
21
|
-
* @items.minLength 1
|
|
22
|
-
*/
|
|
23
|
-
allow?: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Egress blocklist patterns; a match denies even if `allow` matched. Present only when kind=egress-allowlist.
|
|
26
|
-
* @items.minLength 1
|
|
27
|
-
*/
|
|
28
|
-
deny?: string[];
|
|
29
|
-
}
|
|
@@ -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
|
-
export type PolicyObligationKind = typeof PolicyObligationKind[keyof typeof PolicyObligationKind];
|
|
7
|
-
export declare const PolicyObligationKind: {
|
|
8
|
-
readonly audit: "audit";
|
|
9
|
-
readonly 'redact-secrets': "redact-secrets";
|
|
10
|
-
readonly 'require-runner-kind': "require-runner-kind";
|
|
11
|
-
readonly 'require-human-approval': "require-human-approval";
|
|
12
|
-
readonly 'max-duration-seconds': "max-duration-seconds";
|
|
13
|
-
readonly 'max-cost-usd': "max-cost-usd";
|
|
14
|
-
readonly 'restrict-output-classification': "restrict-output-classification";
|
|
15
|
-
readonly 'data-residency': "data-residency";
|
|
16
|
-
readonly 'egress-allowlist': "egress-allowlist";
|
|
17
|
-
};
|
|
@@ -1,19 +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.PolicyObligationKind = void 0;
|
|
9
|
-
exports.PolicyObligationKind = {
|
|
10
|
-
audit: 'audit',
|
|
11
|
-
'redact-secrets': 'redact-secrets',
|
|
12
|
-
'require-runner-kind': 'require-runner-kind',
|
|
13
|
-
'require-human-approval': 'require-human-approval',
|
|
14
|
-
'max-duration-seconds': 'max-duration-seconds',
|
|
15
|
-
'max-cost-usd': 'max-cost-usd',
|
|
16
|
-
'restrict-output-classification': 'restrict-output-classification',
|
|
17
|
-
'data-residency': 'data-residency',
|
|
18
|
-
'egress-allowlist': 'egress-allowlist',
|
|
19
|
-
};
|
|
@@ -1,15 +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 { DataClassification } from './dataClassification.js';
|
|
7
|
-
export interface PolicyResourceDto {
|
|
8
|
-
/**
|
|
9
|
-
* Canonical `xema://<Space>/resource/<type>/<id>[@version]` address naming the instance this invocation targets. Exact Agent bindings always carry the version. The server answers `400 RESOURCE_REF_MALFORMED` for any other shape. Omit the whole `resource` block for a verb-only check; do not send a placeholder.
|
|
10
|
-
* @minLength 1
|
|
11
|
-
*/
|
|
12
|
-
ref: string;
|
|
13
|
-
/** The classification the target resource carries. OMIT IT when the producer has none to declare — the effective classification is then the Space floor alone, and the request still gets the resource-ownership clamp. Omitting the whole `resource` block is NOT the same thing: that downgrades the call to a verb-only check and discards the ownership clamp. Never send a placeholder value. */
|
|
14
|
-
classification?: DataClassification;
|
|
15
|
-
}
|
|
@@ -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 { PolicyRouteHintDtoRequiredRunnerLabels } from './policyRouteHintDtoRequiredRunnerLabels.js';
|
|
7
|
-
import type { RunnerKind } from './runnerKind.js';
|
|
8
|
-
export interface PolicyRouteHintDto {
|
|
9
|
-
requiredRunnerLabels?: PolicyRouteHintDtoRequiredRunnerLabels;
|
|
10
|
-
preferredRunnerKind?: RunnerKind;
|
|
11
|
-
/** @minLength 1 */
|
|
12
|
-
requiredRegion?: string;
|
|
13
|
-
requireCustomerEdge?: boolean;
|
|
14
|
-
}
|