@xemahq/authorization-internal-api-client 0.1.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/LICENSE +201 -0
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +48 -0
- package/dist/custom-fetch.js +146 -0
- package/dist/endpoints/authorization/authorization.d.ts +20 -0
- package/dist/endpoints/authorization/authorization.js +38 -0
- package/dist/endpoints/credential-defaults/credential-defaults.d.ts +28 -0
- package/dist/endpoints/credential-defaults/credential-defaults.js +119 -0
- package/dist/endpoints/environments/environments.d.ts +38 -0
- package/dist/endpoints/environments/environments.js +159 -0
- package/dist/endpoints/grants/grants.d.ts +33 -0
- package/dist/endpoints/grants/grants.js +97 -0
- package/dist/endpoints/profiles/profiles.d.ts +14 -0
- package/dist/endpoints/profiles/profiles.js +19 -0
- package/dist/endpoints/relationships/relationships.d.ts +14 -0
- package/dist/endpoints/relationships/relationships.js +38 -0
- package/dist/endpoints/roles/roles.d.ts +63 -0
- package/dist/endpoints/roles/roles.js +185 -0
- package/dist/endpoints/teams/teams.d.ts +48 -0
- package/dist/endpoints/teams/teams.js +141 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +32 -0
- package/dist/models/addRoleGrantDto.d.ts +17 -0
- package/dist/models/addRoleGrantDto.js +2 -0
- package/dist/models/addTeamMemberDto.d.ts +12 -0
- package/dist/models/addTeamMemberDto.js +2 -0
- package/dist/models/assignRoleDto.d.ts +16 -0
- package/dist/models/assignRoleDto.js +2 -0
- package/dist/models/authorizationCheckRequestDto.d.ts +23 -0
- package/dist/models/authorizationCheckRequestDto.js +2 -0
- package/dist/models/authorizationCheckResponseDto.d.ts +16 -0
- package/dist/models/authorizationCheckResponseDto.js +2 -0
- package/dist/models/authorizationDecisionCode.d.ts +15 -0
- package/dist/models/authorizationDecisionCode.js +17 -0
- package/dist/models/authorizationReasonDto.d.ts +12 -0
- package/dist/models/authorizationReasonDto.js +2 -0
- package/dist/models/authorizationSuggestionDto.d.ts +18 -0
- package/dist/models/authorizationSuggestionDto.js +2 -0
- package/dist/models/authorizationSuggestionKind.d.ts +13 -0
- package/dist/models/authorizationSuggestionKind.js +15 -0
- package/dist/models/biomePermissionProfile.d.ts +22 -0
- package/dist/models/biomePermissionProfile.js +21 -0
- package/dist/models/biomeTrustTier.d.ts +14 -0
- package/dist/models/biomeTrustTier.js +16 -0
- package/dist/models/callerKind.d.ts +16 -0
- package/dist/models/callerKind.js +18 -0
- package/dist/models/capabilityGrantDto.d.ts +32 -0
- package/dist/models/capabilityGrantDto.js +2 -0
- package/dist/models/capabilityGrantRelation.d.ts +12 -0
- package/dist/models/capabilityGrantRelation.js +14 -0
- package/dist/models/createExecutionEnvironmentDto.d.ts +26 -0
- package/dist/models/createExecutionEnvironmentDto.js +2 -0
- package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +10 -0
- package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.js +9 -0
- package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.d.ts +10 -0
- package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.js +9 -0
- package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.d.ts +13 -0
- package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.js +9 -0
- package/dist/models/createGrantDto.d.ts +28 -0
- package/dist/models/createGrantDto.js +2 -0
- package/dist/models/createRoleDto.d.ts +13 -0
- package/dist/models/createRoleDto.js +9 -0
- package/dist/models/createTeamDto.d.ts +16 -0
- package/dist/models/createTeamDto.js +9 -0
- package/dist/models/credentialDefaultDto.d.ts +21 -0
- package/dist/models/credentialDefaultDto.js +9 -0
- package/dist/models/credentialDefaultDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/credentialDefaultDtoDataArrayEnvelope.js +2 -0
- package/dist/models/credentialDefaultDtoDataEnvelope.d.ts +11 -0
- package/dist/models/credentialDefaultDtoDataEnvelope.js +2 -0
- package/dist/models/credentialDefaultsControllerDeleteParams.d.ts +17 -0
- package/dist/models/credentialDefaultsControllerDeleteParams.js +9 -0
- package/dist/models/credentialDefaultsControllerGetParams.d.ts +17 -0
- package/dist/models/credentialDefaultsControllerGetParams.js +9 -0
- package/dist/models/credentialDefaultsControllerListParams.d.ts +10 -0
- package/dist/models/credentialDefaultsControllerListParams.js +9 -0
- package/dist/models/credentialPrecedenceSource.d.ts +17 -0
- package/dist/models/credentialPrecedenceSource.js +16 -0
- package/dist/models/dataClassification.d.ts +15 -0
- package/dist/models/dataClassification.js +17 -0
- package/dist/models/dataResidency.d.ts +13 -0
- package/dist/models/dataResidency.js +15 -0
- package/dist/models/environmentsControllerFindBySlugParams.d.ts +13 -0
- package/dist/models/environmentsControllerFindBySlugParams.js +9 -0
- package/dist/models/environmentsControllerListParams.d.ts +13 -0
- package/dist/models/environmentsControllerListParams.js +9 -0
- package/dist/models/environmentsControllerRemoveParams.d.ts +13 -0
- package/dist/models/environmentsControllerRemoveParams.js +9 -0
- package/dist/models/environmentsControllerUpdateParams.d.ts +13 -0
- package/dist/models/environmentsControllerUpdateParams.js +9 -0
- package/dist/models/executionEnvironmentKind.d.ts +22 -0
- package/dist/models/executionEnvironmentKind.js +21 -0
- package/dist/models/executionEnvironmentResponseDto.d.ts +37 -0
- package/dist/models/executionEnvironmentResponseDto.js +2 -0
- package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.d.ts +10 -0
- package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.js +9 -0
- package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.d.ts +10 -0
- package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.js +9 -0
- package/dist/models/executionEnvironmentResponseDtoOrgId.d.ts +14 -0
- package/dist/models/executionEnvironmentResponseDtoOrgId.js +9 -0
- package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.d.ts +13 -0
- package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.js +9 -0
- package/dist/models/grantConstraintsDto.d.ts +13 -0
- package/dist/models/grantConstraintsDto.js +9 -0
- package/dist/models/grantsControllerListParams.d.ts +28 -0
- package/dist/models/grantsControllerListParams.js +2 -0
- package/dist/models/index.d.ts +89 -0
- package/dist/models/index.js +106 -0
- package/dist/models/listGrantsResponseDto.d.ts +14 -0
- package/dist/models/listGrantsResponseDto.js +2 -0
- package/dist/models/listProfilesResponseDto.d.ts +11 -0
- package/dist/models/listProfilesResponseDto.js +2 -0
- package/dist/models/listRelationshipsResponseDto.d.ts +14 -0
- package/dist/models/listRelationshipsResponseDto.js +2 -0
- package/dist/models/listRoleAssignmentsResponseDto.d.ts +12 -0
- package/dist/models/listRoleAssignmentsResponseDto.js +2 -0
- package/dist/models/listRoleGrantsResponseDto.d.ts +12 -0
- package/dist/models/listRoleGrantsResponseDto.js +2 -0
- package/dist/models/listRolesResponseDto.d.ts +14 -0
- package/dist/models/listRolesResponseDto.js +2 -0
- package/dist/models/listTeamMembersResponseDto.d.ts +12 -0
- package/dist/models/listTeamMembersResponseDto.js +2 -0
- package/dist/models/listTeamsResponseDto.d.ts +14 -0
- package/dist/models/listTeamsResponseDto.js +2 -0
- package/dist/models/openFgaRelationshipDto.d.ts +16 -0
- package/dist/models/openFgaRelationshipDto.js +2 -0
- package/dist/models/policyActingForDto.d.ts +12 -0
- package/dist/models/policyActingForDto.js +2 -0
- package/dist/models/policyBiomeDto.d.ts +14 -0
- package/dist/models/policyBiomeDto.js +2 -0
- package/dist/models/policyCallerDto.d.ts +15 -0
- package/dist/models/policyCallerDto.js +2 -0
- package/dist/models/policyCapabilityDto.d.ts +12 -0
- package/dist/models/policyCapabilityDto.js +9 -0
- package/dist/models/policyCheckRequestDto.d.ts +28 -0
- package/dist/models/policyCheckRequestDto.js +2 -0
- package/dist/models/policyConstraintsDto.d.ts +14 -0
- package/dist/models/policyConstraintsDto.js +9 -0
- package/dist/models/policyDecisionDto.d.ts +22 -0
- package/dist/models/policyDecisionDto.js +2 -0
- package/dist/models/policyDecisionKind.d.ts +13 -0
- package/dist/models/policyDecisionKind.js +15 -0
- package/dist/models/policyEnvironmentDto.d.ts +13 -0
- package/dist/models/policyEnvironmentDto.js +9 -0
- package/dist/models/policyObligationDto.d.ts +20 -0
- package/dist/models/policyObligationDto.js +2 -0
- package/dist/models/policyObligationKind.d.ts +18 -0
- package/dist/models/policyObligationKind.js +20 -0
- package/dist/models/policyResourceDto.d.ts +12 -0
- package/dist/models/policyResourceDto.js +2 -0
- package/dist/models/policyRouteHintDto.d.ts +15 -0
- package/dist/models/policyRouteHintDto.js +2 -0
- package/dist/models/policyRouteHintDtoRequiredRunnerLabels.d.ts +10 -0
- package/dist/models/policyRouteHintDtoRequiredRunnerLabels.js +9 -0
- package/dist/models/policySpaceRefDto.d.ts +18 -0
- package/dist/models/policySpaceRefDto.js +2 -0
- package/dist/models/policySubjectRefDto.d.ts +15 -0
- package/dist/models/policySubjectRefDto.js +2 -0
- package/dist/models/profilePolicyTemplateDto.d.ts +20 -0
- package/dist/models/profilePolicyTemplateDto.js +2 -0
- package/dist/models/profilePolicyTemplateDtoNotes.d.ts +13 -0
- package/dist/models/profilePolicyTemplateDtoNotes.js +9 -0
- package/dist/models/relationshipsControllerListParams.d.ts +44 -0
- package/dist/models/relationshipsControllerListParams.js +2 -0
- package/dist/models/roleAssignmentDto.d.ts +19 -0
- package/dist/models/roleAssignmentDto.js +2 -0
- package/dist/models/roleAssignmentDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/roleAssignmentDtoDataArrayEnvelope.js +2 -0
- package/dist/models/roleAssignmentDtoSubjectRef.d.ts +13 -0
- package/dist/models/roleAssignmentDtoSubjectRef.js +9 -0
- package/dist/models/roleAssignmentDtoTeamId.d.ts +13 -0
- package/dist/models/roleAssignmentDtoTeamId.js +9 -0
- package/dist/models/roleDto.d.ts +19 -0
- package/dist/models/roleDto.js +9 -0
- package/dist/models/roleDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/roleDtoDataArrayEnvelope.js +2 -0
- package/dist/models/roleDtoDescription.d.ts +13 -0
- package/dist/models/roleDtoDescription.js +9 -0
- package/dist/models/roleGrantDto.d.ts +18 -0
- package/dist/models/roleGrantDto.js +2 -0
- package/dist/models/roleGrantDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/roleGrantDtoDataArrayEnvelope.js +2 -0
- package/dist/models/rolesControllerListParams.d.ts +14 -0
- package/dist/models/rolesControllerListParams.js +9 -0
- package/dist/models/runnerKind.d.ts +17 -0
- package/dist/models/runnerKind.js +19 -0
- package/dist/models/spaceKind.d.ts +17 -0
- package/dist/models/spaceKind.js +19 -0
- package/dist/models/subjectKind.d.ts +20 -0
- package/dist/models/subjectKind.js +22 -0
- package/dist/models/subjectRefDto.d.ts +14 -0
- package/dist/models/subjectRefDto.js +2 -0
- package/dist/models/teamDto.d.ts +19 -0
- package/dist/models/teamDto.js +9 -0
- package/dist/models/teamDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/teamDtoDataArrayEnvelope.js +2 -0
- package/dist/models/teamDtoDescription.d.ts +13 -0
- package/dist/models/teamDtoDescription.js +9 -0
- package/dist/models/teamDtoParentTeamId.d.ts +13 -0
- package/dist/models/teamDtoParentTeamId.js +9 -0
- package/dist/models/teamMembershipDto.d.ts +15 -0
- package/dist/models/teamMembershipDto.js +2 -0
- package/dist/models/teamMembershipDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/teamMembershipDtoDataArrayEnvelope.js +2 -0
- package/dist/models/teamsControllerListParams.d.ts +17 -0
- package/dist/models/teamsControllerListParams.js +9 -0
- package/dist/models/updateExecutionEnvironmentDto.d.ts +19 -0
- package/dist/models/updateExecutionEnvironmentDto.js +2 -0
- package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +10 -0
- package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.js +9 -0
- package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.d.ts +10 -0
- package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.js +9 -0
- package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.d.ts +13 -0
- package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.js +9 -0
- package/dist/models/updateGrantDto.d.ts +18 -0
- package/dist/models/updateGrantDto.js +2 -0
- package/dist/models/updateRoleDto.d.ts +11 -0
- package/dist/models/updateRoleDto.js +9 -0
- package/dist/models/updateTeamDto.d.ts +16 -0
- package/dist/models/updateTeamDto.js +9 -0
- package/dist/models/updateTeamDtoParentTeamId.d.ts +14 -0
- package/dist/models/updateTeamDtoParentTeamId.js +9 -0
- package/dist/models/upsertCredentialDefaultDto.d.ts +15 -0
- package/dist/models/upsertCredentialDefaultDto.js +9 -0
- package/package.json +27 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CredentialPrecedenceSource } from './credentialPrecedenceSource';
|
|
9
|
+
import type { PolicyDecisionKind } from './policyDecisionKind';
|
|
10
|
+
import type { PolicyObligationDto } from './policyObligationDto';
|
|
11
|
+
import type { PolicyRouteHintDto } from './policyRouteHintDto';
|
|
12
|
+
export interface PolicyDecisionDto {
|
|
13
|
+
kind: PolicyDecisionKind;
|
|
14
|
+
/** 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. */
|
|
15
|
+
reason?: string;
|
|
16
|
+
obligations?: PolicyObligationDto[];
|
|
17
|
+
routeHints?: PolicyRouteHintDto;
|
|
18
|
+
/** Credential binding the executing gateway MUST use to resolve the external credential for this invocation (plan §W4 / Pillar 3.2). 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. */
|
|
19
|
+
credentialBindingId?: string;
|
|
20
|
+
/** Which precedence tier supplied `credentialBindingId` (explicit grant > capability default > project default > org default). Populated iff `credentialBindingId` is present. */
|
|
21
|
+
credentialPrecedenceApplied?: CredentialPrecedenceSource;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type PolicyDecisionKind = typeof PolicyDecisionKind[keyof typeof PolicyDecisionKind];
|
|
9
|
+
export declare const PolicyDecisionKind: {
|
|
10
|
+
readonly allow: "allow";
|
|
11
|
+
readonly deny: "deny";
|
|
12
|
+
readonly needs_approval: "needs_approval";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Authorization API
|
|
6
|
+
* Authorization API extract (generated for client codegen).
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PolicyDecisionKind = void 0;
|
|
11
|
+
exports.PolicyDecisionKind = {
|
|
12
|
+
allow: 'allow',
|
|
13
|
+
deny: 'deny',
|
|
14
|
+
needs_approval: 'needs_approval',
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface PolicyEnvironmentDto {
|
|
9
|
+
/** environment:<slug> ref string. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Closed kernel enum value covered by ExecutionEnvironmentKind. */
|
|
12
|
+
kind: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DataClassification } from './dataClassification';
|
|
9
|
+
import type { DataResidency } from './dataResidency';
|
|
10
|
+
import type { PolicyObligationKind } from './policyObligationKind';
|
|
11
|
+
import type { RunnerKind } from './runnerKind';
|
|
12
|
+
export interface PolicyObligationDto {
|
|
13
|
+
kind: PolicyObligationKind;
|
|
14
|
+
runnerKind?: RunnerKind;
|
|
15
|
+
approverRole?: string;
|
|
16
|
+
maxDurationSeconds?: number;
|
|
17
|
+
maxCostUsd?: number;
|
|
18
|
+
maxClassification?: DataClassification;
|
|
19
|
+
residency?: DataResidency;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type PolicyObligationKind = typeof PolicyObligationKind[keyof typeof PolicyObligationKind];
|
|
9
|
+
export declare const PolicyObligationKind: {
|
|
10
|
+
readonly audit: "audit";
|
|
11
|
+
readonly 'redact-secrets': "redact-secrets";
|
|
12
|
+
readonly 'require-runner-kind': "require-runner-kind";
|
|
13
|
+
readonly 'require-human-approval': "require-human-approval";
|
|
14
|
+
readonly 'max-duration-seconds': "max-duration-seconds";
|
|
15
|
+
readonly 'max-cost-usd': "max-cost-usd";
|
|
16
|
+
readonly 'restrict-output-classification': "restrict-output-classification";
|
|
17
|
+
readonly 'data-residency': "data-residency";
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Authorization API
|
|
6
|
+
* Authorization API extract (generated for client codegen).
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PolicyObligationKind = void 0;
|
|
11
|
+
exports.PolicyObligationKind = {
|
|
12
|
+
audit: 'audit',
|
|
13
|
+
'redact-secrets': 'redact-secrets',
|
|
14
|
+
'require-runner-kind': 'require-runner-kind',
|
|
15
|
+
'require-human-approval': 'require-human-approval',
|
|
16
|
+
'max-duration-seconds': 'max-duration-seconds',
|
|
17
|
+
'max-cost-usd': 'max-cost-usd',
|
|
18
|
+
'restrict-output-classification': 'restrict-output-classification',
|
|
19
|
+
'data-residency': 'data-residency',
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DataClassification } from './dataClassification';
|
|
9
|
+
export interface PolicyResourceDto {
|
|
10
|
+
ref: string;
|
|
11
|
+
classification: DataClassification;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PolicyRouteHintDtoRequiredRunnerLabels } from './policyRouteHintDtoRequiredRunnerLabels';
|
|
9
|
+
import type { RunnerKind } from './runnerKind';
|
|
10
|
+
export interface PolicyRouteHintDto {
|
|
11
|
+
requiredRunnerLabels?: PolicyRouteHintDtoRequiredRunnerLabels;
|
|
12
|
+
preferredRunnerKind?: RunnerKind;
|
|
13
|
+
requiredRegion?: string;
|
|
14
|
+
requireCustomerEdge?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type PolicyRouteHintDtoRequiredRunnerLabels = {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { SpaceKind } from './spaceKind';
|
|
9
|
+
export interface PolicySpaceRefDto {
|
|
10
|
+
tier: SpaceKind;
|
|
11
|
+
orgId?: string;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
appId?: string;
|
|
14
|
+
sessionId?: string;
|
|
15
|
+
biomeId?: string;
|
|
16
|
+
userId?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PolicyActingForDto } from './policyActingForDto';
|
|
9
|
+
import type { SubjectKind } from './subjectKind';
|
|
10
|
+
export interface PolicySubjectRefDto {
|
|
11
|
+
kind: SubjectKind;
|
|
12
|
+
id: string;
|
|
13
|
+
roles?: string[];
|
|
14
|
+
actingFor?: PolicyActingForDto;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { BiomePermissionProfile } from './biomePermissionProfile';
|
|
9
|
+
import type { ProfilePolicyTemplateDtoNotes } from './profilePolicyTemplateDtoNotes';
|
|
10
|
+
export interface ProfilePolicyTemplateDto {
|
|
11
|
+
id: string;
|
|
12
|
+
profile: BiomePermissionProfile;
|
|
13
|
+
/** Built-in environment slugs. */
|
|
14
|
+
defaultEnvironments: string[];
|
|
15
|
+
defaultRequiresApproval: boolean;
|
|
16
|
+
/** @nullable */
|
|
17
|
+
notes?: ProfilePolicyTemplateDtoNotes;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type ProfilePolicyTemplateDtoNotes = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CapabilityGrantRelation } from './capabilityGrantRelation';
|
|
9
|
+
import type { SubjectKind } from './subjectKind';
|
|
10
|
+
export type RelationshipsControllerListParams = {
|
|
11
|
+
/**
|
|
12
|
+
* Filter to relationships within a single organization.
|
|
13
|
+
*/
|
|
14
|
+
orgId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Filter by subject kind (the user-type half of the tuple).
|
|
17
|
+
*/
|
|
18
|
+
subjectKind?: SubjectKind;
|
|
19
|
+
/**
|
|
20
|
+
* Filter by subject ref (the user-id half of the tuple).
|
|
21
|
+
*/
|
|
22
|
+
subjectRef?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Filter by the canonical CapabilityRef the object encodes.
|
|
25
|
+
*/
|
|
26
|
+
capability?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Filter by the environment slug the capability object is scoped to.
|
|
29
|
+
*/
|
|
30
|
+
environment?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Filter by relation (`granted_to` | `granted_pending_approval`).
|
|
33
|
+
*/
|
|
34
|
+
relation?: CapabilityGrantRelation;
|
|
35
|
+
/**
|
|
36
|
+
* @minimum 1
|
|
37
|
+
* @maximum 200
|
|
38
|
+
*/
|
|
39
|
+
limit?: number;
|
|
40
|
+
/**
|
|
41
|
+
* @minimum 0
|
|
42
|
+
*/
|
|
43
|
+
offset?: number;
|
|
44
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { SubjectKind } from './subjectKind';
|
|
9
|
+
export interface RoleAssignmentDto {
|
|
10
|
+
id: string;
|
|
11
|
+
roleId: string;
|
|
12
|
+
orgId: string;
|
|
13
|
+
subjectKind?: SubjectKind | null;
|
|
14
|
+
/** @nullable */
|
|
15
|
+
subjectRef?: string | null;
|
|
16
|
+
/** @nullable */
|
|
17
|
+
teamId?: string | null;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RoleAssignmentDto } from './roleAssignmentDto';
|
|
9
|
+
export interface RoleAssignmentDtoDataArrayEnvelope {
|
|
10
|
+
data: RoleAssignmentDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type RoleAssignmentDtoSubjectRef = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type RoleAssignmentDtoTeamId = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface RoleDto {
|
|
9
|
+
id: string;
|
|
10
|
+
orgId: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
/** @nullable */
|
|
14
|
+
description?: string | null;
|
|
15
|
+
/** Kernel-seeded built-in role (immutable from the UI). */
|
|
16
|
+
isBuiltIn: boolean;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RoleDto } from './roleDto';
|
|
9
|
+
export interface RoleDtoDataArrayEnvelope {
|
|
10
|
+
data: RoleDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type RoleDtoDescription = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { GrantConstraintsDto } from './grantConstraintsDto';
|
|
9
|
+
export interface RoleGrantDto {
|
|
10
|
+
id: string;
|
|
11
|
+
roleId: string;
|
|
12
|
+
capability: string;
|
|
13
|
+
resourceGlob: string;
|
|
14
|
+
environment: string;
|
|
15
|
+
constraints?: GrantConstraintsDto | null;
|
|
16
|
+
requiresApproval: boolean;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RoleGrantDto } from './roleGrantDto';
|
|
9
|
+
export interface RoleGrantDtoDataArrayEnvelope {
|
|
10
|
+
data: RoleGrantDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type RolesControllerListParams = {
|
|
9
|
+
orgId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Include kernel-seeded built-in roles (default true).
|
|
12
|
+
*/
|
|
13
|
+
includeBuiltIn?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type RunnerKind = typeof RunnerKind[keyof typeof RunnerKind];
|
|
9
|
+
export declare const RunnerKind: {
|
|
10
|
+
readonly local: "local";
|
|
11
|
+
readonly cloud: "cloud";
|
|
12
|
+
readonly 'customer-edge': "customer-edge";
|
|
13
|
+
readonly gpu: "gpu";
|
|
14
|
+
readonly sandbox: "sandbox";
|
|
15
|
+
readonly ci: "ci";
|
|
16
|
+
readonly 'mcp-external': "mcp-external";
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Authorization API
|
|
6
|
+
* Authorization API extract (generated for client codegen).
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RunnerKind = void 0;
|
|
11
|
+
exports.RunnerKind = {
|
|
12
|
+
local: 'local',
|
|
13
|
+
cloud: 'cloud',
|
|
14
|
+
'customer-edge': 'customer-edge',
|
|
15
|
+
gpu: 'gpu',
|
|
16
|
+
sandbox: 'sandbox',
|
|
17
|
+
ci: 'ci',
|
|
18
|
+
'mcp-external': 'mcp-external',
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* Authorization API extract (generated for client codegen).
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
9
|
+
export declare const SpaceKind: {
|
|
10
|
+
readonly system: "system";
|
|
11
|
+
readonly org: "org";
|
|
12
|
+
readonly project: "project";
|
|
13
|
+
readonly app: "app";
|
|
14
|
+
readonly session: "session";
|
|
15
|
+
readonly biome: "biome";
|
|
16
|
+
readonly user: "user";
|
|
17
|
+
};
|