@xemahq/authorization-internal-api-client 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/problemActionableBy.d.ts +15 -0
- package/dist/models/problemActionableBy.js +14 -0
- package/dist/models/problemDetailsDto.d.ts +9 -0
- package/dist/models/problemDetailsDtoParams.d.ts +11 -0
- package/dist/models/problemDetailsDtoParams.js +7 -0
- package/dist/models/problemFieldIssueDto.d.ts +6 -0
- package/dist/models/problemFieldIssueDto.js +0 -5
- package/dist/models/problemFieldIssueDtoParams.d.ts +11 -0
- package/dist/models/problemFieldIssueDtoParams.js +7 -0
- package/dist/models/problemRetry.d.ts +14 -0
- package/dist/models/problemRetry.js +13 -0
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -132,8 +132,12 @@ export * from './policyRouteHintDtoRequiredRunnerLabels';
|
|
|
132
132
|
export * from './policySpaceRefDto';
|
|
133
133
|
export * from './policySubjectRefDto';
|
|
134
134
|
export * from './previewOutputRouteImpactDto';
|
|
135
|
+
export * from './problemActionableBy';
|
|
135
136
|
export * from './problemDetailsDto';
|
|
137
|
+
export * from './problemDetailsDtoParams';
|
|
136
138
|
export * from './problemFieldIssueDto';
|
|
139
|
+
export * from './problemFieldIssueDtoParams';
|
|
140
|
+
export * from './problemRetry';
|
|
137
141
|
export * from './profilePolicyTemplateDto';
|
|
138
142
|
export * from './profilePolicyTemplateDtoDataArrayEnvelope';
|
|
139
143
|
export * from './profilePolicyTemplateDtoNotes';
|
package/dist/models/index.js
CHANGED
|
@@ -149,8 +149,12 @@ __exportStar(require("./policyRouteHintDtoRequiredRunnerLabels"), exports);
|
|
|
149
149
|
__exportStar(require("./policySpaceRefDto"), exports);
|
|
150
150
|
__exportStar(require("./policySubjectRefDto"), exports);
|
|
151
151
|
__exportStar(require("./previewOutputRouteImpactDto"), exports);
|
|
152
|
+
__exportStar(require("./problemActionableBy"), exports);
|
|
152
153
|
__exportStar(require("./problemDetailsDto"), exports);
|
|
154
|
+
__exportStar(require("./problemDetailsDtoParams"), exports);
|
|
153
155
|
__exportStar(require("./problemFieldIssueDto"), exports);
|
|
156
|
+
__exportStar(require("./problemFieldIssueDtoParams"), exports);
|
|
157
|
+
__exportStar(require("./problemRetry"), exports);
|
|
154
158
|
__exportStar(require("./profilePolicyTemplateDto"), exports);
|
|
155
159
|
__exportStar(require("./profilePolicyTemplateDtoDataArrayEnvelope"), exports);
|
|
156
160
|
__exportStar(require("./profilePolicyTemplateDtoNotes"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
* Who can act on this refusal: `user` (correct the input, sign in), `org-admin` (an administrator of the organisation), `platform` (the operators of this installation), `none` (nobody — it cannot succeed). ABSENT when not known; never guessed.
|
|
8
|
+
*/
|
|
9
|
+
export type ProblemActionableBy = typeof ProblemActionableBy[keyof typeof ProblemActionableBy];
|
|
10
|
+
export declare const ProblemActionableBy: {
|
|
11
|
+
readonly user: "user";
|
|
12
|
+
readonly 'org-admin': "org-admin";
|
|
13
|
+
readonly platform: "platform";
|
|
14
|
+
readonly none: "none";
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProblemActionableBy = void 0;
|
|
9
|
+
exports.ProblemActionableBy = {
|
|
10
|
+
user: 'user',
|
|
11
|
+
'org-admin': 'org-admin',
|
|
12
|
+
platform: 'platform',
|
|
13
|
+
none: 'none',
|
|
14
|
+
};
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* Authorization API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
+
import type { ProblemActionableBy } from './problemActionableBy.js';
|
|
7
|
+
import type { ProblemDetailsDtoParams } from './problemDetailsDtoParams.js';
|
|
6
8
|
import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
|
|
9
|
+
import type { ProblemRetry } from './problemRetry.js';
|
|
7
10
|
/**
|
|
8
11
|
* RFC 9457 problem document. The declared members are the reserved core; extension members are TOP-LEVEL and OPEN, owned by the refusing plane.
|
|
9
12
|
*/
|
|
@@ -24,5 +27,11 @@ export interface ProblemDetailsDto {
|
|
|
24
27
|
traceId?: string;
|
|
25
28
|
/** Field-level issues, when the refusal is about the request body. */
|
|
26
29
|
errors?: ProblemFieldIssueDto[];
|
|
30
|
+
/** Who can act on this refusal: `user` (correct the input, sign in), `org-admin` (an administrator of the organisation), `platform` (the operators of this installation), `none` (nobody — it cannot succeed). ABSENT when not known; never guessed. */
|
|
31
|
+
actionableBy?: ProblemActionableBy;
|
|
32
|
+
/** What a retry can achieve: `transient` (later, unchanged), `after-change` (only after someone changes something), `never` (a defect until a fixed version ships). ABSENT when not known. */
|
|
33
|
+
retry?: ProblemRetry;
|
|
34
|
+
/** Safe i18n interpolation values for the message keyed by `code` — typed and allowlisted per code by its declaration. Never server-authored copy, never internal diagnostics. */
|
|
35
|
+
params?: ProblemDetailsDtoParams;
|
|
27
36
|
[key: string]: unknown;
|
|
28
37
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
* Safe i18n interpolation values for the message keyed by `code` — typed and allowlisted per code by its declaration. Never server-authored copy, never internal diagnostics.
|
|
8
|
+
*/
|
|
9
|
+
export type ProblemDetailsDtoParams = {
|
|
10
|
+
[key: string]: string | number | boolean;
|
|
11
|
+
};
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
* Authorization API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
+
import type { ProblemFieldIssueDtoParams } from './problemFieldIssueDtoParams.js';
|
|
6
7
|
export interface ProblemFieldIssueDto {
|
|
7
8
|
/** RFC 6901 JSON Pointer into the request body. Root is "/". */
|
|
8
9
|
pointer: string;
|
|
10
|
+
/** Prose for logs and developers. A frontend localises from `code` + `params` instead. */
|
|
9
11
|
detail: string;
|
|
12
|
+
/** SCREAMING_SNAKE_CASE code of THIS issue, for a frontend i18n key. Present when the issue was minted by a declared problem. */
|
|
13
|
+
code?: string;
|
|
14
|
+
/** Safe i18n interpolation values for this issue's `code`. */
|
|
15
|
+
params?: ProblemFieldIssueDtoParams;
|
|
10
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
* Safe i18n interpolation values for this issue's `code`.
|
|
8
|
+
*/
|
|
9
|
+
export type ProblemFieldIssueDtoParams = {
|
|
10
|
+
[key: string]: string | number | boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
* What a retry can achieve: `transient` (later, unchanged), `after-change` (only after someone changes something), `never` (a defect until a fixed version ships). ABSENT when not known.
|
|
8
|
+
*/
|
|
9
|
+
export type ProblemRetry = typeof ProblemRetry[keyof typeof ProblemRetry];
|
|
10
|
+
export declare const ProblemRetry: {
|
|
11
|
+
readonly transient: "transient";
|
|
12
|
+
readonly 'after-change': "after-change";
|
|
13
|
+
readonly never: "never";
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Authorization API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProblemRetry = void 0;
|
|
9
|
+
exports.ProblemRetry = {
|
|
10
|
+
transient: 'transient',
|
|
11
|
+
'after-change': 'after-change',
|
|
12
|
+
never: 'never',
|
|
13
|
+
};
|