@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.
- 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 +19 -56
- package/dist/models/index.js +19 -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/problemActionableBy.d.ts +15 -0
- package/dist/models/{policyDecisionKind.js → problemActionableBy.js} +6 -5
- package/dist/models/problemDetailsDto.d.ts +9 -0
- package/dist/models/problemDetailsDtoParams.d.ts +11 -0
- package/dist/models/problemFieldIssueDto.d.ts +6 -0
- package/dist/models/problemFieldIssueDto.js +0 -5
- package/dist/models/problemFieldIssueDtoParams.d.ts +11 -0
- package/dist/models/problemRetry.d.ts +14 -0
- package/dist/models/{sessionParticipantRole.js → problemRetry.js} +5 -5
- package/dist/models/retiredNamespaceDto.d.ts +9 -0
- package/dist/models/retiredNamespaceDto.js +7 -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/runPolicySetTestsDtoModel.js +7 -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/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/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 → problemDetailsDtoParams.js} +0 -0
- /package/dist/models/{visibleResourcesDto.js → problemFieldIssueDtoParams.js} +0 -0
- /package/dist/models/{authorizationSuggestionDto.js → retiredNamespaceDtoDataEnvelope.js} +0 -0
- /package/dist/models/{listVisibleResourcesDto.js → runPolicySetTestsDto.js} +0 -0
- /package/dist/models/{policyActingAgentDto.js → runtimeModuleContributionDto.js} +0 -0
|
@@ -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
|
-
}
|
|
@@ -1,23 +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 { SpaceKind } from './spaceKind.js';
|
|
7
|
-
export interface PolicySpaceRefDto {
|
|
8
|
-
tier: SpaceKind;
|
|
9
|
-
/** @minLength 1 */
|
|
10
|
-
orgId?: string;
|
|
11
|
-
/** @minLength 1 */
|
|
12
|
-
projectId?: string;
|
|
13
|
-
/** @minLength 1 */
|
|
14
|
-
appId?: string;
|
|
15
|
-
/** @minLength 1 */
|
|
16
|
-
sessionId?: string;
|
|
17
|
-
/** @minLength 1 */
|
|
18
|
-
biomeId?: string;
|
|
19
|
-
/** @minLength 1 */
|
|
20
|
-
userId?: string;
|
|
21
|
-
/** @minLength 1 */
|
|
22
|
-
path?: string;
|
|
23
|
-
}
|
|
@@ -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 { PolicyActingForDto } from './policyActingForDto.js';
|
|
7
|
-
import type { SubjectKind } from './subjectKind.js';
|
|
8
|
-
export interface PolicySubjectRefDto {
|
|
9
|
-
kind: SubjectKind;
|
|
10
|
-
/** @minLength 1 */
|
|
11
|
-
id: string;
|
|
12
|
-
roles?: string[];
|
|
13
|
-
actingFor?: PolicyActingForDto;
|
|
14
|
-
}
|
|
@@ -1,34 +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 { ResourceShareRefDto } from './resourceShareRefDto.js';
|
|
7
|
-
import type { ResourceSubjectRefDto } from './resourceSubjectRefDto.js';
|
|
8
|
-
import type { ResourceVisibilityPattern } from './resourceVisibilityPattern.js';
|
|
9
|
-
export interface RegisterResourceOwnershipDto {
|
|
10
|
-
/**
|
|
11
|
-
* Resource kind/type slug.
|
|
12
|
-
* @minLength 1
|
|
13
|
-
*/
|
|
14
|
-
resourceType: string;
|
|
15
|
-
/**
|
|
16
|
-
* Resource instance id.
|
|
17
|
-
* @minLength 1
|
|
18
|
-
*/
|
|
19
|
-
resourceId: string;
|
|
20
|
-
/** Instance visibility pattern. The PDP ANDs the verb verdict with the ownership check resolved per this pattern. */
|
|
21
|
-
visibility: ResourceVisibilityPattern;
|
|
22
|
-
/**
|
|
23
|
-
* The `xema://` SPACE that owns the instance — an ADDRESS, which this service expands into the owner SUBJECTS its own vocabulary resolves it to (`xema://orgs/<id>` → the org-owner and org-admin role usersets; `xema://users/<id>` → that user). A producer knows the owning Space (`App.ownerSpaceUri`, `Skill.ownerSpaceUri`) and CANNOT know which subjects it resolves to, because those role instances are this service's own rows. Refused (400 `RESOURCE_OWNER_SPACE_NOT_ADMISSIBLE`) when the address is unparseable, names a tier the resource kind does not admit, names another organisation, or names a tier with no owner-subject expansion. May be combined with `owners`; the effective owner set is the UNION, de-duplicated. At least one of the two must yield an owner.
|
|
24
|
-
* @minLength 1
|
|
25
|
-
*/
|
|
26
|
-
ownerSpaceUri?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Subjects that OWN the instance (full visibility), named explicitly. OPTIONAL only because `ownerSpaceUri` is the other way to say it — the service still refuses a request that yields no owner at all, so the ≥ 1-owner rule is unchanged. It moved from the DTO to the service because validation runs BEFORE the expansion and therefore cannot see the owners the address produces.
|
|
29
|
-
* @minItems 1
|
|
30
|
-
*/
|
|
31
|
-
owners?: ResourceSubjectRefDto[];
|
|
32
|
-
/** Subjects explicitly granted visibility, each at a LEVEL and with an optional expiry. */
|
|
33
|
-
explicitShares?: ResourceShareRefDto[];
|
|
34
|
-
}
|
|
@@ -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
|
-
import type { ResourceSubjectRefDto } from './resourceSubjectRefDto.js';
|
|
7
|
-
export interface RegisteredResourceDto {
|
|
8
|
-
/** The registered instance id. */
|
|
9
|
-
resourceId: string;
|
|
10
|
-
/** Subjects holding an `owned_by` relation on the instance. Never empty: the write path refuses a registration with no owner. */
|
|
11
|
-
owners: ResourceSubjectRefDto[];
|
|
12
|
-
}
|
|
@@ -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 { RegisteredResourceDto } from './registeredResourceDto.js';
|
|
7
|
-
export interface RegisteredResourcesDto {
|
|
8
|
-
/** Every registered instance of the requested kind in the caller org, ordered by instance id. */
|
|
9
|
-
resources: RegisteredResourceDto[];
|
|
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 { RegisteredResourcesDto } from './registeredResourcesDto.js';
|
|
7
|
-
export interface RegisteredResourcesDtoDataEnvelope {
|
|
8
|
-
data: RegisteredResourcesDto;
|
|
9
|
-
}
|
|
@@ -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 { ResourceSubjectRefDto } from './resourceSubjectRefDto.js';
|
|
7
|
-
export interface RemoveResourceShareDto {
|
|
8
|
-
/** The subject whose explicit share is removed. */
|
|
9
|
-
share: ResourceSubjectRefDto;
|
|
10
|
-
}
|
|
@@ -1,34 +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 { ResourceShareRefDto } from './resourceShareRefDto.js';
|
|
7
|
-
import type { ResourceSubjectRefDto } from './resourceSubjectRefDto.js';
|
|
8
|
-
import type { ResourceVisibilityPattern } from './resourceVisibilityPattern.js';
|
|
9
|
-
export interface ReplaceResourceOwnershipDto {
|
|
10
|
-
/** Instance visibility pattern. The PDP ANDs the verb verdict with the ownership check resolved per this pattern. */
|
|
11
|
-
visibility: ResourceVisibilityPattern;
|
|
12
|
-
/**
|
|
13
|
-
* The `xema://` SPACE that owns the instance — an ADDRESS, which this service expands into the owner SUBJECTS its own vocabulary resolves it to (`xema://orgs/<id>` → the org-owner and org-admin role usersets; `xema://users/<id>` → that user). A producer knows the owning Space (`App.ownerSpaceUri`, `Skill.ownerSpaceUri`) and CANNOT know which subjects it resolves to, because those role instances are this service's own rows. Refused (400 `RESOURCE_OWNER_SPACE_NOT_ADMISSIBLE`) when the address is unparseable, names a tier the resource kind does not admit, names another organisation, or names a tier with no owner-subject expansion. May be combined with `owners`; the effective owner set is the UNION, de-duplicated. At least one of the two must yield an owner.
|
|
14
|
-
* @minLength 1
|
|
15
|
-
*/
|
|
16
|
-
ownerSpaceUri?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Subjects that OWN the instance (full visibility), named explicitly. OPTIONAL only because `ownerSpaceUri` is the other way to say it — the service still refuses a request that yields no owner at all, so the ≥ 1-owner rule is unchanged. It moved from the DTO to the service because validation runs BEFORE the expansion and therefore cannot see the owners the address produces.
|
|
19
|
-
* @minItems 1
|
|
20
|
-
*/
|
|
21
|
-
owners?: ResourceSubjectRefDto[];
|
|
22
|
-
/** Subjects explicitly granted visibility, each at a LEVEL and with an optional expiry. */
|
|
23
|
-
explicitShares?: ResourceShareRefDto[];
|
|
24
|
-
/**
|
|
25
|
-
* Owners the caller is deliberately RETIRING. Named, never inferred.
|
|
26
|
-
*
|
|
27
|
-
* A replace normally REFUSES (409 `RESOURCE_SUBJECT_IS_OWNER`) to drop a registered owner, and that refusal is right: an owner silently absent from a replacement set is a caller bug, and the remedy is deregistering the instance. But deregister-then-register is not available for an ownership MIGRATION — the instance is UNREGISTERED in the window between them, and an unregistered instance resolves at the PDP as a verb-only ALLOW for everybody.
|
|
28
|
-
*
|
|
29
|
-
* So the exemption is per-SUBJECT and explicit: an owner named here is exempt from that probe and has its `owned_by` tuple dropped in the same call that writes the new owners. Naming a subject that is not a registered owner is a no-op, not an error — the migration is then idempotent on replay. A subject named in BOTH `retiringOwners` and `owners` is refused: that is two contradictory instructions about one subject, and either reading is a guess.
|
|
30
|
-
*/
|
|
31
|
-
retiringOwners?: ResourceSubjectRefDto[];
|
|
32
|
-
/** The subject GRANTING the shares in this body, when it is not the instance owner. Used to apply the two delegation rules — a grantor may never confer more than they hold, and re-sharing is itself a level. The LEVEL is resolved from the tuple store, never taken from the body: a grantor that could name its own level would name the highest one. A named grantor holding neither ownership nor any share level is a 403 `RESOURCE_GRANTOR_HOLDS_NOTHING`. Omitted means the calling SERVICE asserts owner authority, which is what this whole surface already establishes — and is exactly how every replace behaved before this field existed, so omitting it changes nothing. */
|
|
33
|
-
grantor?: ResourceSubjectRefDto;
|
|
34
|
-
}
|
|
@@ -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 { ResourceOwnershipEntryDto } from './resourceOwnershipEntryDto.js';
|
|
7
|
-
import type { ResourceVisibilityPattern } from './resourceVisibilityPattern.js';
|
|
8
|
-
export interface ResourceOwnershipDto {
|
|
9
|
-
orgId: string;
|
|
10
|
-
resourceType: string;
|
|
11
|
-
resourceId: string;
|
|
12
|
-
visibility: ResourceVisibilityPattern;
|
|
13
|
-
owners: ResourceOwnershipEntryDto[];
|
|
14
|
-
shares: ResourceOwnershipEntryDto[];
|
|
15
|
-
}
|
|
@@ -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 { ResourceOwnershipDto } from './resourceOwnershipDto.js';
|
|
7
|
-
export interface ResourceOwnershipDtoDataEnvelope {
|
|
8
|
-
data: ResourceOwnershipDto;
|
|
9
|
-
}
|
|
@@ -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 { SubjectKind } from './subjectKind.js';
|
|
7
|
-
export interface ResourceOwnershipEntryDto {
|
|
8
|
-
id: string;
|
|
9
|
-
ownerKind: SubjectKind;
|
|
10
|
-
ownerRef: string;
|
|
11
|
-
/** The level this share confers, in the resource kind's vocabulary. ABSENT on an owner row — ownership is not a rung. */
|
|
12
|
-
level?: string;
|
|
13
|
-
/** When the share stops granting. Absent = never. */
|
|
14
|
-
expiresAt?: string;
|
|
15
|
-
/** `<subjectKind>:<subjectRef>` of whoever granted this share. Absent on an owner row. */
|
|
16
|
-
grantedBy?: string;
|
|
17
|
-
}
|
|
@@ -1,16 +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 { ResourceOwnershipEntryDto } from './resourceOwnershipEntryDto.js';
|
|
7
|
-
import type { ResourceVisibilityPattern } from './resourceVisibilityPattern.js';
|
|
8
|
-
export interface ResourceOwnershipReadDto {
|
|
9
|
-
resourceType: string;
|
|
10
|
-
resourceId: string;
|
|
11
|
-
visibility: ResourceVisibilityPattern;
|
|
12
|
-
/** Subjects that OWN the instance. */
|
|
13
|
-
owners: ResourceOwnershipEntryDto[];
|
|
14
|
-
/** Subjects the instance is SHARED with, each with its level, expiry and grantor. */
|
|
15
|
-
shares: ResourceOwnershipEntryDto[];
|
|
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
|
-
import type { ResourceOwnershipReadDto } from './resourceOwnershipReadDto.js';
|
|
7
|
-
export interface ResourceOwnershipReadDtoDataEnvelope {
|
|
8
|
-
data: ResourceOwnershipReadDto;
|
|
9
|
-
}
|
|
@@ -1,21 +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 ResourceShareRefDto {
|
|
8
|
-
kind: SubjectKind;
|
|
9
|
-
/**
|
|
10
|
-
* Subject id (the `<id>` in `<kind>:<id>`).
|
|
11
|
-
* @minLength 1
|
|
12
|
-
*/
|
|
13
|
-
ref: string;
|
|
14
|
-
/**
|
|
15
|
-
* The resource kind's own name for the level this share confers. Levels are declared per kind (a document has `viewer < editor < manager`; a mailbox's `editor` is not a meaningful authority) and are totally ordered with monotone verb expansion. OMITTED means the LOWEST level the kind declares — never the highest.
|
|
16
|
-
* @minLength 1
|
|
17
|
-
*/
|
|
18
|
-
level?: string;
|
|
19
|
-
/** ISO-8601 instant after which the share stops granting. Enforced by an OpenFGA condition evaluated at DECISION time, not by a sweeper — a sweeper leaves a window in which a lapsed share still passes. Omitted means the share does not expire. An instant in the past is a 400. */
|
|
20
|
-
expiresAt?: string;
|
|
21
|
-
}
|
|
@@ -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 ResourceVisibilityPattern = typeof ResourceVisibilityPattern[keyof typeof ResourceVisibilityPattern];
|
|
7
|
-
export declare const ResourceVisibilityPattern: {
|
|
8
|
-
readonly 'owner-only': "owner-only";
|
|
9
|
-
readonly 'org-shared': "org-shared";
|
|
10
|
-
readonly 'explicit-share': "explicit-share";
|
|
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.ResourceVisibilityPattern = void 0;
|
|
9
|
-
exports.ResourceVisibilityPattern = {
|
|
10
|
-
'owner-only': 'owner-only',
|
|
11
|
-
'org-shared': 'org-shared',
|
|
12
|
-
'explicit-share': 'explicit-share',
|
|
13
|
-
};
|
|
@@ -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
|
-
export type RunnerKind = typeof RunnerKind[keyof typeof RunnerKind];
|
|
7
|
-
export declare const RunnerKind: {
|
|
8
|
-
readonly local: "local";
|
|
9
|
-
readonly cloud: "cloud";
|
|
10
|
-
readonly 'customer-edge': "customer-edge";
|
|
11
|
-
readonly gpu: "gpu";
|
|
12
|
-
readonly sandbox: "sandbox";
|
|
13
|
-
readonly ci: "ci";
|
|
14
|
-
readonly 'mcp-external': "mcp-external";
|
|
15
|
-
};
|
|
@@ -1,17 +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.RunnerKind = void 0;
|
|
9
|
-
exports.RunnerKind = {
|
|
10
|
-
local: 'local',
|
|
11
|
-
cloud: 'cloud',
|
|
12
|
-
'customer-edge': 'customer-edge',
|
|
13
|
-
gpu: 'gpu',
|
|
14
|
-
sandbox: 'sandbox',
|
|
15
|
-
ci: 'ci',
|
|
16
|
-
'mcp-external': 'mcp-external',
|
|
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
|
-
/**
|
|
7
|
-
* Role the acting subject holds in the originating agent session. Precedence `owner > editor > viewer`. Absent for non-session invocations (workflow steps, service calls).
|
|
8
|
-
*/
|
|
9
|
-
export type SessionParticipantRole = typeof SessionParticipantRole[keyof typeof SessionParticipantRole];
|
|
10
|
-
export declare const SessionParticipantRole: {
|
|
11
|
-
readonly owner: "owner";
|
|
12
|
-
readonly editor: "editor";
|
|
13
|
-
readonly viewer: "viewer";
|
|
14
|
-
};
|
|
@@ -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 { SubjectKind } from './subjectKind.js';
|
|
7
|
-
export interface SubjectRefDto {
|
|
8
|
-
/** Discriminator over the kinds of subject that may hold a grant. */
|
|
9
|
-
kind: SubjectKind;
|
|
10
|
-
/**
|
|
11
|
-
* The BARE per-kind identifier — never `<kind>:<id>`, never a `xema://` address. For a `user` it is the principal id the token carries; for an `agent` the composition slug. It becomes the OpenFGA user `<kind>:<ref>` verbatim, so it may not contain `:`, `#` or whitespace; a value that does is refused with `400 SUBJECT_REF_INVALID` naming `/subject/ref`.
|
|
12
|
-
* @minLength 1
|
|
13
|
-
*/
|
|
14
|
-
ref: string;
|
|
15
|
-
}
|
|
@@ -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 interface VisibleResourcesDto {
|
|
7
|
-
/** Ids of the instances of `resourceType` the subject may see, de-duplicated. */
|
|
8
|
-
resourceIds: string[];
|
|
9
|
-
}
|
|
@@ -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 { VisibleResourcesDto } from './visibleResourcesDto.js';
|
|
7
|
-
export interface VisibleResourcesDtoDataEnvelope {
|
|
8
|
-
data: VisibleResourcesDto;
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/models/{authorizationCheckResponseDtoDataEnvelope.js → policySetTestResultsDto.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/models/{policyRouteHintDtoRequiredRunnerLabels.js → problemDetailsDtoParams.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|