@nizam-os/dashboard-sdk 6.1.0 → 6.3.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 (32) hide show
  1. package/dist/api/errors/TooManyRequestsError.d.ts +6 -0
  2. package/dist/api/errors/TooManyRequestsError.js +54 -0
  3. package/dist/api/errors/index.d.ts +1 -0
  4. package/dist/api/errors/index.js +1 -0
  5. package/dist/api/resources/activeOrganization/client/Client.d.ts +2 -0
  6. package/dist/api/resources/activeOrganization/client/Client.js +6 -0
  7. package/dist/api/resources/activity/client/Client.d.ts +1 -0
  8. package/dist/api/resources/activity/client/Client.js +3 -0
  9. package/dist/api/resources/activity/client/requests/ListActivityRequest.d.ts +1 -1
  10. package/dist/api/resources/assets/client/Client.d.ts +4 -1
  11. package/dist/api/resources/assets/client/Client.js +14 -2
  12. package/dist/api/resources/assets/client/requests/ListAssetsRequest.d.ts +6 -0
  13. package/dist/api/resources/assignments/client/Client.d.ts +3 -0
  14. package/dist/api/resources/assignments/client/Client.js +9 -0
  15. package/dist/api/resources/invites/client/Client.d.ts +2 -0
  16. package/dist/api/resources/invites/client/Client.js +6 -0
  17. package/dist/api/resources/lookups/client/Client.d.ts +5 -0
  18. package/dist/api/resources/lookups/client/Client.js +15 -0
  19. package/dist/api/resources/memberships/client/Client.d.ts +2 -0
  20. package/dist/api/resources/memberships/client/Client.js +6 -0
  21. package/dist/api/resources/operators/client/Client.d.ts +2 -0
  22. package/dist/api/resources/operators/client/Client.js +6 -0
  23. package/dist/api/resources/organizations/client/Client.d.ts +5 -0
  24. package/dist/api/resources/organizations/client/Client.js +15 -0
  25. package/dist/api/resources/organizations/client/requests/ListOrganizationsRequest.d.ts +1 -1
  26. package/dist/api/resources/realtime/client/Client.d.ts +1 -0
  27. package/dist/api/resources/realtime/client/Client.js +3 -0
  28. package/dist/api/resources/users/client/Client.d.ts +3 -0
  29. package/dist/api/resources/users/client/Client.js +9 -0
  30. package/dist/api/resources/users/client/requests/ListUsersRequest.d.ts +1 -1
  31. package/dist/api/types/AssetListItem.d.ts +2 -0
  32. 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";
@@ -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:
@@ -9,7 +9,7 @@
9
9
  export interface ListActivityRequest {
10
10
  /** Return only activity at or after this instant (ISO-8601). Pass the last-seen timestamp to reconcile after a realtime disconnect. */
11
11
  since?: string;
12
- /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */
12
+ /** Sort order. Allowed fields: `created_at`. Prefix a field with `-` for descending (e.g. `-created_at`); unknown fields are rejected with `400 validation_failed`. */
13
13
  sort?: string | string[];
14
14
  /** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
15
15
  limit?: number;
@@ -14,7 +14,7 @@ export declare class AssetsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
15
15
  constructor(options: AssetsClient.Options);
16
16
  /**
17
- * Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). Results are ordered by relevance and support forward-only cursors (`starting_after`). `highlight=true` adds a `<mark>`-wrapped match snippet.
17
+ * Without `q`: the org's assets ordered by `created_at` descending (or an explicit `sort`). With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). `q` results are ordered by relevance unless `sort` is given, in which case the search narrows the rows and `sort` orders them. Allowed sort fields: `created_at`, `name`, `plate_number` — a single field, `-` prefix for descending. `status` / `kind` accept comma-separated values and narrow every mode. Pagination is bidirectional (`starting_after` / `ending_before`); cursors are bound to the sort that minted them — switching sorts restarts from the first page. `highlight=true` adds a `<mark>`-wrapped match snippet (relevance mode only).
18
18
  *
19
19
  * @param {NizamDashboard.ListAssetsRequest} request
20
20
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -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
@@ -50,7 +50,7 @@ class AssetsClient {
50
50
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
51
51
  }
52
52
  /**
53
- * Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). Results are ordered by relevance and support forward-only cursors (`starting_after`). `highlight=true` adds a `<mark>`-wrapped match snippet.
53
+ * Without `q`: the org's assets ordered by `created_at` descending (or an explicit `sort`). With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). `q` results are ordered by relevance unless `sort` is given, in which case the search narrows the rows and `sort` orders them. Allowed sort fields: `created_at`, `name`, `plate_number` — a single field, `-` prefix for descending. `status` / `kind` accept comma-separated values and narrow every mode. Pagination is bidirectional (`starting_after` / `ending_before`); cursors are bound to the sort that minted them — switching sorts restarts from the first page. `highlight=true` adds a `<mark>`-wrapped match snippet (relevance mode only).
54
54
  *
55
55
  * @param {NizamDashboard.ListAssetsRequest} request
56
56
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -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
@@ -71,10 +72,13 @@ class AssetsClient {
71
72
  return core.HttpResponsePromise.fromPromise(this.__listAssets(request, requestOptions));
72
73
  }
73
74
  async __listAssets(request = {}, requestOptions) {
74
- const { q, highlight, limit, starting_after: startingAfter, ending_before: endingBefore } = request;
75
+ const { q, highlight, status, kind, sort, limit, starting_after: startingAfter, ending_before: endingBefore, } = request;
75
76
  const _queryParams = {
76
77
  q,
77
78
  highlight,
79
+ status,
80
+ kind,
81
+ sort,
78
82
  limit,
79
83
  starting_after: startingAfter,
80
84
  ending_before: endingBefore,
@@ -112,6 +116,8 @@ class AssetsClient {
112
116
  throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
113
117
  case 403:
114
118
  throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
119
+ case 429:
120
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
115
121
  case 500:
116
122
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
117
123
  default:
@@ -134,6 +140,7 @@ class AssetsClient {
134
140
  * @throws {@link NizamDashboard.UnauthorizedError}
135
141
  * @throws {@link NizamDashboard.ForbiddenError}
136
142
  * @throws {@link NizamDashboard.UnprocessableEntityError}
143
+ * @throws {@link NizamDashboard.TooManyRequestsError}
137
144
  * @throws {@link NizamDashboard.InternalServerError}
138
145
  *
139
146
  * @example
@@ -197,6 +204,8 @@ class AssetsClient {
197
204
  throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
198
205
  case 422:
199
206
  throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
207
+ case 429:
208
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
200
209
  case 500:
201
210
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
202
211
  default:
@@ -216,6 +225,7 @@ class AssetsClient {
216
225
  * @throws {@link NizamDashboard.UnauthorizedError}
217
226
  * @throws {@link NizamDashboard.ForbiddenError}
218
227
  * @throws {@link NizamDashboard.NotFoundError}
228
+ * @throws {@link NizamDashboard.TooManyRequestsError}
219
229
  * @throws {@link NizamDashboard.InternalServerError}
220
230
  *
221
231
  * @example
@@ -254,6 +264,8 @@ class AssetsClient {
254
264
  throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
255
265
  case 404:
256
266
  throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
267
+ case 429:
268
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
257
269
  case 500:
258
270
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
259
271
  default:
@@ -11,6 +11,12 @@ export interface ListAssetsRequest {
11
11
  q?: string;
12
12
  /** Include a highlighted match snippet per hit (search mode only). */
13
13
  highlight?: boolean;
14
+ /** Filter by lifecycle status. Comma-separated; values: `active`, `maintenance`, `out_of_service`, `retired`, `sold`, `inactive`, `lost`. */
15
+ status?: string | string[];
16
+ /** Filter by top-level kind. Comma-separated; values: `ground_vehicle`, `aerial_vehicle`, `marine_vehicle`, `robot`, `agv`, `trailer`, `container`, `pallet`, `equipment`. */
17
+ kind?: string | string[];
18
+ /** Sort order. Allowed fields: `created_at`, `name`, `plate_number`. Prefix a field with `-` for descending (e.g. `-created_at`); unknown fields are rejected with `400 validation_failed`. */
19
+ sort?: string | string[];
14
20
  /** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
15
21
  limit?: number;
16
22
  /** Opaque cursor — return the page starting strictly after this entity in the sort order. Mutually exclusive with `ending_before`. */
@@ -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
@@ -44,6 +45,7 @@ export declare class OrganizationsClient {
44
45
  * @throws {@link NizamDashboard.ForbiddenError}
45
46
  * @throws {@link NizamDashboard.ConflictError}
46
47
  * @throws {@link NizamDashboard.UnprocessableEntityError}
48
+ * @throws {@link NizamDashboard.TooManyRequestsError}
47
49
  * @throws {@link NizamDashboard.InternalServerError}
48
50
  *
49
51
  * @example
@@ -73,6 +75,7 @@ export declare class OrganizationsClient {
73
75
  * @throws {@link NizamDashboard.UnauthorizedError}
74
76
  * @throws {@link NizamDashboard.ForbiddenError}
75
77
  * @throws {@link NizamDashboard.NotFoundError}
78
+ * @throws {@link NizamDashboard.TooManyRequestsError}
76
79
  * @throws {@link NizamDashboard.InternalServerError}
77
80
  *
78
81
  * @example
@@ -93,6 +96,7 @@ export declare class OrganizationsClient {
93
96
  * @throws {@link NizamDashboard.UnauthorizedError}
94
97
  * @throws {@link NizamDashboard.ForbiddenError}
95
98
  * @throws {@link NizamDashboard.NotFoundError}
99
+ * @throws {@link NizamDashboard.TooManyRequestsError}
96
100
  * @throws {@link NizamDashboard.InternalServerError}
97
101
  *
98
102
  * @example
@@ -115,6 +119,7 @@ export declare class OrganizationsClient {
115
119
  * @throws {@link NizamDashboard.NotFoundError}
116
120
  * @throws {@link NizamDashboard.ConflictError}
117
121
  * @throws {@link NizamDashboard.UnprocessableEntityError}
122
+ * @throws {@link NizamDashboard.TooManyRequestsError}
118
123
  * @throws {@link NizamDashboard.InternalServerError}
119
124
  *
120
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:
@@ -132,6 +135,7 @@ class OrganizationsClient {
132
135
  * @throws {@link NizamDashboard.ForbiddenError}
133
136
  * @throws {@link NizamDashboard.ConflictError}
134
137
  * @throws {@link NizamDashboard.UnprocessableEntityError}
138
+ * @throws {@link NizamDashboard.TooManyRequestsError}
135
139
  * @throws {@link NizamDashboard.InternalServerError}
136
140
  *
137
141
  * @example
@@ -187,6 +191,8 @@ class OrganizationsClient {
187
191
  throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
188
192
  case 422:
189
193
  throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
194
+ case 429:
195
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
190
196
  case 500:
191
197
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
192
198
  default:
@@ -208,6 +214,7 @@ class OrganizationsClient {
208
214
  * @throws {@link NizamDashboard.UnauthorizedError}
209
215
  * @throws {@link NizamDashboard.ForbiddenError}
210
216
  * @throws {@link NizamDashboard.NotFoundError}
217
+ * @throws {@link NizamDashboard.TooManyRequestsError}
211
218
  * @throws {@link NizamDashboard.InternalServerError}
212
219
  *
213
220
  * @example
@@ -246,6 +253,8 @@ class OrganizationsClient {
246
253
  throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
247
254
  case 404:
248
255
  throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
256
+ case 429:
257
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
249
258
  case 500:
250
259
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
251
260
  default:
@@ -269,6 +278,7 @@ class OrganizationsClient {
269
278
  * @throws {@link NizamDashboard.UnauthorizedError}
270
279
  * @throws {@link NizamDashboard.ForbiddenError}
271
280
  * @throws {@link NizamDashboard.NotFoundError}
281
+ * @throws {@link NizamDashboard.TooManyRequestsError}
272
282
  * @throws {@link NizamDashboard.InternalServerError}
273
283
  *
274
284
  * @example
@@ -307,6 +317,8 @@ class OrganizationsClient {
307
317
  throw new NizamDashboard.ForbiddenError(_response.error.body, _response.rawResponse);
308
318
  case 404:
309
319
  throw new NizamDashboard.NotFoundError(_response.error.body, _response.rawResponse);
320
+ case 429:
321
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
310
322
  case 500:
311
323
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
312
324
  default:
@@ -332,6 +344,7 @@ class OrganizationsClient {
332
344
  * @throws {@link NizamDashboard.NotFoundError}
333
345
  * @throws {@link NizamDashboard.ConflictError}
334
346
  * @throws {@link NizamDashboard.UnprocessableEntityError}
347
+ * @throws {@link NizamDashboard.TooManyRequestsError}
335
348
  * @throws {@link NizamDashboard.InternalServerError}
336
349
  *
337
350
  * @example
@@ -386,6 +399,8 @@ class OrganizationsClient {
386
399
  throw new NizamDashboard.ConflictError(_response.error.body, _response.rawResponse);
387
400
  case 422:
388
401
  throw new NizamDashboard.UnprocessableEntityError(_response.error.body, _response.rawResponse);
402
+ case 429:
403
+ throw new NizamDashboard.TooManyRequestsError(_response.error.body, _response.rawResponse);
389
404
  case 500:
390
405
  throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
391
406
  default:
@@ -6,7 +6,7 @@
6
6
  * }
7
7
  */
8
8
  export interface ListOrganizationsRequest {
9
- /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */
9
+ /** Sort order. Allowed fields: `created_at`. Prefix a field with `-` for descending (e.g. `-created_at`); unknown fields are rejected with `400 validation_failed`. */
10
10
  sort?: string | string[];
11
11
  /** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
12
12
  limit?: number;
@@ -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:
@@ -6,7 +6,7 @@
6
6
  * }
7
7
  */
8
8
  export interface ListUsersRequest {
9
- /** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */
9
+ /** Sort order. Allowed fields: `created_at`, `name`. Prefix a field with `-` for descending (e.g. `-created_at`); unknown fields are rejected with `400 validation_failed`. */
10
10
  sort?: string | string[];
11
11
  /** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
12
12
  limit?: number;
@@ -22,6 +22,8 @@ export interface AssetListItem {
22
22
  organization_id?: string | undefined;
23
23
  /** Current primary operator (active assignment, role=primary). */
24
24
  current_primary_operator_id?: string | undefined;
25
+ /** Creation timestamp (ISO-8601 UTC). */
26
+ created_at?: string | undefined;
25
27
  /** Relevance score (descending) when the request carried `q`; 0 for plain listings. Scores are only comparable within a single response. */
26
28
  rank?: number | undefined;
27
29
  /** Highlighted match fragment when the request carried `q&highlight=true`. Matched terms are wrapped in `<mark>…</mark>`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizam-os/dashboard-sdk",
3
- "version": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "description": "Nizam Dashboard API SDK for TypeScript / JavaScript.",
5
5
  "license": "MIT",
6
6
  "private": false,