@xemahq/authorization-internal-api-client 0.4.20 → 0.4.27

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 (110) hide show
  1. package/dist/custom-fetch.js +56 -4
  2. package/dist/endpoints/agents/agents.d.ts +7 -1
  3. package/dist/endpoints/agents/agents.js +18 -1
  4. package/dist/endpoints/capability-authority-requests/capability-authority-requests.d.ts +24 -0
  5. package/dist/endpoints/capability-authority-requests/capability-authority-requests.js +89 -0
  6. package/dist/endpoints/roles/roles.d.ts +1 -6
  7. package/dist/endpoints/roles/roles.js +1 -17
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +1 -0
  10. package/dist/models/addRoleGrantDto.d.ts +8 -2
  11. package/dist/models/addTeamMemberDto.d.ts +1 -0
  12. package/dist/models/agentReachTier.d.ts +1 -1
  13. package/dist/models/assignRoleDto.d.ts +9 -2
  14. package/dist/models/authorizationCheckRequestDto.d.ts +24 -6
  15. package/dist/models/authorizationReasonDto.d.ts +1 -0
  16. package/dist/models/authorizationSuggestionDto.d.ts +11 -2
  17. package/dist/models/capabilityAuthorityRequestDto.d.ts +29 -0
  18. package/dist/models/capabilityAuthorityRequestDtoDataArrayEnvelope.d.ts +9 -0
  19. package/dist/models/capabilityAuthorityRequestDtoDataEnvelope.d.ts +9 -0
  20. package/dist/models/capabilityAuthorityRequestDtoDisposition.d.ts +14 -0
  21. package/dist/models/capabilityAuthorityRequestDtoDisposition.js +13 -0
  22. package/dist/models/capabilityAuthorityRequestDtoOutcome.d.ts +16 -0
  23. package/dist/models/capabilityAuthorityRequestDtoOutcome.js +15 -0
  24. package/dist/models/capabilityAuthorityRequestDtoRefusal.d.ts +14 -0
  25. package/dist/models/capabilityAuthorityRequestDtoRefusal.js +13 -0
  26. package/dist/models/{errorDetailsDtoDetails.d.ts → capabilityAuthorityRequestsControllerGetByIdParams.d.ts} +3 -6
  27. package/dist/models/capabilityAuthorityRequestsControllerListForSubjectParams.d.ts +10 -0
  28. package/dist/models/createExecutionEnvironmentDto.d.ts +9 -2
  29. package/dist/models/createGrantDto.d.ts +17 -4
  30. package/dist/models/createRoleDto.d.ts +3 -0
  31. package/dist/models/createTeamDto.d.ts +10 -2
  32. package/dist/models/environmentCeilingSource.d.ts +1 -1
  33. package/dist/models/environmentsControllerFindBySlugParams.d.ts +1 -0
  34. package/dist/models/environmentsControllerListParams.d.ts +1 -0
  35. package/dist/models/environmentsControllerRemoveParams.d.ts +1 -0
  36. package/dist/models/environmentsControllerUpdateParams.d.ts +1 -0
  37. package/dist/models/exactResourceAuthorityDto.d.ts +8 -2
  38. package/dist/models/exactResourceBindingDto.d.ts +8 -2
  39. package/dist/models/executionEnvironmentResponseDto.d.ts +1 -1
  40. package/dist/models/grantConstraintsDto.d.ts +6 -1
  41. package/dist/models/grantsControllerListParams.d.ts +10 -0
  42. package/dist/models/index.d.ts +15 -8
  43. package/dist/models/index.js +15 -8
  44. package/dist/models/listRegisteredResourcesDto.d.ts +4 -1
  45. package/dist/models/listVisibleResourcesDto.d.ts +8 -2
  46. package/dist/models/openCapabilityAuthorityRequestDto.d.ts +35 -0
  47. package/dist/models/openCapabilityAuthorityRequestDtoSubjectKind.d.ts +21 -0
  48. package/dist/models/openCapabilityAuthorityRequestDtoSubjectKind.js +20 -0
  49. package/dist/models/outputRouteAuthorityDto.d.ts +10 -2
  50. package/dist/models/outputRouteRevisionDto.d.ts +10 -2
  51. package/dist/models/policyActingAgentDto.d.ts +14 -0
  52. package/dist/models/policyActingAgentDtoKind.d.ts +9 -0
  53. package/dist/models/{orgRole.js → policyActingAgentDtoKind.js} +3 -5
  54. package/dist/models/policyActingForDto.d.ts +8 -0
  55. package/dist/models/policyBiomeDto.d.ts +2 -0
  56. package/dist/models/policyCallerDto.d.ts +4 -0
  57. package/dist/models/policyCapabilityDto.d.ts +5 -1
  58. package/dist/models/policyCheckRequestDto.d.ts +53 -3
  59. package/dist/models/policyDecisionDto.d.ts +8 -2
  60. package/dist/models/policyEnvironmentDto.d.ts +4 -1
  61. package/dist/models/policyObligationDto.d.ts +9 -2
  62. package/dist/models/policyResourceDto.d.ts +4 -1
  63. package/dist/models/policyRouteHintDto.d.ts +1 -0
  64. package/dist/models/policySpaceRefDto.d.ts +7 -0
  65. package/dist/models/policySubjectRefDto.d.ts +1 -0
  66. package/dist/models/previewOutputRouteImpactDto.d.ts +1 -0
  67. package/dist/models/problemDetailsDto.d.ts +28 -0
  68. package/dist/models/problemDetailsDto.js +2 -0
  69. package/dist/models/problemFieldIssueDto.d.ts +10 -0
  70. package/dist/models/problemFieldIssueDto.js +7 -0
  71. package/dist/models/provisionAgentRequestDto.d.ts +12 -3
  72. package/dist/models/provisionedCapabilityDto.d.ts +4 -1
  73. package/dist/models/recordAgentReachTierRequestDto.d.ts +21 -0
  74. package/dist/models/recordAgentReachTierRequestDto.js +2 -0
  75. package/dist/models/registerResourceOwnershipDto.d.ts +16 -4
  76. package/dist/models/registerResourceRevisionDto.d.ts +16 -4
  77. package/dist/models/registeredResourceRevisionDto.d.ts +8 -2
  78. package/dist/models/relationshipsControllerListParams.d.ts +4 -0
  79. package/dist/models/replaceResourceOwnershipDto.d.ts +8 -2
  80. package/dist/models/requestOutputRouteRetirementDto.d.ts +4 -1
  81. package/dist/models/requestOutputRouteRevisionReleaseDto.d.ts +14 -3
  82. package/dist/models/requestOutputRouteRollbackDto.d.ts +5 -1
  83. package/dist/models/resolveExactOutputRouteDto.d.ts +1 -0
  84. package/dist/models/resolveOutputRouteChannelDto.d.ts +1 -0
  85. package/dist/models/resourceShareRefDto.d.ts +8 -2
  86. package/dist/models/resourceSubjectRefDto.d.ts +4 -1
  87. package/dist/models/rolesControllerListParams.d.ts +3 -0
  88. package/dist/models/rollbackExecutionEnvironmentDto.d.ts +5 -2
  89. package/dist/models/subjectRefDto.d.ts +4 -1
  90. package/dist/models/teamsControllerListParams.d.ts +2 -0
  91. package/dist/models/updateExecutionEnvironmentDto.d.ts +1 -0
  92. package/dist/models/updateGrantDto.d.ts +5 -1
  93. package/dist/models/updateRoleDto.d.ts +1 -0
  94. package/dist/models/updateTeamDto.d.ts +1 -0
  95. package/dist/models/upsertCredentialDefaultDto.d.ts +16 -4
  96. package/package.json +26 -2
  97. package/dist/models/errorDetailsDto.d.ts +0 -10
  98. package/dist/models/errorPayloadDto.d.ts +0 -11
  99. package/dist/models/errorResponseDto.d.ts +0 -9
  100. package/dist/models/orgRole.d.ts +0 -14
  101. package/dist/models/orgRoleSyncDto.d.ts +0 -16
  102. package/dist/models/orgRoleSyncResultDto.d.ts +0 -9
  103. package/dist/models/orgRoleSyncResultDtoDataEnvelope.d.ts +0 -9
  104. /package/dist/models/{errorDetailsDto.js → capabilityAuthorityRequestDto.js} +0 -0
  105. /package/dist/models/{errorPayloadDto.js → capabilityAuthorityRequestDtoDataArrayEnvelope.js} +0 -0
  106. /package/dist/models/{errorResponseDto.js → capabilityAuthorityRequestDtoDataEnvelope.js} +0 -0
  107. /package/dist/models/{errorDetailsDtoDetails.js → capabilityAuthorityRequestsControllerGetByIdParams.js} +0 -0
  108. /package/dist/models/{orgRoleSyncResultDto.js → capabilityAuthorityRequestsControllerListForSubjectParams.js} +0 -0
  109. /package/dist/models/{orgRoleSyncDto.js → openCapabilityAuthorityRequestDto.js} +0 -0
  110. /package/dist/models/{orgRoleSyncResultDtoDataEnvelope.js → policyActingAgentDto.js} +0 -0
@@ -6,10 +6,14 @@
6
6
  import type { BiomePermissionProfile } from './biomePermissionProfile.js';
7
7
  import type { GrantConstraintsDto } from './grantConstraintsDto.js';
8
8
  export interface UpdateGrantDto {
9
+ /** @minLength 1 */
9
10
  environment?: string;
10
11
  constraints?: GrantConstraintsDto;
11
12
  requiresApproval?: boolean;
12
13
  profile?: BiomePermissionProfile;
13
- /** Opaque credential-binding pointer. EXPLICIT tier of the credential ladder. Updating it is NOT tuple-affecting — no OpenFGA reconcile. */
14
+ /**
15
+ * Opaque credential-binding pointer. EXPLICIT tier of the credential ladder. Updating it is NOT tuple-affecting — no OpenFGA reconcile.
16
+ * @minLength 1
17
+ */
14
18
  credentialBindingId?: string;
15
19
  }
@@ -4,6 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  export interface UpdateRoleDto {
7
+ /** @minLength 1 */
7
8
  displayName?: string;
8
9
  description?: string;
9
10
  }
@@ -4,6 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  export interface UpdateTeamDto {
7
+ /** @minLength 1 */
7
8
  displayName?: string;
8
9
  description?: string;
9
10
  /**
@@ -4,12 +4,24 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  export interface UpsertCredentialDefaultDto {
7
- /** Organization identifier the default is scoped to. */
7
+ /**
8
+ * Organization identifier the default is scoped to.
9
+ * @minLength 1
10
+ */
8
11
  orgId: string;
9
- /** Project identifier. Omit (or null) for the ORG-wide default; set for a per-project default. */
12
+ /**
13
+ * Project identifier. Omit (or null) for the ORG-wide default; set for a per-project default.
14
+ * @minLength 1
15
+ */
10
16
  projectId?: string;
11
- /** The EXTERNAL PROVIDER this default is for — `github`, `slack`, an MCP server's provider slug. A default is per (scope, provider): without it an organisation would have one default binding for every provider at once. Must be a value a capability ref can derive (lowercase kebab), because the ladder looks it up by exactly that derivation. */
17
+ /**
18
+ * The EXTERNAL PROVIDER this default is for — `github`, `slack`, an MCP server's provider slug. A default is per (scope, provider): without it an organisation would have one default binding for every provider at once. Must be a value a capability ref can derive (lowercase kebab), because the ladder looks it up by exactly that derivation.
19
+ * @minLength 1
20
+ */
12
21
  provider: string;
13
- /** Opaque credential-binding pointer the gateway resolves the external credential from. Not a secret. */
22
+ /**
23
+ * Opaque credential-binding pointer the gateway resolves the external credential from. Not a secret.
24
+ * @minLength 1
25
+ */
14
26
  credentialBindingId: string;
15
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/authorization-internal-api-client",
3
- "version": "0.4.20",
3
+ "version": "0.4.27",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "authorization-api",
20
20
  "biome": "authorization",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.15.2",
22
+ "generator": "@xemahq/api-client-generator@0.21.0",
23
23
  "source": "openapi.internal.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",
@@ -32,6 +32,30 @@
32
32
  "directory": "packages/clients/authorization-internal-api"
33
33
  },
34
34
  "description": "Generated internal API client for the Xema authorization-api service.",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./models": {
41
+ "types": "./dist/models/index.d.ts",
42
+ "default": "./dist/models/index.js"
43
+ },
44
+ "./models/*": {
45
+ "types": "./dist/models/*.d.ts",
46
+ "default": "./dist/models/*.js"
47
+ },
48
+ "./endpoints/*": {
49
+ "types": "./dist/endpoints/*.d.ts",
50
+ "default": "./dist/endpoints/*.js"
51
+ },
52
+ "./custom-fetch": {
53
+ "types": "./dist/custom-fetch.d.ts",
54
+ "default": "./dist/custom-fetch.js"
55
+ },
56
+ "./package.json": "./package.json"
57
+ },
58
+ "sideEffects": false,
35
59
  "scripts": {
36
60
  "build": "tsc -p tsconfig.json"
37
61
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
7
- export interface ErrorDetailsDto {
8
- /** @nullable */
9
- details: ErrorDetailsDtoDetails;
10
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { ErrorDetailsDto } from './errorDetailsDto.js';
7
- export interface ErrorPayloadDto {
8
- code: string;
9
- message: string;
10
- details: ErrorDetailsDto | null;
11
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { ErrorPayloadDto } from './errorPayloadDto.js';
7
- export interface ErrorResponseDto {
8
- error: ErrorPayloadDto;
9
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- /**
7
- * The org role the subject holds (owner ⊇ admin ⊇ member).
8
- */
9
- export type OrgRole = typeof OrgRole[keyof typeof OrgRole];
10
- export declare const OrgRole: {
11
- readonly owner: "owner";
12
- readonly admin: "admin";
13
- readonly member: "member";
14
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { OrgRole } from './orgRole.js';
7
- import type { SubjectKind } from './subjectKind.js';
8
- export interface OrgRoleSyncDto {
9
- /** Organization the subject is a member of. The role is scoped to it. */
10
- orgId: string;
11
- subjectKind: SubjectKind;
12
- /** Bare per-kind subject identifier (NOT a `kind:ref` composite). */
13
- subjectRef: string;
14
- /** The org role the subject holds (owner ⊇ admin ⊇ member). */
15
- orgRole: OrgRole;
16
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- export interface OrgRoleSyncResultDto {
7
- /** Id of the per-org role instance the subject is bound to. */
8
- roleId: string;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Authorization API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { OrgRoleSyncResultDto } from './orgRoleSyncResultDto.js';
7
- export interface OrgRoleSyncResultDtoDataEnvelope {
8
- data: OrgRoleSyncResultDto;
9
- }