@xemahq/authorization-internal-api-client 0.1.0 → 0.1.1
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 +174 -201
- package/README.md +1 -1
- package/dist/endpoints/agents/agents.d.ts +14 -0
- package/dist/endpoints/agents/agents.js +21 -0
- package/dist/endpoints/authorization/authorization.d.ts +13 -7
- package/dist/endpoints/authorization/authorization.js +26 -9
- package/dist/endpoints/credential-defaults/credential-defaults.d.ts +5 -5
- package/dist/endpoints/credential-defaults/credential-defaults.js +12 -12
- package/dist/endpoints/environments/environments.d.ts +7 -7
- package/dist/endpoints/environments/environments.js +20 -20
- package/dist/endpoints/grants/grants.d.ts +8 -8
- package/dist/endpoints/grants/grants.js +15 -15
- package/dist/endpoints/profiles/profiles.d.ts +5 -5
- package/dist/endpoints/profiles/profiles.js +4 -4
- package/dist/endpoints/relationships/relationships.d.ts +4 -4
- package/dist/endpoints/relationships/relationships.js +4 -4
- package/dist/endpoints/resources/resources.d.ts +37 -0
- package/dist/endpoints/resources/resources.js +84 -0
- package/dist/endpoints/roles/roles.d.ts +18 -13
- package/dist/endpoints/roles/roles.js +50 -34
- package/dist/endpoints/teams/teams.d.ts +9 -9
- package/dist/endpoints/teams/teams.js +24 -24
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/addResourceShareDto.d.ts +11 -0
- package/dist/models/addRoleGrantDto.d.ts +2 -2
- package/dist/models/addTeamMemberDto.d.ts +2 -2
- package/dist/models/agentProvisionDecision.d.ts +12 -0
- package/dist/models/agentProvisionDecision.js +14 -0
- package/dist/models/agentProvisionReason.d.ts +15 -0
- package/dist/models/agentProvisionReason.js +17 -0
- package/dist/models/agentReachTier.d.ts +17 -0
- package/dist/models/agentReachTier.js +16 -0
- package/dist/models/assignRoleDto.d.ts +2 -2
- package/dist/models/authorizationCheckRequestDto.d.ts +2 -2
- package/dist/models/authorizationCheckResponseDto.d.ts +3 -3
- package/dist/models/authorizationDecisionCode.d.ts +5 -2
- package/dist/models/authorizationDecisionCode.js +5 -2
- package/dist/models/authorizationReasonDto.d.ts +2 -2
- package/dist/models/authorizationSuggestionDto.d.ts +2 -2
- package/dist/models/authorizationSuggestionKind.d.ts +1 -1
- package/dist/models/authorizationSuggestionKind.js +1 -1
- package/dist/models/biomePermissionProfile.d.ts +1 -1
- package/dist/models/biomePermissionProfile.js +1 -1
- package/dist/models/biomeTrustTier.d.ts +1 -1
- package/dist/models/biomeTrustTier.js +1 -1
- package/dist/models/callerKind.d.ts +1 -1
- package/dist/models/callerKind.js +1 -1
- package/dist/models/capabilityGrantDto.d.ts +5 -5
- package/dist/models/capabilityGrantDtoPaginatedEnvelope.d.ts +13 -0
- package/dist/models/capabilityGrantRelation.d.ts +4 -1
- package/dist/models/capabilityGrantRelation.js +1 -1
- package/dist/models/capabilityRiskTier.d.ts +17 -0
- package/dist/models/capabilityRiskTier.js +16 -0
- package/dist/models/createExecutionEnvironmentDto.d.ts +5 -5
- package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +1 -1
- package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.js +1 -1
- package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.d.ts +1 -1
- package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.js +1 -1
- package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.d.ts +1 -1
- package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.js +1 -1
- package/dist/models/createGrantDto.d.ts +6 -6
- package/dist/models/createRoleDto.d.ts +1 -1
- package/dist/models/createRoleDto.js +1 -1
- package/dist/models/createTeamDto.d.ts +1 -1
- package/dist/models/createTeamDto.js +1 -1
- package/dist/models/credentialDefaultDto.d.ts +1 -1
- package/dist/models/credentialDefaultDto.js +1 -1
- package/dist/models/credentialDefaultDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/credentialDefaultDtoDataEnvelope.d.ts +2 -2
- package/dist/models/credentialDefaultsControllerDeleteParams.d.ts +1 -1
- package/dist/models/credentialDefaultsControllerDeleteParams.js +1 -1
- package/dist/models/credentialDefaultsControllerGetParams.d.ts +1 -1
- package/dist/models/credentialDefaultsControllerGetParams.js +1 -1
- package/dist/models/credentialDefaultsControllerListParams.d.ts +1 -1
- package/dist/models/credentialDefaultsControllerListParams.js +1 -1
- package/dist/models/credentialPrecedenceSource.d.ts +2 -1
- package/dist/models/credentialPrecedenceSource.js +2 -1
- package/dist/models/dataClassification.d.ts +1 -1
- package/dist/models/dataClassification.js +1 -1
- package/dist/models/dataResidency.d.ts +1 -1
- package/dist/models/dataResidency.js +1 -1
- package/dist/models/environmentsControllerFindBySlugParams.d.ts +1 -1
- package/dist/models/environmentsControllerFindBySlugParams.js +1 -1
- package/dist/models/environmentsControllerListParams.d.ts +1 -1
- package/dist/models/environmentsControllerListParams.js +1 -1
- package/dist/models/environmentsControllerRemoveParams.d.ts +1 -1
- package/dist/models/environmentsControllerRemoveParams.js +1 -1
- package/dist/models/environmentsControllerUpdateParams.d.ts +1 -1
- package/dist/models/environmentsControllerUpdateParams.js +1 -1
- package/dist/models/executionEnvironmentKind.d.ts +2 -2
- package/dist/models/executionEnvironmentKind.js +1 -1
- package/dist/models/executionEnvironmentResponseDto.d.ts +6 -6
- package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.d.ts +1 -1
- package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.js +1 -1
- package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.d.ts +1 -1
- package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.js +1 -1
- package/dist/models/executionEnvironmentResponseDtoOrgId.d.ts +1 -1
- package/dist/models/executionEnvironmentResponseDtoOrgId.js +1 -1
- package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.d.ts +1 -1
- package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.js +1 -1
- package/dist/models/grantConstraintsDto.d.ts +1 -1
- package/dist/models/grantConstraintsDto.js +1 -1
- package/dist/models/grantsControllerListParams.d.ts +2 -2
- package/dist/models/index.d.ts +25 -3
- package/dist/models/index.js +25 -3
- package/dist/models/listVisibleResourcesDto.d.ts +14 -0
- package/dist/models/openFgaRelationshipDto.d.ts +2 -2
- package/dist/models/openFgaRelationshipDtoPaginatedEnvelope.d.ts +13 -0
- package/dist/models/orgRole.d.ts +16 -0
- package/dist/models/{roleAssignmentDtoSubjectRef.js → orgRole.js} +7 -1
- package/dist/models/orgRoleSyncDto.d.ts +18 -0
- package/dist/models/orgRoleSyncResultDto.d.ts +11 -0
- package/dist/models/{teamDtoDescription.js → orgRoleSyncResultDto.js} +1 -1
- package/dist/models/paginationMeta.d.ts +18 -0
- package/dist/models/{roleAssignmentDtoTeamId.js → paginationMeta.js} +1 -1
- package/dist/models/policyActingForDto.d.ts +2 -2
- package/dist/models/policyBiomeDto.d.ts +2 -2
- package/dist/models/policyCallerDto.d.ts +2 -2
- package/dist/models/policyCapabilityDto.d.ts +1 -1
- package/dist/models/policyCapabilityDto.js +1 -1
- package/dist/models/policyCheckBatchRequestDto.d.ts +15 -0
- package/dist/models/policyCheckBatchResponseDto.d.ts +12 -0
- package/dist/models/policyCheckRequestDto.d.ts +9 -9
- package/dist/models/policyConstraintsDto.d.ts +1 -1
- package/dist/models/policyConstraintsDto.js +1 -1
- package/dist/models/policyDecisionDto.d.ts +6 -6
- package/dist/models/policyDecisionKind.d.ts +1 -1
- package/dist/models/policyDecisionKind.js +1 -1
- package/dist/models/policyEnvironmentDto.d.ts +1 -1
- package/dist/models/policyEnvironmentDto.js +1 -1
- package/dist/models/policyObligationDto.d.ts +9 -5
- package/dist/models/policyObligationKind.d.ts +2 -1
- package/dist/models/policyObligationKind.js +2 -1
- package/dist/models/policyResourceDto.d.ts +2 -2
- package/dist/models/policyRouteHintDto.d.ts +3 -3
- package/dist/models/policyRouteHintDtoRequiredRunnerLabels.d.ts +1 -1
- package/dist/models/policyRouteHintDtoRequiredRunnerLabels.js +1 -1
- package/dist/models/policySpaceRefDto.d.ts +2 -2
- package/dist/models/policySubjectRefDto.d.ts +3 -3
- package/dist/models/profilePolicyTemplateDto.d.ts +3 -3
- package/dist/models/profilePolicyTemplateDtoNotes.d.ts +1 -1
- package/dist/models/profilePolicyTemplateDtoNotes.js +1 -1
- package/dist/models/provisionAgentRequestDto.d.ts +20 -0
- package/dist/models/provisionAgentResultDto.d.ts +14 -0
- package/dist/models/provisionAgentResultDto.js +2 -0
- package/dist/models/provisionedCapabilityDto.d.ts +21 -0
- package/dist/models/provisionedCapabilityDto.js +2 -0
- package/dist/models/registerResourceOwnershipDto.d.ts +21 -0
- package/dist/models/registerResourceOwnershipDto.js +2 -0
- package/dist/models/relationshipsControllerListParams.d.ts +3 -3
- package/dist/models/resourceManagedBy.d.ts +19 -0
- package/dist/models/resourceManagedBy.js +18 -0
- package/dist/models/resourceOwnershipDto.d.ts +17 -0
- package/dist/models/resourceOwnershipDto.js +2 -0
- package/dist/models/resourceOwnershipEntryDto.d.ts +13 -0
- package/dist/models/resourceOwnershipEntryDto.js +2 -0
- package/dist/models/resourceOwnershipReadDto.d.ts +16 -0
- package/dist/models/resourceOwnershipReadDto.js +2 -0
- package/dist/models/resourceSubjectRefDto.d.ts +13 -0
- package/dist/models/resourceSubjectRefDto.js +2 -0
- package/dist/models/resourceVisibilityPattern.d.ts +18 -0
- package/dist/models/resourceVisibilityPattern.js +17 -0
- package/dist/models/roleAssignmentDto.d.ts +2 -2
- package/dist/models/roleAssignmentDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/roleDto.d.ts +4 -1
- package/dist/models/roleDto.js +0 -7
- package/dist/models/roleDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/roleGrantDto.d.ts +2 -2
- package/dist/models/roleGrantDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/rolesControllerListParams.d.ts +1 -1
- package/dist/models/rolesControllerListParams.js +1 -1
- package/dist/models/runnerKind.d.ts +1 -1
- package/dist/models/runnerKind.js +1 -1
- package/dist/models/spaceKind.d.ts +1 -1
- package/dist/models/spaceKind.js +1 -1
- package/dist/models/subjectKind.d.ts +1 -1
- package/dist/models/subjectKind.js +1 -1
- package/dist/models/subjectRefDto.d.ts +2 -2
- package/dist/models/teamDto.d.ts +1 -1
- package/dist/models/teamDto.js +1 -1
- package/dist/models/teamDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/teamMembershipDto.d.ts +2 -2
- package/dist/models/teamMembershipDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/teamsControllerListParams.d.ts +1 -1
- package/dist/models/teamsControllerListParams.js +1 -1
- package/dist/models/updateExecutionEnvironmentDto.d.ts +4 -4
- package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +1 -1
- package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.js +1 -1
- package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.d.ts +1 -1
- package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.js +1 -1
- package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.d.ts +1 -1
- package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.js +1 -1
- package/dist/models/updateGrantDto.d.ts +4 -4
- package/dist/models/updateRoleDto.d.ts +1 -1
- package/dist/models/updateRoleDto.js +1 -1
- package/dist/models/updateTeamDto.d.ts +1 -1
- package/dist/models/updateTeamDto.js +1 -1
- package/dist/models/upsertCredentialDefaultDto.d.ts +1 -1
- package/dist/models/upsertCredentialDefaultDto.js +1 -1
- package/dist/models/visibleResourcesDto.d.ts +11 -0
- package/dist/models/{roleDtoDescription.js → visibleResourcesDto.js} +1 -1
- package/package.json +14 -3
- package/dist/models/listGrantsResponseDto.d.ts +0 -14
- package/dist/models/listProfilesResponseDto.d.ts +0 -11
- package/dist/models/listRelationshipsResponseDto.d.ts +0 -14
- package/dist/models/listRoleAssignmentsResponseDto.d.ts +0 -12
- package/dist/models/listRoleGrantsResponseDto.d.ts +0 -12
- package/dist/models/listRolesResponseDto.d.ts +0 -14
- package/dist/models/listTeamMembersResponseDto.d.ts +0 -12
- package/dist/models/listTeamsResponseDto.d.ts +0 -14
- package/dist/models/roleAssignmentDtoSubjectRef.d.ts +0 -13
- package/dist/models/roleAssignmentDtoTeamId.d.ts +0 -13
- package/dist/models/roleDtoDescription.d.ts +0 -13
- package/dist/models/teamDtoDescription.d.ts +0 -13
- package/dist/models/teamDtoParentTeamId.d.ts +0 -13
- package/dist/models/teamDtoParentTeamId.js +0 -9
- package/dist/models/updateTeamDtoParentTeamId.d.ts +0 -14
- package/dist/models/updateTeamDtoParentTeamId.js +0 -9
- /package/dist/models/{listGrantsResponseDto.js → addResourceShareDto.js} +0 -0
- /package/dist/models/{listProfilesResponseDto.js → capabilityGrantDtoPaginatedEnvelope.js} +0 -0
- /package/dist/models/{listRelationshipsResponseDto.js → listVisibleResourcesDto.js} +0 -0
- /package/dist/models/{listRoleAssignmentsResponseDto.js → openFgaRelationshipDtoPaginatedEnvelope.js} +0 -0
- /package/dist/models/{listRoleGrantsResponseDto.js → orgRoleSyncDto.js} +0 -0
- /package/dist/models/{listRolesResponseDto.js → policyCheckBatchRequestDto.js} +0 -0
- /package/dist/models/{listTeamMembersResponseDto.js → policyCheckBatchResponseDto.js} +0 -0
- /package/dist/models/{listTeamsResponseDto.js → provisionAgentRequestDto.js} +0 -0
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.credentialDefaultsControllerList = exports.getCredentialDefaultsControllerListUrl = exports.credentialDefaultsControllerDelete = exports.getCredentialDefaultsControllerDeleteUrl = exports.credentialDefaultsControllerGet = exports.getCredentialDefaultsControllerGetUrl = exports.credentialDefaultsControllerUpsert = exports.getCredentialDefaultsControllerUpsertUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary Create or replace a credential-binding default
|
|
7
|
-
*/
|
|
8
5
|
const getCredentialDefaultsControllerUpsertUrl = () => {
|
|
9
6
|
return `/credential-defaults`;
|
|
10
7
|
};
|
|
11
8
|
exports.getCredentialDefaultsControllerUpsertUrl = getCredentialDefaultsControllerUpsertUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create or replace a credential-binding default
|
|
11
|
+
*/
|
|
12
12
|
const credentialDefaultsControllerUpsert = async (upsertCredentialDefaultDto, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialDefaultsControllerUpsertUrl)(), {
|
|
14
14
|
...options,
|
|
@@ -18,9 +18,6 @@ const credentialDefaultsControllerUpsert = async (upsertCredentialDefaultDto, op
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.credentialDefaultsControllerUpsert = credentialDefaultsControllerUpsert;
|
|
21
|
-
/**
|
|
22
|
-
* @summary Get the credential-binding default for an org or project scope
|
|
23
|
-
*/
|
|
24
21
|
const getCredentialDefaultsControllerGetUrl = (params) => {
|
|
25
22
|
const normalizedParams = new URLSearchParams();
|
|
26
23
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -44,6 +41,9 @@ const getCredentialDefaultsControllerGetUrl = (params) => {
|
|
|
44
41
|
return stringifiedParams.length > 0 ? `/credential-defaults?${stringifiedParams}` : `/credential-defaults`;
|
|
45
42
|
};
|
|
46
43
|
exports.getCredentialDefaultsControllerGetUrl = getCredentialDefaultsControllerGetUrl;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Get the credential-binding default for an org or project scope
|
|
46
|
+
*/
|
|
47
47
|
const credentialDefaultsControllerGet = async (params, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialDefaultsControllerGetUrl)(params), {
|
|
49
49
|
...options,
|
|
@@ -51,9 +51,6 @@ const credentialDefaultsControllerGet = async (params, options) => {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
exports.credentialDefaultsControllerGet = credentialDefaultsControllerGet;
|
|
54
|
-
/**
|
|
55
|
-
* @summary Delete the credential-binding default for an org or project scope
|
|
56
|
-
*/
|
|
57
54
|
const getCredentialDefaultsControllerDeleteUrl = (params) => {
|
|
58
55
|
const normalizedParams = new URLSearchParams();
|
|
59
56
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -77,6 +74,9 @@ const getCredentialDefaultsControllerDeleteUrl = (params) => {
|
|
|
77
74
|
return stringifiedParams.length > 0 ? `/credential-defaults?${stringifiedParams}` : `/credential-defaults`;
|
|
78
75
|
};
|
|
79
76
|
exports.getCredentialDefaultsControllerDeleteUrl = getCredentialDefaultsControllerDeleteUrl;
|
|
77
|
+
/**
|
|
78
|
+
* @summary Delete the credential-binding default for an org or project scope
|
|
79
|
+
*/
|
|
80
80
|
const credentialDefaultsControllerDelete = async (params, options) => {
|
|
81
81
|
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialDefaultsControllerDeleteUrl)(params), {
|
|
82
82
|
...options,
|
|
@@ -84,9 +84,6 @@ const credentialDefaultsControllerDelete = async (params, options) => {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
exports.credentialDefaultsControllerDelete = credentialDefaultsControllerDelete;
|
|
87
|
-
/**
|
|
88
|
-
* @summary List every credential-binding default in an org
|
|
89
|
-
*/
|
|
90
87
|
const getCredentialDefaultsControllerListUrl = (params) => {
|
|
91
88
|
const normalizedParams = new URLSearchParams();
|
|
92
89
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -110,6 +107,9 @@ const getCredentialDefaultsControllerListUrl = (params) => {
|
|
|
110
107
|
return stringifiedParams.length > 0 ? `/credential-defaults/list?${stringifiedParams}` : `/credential-defaults/list`;
|
|
111
108
|
};
|
|
112
109
|
exports.getCredentialDefaultsControllerListUrl = getCredentialDefaultsControllerListUrl;
|
|
110
|
+
/**
|
|
111
|
+
* @summary List every credential-binding default in an org
|
|
112
|
+
*/
|
|
113
113
|
const credentialDefaultsControllerList = async (params, options) => {
|
|
114
114
|
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialDefaultsControllerListUrl)(params), {
|
|
115
115
|
...options,
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Authorization API
|
|
5
5
|
* Authorization API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CreateExecutionEnvironmentDto, EnvironmentsControllerFindBySlugParams, EnvironmentsControllerListParams, EnvironmentsControllerRemoveParams, EnvironmentsControllerUpdateParams, ExecutionEnvironmentResponseDto, UpdateExecutionEnvironmentDto } from '../../models';
|
|
9
|
+
export declare const getEnvironmentsControllerListUrl: (params?: EnvironmentsControllerListParams) => string;
|
|
9
10
|
/**
|
|
10
|
-
* Returns the kernel-seeded built-in environments. With `orgId` it also includes that org's custom environments
|
|
11
|
+
* Returns the kernel-seeded built-in environments. With `orgId` it also includes that org's custom environments; without `orgId` it returns built-ins only (back-compat).
|
|
11
12
|
* @summary List ExecutionEnvironment rows
|
|
12
13
|
*/
|
|
13
|
-
export declare const getEnvironmentsControllerListUrl: (params?: EnvironmentsControllerListParams) => string;
|
|
14
14
|
export declare const environmentsControllerList: (params?: EnvironmentsControllerListParams, options?: RequestInit) => Promise<ExecutionEnvironmentResponseDto[]>;
|
|
15
|
+
export declare const getEnvironmentsControllerCreateUrl: () => string;
|
|
15
16
|
/**
|
|
16
17
|
* Creates an org-scoped custom environment (`isBuiltIn=false`). Fails fast (409) if the slug collides with a built-in or with an existing custom in the same org.
|
|
17
18
|
* @summary Create an org-custom ExecutionEnvironment
|
|
18
19
|
*/
|
|
19
|
-
export declare const getEnvironmentsControllerCreateUrl: () => string;
|
|
20
20
|
export declare const environmentsControllerCreate: (createExecutionEnvironmentDto: CreateExecutionEnvironmentDto, options?: RequestInit) => Promise<ExecutionEnvironmentResponseDto>;
|
|
21
|
+
export declare const getEnvironmentsControllerFindBySlugUrl: (slug: string, params?: EnvironmentsControllerFindBySlugParams) => string;
|
|
21
22
|
/**
|
|
22
23
|
* Resolves a built-in by slug. With `orgId`, an org-custom slug resolves before the built-in fallback. 404 if unknown.
|
|
23
24
|
* @summary Fetch a single ExecutionEnvironment by slug
|
|
24
25
|
*/
|
|
25
|
-
export declare const getEnvironmentsControllerFindBySlugUrl: (slug: string, params?: EnvironmentsControllerFindBySlugParams) => string;
|
|
26
26
|
export declare const environmentsControllerFindBySlug: (slug: string, params?: EnvironmentsControllerFindBySlugParams, options?: RequestInit) => Promise<ExecutionEnvironmentResponseDto>;
|
|
27
|
+
export declare const getEnvironmentsControllerUpdateUrl: (slug: string, params: EnvironmentsControllerUpdateParams) => string;
|
|
27
28
|
/**
|
|
28
29
|
* Updates the mutable fields (description / allowedCapabilities / approvalRules / runtimeLimits) of an org-custom environment. Refuses built-ins with 403 (immutable). `slug` / `kind` / `orgId` are immutable.
|
|
29
30
|
* @summary Update an org-custom ExecutionEnvironment
|
|
30
31
|
*/
|
|
31
|
-
export declare const getEnvironmentsControllerUpdateUrl: (slug: string, params: EnvironmentsControllerUpdateParams) => string;
|
|
32
32
|
export declare const environmentsControllerUpdate: (slug: string, updateExecutionEnvironmentDto: UpdateExecutionEnvironmentDto, params: EnvironmentsControllerUpdateParams, options?: RequestInit) => Promise<ExecutionEnvironmentResponseDto>;
|
|
33
|
+
export declare const getEnvironmentsControllerRemoveUrl: (slug: string, params: EnvironmentsControllerRemoveParams) => string;
|
|
33
34
|
/**
|
|
34
35
|
* Deletes an org-custom environment. Refuses built-ins with 403 (immutable). 404 if no such custom environment exists for the org.
|
|
35
36
|
* @summary Delete an org-custom ExecutionEnvironment
|
|
36
37
|
*/
|
|
37
|
-
export declare const getEnvironmentsControllerRemoveUrl: (slug: string, params: EnvironmentsControllerRemoveParams) => string;
|
|
38
38
|
export declare const environmentsControllerRemove: (slug: string, params: EnvironmentsControllerRemoveParams, options?: RequestInit) => Promise<void>;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.environmentsControllerRemove = exports.getEnvironmentsControllerRemoveUrl = exports.environmentsControllerUpdate = exports.getEnvironmentsControllerUpdateUrl = exports.environmentsControllerFindBySlug = exports.getEnvironmentsControllerFindBySlugUrl = exports.environmentsControllerCreate = exports.getEnvironmentsControllerCreateUrl = exports.environmentsControllerList = exports.getEnvironmentsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Returns the kernel-seeded built-in environments. With `orgId` it also includes that org's custom environments (plan §16 / G.4); without `orgId` it returns built-ins only (back-compat).
|
|
7
|
-
* @summary List ExecutionEnvironment rows
|
|
8
|
-
*/
|
|
9
5
|
const getEnvironmentsControllerListUrl = (params) => {
|
|
10
6
|
const normalizedParams = new URLSearchParams();
|
|
11
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -29,6 +25,10 @@ const getEnvironmentsControllerListUrl = (params) => {
|
|
|
29
25
|
return stringifiedParams.length > 0 ? `/environments?${stringifiedParams}` : `/environments`;
|
|
30
26
|
};
|
|
31
27
|
exports.getEnvironmentsControllerListUrl = getEnvironmentsControllerListUrl;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the kernel-seeded built-in environments. With `orgId` it also includes that org's custom environments; without `orgId` it returns built-ins only (back-compat).
|
|
30
|
+
* @summary List ExecutionEnvironment rows
|
|
31
|
+
*/
|
|
32
32
|
const environmentsControllerList = async (params, options) => {
|
|
33
33
|
return (0, custom_fetch_1.customFetch)((0, exports.getEnvironmentsControllerListUrl)(params), {
|
|
34
34
|
...options,
|
|
@@ -36,14 +36,14 @@ const environmentsControllerList = async (params, options) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
exports.environmentsControllerList = environmentsControllerList;
|
|
39
|
-
/**
|
|
40
|
-
* Creates an org-scoped custom environment (`isBuiltIn=false`). Fails fast (409) if the slug collides with a built-in or with an existing custom in the same org.
|
|
41
|
-
* @summary Create an org-custom ExecutionEnvironment
|
|
42
|
-
*/
|
|
43
39
|
const getEnvironmentsControllerCreateUrl = () => {
|
|
44
40
|
return `/environments`;
|
|
45
41
|
};
|
|
46
42
|
exports.getEnvironmentsControllerCreateUrl = getEnvironmentsControllerCreateUrl;
|
|
43
|
+
/**
|
|
44
|
+
* Creates an org-scoped custom environment (`isBuiltIn=false`). Fails fast (409) if the slug collides with a built-in or with an existing custom in the same org.
|
|
45
|
+
* @summary Create an org-custom ExecutionEnvironment
|
|
46
|
+
*/
|
|
47
47
|
const environmentsControllerCreate = async (createExecutionEnvironmentDto, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getEnvironmentsControllerCreateUrl)(), {
|
|
49
49
|
...options,
|
|
@@ -53,10 +53,6 @@ const environmentsControllerCreate = async (createExecutionEnvironmentDto, optio
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
exports.environmentsControllerCreate = environmentsControllerCreate;
|
|
56
|
-
/**
|
|
57
|
-
* Resolves a built-in by slug. With `orgId`, an org-custom slug resolves before the built-in fallback. 404 if unknown.
|
|
58
|
-
* @summary Fetch a single ExecutionEnvironment by slug
|
|
59
|
-
*/
|
|
60
56
|
const getEnvironmentsControllerFindBySlugUrl = (slug, params) => {
|
|
61
57
|
const normalizedParams = new URLSearchParams();
|
|
62
58
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -80,6 +76,10 @@ const getEnvironmentsControllerFindBySlugUrl = (slug, params) => {
|
|
|
80
76
|
return stringifiedParams.length > 0 ? `/environments/${slug}?${stringifiedParams}` : `/environments/${slug}`;
|
|
81
77
|
};
|
|
82
78
|
exports.getEnvironmentsControllerFindBySlugUrl = getEnvironmentsControllerFindBySlugUrl;
|
|
79
|
+
/**
|
|
80
|
+
* Resolves a built-in by slug. With `orgId`, an org-custom slug resolves before the built-in fallback. 404 if unknown.
|
|
81
|
+
* @summary Fetch a single ExecutionEnvironment by slug
|
|
82
|
+
*/
|
|
83
83
|
const environmentsControllerFindBySlug = async (slug, params, options) => {
|
|
84
84
|
return (0, custom_fetch_1.customFetch)((0, exports.getEnvironmentsControllerFindBySlugUrl)(slug, params), {
|
|
85
85
|
...options,
|
|
@@ -87,10 +87,6 @@ const environmentsControllerFindBySlug = async (slug, params, options) => {
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
exports.environmentsControllerFindBySlug = environmentsControllerFindBySlug;
|
|
90
|
-
/**
|
|
91
|
-
* Updates the mutable fields (description / allowedCapabilities / approvalRules / runtimeLimits) of an org-custom environment. Refuses built-ins with 403 (immutable). `slug` / `kind` / `orgId` are immutable.
|
|
92
|
-
* @summary Update an org-custom ExecutionEnvironment
|
|
93
|
-
*/
|
|
94
90
|
const getEnvironmentsControllerUpdateUrl = (slug, params) => {
|
|
95
91
|
const normalizedParams = new URLSearchParams();
|
|
96
92
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -114,6 +110,10 @@ const getEnvironmentsControllerUpdateUrl = (slug, params) => {
|
|
|
114
110
|
return stringifiedParams.length > 0 ? `/environments/${slug}?${stringifiedParams}` : `/environments/${slug}`;
|
|
115
111
|
};
|
|
116
112
|
exports.getEnvironmentsControllerUpdateUrl = getEnvironmentsControllerUpdateUrl;
|
|
113
|
+
/**
|
|
114
|
+
* Updates the mutable fields (description / allowedCapabilities / approvalRules / runtimeLimits) of an org-custom environment. Refuses built-ins with 403 (immutable). `slug` / `kind` / `orgId` are immutable.
|
|
115
|
+
* @summary Update an org-custom ExecutionEnvironment
|
|
116
|
+
*/
|
|
117
117
|
const environmentsControllerUpdate = async (slug, updateExecutionEnvironmentDto, params, options) => {
|
|
118
118
|
return (0, custom_fetch_1.customFetch)((0, exports.getEnvironmentsControllerUpdateUrl)(slug, params), {
|
|
119
119
|
...options,
|
|
@@ -123,10 +123,6 @@ const environmentsControllerUpdate = async (slug, updateExecutionEnvironmentDto,
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
exports.environmentsControllerUpdate = environmentsControllerUpdate;
|
|
126
|
-
/**
|
|
127
|
-
* Deletes an org-custom environment. Refuses built-ins with 403 (immutable). 404 if no such custom environment exists for the org.
|
|
128
|
-
* @summary Delete an org-custom ExecutionEnvironment
|
|
129
|
-
*/
|
|
130
126
|
const getEnvironmentsControllerRemoveUrl = (slug, params) => {
|
|
131
127
|
const normalizedParams = new URLSearchParams();
|
|
132
128
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -150,6 +146,10 @@ const getEnvironmentsControllerRemoveUrl = (slug, params) => {
|
|
|
150
146
|
return stringifiedParams.length > 0 ? `/environments/${slug}?${stringifiedParams}` : `/environments/${slug}`;
|
|
151
147
|
};
|
|
152
148
|
exports.getEnvironmentsControllerRemoveUrl = getEnvironmentsControllerRemoveUrl;
|
|
149
|
+
/**
|
|
150
|
+
* Deletes an org-custom environment. Refuses built-ins with 403 (immutable). 404 if no such custom environment exists for the org.
|
|
151
|
+
* @summary Delete an org-custom ExecutionEnvironment
|
|
152
|
+
*/
|
|
153
153
|
const environmentsControllerRemove = async (slug, params, options) => {
|
|
154
154
|
return (0, custom_fetch_1.customFetch)((0, exports.getEnvironmentsControllerRemoveUrl)(slug, params), {
|
|
155
155
|
...options,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Authorization API
|
|
5
5
|
* Authorization API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CapabilityGrantDto, CreateGrantDto, GrantsControllerListParams,
|
|
8
|
+
import type { CapabilityGrantDto, CapabilityGrantDtoPaginatedEnvelope, CreateGrantDto, GrantsControllerListParams, UpdateGrantDto } from '../../models';
|
|
9
|
+
export declare const getGrantsControllerCreateUrl: () => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary Create a capability grant
|
|
11
12
|
*/
|
|
12
|
-
export declare const getGrantsControllerCreateUrl: () => string;
|
|
13
13
|
export declare const grantsControllerCreate: (createGrantDto: CreateGrantDto, options?: RequestInit) => Promise<CapabilityGrantDto>;
|
|
14
|
+
export declare const getGrantsControllerListUrl: (params?: GrantsControllerListParams) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary List capability grants (paginated, filterable)
|
|
16
17
|
*/
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const grantsControllerList: (params?: GrantsControllerListParams, options?: RequestInit) => Promise<CapabilityGrantDtoPaginatedEnvelope>;
|
|
19
|
+
export declare const getGrantsControllerGetByIdUrl: (id: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary Get a capability grant by id
|
|
21
22
|
*/
|
|
22
|
-
export declare const getGrantsControllerGetByIdUrl: (id: string) => string;
|
|
23
23
|
export declare const grantsControllerGetById: (id: string, options?: RequestInit) => Promise<CapabilityGrantDto>;
|
|
24
|
+
export declare const getGrantsControllerUpdateUrl: (id: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Update mutable fields on a capability grant
|
|
26
27
|
*/
|
|
27
|
-
export declare const getGrantsControllerUpdateUrl: (id: string) => string;
|
|
28
28
|
export declare const grantsControllerUpdate: (id: string, updateGrantDto: UpdateGrantDto, options?: RequestInit) => Promise<CapabilityGrantDto>;
|
|
29
|
+
export declare const getGrantsControllerRevokeUrl: (id: string) => string;
|
|
29
30
|
/**
|
|
30
31
|
* @summary Mark a capability grant as revoked
|
|
31
32
|
*/
|
|
32
|
-
export declare const getGrantsControllerRevokeUrl: (id: string) => string;
|
|
33
33
|
export declare const grantsControllerRevoke: (id: string, options?: RequestInit) => Promise<CapabilityGrantDto>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.grantsControllerRevoke = exports.getGrantsControllerRevokeUrl = exports.grantsControllerUpdate = exports.getGrantsControllerUpdateUrl = exports.grantsControllerGetById = exports.getGrantsControllerGetByIdUrl = exports.grantsControllerList = exports.getGrantsControllerListUrl = exports.grantsControllerCreate = exports.getGrantsControllerCreateUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary Create a capability grant
|
|
7
|
-
*/
|
|
8
5
|
const getGrantsControllerCreateUrl = () => {
|
|
9
6
|
return `/grants`;
|
|
10
7
|
};
|
|
11
8
|
exports.getGrantsControllerCreateUrl = getGrantsControllerCreateUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create a capability grant
|
|
11
|
+
*/
|
|
12
12
|
const grantsControllerCreate = async (createGrantDto, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getGrantsControllerCreateUrl)(), {
|
|
14
14
|
...options,
|
|
@@ -18,9 +18,6 @@ const grantsControllerCreate = async (createGrantDto, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.grantsControllerCreate = grantsControllerCreate;
|
|
21
|
-
/**
|
|
22
|
-
* @summary List capability grants (paginated, filterable)
|
|
23
|
-
*/
|
|
24
21
|
const getGrantsControllerListUrl = (params) => {
|
|
25
22
|
const normalizedParams = new URLSearchParams();
|
|
26
23
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -44,6 +41,9 @@ const getGrantsControllerListUrl = (params) => {
|
|
|
44
41
|
return stringifiedParams.length > 0 ? `/grants?${stringifiedParams}` : `/grants`;
|
|
45
42
|
};
|
|
46
43
|
exports.getGrantsControllerListUrl = getGrantsControllerListUrl;
|
|
44
|
+
/**
|
|
45
|
+
* @summary List capability grants (paginated, filterable)
|
|
46
|
+
*/
|
|
47
47
|
const grantsControllerList = async (params, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getGrantsControllerListUrl)(params), {
|
|
49
49
|
...options,
|
|
@@ -51,13 +51,13 @@ const grantsControllerList = async (params, options) => {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
exports.grantsControllerList = grantsControllerList;
|
|
54
|
-
/**
|
|
55
|
-
* @summary Get a capability grant by id
|
|
56
|
-
*/
|
|
57
54
|
const getGrantsControllerGetByIdUrl = (id) => {
|
|
58
55
|
return `/grants/${id}`;
|
|
59
56
|
};
|
|
60
57
|
exports.getGrantsControllerGetByIdUrl = getGrantsControllerGetByIdUrl;
|
|
58
|
+
/**
|
|
59
|
+
* @summary Get a capability grant by id
|
|
60
|
+
*/
|
|
61
61
|
const grantsControllerGetById = async (id, options) => {
|
|
62
62
|
return (0, custom_fetch_1.customFetch)((0, exports.getGrantsControllerGetByIdUrl)(id), {
|
|
63
63
|
...options,
|
|
@@ -65,13 +65,13 @@ const grantsControllerGetById = async (id, options) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
exports.grantsControllerGetById = grantsControllerGetById;
|
|
68
|
-
/**
|
|
69
|
-
* @summary Update mutable fields on a capability grant
|
|
70
|
-
*/
|
|
71
68
|
const getGrantsControllerUpdateUrl = (id) => {
|
|
72
69
|
return `/grants/${id}`;
|
|
73
70
|
};
|
|
74
71
|
exports.getGrantsControllerUpdateUrl = getGrantsControllerUpdateUrl;
|
|
72
|
+
/**
|
|
73
|
+
* @summary Update mutable fields on a capability grant
|
|
74
|
+
*/
|
|
75
75
|
const grantsControllerUpdate = async (id, updateGrantDto, options) => {
|
|
76
76
|
return (0, custom_fetch_1.customFetch)((0, exports.getGrantsControllerUpdateUrl)(id), {
|
|
77
77
|
...options,
|
|
@@ -81,13 +81,13 @@ const grantsControllerUpdate = async (id, updateGrantDto, options) => {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
exports.grantsControllerUpdate = grantsControllerUpdate;
|
|
84
|
-
/**
|
|
85
|
-
* @summary Mark a capability grant as revoked
|
|
86
|
-
*/
|
|
87
84
|
const getGrantsControllerRevokeUrl = (id) => {
|
|
88
85
|
return `/grants/${id}/revoke`;
|
|
89
86
|
};
|
|
90
87
|
exports.getGrantsControllerRevokeUrl = getGrantsControllerRevokeUrl;
|
|
88
|
+
/**
|
|
89
|
+
* @summary Mark a capability grant as revoked
|
|
90
|
+
*/
|
|
91
91
|
const grantsControllerRevoke = async (id, options) => {
|
|
92
92
|
return (0, custom_fetch_1.customFetch)((0, exports.getGrantsControllerRevokeUrl)(id), {
|
|
93
93
|
...options,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Authorization API
|
|
5
5
|
* Authorization API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { ProfilePolicyTemplateDto } from '../../models';
|
|
9
|
+
export declare const getProfilesControllerListUrl: () => string;
|
|
9
10
|
/**
|
|
10
|
-
* Returns the kernel-seeded `ProfilePolicyTemplate` rows. Used by the biome install UI to populate the profile picker
|
|
11
|
+
* Returns the kernel-seeded `ProfilePolicyTemplate` rows. Used by the biome install UI to populate the profile picker.
|
|
11
12
|
* @summary List built-in BiomePermissionProfile policy templates
|
|
12
13
|
*/
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const profilesControllerList: (options?: RequestInit) => Promise<ListProfilesResponseDto>;
|
|
14
|
+
export declare const profilesControllerList: (options?: RequestInit) => Promise<ProfilePolicyTemplateDto[]>;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.profilesControllerList = exports.getProfilesControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Returns the kernel-seeded `ProfilePolicyTemplate` rows. Used by the biome install UI to populate the profile picker (plan §30.3).
|
|
7
|
-
* @summary List built-in BiomePermissionProfile policy templates
|
|
8
|
-
*/
|
|
9
5
|
const getProfilesControllerListUrl = () => {
|
|
10
6
|
return `/profiles`;
|
|
11
7
|
};
|
|
12
8
|
exports.getProfilesControllerListUrl = getProfilesControllerListUrl;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the kernel-seeded `ProfilePolicyTemplate` rows. Used by the biome install UI to populate the profile picker.
|
|
11
|
+
* @summary List built-in BiomePermissionProfile policy templates
|
|
12
|
+
*/
|
|
13
13
|
const profilesControllerList = async (options) => {
|
|
14
14
|
return (0, custom_fetch_1.customFetch)((0, exports.getProfilesControllerListUrl)(), {
|
|
15
15
|
...options,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Authorization API
|
|
5
5
|
* Authorization API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { OpenFgaRelationshipDtoPaginatedEnvelope, RelationshipsControllerListParams } from '../../models';
|
|
9
|
+
export declare const getRelationshipsControllerListUrl: (params?: RelationshipsControllerListParams) => string;
|
|
9
10
|
/**
|
|
10
11
|
* Returns the live OpenFGA relationship tuples projected from the authoritative `CapabilityGrant` rows. Filter by org / subject / capability / environment / relation; offset-paginated (limit default 50, max 200).
|
|
11
12
|
* @summary List ReBAC relationship tuples (paginated, filterable)
|
|
12
13
|
*/
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const relationshipsControllerList: (params?: RelationshipsControllerListParams, options?: RequestInit) => Promise<ListRelationshipsResponseDto>;
|
|
14
|
+
export declare const relationshipsControllerList: (params?: RelationshipsControllerListParams, options?: RequestInit) => Promise<OpenFgaRelationshipDtoPaginatedEnvelope>;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.relationshipsControllerList = exports.getRelationshipsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Returns the live OpenFGA relationship tuples projected from the authoritative `CapabilityGrant` rows. Filter by org / subject / capability / environment / relation; offset-paginated (limit default 50, max 200).
|
|
7
|
-
* @summary List ReBAC relationship tuples (paginated, filterable)
|
|
8
|
-
*/
|
|
9
5
|
const getRelationshipsControllerListUrl = (params) => {
|
|
10
6
|
const normalizedParams = new URLSearchParams();
|
|
11
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -29,6 +25,10 @@ const getRelationshipsControllerListUrl = (params) => {
|
|
|
29
25
|
return stringifiedParams.length > 0 ? `/relationships?${stringifiedParams}` : `/relationships`;
|
|
30
26
|
};
|
|
31
27
|
exports.getRelationshipsControllerListUrl = getRelationshipsControllerListUrl;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the live OpenFGA relationship tuples projected from the authoritative `CapabilityGrant` rows. Filter by org / subject / capability / environment / relation; offset-paginated (limit default 50, max 200).
|
|
30
|
+
* @summary List ReBAC relationship tuples (paginated, filterable)
|
|
31
|
+
*/
|
|
32
32
|
const relationshipsControllerList = async (params, options) => {
|
|
33
33
|
return (0, custom_fetch_1.customFetch)((0, exports.getRelationshipsControllerListUrl)(params), {
|
|
34
34
|
...options,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
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 { AddResourceShareDto, ListVisibleResourcesDto, RegisterResourceOwnershipDto, ResourceOwnershipDto, ResourceOwnershipReadDto, VisibleResourcesDto } from '../../models';
|
|
9
|
+
export declare const getResourcesControllerRegisterUrl: () => string;
|
|
10
|
+
/**
|
|
11
|
+
* Writes the ownership rows + OpenFGA tuples so the PDP ANDs the verb verdict with instance ownership. Idempotent (upsert + ignore-duplicate tuples). Org scope is forced from the caller context.
|
|
12
|
+
* @summary Register ownership/visibility of a resource instance
|
|
13
|
+
*/
|
|
14
|
+
export declare const resourcesControllerRegister: (registerResourceOwnershipDto: RegisterResourceOwnershipDto, options?: RequestInit) => Promise<ResourceOwnershipDto>;
|
|
15
|
+
export declare const getResourcesControllerListVisibleUrl: () => string;
|
|
16
|
+
/**
|
|
17
|
+
* Unions OpenFGA owner/shared-with visibility (usersets expanded transitively) with org-shared instances. Org scope is forced from the caller context. Used by platform BFFs to visibility-filter a list on behalf of the end user they serve.
|
|
18
|
+
* @summary List the instances of a resource type a subject may see
|
|
19
|
+
*/
|
|
20
|
+
export declare const resourcesControllerListVisible: (listVisibleResourcesDto: ListVisibleResourcesDto, options?: RequestInit) => Promise<VisibleResourcesDto>;
|
|
21
|
+
export declare const getResourcesControllerGetOwnershipUrl: (type: string, id: string) => string;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the instance visibility and the combined set of registered subjects (owners + shares; the SQL authority does not split them). 404 when the instance was never registered.
|
|
24
|
+
* @summary Read a resource instance’s current visibility + subjects
|
|
25
|
+
*/
|
|
26
|
+
export declare const resourcesControllerGetOwnership: (type: string, id: string, options?: RequestInit) => Promise<ResourceOwnershipReadDto>;
|
|
27
|
+
export declare const getResourcesControllerDeregisterUrl: (type: string, id: string) => string;
|
|
28
|
+
/**
|
|
29
|
+
* Idempotent — a no-op when the instance was never registered.
|
|
30
|
+
* @summary Deregister a resource instance (drop ownership rows + tuples)
|
|
31
|
+
*/
|
|
32
|
+
export declare const resourcesControllerDeregister: (type: string, id: string, options?: RequestInit) => Promise<void>;
|
|
33
|
+
export declare const getResourcesControllerAddShareUrl: (type: string, id: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* @summary Add an explicit share to a registered resource instance
|
|
36
|
+
*/
|
|
37
|
+
export declare const resourcesControllerAddShare: (type: string, id: string, addResourceShareDto: AddResourceShareDto, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resourcesControllerAddShare = exports.getResourcesControllerAddShareUrl = exports.resourcesControllerDeregister = exports.getResourcesControllerDeregisterUrl = exports.resourcesControllerGetOwnership = exports.getResourcesControllerGetOwnershipUrl = exports.resourcesControllerListVisible = exports.getResourcesControllerListVisibleUrl = exports.resourcesControllerRegister = exports.getResourcesControllerRegisterUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
const getResourcesControllerRegisterUrl = () => {
|
|
6
|
+
return `/resources`;
|
|
7
|
+
};
|
|
8
|
+
exports.getResourcesControllerRegisterUrl = getResourcesControllerRegisterUrl;
|
|
9
|
+
/**
|
|
10
|
+
* Writes the ownership rows + OpenFGA tuples so the PDP ANDs the verb verdict with instance ownership. Idempotent (upsert + ignore-duplicate tuples). Org scope is forced from the caller context.
|
|
11
|
+
* @summary Register ownership/visibility of a resource instance
|
|
12
|
+
*/
|
|
13
|
+
const resourcesControllerRegister = async (registerResourceOwnershipDto, options) => {
|
|
14
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getResourcesControllerRegisterUrl)(), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'POST',
|
|
17
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
18
|
+
body: JSON.stringify(registerResourceOwnershipDto)
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
exports.resourcesControllerRegister = resourcesControllerRegister;
|
|
22
|
+
const getResourcesControllerListVisibleUrl = () => {
|
|
23
|
+
return `/resources/visible`;
|
|
24
|
+
};
|
|
25
|
+
exports.getResourcesControllerListVisibleUrl = getResourcesControllerListVisibleUrl;
|
|
26
|
+
/**
|
|
27
|
+
* Unions OpenFGA owner/shared-with visibility (usersets expanded transitively) with org-shared instances. Org scope is forced from the caller context. Used by platform BFFs to visibility-filter a list on behalf of the end user they serve.
|
|
28
|
+
* @summary List the instances of a resource type a subject may see
|
|
29
|
+
*/
|
|
30
|
+
const resourcesControllerListVisible = async (listVisibleResourcesDto, options) => {
|
|
31
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getResourcesControllerListVisibleUrl)(), {
|
|
32
|
+
...options,
|
|
33
|
+
method: 'POST',
|
|
34
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
35
|
+
body: JSON.stringify(listVisibleResourcesDto)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.resourcesControllerListVisible = resourcesControllerListVisible;
|
|
39
|
+
const getResourcesControllerGetOwnershipUrl = (type, id) => {
|
|
40
|
+
return `/resources/${type}/${id}`;
|
|
41
|
+
};
|
|
42
|
+
exports.getResourcesControllerGetOwnershipUrl = getResourcesControllerGetOwnershipUrl;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the instance visibility and the combined set of registered subjects (owners + shares; the SQL authority does not split them). 404 when the instance was never registered.
|
|
45
|
+
* @summary Read a resource instance’s current visibility + subjects
|
|
46
|
+
*/
|
|
47
|
+
const resourcesControllerGetOwnership = async (type, id, options) => {
|
|
48
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getResourcesControllerGetOwnershipUrl)(type, id), {
|
|
49
|
+
...options,
|
|
50
|
+
method: 'GET'
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.resourcesControllerGetOwnership = resourcesControllerGetOwnership;
|
|
54
|
+
const getResourcesControllerDeregisterUrl = (type, id) => {
|
|
55
|
+
return `/resources/${type}/${id}`;
|
|
56
|
+
};
|
|
57
|
+
exports.getResourcesControllerDeregisterUrl = getResourcesControllerDeregisterUrl;
|
|
58
|
+
/**
|
|
59
|
+
* Idempotent — a no-op when the instance was never registered.
|
|
60
|
+
* @summary Deregister a resource instance (drop ownership rows + tuples)
|
|
61
|
+
*/
|
|
62
|
+
const resourcesControllerDeregister = async (type, id, options) => {
|
|
63
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getResourcesControllerDeregisterUrl)(type, id), {
|
|
64
|
+
...options,
|
|
65
|
+
method: 'DELETE'
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
exports.resourcesControllerDeregister = resourcesControllerDeregister;
|
|
69
|
+
const getResourcesControllerAddShareUrl = (type, id) => {
|
|
70
|
+
return `/resources/${type}/${id}/relationships`;
|
|
71
|
+
};
|
|
72
|
+
exports.getResourcesControllerAddShareUrl = getResourcesControllerAddShareUrl;
|
|
73
|
+
/**
|
|
74
|
+
* @summary Add an explicit share to a registered resource instance
|
|
75
|
+
*/
|
|
76
|
+
const resourcesControllerAddShare = async (type, id, addResourceShareDto, options) => {
|
|
77
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getResourcesControllerAddShareUrl)(type, id), {
|
|
78
|
+
...options,
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
81
|
+
body: JSON.stringify(addResourceShareDto)
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
exports.resourcesControllerAddShare = resourcesControllerAddShare;
|
|
@@ -1,63 +1,68 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Authorization API
|
|
5
5
|
* Authorization API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { AddRoleGrantDto, AssignRoleDto, CreateRoleDto, RoleAssignmentDto, RoleAssignmentDtoDataArrayEnvelope, RoleDto, RoleDtoDataArrayEnvelope, RoleGrantDto, RoleGrantDtoDataArrayEnvelope, RolesControllerListParams, UpdateRoleDto } from '../../models';
|
|
8
|
+
import type { AddRoleGrantDto, AssignRoleDto, CreateRoleDto, OrgRoleSyncDto, OrgRoleSyncResultDto, RoleAssignmentDto, RoleAssignmentDtoDataArrayEnvelope, RoleDto, RoleDtoDataArrayEnvelope, RoleGrantDto, RoleGrantDtoDataArrayEnvelope, RolesControllerListParams, UpdateRoleDto } from '../../models';
|
|
9
|
+
export declare const getRolesControllerCreateUrl: () => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary Create a custom role
|
|
11
12
|
*/
|
|
12
|
-
export declare const getRolesControllerCreateUrl: () => string;
|
|
13
13
|
export declare const rolesControllerCreate: (createRoleDto: CreateRoleDto, options?: RequestInit) => Promise<RoleDto>;
|
|
14
|
+
export declare const getRolesControllerListUrl: (params: RolesControllerListParams) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary List roles in an org (custom + built-in)
|
|
16
17
|
*/
|
|
17
|
-
export declare const getRolesControllerListUrl: (params: RolesControllerListParams) => string;
|
|
18
18
|
export declare const rolesControllerList: (params: RolesControllerListParams, options?: RequestInit) => Promise<RoleDtoDataArrayEnvelope>;
|
|
19
|
+
export declare const getRolesControllerGetByIdUrl: (id: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary Get a role by id
|
|
21
22
|
*/
|
|
22
|
-
export declare const getRolesControllerGetByIdUrl: (id: string) => string;
|
|
23
23
|
export declare const rolesControllerGetById: (id: string, options?: RequestInit) => Promise<RoleDto>;
|
|
24
|
+
export declare const getRolesControllerUpdateUrl: (id: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Update a custom role (built-ins are immutable)
|
|
26
27
|
*/
|
|
27
|
-
export declare const getRolesControllerUpdateUrl: (id: string) => string;
|
|
28
28
|
export declare const rolesControllerUpdate: (id: string, updateRoleDto: UpdateRoleDto, options?: RequestInit) => Promise<RoleDto>;
|
|
29
|
+
export declare const getRolesControllerDeleteUrl: (id: string) => string;
|
|
29
30
|
/**
|
|
30
31
|
* @summary Delete a custom role (cascades grants + assignments)
|
|
31
32
|
*/
|
|
32
|
-
export declare const getRolesControllerDeleteUrl: (id: string) => string;
|
|
33
33
|
export declare const rolesControllerDelete: (id: string, options?: RequestInit) => Promise<void>;
|
|
34
|
+
export declare const getRolesControllerListGrantsUrl: (id: string) => string;
|
|
34
35
|
/**
|
|
35
36
|
* @summary List the capability grants a role bundles
|
|
36
37
|
*/
|
|
37
|
-
export declare const getRolesControllerListGrantsUrl: (id: string) => string;
|
|
38
38
|
export declare const rolesControllerListGrants: (id: string, options?: RequestInit) => Promise<RoleGrantDtoDataArrayEnvelope>;
|
|
39
|
+
export declare const getRolesControllerAddGrantUrl: (id: string) => string;
|
|
39
40
|
/**
|
|
40
41
|
* @summary Add a capability grant to a role
|
|
41
42
|
*/
|
|
42
|
-
export declare const getRolesControllerAddGrantUrl: (id: string) => string;
|
|
43
43
|
export declare const rolesControllerAddGrant: (id: string, addRoleGrantDto: AddRoleGrantDto, options?: RequestInit) => Promise<RoleGrantDto>;
|
|
44
|
+
export declare const getRolesControllerRemoveGrantUrl: (id: string, grantId: string) => string;
|
|
44
45
|
/**
|
|
45
46
|
* @summary Remove a capability grant from a role
|
|
46
47
|
*/
|
|
47
|
-
export declare const getRolesControllerRemoveGrantUrl: (id: string, grantId: string) => string;
|
|
48
48
|
export declare const rolesControllerRemoveGrant: (id: string, grantId: string, options?: RequestInit) => Promise<void>;
|
|
49
|
+
export declare const getRolesControllerListAssignmentsUrl: (id: string) => string;
|
|
49
50
|
/**
|
|
50
51
|
* @summary List a role’s assignments (subjects + teams)
|
|
51
52
|
*/
|
|
52
|
-
export declare const getRolesControllerListAssignmentsUrl: (id: string) => string;
|
|
53
53
|
export declare const rolesControllerListAssignments: (id: string, options?: RequestInit) => Promise<RoleAssignmentDtoDataArrayEnvelope>;
|
|
54
|
+
export declare const getRolesControllerAssignUrl: (id: string) => string;
|
|
54
55
|
/**
|
|
55
56
|
* @summary Assign a role to a subject or a team
|
|
56
57
|
*/
|
|
57
|
-
export declare const getRolesControllerAssignUrl: (id: string) => string;
|
|
58
58
|
export declare const rolesControllerAssign: (id: string, assignRoleDto: AssignRoleDto, options?: RequestInit) => Promise<RoleAssignmentDto>;
|
|
59
|
+
export declare const getRolesControllerUnassignUrl: (id: string, assignmentId: string) => string;
|
|
59
60
|
/**
|
|
60
61
|
* @summary Remove a role assignment
|
|
61
62
|
*/
|
|
62
|
-
export declare const getRolesControllerUnassignUrl: (id: string, assignmentId: string) => string;
|
|
63
63
|
export declare const rolesControllerUnassign: (id: string, assignmentId: string, options?: RequestInit) => Promise<void>;
|
|
64
|
+
export declare const getOrgRoleSyncControllerSyncUrl: () => string;
|
|
65
|
+
/**
|
|
66
|
+
* @summary Ensure a subject holds the given org role, correctly org-scoped (idempotent).
|
|
67
|
+
*/
|
|
68
|
+
export declare const orgRoleSyncControllerSync: (orgRoleSyncDto: OrgRoleSyncDto, options?: RequestInit) => Promise<OrgRoleSyncResultDto>;
|