@nizam-os/dashboard-sdk 6.0.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/errors/TooManyRequestsError.d.ts +6 -0
- package/dist/api/errors/TooManyRequestsError.js +54 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/activeOrganization/client/Client.d.ts +2 -0
- package/dist/api/resources/activeOrganization/client/Client.js +6 -0
- package/dist/api/resources/activity/client/Client.d.ts +1 -0
- package/dist/api/resources/activity/client/Client.js +3 -0
- package/dist/api/resources/assets/client/Client.d.ts +3 -0
- package/dist/api/resources/assets/client/Client.js +9 -0
- package/dist/api/resources/assignments/client/Client.d.ts +3 -0
- package/dist/api/resources/assignments/client/Client.js +9 -0
- package/dist/api/resources/invites/client/Client.d.ts +2 -0
- package/dist/api/resources/invites/client/Client.js +6 -0
- package/dist/api/resources/lookups/client/Client.d.ts +5 -0
- package/dist/api/resources/lookups/client/Client.js +15 -0
- package/dist/api/resources/memberships/client/Client.d.ts +2 -0
- package/dist/api/resources/memberships/client/Client.js +6 -0
- package/dist/api/resources/operators/client/Client.d.ts +2 -0
- package/dist/api/resources/operators/client/Client.js +6 -0
- package/dist/api/resources/organizations/client/Client.d.ts +7 -1
- package/dist/api/resources/organizations/client/Client.js +19 -1
- package/dist/api/resources/realtime/client/Client.d.ts +1 -0
- package/dist/api/resources/realtime/client/Client.js +3 -0
- package/dist/api/resources/users/client/Client.d.ts +3 -0
- package/dist/api/resources/users/client/Client.js +9 -0
- package/dist/api/types/ReconcileResponse.d.ts +9 -0
- package/dist/api/types/ReconcileResponse.js +8 -0
- package/dist/core/fetcher/signals.js +9 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as NizamDashboard from "../index.js";
|
|
4
|
+
export declare class TooManyRequestsError extends errors.NizamDashboardError {
|
|
5
|
+
constructor(body: NizamDashboard.ProblemDetail, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.TooManyRequestsError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class TooManyRequestsError extends errors.NizamDashboardError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "TooManyRequestsError",
|
|
43
|
+
statusCode: 429,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -4,5 +4,6 @@ export * from "./ForbiddenError.js";
|
|
|
4
4
|
export * from "./GoneError.js";
|
|
5
5
|
export * from "./InternalServerError.js";
|
|
6
6
|
export * from "./NotFoundError.js";
|
|
7
|
+
export * from "./TooManyRequestsError.js";
|
|
7
8
|
export * from "./UnauthorizedError.js";
|
|
8
9
|
export * from "./UnprocessableEntityError.js";
|
package/dist/api/errors/index.js
CHANGED
|
@@ -20,5 +20,6 @@ __exportStar(require("./ForbiddenError.js"), exports);
|
|
|
20
20
|
__exportStar(require("./GoneError.js"), exports);
|
|
21
21
|
__exportStar(require("./InternalServerError.js"), exports);
|
|
22
22
|
__exportStar(require("./NotFoundError.js"), exports);
|
|
23
|
+
__exportStar(require("./TooManyRequestsError.js"), exports);
|
|
23
24
|
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
24
25
|
__exportStar(require("./UnprocessableEntityError.js"), exports);
|
|
@@ -26,6 +26,7 @@ export declare class ActiveOrganizationClient {
|
|
|
26
26
|
*
|
|
27
27
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
28
28
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
29
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
29
30
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
@@ -49,6 +50,7 @@ export declare class ActiveOrganizationClient {
|
|
|
49
50
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
50
51
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
51
52
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
53
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
52
54
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
53
55
|
*
|
|
54
56
|
* @example
|
|
@@ -62,6 +62,7 @@ class ActiveOrganizationClient {
|
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
64
64
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
65
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
65
66
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
66
67
|
*
|
|
67
68
|
* @example
|
|
@@ -95,6 +96,8 @@ class ActiveOrganizationClient {
|
|
|
95
96
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
96
97
|
case 403:
|
|
97
98
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
99
|
+
case 429:
|
|
100
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
98
101
|
case 500:
|
|
99
102
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
100
103
|
default:
|
|
@@ -123,6 +126,7 @@ class ActiveOrganizationClient {
|
|
|
123
126
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
124
127
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
125
128
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
129
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
126
130
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
127
131
|
*
|
|
128
132
|
* @example
|
|
@@ -168,6 +172,8 @@ class ActiveOrganizationClient {
|
|
|
168
172
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
169
173
|
case 422:
|
|
170
174
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
175
|
+
case 429:
|
|
176
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
171
177
|
case 500:
|
|
172
178
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
173
179
|
default:
|
|
@@ -22,6 +22,7 @@ export declare class ActivityClient {
|
|
|
22
22
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
23
23
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
24
24
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
25
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
25
26
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
@@ -58,6 +58,7 @@ class ActivityClient {
|
|
|
58
58
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
59
59
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
60
60
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
61
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
61
62
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
@@ -112,6 +113,8 @@ class ActivityClient {
|
|
|
112
113
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
113
114
|
case 403:
|
|
114
115
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 429:
|
|
117
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
115
118
|
case 500:
|
|
116
119
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
117
120
|
default:
|
|
@@ -22,6 +22,7 @@ export declare class AssetsClient {
|
|
|
22
22
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
23
23
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
24
24
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
25
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
25
26
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
@@ -43,6 +44,7 @@ export declare class AssetsClient {
|
|
|
43
44
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
44
45
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
45
46
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
47
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
46
48
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
47
49
|
*
|
|
48
50
|
* @example
|
|
@@ -80,6 +82,7 @@ export declare class AssetsClient {
|
|
|
80
82
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
81
83
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
82
84
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
85
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
83
86
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
84
87
|
*
|
|
85
88
|
* @example
|
|
@@ -58,6 +58,7 @@ class AssetsClient {
|
|
|
58
58
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
59
59
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
60
60
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
61
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
61
62
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
@@ -112,6 +113,8 @@ class AssetsClient {
|
|
|
112
113
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
113
114
|
case 403:
|
|
114
115
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 429:
|
|
117
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
115
118
|
case 500:
|
|
116
119
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
117
120
|
default:
|
|
@@ -134,6 +137,7 @@ class AssetsClient {
|
|
|
134
137
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
135
138
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
136
139
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
140
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
137
141
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
138
142
|
*
|
|
139
143
|
* @example
|
|
@@ -197,6 +201,8 @@ class AssetsClient {
|
|
|
197
201
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
198
202
|
case 422:
|
|
199
203
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 429:
|
|
205
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
200
206
|
case 500:
|
|
201
207
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
202
208
|
default:
|
|
@@ -216,6 +222,7 @@ class AssetsClient {
|
|
|
216
222
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
217
223
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
218
224
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
225
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
219
226
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
220
227
|
*
|
|
221
228
|
* @example
|
|
@@ -254,6 +261,8 @@ class AssetsClient {
|
|
|
254
261
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
255
262
|
case 404:
|
|
256
263
|
throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
|
|
264
|
+
case 429:
|
|
265
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
257
266
|
case 500:
|
|
258
267
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
259
268
|
default:
|
|
@@ -24,6 +24,7 @@ export declare class AssignmentsClient {
|
|
|
24
24
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
25
25
|
* @throws {@link NizamDashboard.ConflictError}
|
|
26
26
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
27
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
27
28
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
28
29
|
*
|
|
29
30
|
* @example
|
|
@@ -49,6 +50,7 @@ export declare class AssignmentsClient {
|
|
|
49
50
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
50
51
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
51
52
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
53
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
52
54
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
53
55
|
*
|
|
54
56
|
* @example
|
|
@@ -69,6 +71,7 @@ export declare class AssignmentsClient {
|
|
|
69
71
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
70
72
|
* @throws {@link NizamDashboard.ConflictError}
|
|
71
73
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
74
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
72
75
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
73
76
|
*
|
|
74
77
|
* @example
|
|
@@ -60,6 +60,7 @@ class AssignmentsClient {
|
|
|
60
60
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
61
61
|
* @throws {@link NizamDashboard.ConflictError}
|
|
62
62
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
63
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
63
64
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
64
65
|
*
|
|
65
66
|
* @example
|
|
@@ -113,6 +114,8 @@ class AssignmentsClient {
|
|
|
113
114
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
114
115
|
case 422:
|
|
115
116
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 429:
|
|
118
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
116
119
|
case 500:
|
|
117
120
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
118
121
|
default:
|
|
@@ -132,6 +135,7 @@ class AssignmentsClient {
|
|
|
132
135
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
133
136
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
134
137
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
138
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
135
139
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
136
140
|
*
|
|
137
141
|
* @example
|
|
@@ -170,6 +174,8 @@ class AssignmentsClient {
|
|
|
170
174
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
171
175
|
case 404:
|
|
172
176
|
throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 429:
|
|
178
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
173
179
|
case 500:
|
|
174
180
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
175
181
|
default:
|
|
@@ -193,6 +199,7 @@ class AssignmentsClient {
|
|
|
193
199
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
194
200
|
* @throws {@link NizamDashboard.ConflictError}
|
|
195
201
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
202
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
196
203
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
197
204
|
*
|
|
198
205
|
* @example
|
|
@@ -245,6 +252,8 @@ class AssignmentsClient {
|
|
|
245
252
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
246
253
|
case 422:
|
|
247
254
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
255
|
+
case 429:
|
|
256
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
248
257
|
case 500:
|
|
249
258
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
250
259
|
default:
|
|
@@ -22,6 +22,7 @@ export declare class InvitesClient {
|
|
|
22
22
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
23
23
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
24
24
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
25
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
25
26
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
@@ -61,6 +62,7 @@ export declare class InvitesClient {
|
|
|
61
62
|
* @throws {@link NizamDashboard.ConflictError}
|
|
62
63
|
* @throws {@link NizamDashboard.GoneError}
|
|
63
64
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
65
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
64
66
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
65
67
|
*
|
|
66
68
|
* @example
|
|
@@ -58,6 +58,7 @@ class InvitesClient {
|
|
|
58
58
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
59
59
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
60
60
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
61
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
61
62
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
@@ -116,6 +117,8 @@ class InvitesClient {
|
|
|
116
117
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
117
118
|
case 422:
|
|
118
119
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 429:
|
|
121
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
119
122
|
case 500:
|
|
120
123
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
121
124
|
default:
|
|
@@ -140,6 +143,7 @@ class InvitesClient {
|
|
|
140
143
|
* @throws {@link NizamDashboard.ConflictError}
|
|
141
144
|
* @throws {@link NizamDashboard.GoneError}
|
|
142
145
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
146
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
143
147
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
144
148
|
*
|
|
145
149
|
* @example
|
|
@@ -186,6 +190,8 @@ class InvitesClient {
|
|
|
186
190
|
throw new NizamDashboard.GoneError(_response.error.body, _response.rawResponse);
|
|
187
191
|
case 422:
|
|
188
192
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
193
|
+
case 429:
|
|
194
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
189
195
|
case 500:
|
|
190
196
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
191
197
|
default:
|
|
@@ -17,6 +17,7 @@ export declare class LookupsClient {
|
|
|
17
17
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
20
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
20
21
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
21
22
|
*
|
|
22
23
|
* @example
|
|
@@ -28,6 +29,7 @@ export declare class LookupsClient {
|
|
|
28
29
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
30
|
*
|
|
30
31
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
32
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
31
33
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
@@ -39,6 +41,7 @@ export declare class LookupsClient {
|
|
|
39
41
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
42
|
*
|
|
41
43
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
44
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
42
45
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
43
46
|
*
|
|
44
47
|
* @example
|
|
@@ -50,6 +53,7 @@ export declare class LookupsClient {
|
|
|
50
53
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
54
|
*
|
|
52
55
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
56
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
53
57
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
54
58
|
*
|
|
55
59
|
* @example
|
|
@@ -61,6 +65,7 @@ export declare class LookupsClient {
|
|
|
61
65
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
66
|
*
|
|
63
67
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
68
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
64
69
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
65
70
|
*
|
|
66
71
|
* @example
|
|
@@ -53,6 +53,7 @@ class LookupsClient {
|
|
|
53
53
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
56
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
56
57
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
57
58
|
*
|
|
58
59
|
* @example
|
|
@@ -87,6 +88,8 @@ class LookupsClient {
|
|
|
87
88
|
switch (_response.error.statusCode) {
|
|
88
89
|
case 401:
|
|
89
90
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
91
|
+
case 429:
|
|
92
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
90
93
|
case 500:
|
|
91
94
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
92
95
|
default:
|
|
@@ -103,6 +106,7 @@ class LookupsClient {
|
|
|
103
106
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
107
|
*
|
|
105
108
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
109
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
106
110
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
107
111
|
*
|
|
108
112
|
* @example
|
|
@@ -134,6 +138,8 @@ class LookupsClient {
|
|
|
134
138
|
switch (_response.error.statusCode) {
|
|
135
139
|
case 401:
|
|
136
140
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 429:
|
|
142
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
137
143
|
case 500:
|
|
138
144
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
139
145
|
default:
|
|
@@ -150,6 +156,7 @@ class LookupsClient {
|
|
|
150
156
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
157
|
*
|
|
152
158
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
159
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
153
160
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
154
161
|
*
|
|
155
162
|
* @example
|
|
@@ -181,6 +188,8 @@ class LookupsClient {
|
|
|
181
188
|
switch (_response.error.statusCode) {
|
|
182
189
|
case 401:
|
|
183
190
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 429:
|
|
192
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
184
193
|
case 500:
|
|
185
194
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
186
195
|
default:
|
|
@@ -197,6 +206,7 @@ class LookupsClient {
|
|
|
197
206
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
207
|
*
|
|
199
208
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
209
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
200
210
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
201
211
|
*
|
|
202
212
|
* @example
|
|
@@ -228,6 +238,8 @@ class LookupsClient {
|
|
|
228
238
|
switch (_response.error.statusCode) {
|
|
229
239
|
case 401:
|
|
230
240
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
241
|
+
case 429:
|
|
242
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
231
243
|
case 500:
|
|
232
244
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
233
245
|
default:
|
|
@@ -244,6 +256,7 @@ class LookupsClient {
|
|
|
244
256
|
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
257
|
*
|
|
246
258
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
259
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
247
260
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
248
261
|
*
|
|
249
262
|
* @example
|
|
@@ -275,6 +288,8 @@ class LookupsClient {
|
|
|
275
288
|
switch (_response.error.statusCode) {
|
|
276
289
|
case 401:
|
|
277
290
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
291
|
+
case 429:
|
|
292
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
278
293
|
case 500:
|
|
279
294
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
280
295
|
default:
|
|
@@ -21,6 +21,7 @@ export declare class MembershipsClient {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
23
23
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
24
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
24
25
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
@@ -40,6 +41,7 @@ export declare class MembershipsClient {
|
|
|
40
41
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
41
42
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
42
43
|
* @throws {@link NizamDashboard.ConflictError}
|
|
44
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
43
45
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
@@ -57,6 +57,7 @@ class MembershipsClient {
|
|
|
57
57
|
*
|
|
58
58
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
59
59
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
60
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
60
61
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
@@ -106,6 +107,8 @@ class MembershipsClient {
|
|
|
106
107
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
107
108
|
case 403:
|
|
108
109
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
110
|
+
case 429:
|
|
111
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
109
112
|
case 500:
|
|
110
113
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
111
114
|
default:
|
|
@@ -127,6 +130,7 @@ class MembershipsClient {
|
|
|
127
130
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
128
131
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
129
132
|
* @throws {@link NizamDashboard.ConflictError}
|
|
133
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
130
134
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
131
135
|
*
|
|
132
136
|
* @example
|
|
@@ -165,6 +169,8 @@ class MembershipsClient {
|
|
|
165
169
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
166
170
|
case 409:
|
|
167
171
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
172
|
+
case 429:
|
|
173
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
168
174
|
case 500:
|
|
169
175
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
170
176
|
default:
|
|
@@ -23,6 +23,7 @@ export declare class OperatorsClient {
|
|
|
23
23
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
24
24
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
25
25
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
26
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
26
27
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
27
28
|
*
|
|
28
29
|
* @example
|
|
@@ -55,6 +56,7 @@ export declare class OperatorsClient {
|
|
|
55
56
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
56
57
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
57
58
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
59
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
58
60
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
@@ -59,6 +59,7 @@ class OperatorsClient {
|
|
|
59
59
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
60
60
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
61
61
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
62
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
62
63
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
@@ -117,6 +118,8 @@ class OperatorsClient {
|
|
|
117
118
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
118
119
|
case 422:
|
|
119
120
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 429:
|
|
122
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
120
123
|
case 500:
|
|
121
124
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
122
125
|
default:
|
|
@@ -136,6 +139,7 @@ class OperatorsClient {
|
|
|
136
139
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
137
140
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
138
141
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
142
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
139
143
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
140
144
|
*
|
|
141
145
|
* @example
|
|
@@ -174,6 +178,8 @@ class OperatorsClient {
|
|
|
174
178
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
175
179
|
case 404:
|
|
176
180
|
throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 429:
|
|
182
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
177
183
|
case 500:
|
|
178
184
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
179
185
|
default:
|
|
@@ -21,6 +21,7 @@ export declare class OrganizationsClient {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
23
23
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
24
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
24
25
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
@@ -34,15 +35,17 @@ export declare class OrganizationsClient {
|
|
|
34
35
|
/**
|
|
35
36
|
* Creates a brand-new tenant with the calling user as the founding admin. The id is assigned by Keycloak so the same value identifies the organization in both systems. Slug is derived from the name when not supplied.
|
|
36
37
|
*
|
|
37
|
-
* Supports the standard `Idempotency-Key` header — submit a UUID v4 per logical attempt (same value on retry).
|
|
38
|
+
* Supports the standard `Idempotency-Key` header — submit a UUID (v4 recommended) per logical attempt (same value on retry); malformed keys are rejected with 400 `idempotency.invalid_key`. Successful responses and 4xx domain rejections replay for matching request bodies; transient 5xx responses are never cached, so retrying with the same key re-executes. Mismatching fingerprints surface as 409 `idempotency.key_conflict`.
|
|
38
39
|
*
|
|
39
40
|
* @param {NizamDashboard.CreateOrganizationRequest} request
|
|
40
41
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
42
|
*
|
|
43
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
42
44
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
43
45
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
44
46
|
* @throws {@link NizamDashboard.ConflictError}
|
|
45
47
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
48
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
46
49
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
47
50
|
*
|
|
48
51
|
* @example
|
|
@@ -72,6 +75,7 @@ export declare class OrganizationsClient {
|
|
|
72
75
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
73
76
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
74
77
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
78
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
75
79
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
76
80
|
*
|
|
77
81
|
* @example
|
|
@@ -92,6 +96,7 @@ export declare class OrganizationsClient {
|
|
|
92
96
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
93
97
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
94
98
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
99
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
95
100
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
96
101
|
*
|
|
97
102
|
* @example
|
|
@@ -114,6 +119,7 @@ export declare class OrganizationsClient {
|
|
|
114
119
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
115
120
|
* @throws {@link NizamDashboard.ConflictError}
|
|
116
121
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
122
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
117
123
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
118
124
|
*
|
|
119
125
|
* @example
|
|
@@ -57,6 +57,7 @@ class OrganizationsClient {
|
|
|
57
57
|
*
|
|
58
58
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
59
59
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
60
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
60
61
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
@@ -107,6 +108,8 @@ class OrganizationsClient {
|
|
|
107
108
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
108
109
|
case 403:
|
|
109
110
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 429:
|
|
112
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
110
113
|
case 500:
|
|
111
114
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
112
115
|
default:
|
|
@@ -122,15 +125,17 @@ class OrganizationsClient {
|
|
|
122
125
|
/**
|
|
123
126
|
* Creates a brand-new tenant with the calling user as the founding admin. The id is assigned by Keycloak so the same value identifies the organization in both systems. Slug is derived from the name when not supplied.
|
|
124
127
|
*
|
|
125
|
-
* Supports the standard `Idempotency-Key` header — submit a UUID v4 per logical attempt (same value on retry).
|
|
128
|
+
* Supports the standard `Idempotency-Key` header — submit a UUID (v4 recommended) per logical attempt (same value on retry); malformed keys are rejected with 400 `idempotency.invalid_key`. Successful responses and 4xx domain rejections replay for matching request bodies; transient 5xx responses are never cached, so retrying with the same key re-executes. Mismatching fingerprints surface as 409 `idempotency.key_conflict`.
|
|
126
129
|
*
|
|
127
130
|
* @param {NizamDashboard.CreateOrganizationRequest} request
|
|
128
131
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
132
|
*
|
|
133
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
130
134
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
131
135
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
132
136
|
* @throws {@link NizamDashboard.ConflictError}
|
|
133
137
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
138
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
134
139
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
135
140
|
*
|
|
136
141
|
* @example
|
|
@@ -176,6 +181,8 @@ class OrganizationsClient {
|
|
|
176
181
|
}
|
|
177
182
|
if (_response.error.reason === "status-code") {
|
|
178
183
|
switch (_response.error.statusCode) {
|
|
184
|
+
case 400:
|
|
185
|
+
throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
|
|
179
186
|
case 401:
|
|
180
187
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
181
188
|
case 403:
|
|
@@ -184,6 +191,8 @@ class OrganizationsClient {
|
|
|
184
191
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
185
192
|
case 422:
|
|
186
193
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 429:
|
|
195
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
187
196
|
case 500:
|
|
188
197
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
189
198
|
default:
|
|
@@ -205,6 +214,7 @@ class OrganizationsClient {
|
|
|
205
214
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
206
215
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
207
216
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
217
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
208
218
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
209
219
|
*
|
|
210
220
|
* @example
|
|
@@ -243,6 +253,8 @@ class OrganizationsClient {
|
|
|
243
253
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
244
254
|
case 404:
|
|
245
255
|
throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
|
|
256
|
+
case 429:
|
|
257
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
246
258
|
case 500:
|
|
247
259
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
248
260
|
default:
|
|
@@ -266,6 +278,7 @@ class OrganizationsClient {
|
|
|
266
278
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
267
279
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
268
280
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
281
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
269
282
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
270
283
|
*
|
|
271
284
|
* @example
|
|
@@ -304,6 +317,8 @@ class OrganizationsClient {
|
|
|
304
317
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
305
318
|
case 404:
|
|
306
319
|
throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
|
|
320
|
+
case 429:
|
|
321
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
307
322
|
case 500:
|
|
308
323
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
309
324
|
default:
|
|
@@ -329,6 +344,7 @@ class OrganizationsClient {
|
|
|
329
344
|
* @throws {@link NizamDashboard.NotFoundError}
|
|
330
345
|
* @throws {@link NizamDashboard.ConflictError}
|
|
331
346
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
347
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
332
348
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
333
349
|
*
|
|
334
350
|
* @example
|
|
@@ -383,6 +399,8 @@ class OrganizationsClient {
|
|
|
383
399
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
384
400
|
case 422:
|
|
385
401
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
402
|
+
case 429:
|
|
403
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
386
404
|
case 500:
|
|
387
405
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
388
406
|
default:
|
|
@@ -20,6 +20,7 @@ export declare class RealtimeClient {
|
|
|
20
20
|
*
|
|
21
21
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
22
22
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
23
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
23
24
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
@@ -56,6 +56,7 @@ class RealtimeClient {
|
|
|
56
56
|
*
|
|
57
57
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
58
58
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
59
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
59
60
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
60
61
|
*
|
|
61
62
|
* @example
|
|
@@ -89,6 +90,8 @@ class RealtimeClient {
|
|
|
89
90
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
90
91
|
case 403:
|
|
91
92
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
93
|
+
case 429:
|
|
94
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
92
95
|
case 500:
|
|
93
96
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
94
97
|
default:
|
|
@@ -30,6 +30,7 @@ export declare class UsersClient {
|
|
|
30
30
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
31
31
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
32
32
|
* @throws {@link NizamDashboard.ConflictError}
|
|
33
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
33
34
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
@@ -46,6 +47,7 @@ export declare class UsersClient {
|
|
|
46
47
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
47
48
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
48
49
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
50
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
49
51
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
@@ -66,6 +68,7 @@ export declare class UsersClient {
|
|
|
66
68
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
67
69
|
* @throws {@link NizamDashboard.ConflictError}
|
|
68
70
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
71
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
69
72
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
@@ -66,6 +66,7 @@ class UsersClient {
|
|
|
66
66
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
67
67
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
68
68
|
* @throws {@link NizamDashboard.ConflictError}
|
|
69
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
69
70
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
70
71
|
*
|
|
71
72
|
* @example
|
|
@@ -101,6 +102,8 @@ class UsersClient {
|
|
|
101
102
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
102
103
|
case 409:
|
|
103
104
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 429:
|
|
106
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
104
107
|
case 500:
|
|
105
108
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
106
109
|
default:
|
|
@@ -122,6 +125,7 @@ class UsersClient {
|
|
|
122
125
|
* @throws {@link NizamDashboard.BadRequestError}
|
|
123
126
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
124
127
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
128
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
125
129
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
126
130
|
*
|
|
127
131
|
* @example
|
|
@@ -174,6 +178,8 @@ class UsersClient {
|
|
|
174
178
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
175
179
|
case 403:
|
|
176
180
|
throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 429:
|
|
182
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
177
183
|
case 500:
|
|
178
184
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
179
185
|
default:
|
|
@@ -196,6 +202,7 @@ class UsersClient {
|
|
|
196
202
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
197
203
|
* @throws {@link NizamDashboard.ConflictError}
|
|
198
204
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
205
|
+
* @throws {@link NizamDashboard.TooManyRequestsError}
|
|
199
206
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
200
207
|
*
|
|
201
208
|
* @example
|
|
@@ -244,6 +251,8 @@ class UsersClient {
|
|
|
244
251
|
throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
|
|
245
252
|
case 422:
|
|
246
253
|
throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
254
|
+
case 429:
|
|
255
|
+
throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
247
256
|
case 500:
|
|
248
257
|
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
249
258
|
default:
|
|
@@ -9,4 +9,13 @@ export interface ReconcileResponse {
|
|
|
9
9
|
kc_has_nizam_missing?: string[] | undefined;
|
|
10
10
|
/** Per-org membership-set divergences (KC vs Nizam). */
|
|
11
11
|
membership_divergent?: NizamDashboard.MembershipDriftResponse[] | undefined;
|
|
12
|
+
/** Object type discriminator (Stripe pattern). */
|
|
13
|
+
object?: ReconcileResponse.Object_ | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace ReconcileResponse {
|
|
16
|
+
/** Object type discriminator (Stripe pattern). */
|
|
17
|
+
const Object_: {
|
|
18
|
+
readonly KeycloakReconciliation: "keycloak_reconciliation";
|
|
19
|
+
};
|
|
20
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
12
21
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ReconcileResponse = void 0;
|
|
5
|
+
var ReconcileResponse;
|
|
6
|
+
(function (ReconcileResponse) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
ReconcileResponse.Object_ = {
|
|
9
|
+
KeycloakReconciliation: "keycloak_reconciliation",
|
|
10
|
+
};
|
|
11
|
+
})(ReconcileResponse || (exports.ReconcileResponse = ReconcileResponse = {}));
|
|
@@ -14,11 +14,19 @@ function anySignal(...args) {
|
|
|
14
14
|
for (const signal of signals) {
|
|
15
15
|
if (signal.aborted) {
|
|
16
16
|
controller.abort(signal?.reason);
|
|
17
|
-
|
|
17
|
+
return controller.signal;
|
|
18
18
|
}
|
|
19
19
|
signal.addEventListener("abort", () => controller.abort(signal?.reason), {
|
|
20
20
|
signal: controller.signal,
|
|
21
21
|
});
|
|
22
|
+
// Re-check after adding listener: the signal may have aborted
|
|
23
|
+
// between the initial `signal.aborted` check and the `addEventListener`
|
|
24
|
+
// call above. If it did, the abort event was already dispatched and
|
|
25
|
+
// the listener will never fire — we must manually abort.
|
|
26
|
+
if (signal.aborted) {
|
|
27
|
+
controller.abort(signal?.reason);
|
|
28
|
+
return controller.signal;
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
return controller.signal;
|
|
24
32
|
}
|