@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.
Files changed (225) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +62 -0
  3. package/dist/custom-fetch.d.ts +48 -0
  4. package/dist/custom-fetch.js +146 -0
  5. package/dist/endpoints/authorization/authorization.d.ts +20 -0
  6. package/dist/endpoints/authorization/authorization.js +38 -0
  7. package/dist/endpoints/credential-defaults/credential-defaults.d.ts +28 -0
  8. package/dist/endpoints/credential-defaults/credential-defaults.js +119 -0
  9. package/dist/endpoints/environments/environments.d.ts +38 -0
  10. package/dist/endpoints/environments/environments.js +159 -0
  11. package/dist/endpoints/grants/grants.d.ts +33 -0
  12. package/dist/endpoints/grants/grants.js +97 -0
  13. package/dist/endpoints/profiles/profiles.d.ts +14 -0
  14. package/dist/endpoints/profiles/profiles.js +19 -0
  15. package/dist/endpoints/relationships/relationships.d.ts +14 -0
  16. package/dist/endpoints/relationships/relationships.js +38 -0
  17. package/dist/endpoints/roles/roles.d.ts +63 -0
  18. package/dist/endpoints/roles/roles.js +185 -0
  19. package/dist/endpoints/teams/teams.d.ts +48 -0
  20. package/dist/endpoints/teams/teams.js +141 -0
  21. package/dist/index.d.ts +10 -0
  22. package/dist/index.js +32 -0
  23. package/dist/models/addRoleGrantDto.d.ts +17 -0
  24. package/dist/models/addRoleGrantDto.js +2 -0
  25. package/dist/models/addTeamMemberDto.d.ts +12 -0
  26. package/dist/models/addTeamMemberDto.js +2 -0
  27. package/dist/models/assignRoleDto.d.ts +16 -0
  28. package/dist/models/assignRoleDto.js +2 -0
  29. package/dist/models/authorizationCheckRequestDto.d.ts +23 -0
  30. package/dist/models/authorizationCheckRequestDto.js +2 -0
  31. package/dist/models/authorizationCheckResponseDto.d.ts +16 -0
  32. package/dist/models/authorizationCheckResponseDto.js +2 -0
  33. package/dist/models/authorizationDecisionCode.d.ts +15 -0
  34. package/dist/models/authorizationDecisionCode.js +17 -0
  35. package/dist/models/authorizationReasonDto.d.ts +12 -0
  36. package/dist/models/authorizationReasonDto.js +2 -0
  37. package/dist/models/authorizationSuggestionDto.d.ts +18 -0
  38. package/dist/models/authorizationSuggestionDto.js +2 -0
  39. package/dist/models/authorizationSuggestionKind.d.ts +13 -0
  40. package/dist/models/authorizationSuggestionKind.js +15 -0
  41. package/dist/models/biomePermissionProfile.d.ts +22 -0
  42. package/dist/models/biomePermissionProfile.js +21 -0
  43. package/dist/models/biomeTrustTier.d.ts +14 -0
  44. package/dist/models/biomeTrustTier.js +16 -0
  45. package/dist/models/callerKind.d.ts +16 -0
  46. package/dist/models/callerKind.js +18 -0
  47. package/dist/models/capabilityGrantDto.d.ts +32 -0
  48. package/dist/models/capabilityGrantDto.js +2 -0
  49. package/dist/models/capabilityGrantRelation.d.ts +12 -0
  50. package/dist/models/capabilityGrantRelation.js +14 -0
  51. package/dist/models/createExecutionEnvironmentDto.d.ts +26 -0
  52. package/dist/models/createExecutionEnvironmentDto.js +2 -0
  53. package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +10 -0
  54. package/dist/models/createExecutionEnvironmentDtoAllowedCapabilitiesItem.js +9 -0
  55. package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.d.ts +10 -0
  56. package/dist/models/createExecutionEnvironmentDtoApprovalRulesItem.js +9 -0
  57. package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.d.ts +13 -0
  58. package/dist/models/createExecutionEnvironmentDtoRuntimeLimits.js +9 -0
  59. package/dist/models/createGrantDto.d.ts +28 -0
  60. package/dist/models/createGrantDto.js +2 -0
  61. package/dist/models/createRoleDto.d.ts +13 -0
  62. package/dist/models/createRoleDto.js +9 -0
  63. package/dist/models/createTeamDto.d.ts +16 -0
  64. package/dist/models/createTeamDto.js +9 -0
  65. package/dist/models/credentialDefaultDto.d.ts +21 -0
  66. package/dist/models/credentialDefaultDto.js +9 -0
  67. package/dist/models/credentialDefaultDtoDataArrayEnvelope.d.ts +11 -0
  68. package/dist/models/credentialDefaultDtoDataArrayEnvelope.js +2 -0
  69. package/dist/models/credentialDefaultDtoDataEnvelope.d.ts +11 -0
  70. package/dist/models/credentialDefaultDtoDataEnvelope.js +2 -0
  71. package/dist/models/credentialDefaultsControllerDeleteParams.d.ts +17 -0
  72. package/dist/models/credentialDefaultsControllerDeleteParams.js +9 -0
  73. package/dist/models/credentialDefaultsControllerGetParams.d.ts +17 -0
  74. package/dist/models/credentialDefaultsControllerGetParams.js +9 -0
  75. package/dist/models/credentialDefaultsControllerListParams.d.ts +10 -0
  76. package/dist/models/credentialDefaultsControllerListParams.js +9 -0
  77. package/dist/models/credentialPrecedenceSource.d.ts +17 -0
  78. package/dist/models/credentialPrecedenceSource.js +16 -0
  79. package/dist/models/dataClassification.d.ts +15 -0
  80. package/dist/models/dataClassification.js +17 -0
  81. package/dist/models/dataResidency.d.ts +13 -0
  82. package/dist/models/dataResidency.js +15 -0
  83. package/dist/models/environmentsControllerFindBySlugParams.d.ts +13 -0
  84. package/dist/models/environmentsControllerFindBySlugParams.js +9 -0
  85. package/dist/models/environmentsControllerListParams.d.ts +13 -0
  86. package/dist/models/environmentsControllerListParams.js +9 -0
  87. package/dist/models/environmentsControllerRemoveParams.d.ts +13 -0
  88. package/dist/models/environmentsControllerRemoveParams.js +9 -0
  89. package/dist/models/environmentsControllerUpdateParams.d.ts +13 -0
  90. package/dist/models/environmentsControllerUpdateParams.js +9 -0
  91. package/dist/models/executionEnvironmentKind.d.ts +22 -0
  92. package/dist/models/executionEnvironmentKind.js +21 -0
  93. package/dist/models/executionEnvironmentResponseDto.d.ts +37 -0
  94. package/dist/models/executionEnvironmentResponseDto.js +2 -0
  95. package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.d.ts +10 -0
  96. package/dist/models/executionEnvironmentResponseDtoAllowedCapabilitiesItem.js +9 -0
  97. package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.d.ts +10 -0
  98. package/dist/models/executionEnvironmentResponseDtoApprovalRulesItem.js +9 -0
  99. package/dist/models/executionEnvironmentResponseDtoOrgId.d.ts +14 -0
  100. package/dist/models/executionEnvironmentResponseDtoOrgId.js +9 -0
  101. package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.d.ts +13 -0
  102. package/dist/models/executionEnvironmentResponseDtoRuntimeLimits.js +9 -0
  103. package/dist/models/grantConstraintsDto.d.ts +13 -0
  104. package/dist/models/grantConstraintsDto.js +9 -0
  105. package/dist/models/grantsControllerListParams.d.ts +28 -0
  106. package/dist/models/grantsControllerListParams.js +2 -0
  107. package/dist/models/index.d.ts +89 -0
  108. package/dist/models/index.js +106 -0
  109. package/dist/models/listGrantsResponseDto.d.ts +14 -0
  110. package/dist/models/listGrantsResponseDto.js +2 -0
  111. package/dist/models/listProfilesResponseDto.d.ts +11 -0
  112. package/dist/models/listProfilesResponseDto.js +2 -0
  113. package/dist/models/listRelationshipsResponseDto.d.ts +14 -0
  114. package/dist/models/listRelationshipsResponseDto.js +2 -0
  115. package/dist/models/listRoleAssignmentsResponseDto.d.ts +12 -0
  116. package/dist/models/listRoleAssignmentsResponseDto.js +2 -0
  117. package/dist/models/listRoleGrantsResponseDto.d.ts +12 -0
  118. package/dist/models/listRoleGrantsResponseDto.js +2 -0
  119. package/dist/models/listRolesResponseDto.d.ts +14 -0
  120. package/dist/models/listRolesResponseDto.js +2 -0
  121. package/dist/models/listTeamMembersResponseDto.d.ts +12 -0
  122. package/dist/models/listTeamMembersResponseDto.js +2 -0
  123. package/dist/models/listTeamsResponseDto.d.ts +14 -0
  124. package/dist/models/listTeamsResponseDto.js +2 -0
  125. package/dist/models/openFgaRelationshipDto.d.ts +16 -0
  126. package/dist/models/openFgaRelationshipDto.js +2 -0
  127. package/dist/models/policyActingForDto.d.ts +12 -0
  128. package/dist/models/policyActingForDto.js +2 -0
  129. package/dist/models/policyBiomeDto.d.ts +14 -0
  130. package/dist/models/policyBiomeDto.js +2 -0
  131. package/dist/models/policyCallerDto.d.ts +15 -0
  132. package/dist/models/policyCallerDto.js +2 -0
  133. package/dist/models/policyCapabilityDto.d.ts +12 -0
  134. package/dist/models/policyCapabilityDto.js +9 -0
  135. package/dist/models/policyCheckRequestDto.d.ts +28 -0
  136. package/dist/models/policyCheckRequestDto.js +2 -0
  137. package/dist/models/policyConstraintsDto.d.ts +14 -0
  138. package/dist/models/policyConstraintsDto.js +9 -0
  139. package/dist/models/policyDecisionDto.d.ts +22 -0
  140. package/dist/models/policyDecisionDto.js +2 -0
  141. package/dist/models/policyDecisionKind.d.ts +13 -0
  142. package/dist/models/policyDecisionKind.js +15 -0
  143. package/dist/models/policyEnvironmentDto.d.ts +13 -0
  144. package/dist/models/policyEnvironmentDto.js +9 -0
  145. package/dist/models/policyObligationDto.d.ts +20 -0
  146. package/dist/models/policyObligationDto.js +2 -0
  147. package/dist/models/policyObligationKind.d.ts +18 -0
  148. package/dist/models/policyObligationKind.js +20 -0
  149. package/dist/models/policyResourceDto.d.ts +12 -0
  150. package/dist/models/policyResourceDto.js +2 -0
  151. package/dist/models/policyRouteHintDto.d.ts +15 -0
  152. package/dist/models/policyRouteHintDto.js +2 -0
  153. package/dist/models/policyRouteHintDtoRequiredRunnerLabels.d.ts +10 -0
  154. package/dist/models/policyRouteHintDtoRequiredRunnerLabels.js +9 -0
  155. package/dist/models/policySpaceRefDto.d.ts +18 -0
  156. package/dist/models/policySpaceRefDto.js +2 -0
  157. package/dist/models/policySubjectRefDto.d.ts +15 -0
  158. package/dist/models/policySubjectRefDto.js +2 -0
  159. package/dist/models/profilePolicyTemplateDto.d.ts +20 -0
  160. package/dist/models/profilePolicyTemplateDto.js +2 -0
  161. package/dist/models/profilePolicyTemplateDtoNotes.d.ts +13 -0
  162. package/dist/models/profilePolicyTemplateDtoNotes.js +9 -0
  163. package/dist/models/relationshipsControllerListParams.d.ts +44 -0
  164. package/dist/models/relationshipsControllerListParams.js +2 -0
  165. package/dist/models/roleAssignmentDto.d.ts +19 -0
  166. package/dist/models/roleAssignmentDto.js +2 -0
  167. package/dist/models/roleAssignmentDtoDataArrayEnvelope.d.ts +11 -0
  168. package/dist/models/roleAssignmentDtoDataArrayEnvelope.js +2 -0
  169. package/dist/models/roleAssignmentDtoSubjectRef.d.ts +13 -0
  170. package/dist/models/roleAssignmentDtoSubjectRef.js +9 -0
  171. package/dist/models/roleAssignmentDtoTeamId.d.ts +13 -0
  172. package/dist/models/roleAssignmentDtoTeamId.js +9 -0
  173. package/dist/models/roleDto.d.ts +19 -0
  174. package/dist/models/roleDto.js +9 -0
  175. package/dist/models/roleDtoDataArrayEnvelope.d.ts +11 -0
  176. package/dist/models/roleDtoDataArrayEnvelope.js +2 -0
  177. package/dist/models/roleDtoDescription.d.ts +13 -0
  178. package/dist/models/roleDtoDescription.js +9 -0
  179. package/dist/models/roleGrantDto.d.ts +18 -0
  180. package/dist/models/roleGrantDto.js +2 -0
  181. package/dist/models/roleGrantDtoDataArrayEnvelope.d.ts +11 -0
  182. package/dist/models/roleGrantDtoDataArrayEnvelope.js +2 -0
  183. package/dist/models/rolesControllerListParams.d.ts +14 -0
  184. package/dist/models/rolesControllerListParams.js +9 -0
  185. package/dist/models/runnerKind.d.ts +17 -0
  186. package/dist/models/runnerKind.js +19 -0
  187. package/dist/models/spaceKind.d.ts +17 -0
  188. package/dist/models/spaceKind.js +19 -0
  189. package/dist/models/subjectKind.d.ts +20 -0
  190. package/dist/models/subjectKind.js +22 -0
  191. package/dist/models/subjectRefDto.d.ts +14 -0
  192. package/dist/models/subjectRefDto.js +2 -0
  193. package/dist/models/teamDto.d.ts +19 -0
  194. package/dist/models/teamDto.js +9 -0
  195. package/dist/models/teamDtoDataArrayEnvelope.d.ts +11 -0
  196. package/dist/models/teamDtoDataArrayEnvelope.js +2 -0
  197. package/dist/models/teamDtoDescription.d.ts +13 -0
  198. package/dist/models/teamDtoDescription.js +9 -0
  199. package/dist/models/teamDtoParentTeamId.d.ts +13 -0
  200. package/dist/models/teamDtoParentTeamId.js +9 -0
  201. package/dist/models/teamMembershipDto.d.ts +15 -0
  202. package/dist/models/teamMembershipDto.js +2 -0
  203. package/dist/models/teamMembershipDtoDataArrayEnvelope.d.ts +11 -0
  204. package/dist/models/teamMembershipDtoDataArrayEnvelope.js +2 -0
  205. package/dist/models/teamsControllerListParams.d.ts +17 -0
  206. package/dist/models/teamsControllerListParams.js +9 -0
  207. package/dist/models/updateExecutionEnvironmentDto.d.ts +19 -0
  208. package/dist/models/updateExecutionEnvironmentDto.js +2 -0
  209. package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.d.ts +10 -0
  210. package/dist/models/updateExecutionEnvironmentDtoAllowedCapabilitiesItem.js +9 -0
  211. package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.d.ts +10 -0
  212. package/dist/models/updateExecutionEnvironmentDtoApprovalRulesItem.js +9 -0
  213. package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.d.ts +13 -0
  214. package/dist/models/updateExecutionEnvironmentDtoRuntimeLimits.js +9 -0
  215. package/dist/models/updateGrantDto.d.ts +18 -0
  216. package/dist/models/updateGrantDto.js +2 -0
  217. package/dist/models/updateRoleDto.d.ts +11 -0
  218. package/dist/models/updateRoleDto.js +9 -0
  219. package/dist/models/updateTeamDto.d.ts +16 -0
  220. package/dist/models/updateTeamDto.js +9 -0
  221. package/dist/models/updateTeamDtoParentTeamId.d.ts +14 -0
  222. package/dist/models/updateTeamDtoParentTeamId.js +9 -0
  223. package/dist/models/upsertCredentialDefaultDto.d.ts +15 -0
  224. package/dist/models/upsertCredentialDefaultDto.js +9 -0
  225. 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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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,9 @@
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 });
@@ -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,9 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
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 });
@@ -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
+ };