@nizam-os/dashboard-sdk 10.0.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/api/resources/activity/client/Client.d.ts +1 -1
  2. package/dist/api/resources/activity/client/Client.js +2 -2
  3. package/dist/api/resources/activity/client/requests/ListActivityRequest.d.ts +3 -2
  4. package/dist/api/resources/activity/index.d.ts +1 -0
  5. package/dist/api/resources/activity/index.js +1 -0
  6. package/dist/api/resources/activity/types/ListActivityRequestSortItem.d.ts +5 -0
  7. package/dist/api/resources/activity/types/ListActivityRequestSortItem.js +8 -0
  8. package/dist/api/resources/activity/types/index.d.ts +1 -0
  9. package/dist/api/resources/activity/types/index.js +17 -0
  10. package/dist/api/resources/assets/client/Client.d.ts +256 -1
  11. package/dist/api/resources/assets/client/Client.js +764 -5
  12. package/dist/api/resources/assets/client/requests/ActivateAssetRequest.d.ts +9 -0
  13. package/dist/api/resources/assets/client/requests/ActivateAssetRequest.js +3 -0
  14. package/dist/api/resources/assets/client/requests/AllowedTransitionsRequest.d.ts +10 -0
  15. package/dist/api/resources/assets/client/requests/AllowedTransitionsRequest.js +3 -0
  16. package/dist/api/resources/assets/client/requests/CreateAssetRequest.d.ts +25 -0
  17. package/dist/api/resources/assets/client/requests/CreateAssetRequest.js +10 -0
  18. package/dist/api/resources/assets/client/requests/DeactivateAssetRequest.d.ts +9 -0
  19. package/dist/api/resources/assets/client/requests/DeactivateAssetRequest.js +3 -0
  20. package/dist/api/resources/assets/client/requests/DeleteAssetRequest.d.ts +9 -0
  21. package/dist/api/resources/assets/client/requests/DeleteAssetRequest.js +3 -0
  22. package/dist/api/resources/assets/client/requests/EnterAssetMaintenanceRequest.d.ts +9 -0
  23. package/dist/api/resources/assets/client/requests/EnterAssetMaintenanceRequest.js +3 -0
  24. package/dist/api/resources/assets/client/requests/ExportAssetsRequest.d.ts +44 -0
  25. package/dist/api/resources/assets/client/requests/ExportAssetsRequest.js +31 -0
  26. package/dist/api/resources/assets/client/requests/ListAssetsRequest.d.ts +13 -6
  27. package/dist/api/resources/assets/client/requests/ReportAssetLostRequest.d.ts +9 -0
  28. package/dist/api/resources/assets/client/requests/ReportAssetLostRequest.js +3 -0
  29. package/dist/api/resources/assets/client/requests/RetireAssetRequest.d.ts +9 -0
  30. package/dist/api/resources/assets/client/requests/RetireAssetRequest.js +3 -0
  31. package/dist/api/resources/assets/client/requests/SellAssetRequest.d.ts +9 -0
  32. package/dist/api/resources/assets/client/requests/SellAssetRequest.js +3 -0
  33. package/dist/api/resources/assets/client/requests/TakeAssetOutOfServiceRequest.d.ts +9 -0
  34. package/dist/api/resources/assets/client/requests/TakeAssetOutOfServiceRequest.js +3 -0
  35. package/dist/api/resources/assets/client/requests/UpdateAssetRequest.d.ts +36 -0
  36. package/dist/api/resources/assets/client/requests/UpdateAssetRequest.js +3 -0
  37. package/dist/api/resources/assets/client/requests/index.d.ts +11 -0
  38. package/dist/api/resources/assets/client/requests/index.js +3 -1
  39. package/dist/api/resources/assets/index.d.ts +1 -0
  40. package/dist/api/resources/assets/index.js +1 -0
  41. package/dist/api/resources/assets/types/ListAssetsRequestKindItem.d.ts +12 -0
  42. package/dist/api/resources/assets/types/ListAssetsRequestKindItem.js +15 -0
  43. package/dist/api/resources/assets/types/ListAssetsRequestSortItem.d.ts +25 -0
  44. package/dist/api/resources/assets/types/ListAssetsRequestSortItem.js +28 -0
  45. package/dist/api/resources/assets/types/ListAssetsRequestStatusItem.d.ts +10 -0
  46. package/dist/api/resources/assets/types/ListAssetsRequestStatusItem.js +13 -0
  47. package/dist/api/resources/assets/types/index.d.ts +3 -0
  48. package/dist/api/resources/assets/types/index.js +19 -0
  49. package/dist/api/resources/files/client/Client.d.ts +1 -1
  50. package/dist/api/resources/files/client/Client.js +4 -4
  51. package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.d.ts +1 -0
  52. package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.js +1 -0
  53. package/dist/api/resources/files/client/requests/ListFilesRequest.d.ts +7 -6
  54. package/dist/api/resources/files/index.d.ts +1 -0
  55. package/dist/api/resources/files/index.js +1 -0
  56. package/dist/api/resources/files/types/ListFilesRequestKindItem.d.ts +11 -0
  57. package/dist/api/resources/files/types/ListFilesRequestKindItem.js +14 -0
  58. package/dist/api/resources/files/types/ListFilesRequestSortItem.d.ts +5 -0
  59. package/dist/api/resources/files/types/ListFilesRequestSortItem.js +8 -0
  60. package/dist/api/resources/files/types/ListFilesRequestStatusItem.d.ts +6 -0
  61. package/dist/api/resources/files/types/ListFilesRequestStatusItem.js +9 -0
  62. package/dist/api/resources/files/types/index.d.ts +3 -0
  63. package/dist/api/resources/files/types/index.js +19 -0
  64. package/dist/api/resources/index.d.ts +7 -0
  65. package/dist/api/resources/index.js +7 -0
  66. package/dist/api/resources/jobs/client/Client.d.ts +1 -1
  67. package/dist/api/resources/jobs/client/Client.js +2 -2
  68. package/dist/api/resources/jobs/client/requests/ListJobsRequest.d.ts +3 -2
  69. package/dist/api/resources/jobs/index.d.ts +1 -0
  70. package/dist/api/resources/jobs/index.js +1 -0
  71. package/dist/api/resources/jobs/types/ListJobsRequestSortItem.d.ts +5 -0
  72. package/dist/api/resources/jobs/types/ListJobsRequestSortItem.js +8 -0
  73. package/dist/api/resources/jobs/types/index.d.ts +1 -0
  74. package/dist/api/resources/jobs/types/index.js +17 -0
  75. package/dist/api/resources/notifications/client/Client.d.ts +1 -1
  76. package/dist/api/resources/notifications/client/Client.js +2 -2
  77. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +3 -2
  78. package/dist/api/resources/notifications/index.d.ts +1 -0
  79. package/dist/api/resources/notifications/index.js +1 -0
  80. package/dist/api/resources/notifications/types/ListNotificationsRequestSortItem.d.ts +5 -0
  81. package/dist/api/resources/notifications/types/ListNotificationsRequestSortItem.js +8 -0
  82. package/dist/api/resources/notifications/types/index.d.ts +1 -0
  83. package/dist/api/resources/notifications/types/index.js +17 -0
  84. package/dist/api/resources/organizations/client/Client.d.ts +2 -2
  85. package/dist/api/resources/organizations/client/Client.js +3 -3
  86. package/dist/api/resources/organizations/client/requests/ListOrganizationsRequest.d.ts +3 -2
  87. package/dist/api/resources/organizations/index.d.ts +1 -0
  88. package/dist/api/resources/organizations/index.js +1 -0
  89. package/dist/api/resources/organizations/types/ListOrganizationsRequestSortItem.d.ts +5 -0
  90. package/dist/api/resources/organizations/types/ListOrganizationsRequestSortItem.js +8 -0
  91. package/dist/api/resources/organizations/types/index.d.ts +1 -0
  92. package/dist/api/resources/organizations/types/index.js +17 -0
  93. package/dist/api/resources/users/client/Client.d.ts +1 -1
  94. package/dist/api/resources/users/client/Client.js +2 -2
  95. package/dist/api/resources/users/client/requests/ListUsersRequest.d.ts +3 -2
  96. package/dist/api/resources/users/index.d.ts +1 -0
  97. package/dist/api/resources/users/index.js +1 -0
  98. package/dist/api/resources/users/types/ListUsersRequestSortItem.d.ts +7 -0
  99. package/dist/api/resources/users/types/ListUsersRequestSortItem.js +10 -0
  100. package/dist/api/resources/users/types/index.d.ts +1 -0
  101. package/dist/api/resources/users/types/index.js +17 -0
  102. package/dist/api/types/ActiveOrganization.d.ts +2 -2
  103. package/dist/api/types/ActivityResource.d.ts +4 -4
  104. package/dist/api/types/AllowedTransitions.d.ts +28 -0
  105. package/dist/api/types/AllowedTransitions.js +23 -0
  106. package/dist/api/types/ApiFieldError.d.ts +1 -1
  107. package/dist/api/types/Asset.d.ts +26 -4
  108. package/dist/api/types/Asset.js +13 -0
  109. package/dist/api/types/AssetListItem.d.ts +11 -5
  110. package/dist/api/types/Assignment.d.ts +6 -6
  111. package/dist/api/types/BulkJobSubmission.d.ts +3 -3
  112. package/dist/api/types/BusinessCategory.d.ts +3 -3
  113. package/dist/api/types/Country.d.ts +3 -3
  114. package/dist/api/types/Currency.d.ts +5 -5
  115. package/dist/api/types/Device.d.ts +6 -6
  116. package/dist/api/types/Devices.d.ts +2 -2
  117. package/dist/api/types/FileDownloadUrl.d.ts +4 -4
  118. package/dist/api/types/FileUploadSession.d.ts +12 -11
  119. package/dist/api/types/FileUploadSession.js +1 -0
  120. package/dist/api/types/File_.d.ts +14 -13
  121. package/dist/api/types/File_.js +1 -0
  122. package/dist/api/types/HeatmapCell.d.ts +4 -4
  123. package/dist/api/types/ImportError.d.ts +4 -4
  124. package/dist/api/types/ImportSubmission.d.ts +4 -4
  125. package/dist/api/types/Invite.d.ts +8 -8
  126. package/dist/api/types/Job.d.ts +11 -11
  127. package/dist/api/types/JobSubmission.d.ts +2 -2
  128. package/dist/api/types/Language.d.ts +4 -4
  129. package/dist/api/types/Membership.d.ts +3 -3
  130. package/dist/api/types/MqttToken.d.ts +4 -4
  131. package/dist/api/types/Notification.d.ts +9 -9
  132. package/dist/api/types/NotificationCounts.d.ts +5 -5
  133. package/dist/api/types/NotificationDeadLetter.d.ts +9 -9
  134. package/dist/api/types/NotificationPreferences.d.ts +2 -2
  135. package/dist/api/types/NotificationUnreadCount.d.ts +2 -2
  136. package/dist/api/types/NotificationsArchived.d.ts +2 -2
  137. package/dist/api/types/NotificationsMarkedRead.d.ts +2 -2
  138. package/dist/api/types/Operator.d.ts +4 -4
  139. package/dist/api/types/OperatorAsset.d.ts +64 -0
  140. package/dist/api/types/OperatorAsset.js +33 -0
  141. package/dist/api/types/OperatorPosition.d.ts +5 -5
  142. package/dist/api/types/Organization.d.ts +7 -7
  143. package/dist/api/types/Position.d.ts +6 -6
  144. package/dist/api/types/ProblemDetail.d.ts +1 -1
  145. package/dist/api/types/RealtimeTicket.d.ts +3 -3
  146. package/dist/api/types/ReconcileResponse.d.ts +4 -4
  147. package/dist/api/types/TaskAttemptPhoto.d.ts +7 -7
  148. package/dist/api/types/Timezone.d.ts +4 -4
  149. package/dist/api/types/UploadInitiation.d.ts +6 -6
  150. package/dist/api/types/User.d.ts +27 -5
  151. package/dist/api/types/User.js +19 -0
  152. package/dist/api/types/UserResource.d.ts +4 -4
  153. package/dist/api/types/index.d.ts +2 -0
  154. package/dist/api/types/index.js +2 -0
  155. package/package.json +1 -1
@@ -14,7 +14,7 @@ export declare class ActivityClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<ActivityClient.Options>;
15
15
  constructor(options: ActivityClient.Options);
16
16
  /**
17
- * Newest-first feed of audited events for the caller's active organization (dashboard; tenant-scoped). Platform staff see across tenants. This is the durable, REST source of truth behind the realtime `/topic/organization.<id>.activity` STOMP stream: on reconnect, a client passes `since=<last_seen>` to catch up missed items, then resumes realtime. Each item's `event_id` correlates with the realtime ActivityFeedItem's `id` for deduplication. Sortable: `created_at` (default `-created_at`). Bidirectional opaque cursors via `starting_after` / `ending_before`.
17
+ * Newest-first feed of audited events for the caller's active organization (dashboard; tenant-scoped). Platform staff see across tenants. This is the durable, REST source of truth behind the realtime `/topic/organization.<id>.activity` STOMP stream: on reconnect, a client passes `since=<last_seen>` to catch up missed items, then resumes realtime. Each item's `event_id` correlates with the realtime ActivityFeedItem's `id` for deduplication. Sortable: `created_at` (default `created_at:desc`). Bidirectional opaque cursors via `starting_after` / `ending_before`.
18
18
  *
19
19
  * @param {NizamDashboard.ListActivityRequest} request
20
20
  * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,7 +50,7 @@ class ActivityClient {
50
50
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
51
51
  }
52
52
  /**
53
- * Newest-first feed of audited events for the caller's active organization (dashboard; tenant-scoped). Platform staff see across tenants. This is the durable, REST source of truth behind the realtime `/topic/organization.<id>.activity` STOMP stream: on reconnect, a client passes `since=<last_seen>` to catch up missed items, then resumes realtime. Each item's `event_id` correlates with the realtime ActivityFeedItem's `id` for deduplication. Sortable: `created_at` (default `-created_at`). Bidirectional opaque cursors via `starting_after` / `ending_before`.
53
+ * Newest-first feed of audited events for the caller's active organization (dashboard; tenant-scoped). Platform staff see across tenants. This is the durable, REST source of truth behind the realtime `/topic/organization.<id>.activity` STOMP stream: on reconnect, a client passes `since=<last_seen>` to catch up missed items, then resumes realtime. Each item's `event_id` correlates with the realtime ActivityFeedItem's `id` for deduplication. Sortable: `created_at` (default `created_at:desc`). Bidirectional opaque cursors via `starting_after` / `ending_before`.
54
54
  *
55
55
  * @param {NizamDashboard.ListActivityRequest} request
56
56
  * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -75,7 +75,7 @@ class ActivityClient {
75
75
  const { since, sort, limit, starting_after: startingAfter, ending_before: endingBefore } = request;
76
76
  const _queryParams = {
77
77
  since: since != null ? since : undefined,
78
- sort,
78
+ sort: Array.isArray(sort) ? sort.map((item) => item) : sort != null ? sort : undefined,
79
79
  limit,
80
80
  starting_after: startingAfter,
81
81
  ending_before: endingBefore,
@@ -1,3 +1,4 @@
1
+ import type * as NizamDashboard from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -9,8 +10,8 @@
9
10
  export interface ListActivityRequest {
10
11
  /** Return only activity at or after this instant (ISO-8601). Pass the last-seen timestamp to reconcile after a realtime disconnect. */
11
12
  since?: string;
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
- sort?: string | string[];
13
+ /** Sort order. Allowed fields: `created_at`. Append `:asc` or `:desc` to each field (direction required, e.g. `created_at:desc`), comma-separated for multi-sort; unknown fields or directions are rejected with `400 validation_failed`. */
14
+ sort?: NizamDashboard.ListActivityRequestSortItem | NizamDashboard.ListActivityRequestSortItem[];
14
15
  /** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
15
16
  limit?: number;
16
17
  /** Opaque cursor — return the page starting strictly after this entity in the sort order. Mutually exclusive with `ending_before`. */
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,5 @@
1
+ export declare const ListActivityRequestSortItem: {
2
+ readonly CreatedAtAsc: "created_at:asc";
3
+ readonly CreatedAtDesc: "created_at:desc";
4
+ };
5
+ export type ListActivityRequestSortItem = (typeof ListActivityRequestSortItem)[keyof typeof ListActivityRequestSortItem];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListActivityRequestSortItem = void 0;
5
+ exports.ListActivityRequestSortItem = {
6
+ CreatedAtAsc: "created_at:asc",
7
+ CreatedAtDesc: "created_at:desc",
8
+ };
@@ -0,0 +1 @@
1
+ export * from "./ListActivityRequestSortItem.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ListActivityRequestSortItem.js"), exports);
@@ -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 (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).
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. Sort by a single column — the allowed fields and direction grammar are enumerated on the `sort` parameter; `status` and `kind` sort by their domain order (status lifecycle, kind grouping), not the stored code or the tenant-relabeled display string. As filters, `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.
@@ -28,6 +28,8 @@ export declare class AssetsClient {
28
28
  * @example
29
29
  * await client.assets.listAssets({
30
30
  * q: "<string>",
31
+ * created_on_or_after: "2026-05-20",
32
+ * created_on_or_before: "2026-05-20",
31
33
  * starting_after: "Y3Vyc29yX25leHRfMDFKNVE=",
32
34
  * ending_before: "Y3Vyc29yX25leHRfMDFKNVE="
33
35
  * })
@@ -80,6 +82,48 @@ export declare class AssetsClient {
80
82
  */
81
83
  createAsset(request: NizamDashboard.CreateAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
82
84
  private __createAsset;
85
+ /**
86
+ * Returns the lifecycle statuses EVERY asset in the selection may legally move to next — the intersection of each asset's legal-transition set (the same matrix the per-asset `allowed_transitions` field and the transition verbs enforce). The status picker calls this so a bulk change offers only moves legal for the WHOLE selection, instead of offering every status and relying on per-row 409s. Ids that don't resolve to a live asset in your organization are ignored; a selection that shares no common next status (e.g. it includes a terminal sold/lost asset) returns an empty list. It is a read — re-asserting it is free.
87
+ *
88
+ * @param {NizamDashboard.AllowedTransitionsRequest} request
89
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link NizamDashboard.BadRequestError}
92
+ * @throws {@link NizamDashboard.UnauthorizedError}
93
+ * @throws {@link NizamDashboard.ForbiddenError}
94
+ * @throws {@link NizamDashboard.UnprocessableEntityError}
95
+ * @throws {@link NizamDashboard.TooManyRequestsError}
96
+ * @throws {@link NizamDashboard.InternalServerError}
97
+ *
98
+ * @example
99
+ * await client.assets.assetAllowedTransitions({
100
+ * ids: ["8f55f0eb-7d3a-4f2c-9c8d-a1b2c3d4e5f6"]
101
+ * })
102
+ */
103
+ assetAllowedTransitions(request: NizamDashboard.AllowedTransitionsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.AllowedTransitions>;
104
+ private __assetAllowedTransitions;
105
+ /**
106
+ * Generates a CSV / XLSX / JSON file of the selected assets with the chosen columns and returns a short-lived download URL the browser follows to download it. Columns are emitted in the requested order; `kind` and `status` carry their stored code (re-importable), not the tenant's display label. The id count is capped — this exports an explicit selection. POST because generating + storing the file and logging the egress is an audited action, not a cacheable read.
107
+ *
108
+ * @param {NizamDashboard.ExportAssetsRequest} request
109
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link NizamDashboard.BadRequestError}
112
+ * @throws {@link NizamDashboard.UnauthorizedError}
113
+ * @throws {@link NizamDashboard.ForbiddenError}
114
+ * @throws {@link NizamDashboard.UnprocessableEntityError}
115
+ * @throws {@link NizamDashboard.TooManyRequestsError}
116
+ * @throws {@link NizamDashboard.InternalServerError}
117
+ *
118
+ * @example
119
+ * await client.assets.exportAssets({
120
+ * format: "xlsx",
121
+ * fields: ["id", "name", "status"],
122
+ * ids: ["8f55f0eb-7d3a-4f2c-9c8d-a1b2c3d4e5f6"]
123
+ * })
124
+ */
125
+ exportAssets(request: NizamDashboard.ExportAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.FileDownloadUrl>;
126
+ private __exportAssets;
83
127
  /**
84
128
  * Returns a correctly-shaped XLSX template (header row + one example row) for the bulk asset import. Fill it in and upload it via POST /v1/imports to import assets in bulk.
85
129
  *
@@ -91,6 +135,8 @@ export declare class AssetsClient {
91
135
  getAssetImportTemplate(requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
92
136
  private __getAssetImportTemplate;
93
137
  /**
138
+ * Returns one asset. Visible to members of the asset's organization and to L4-granted cross-tenant readers; anyone else gets 404 — indistinguishable from a non-existent id (prevents tenant probing).
139
+ *
94
140
  * @param {NizamDashboard.GetAssetRequest} request
95
141
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
96
142
  *
@@ -107,4 +153,213 @@ export declare class AssetsClient {
107
153
  */
108
154
  getAsset(request: NizamDashboard.GetAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
109
155
  private __getAsset;
156
+ /**
157
+ * Soft-deletes the asset: it disappears from listings immediately and frees its VIN for re-registration. Assignments and historical records are left untouched. There is no synchronous bulk-delete endpoint — delete a selection by fanning out per-id requests (each is naturally idempotent).
158
+ *
159
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
160
+ *
161
+ * @param {NizamDashboard.DeleteAssetRequest} request
162
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
163
+ *
164
+ * @throws {@link NizamDashboard.UnauthorizedError}
165
+ * @throws {@link NizamDashboard.ForbiddenError}
166
+ * @throws {@link NizamDashboard.NotFoundError}
167
+ * @throws {@link NizamDashboard.TooManyRequestsError}
168
+ * @throws {@link NizamDashboard.InternalServerError}
169
+ *
170
+ * @example
171
+ * await client.assets.deleteAsset({
172
+ * id: "00000000-0000-0000-0000-000000000000"
173
+ * })
174
+ */
175
+ deleteAsset(request: NizamDashboard.DeleteAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<void>;
176
+ private __deleteAsset;
177
+ /**
178
+ * Set-only partial update of an asset's mutable fields — display name, sub-kind, autonomy level, and the vehicle identity (VIN, plate, make, model, year). Omitted or null fields are left unchanged. An asset's `kind` is immutable and lifecycle `status` moves through dedicated transitions, so neither is editable here.
179
+ *
180
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
181
+ *
182
+ * @param {NizamDashboard.UpdateAssetRequest} request
183
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
184
+ *
185
+ * @throws {@link NizamDashboard.UnauthorizedError}
186
+ * @throws {@link NizamDashboard.ForbiddenError}
187
+ * @throws {@link NizamDashboard.NotFoundError}
188
+ * @throws {@link NizamDashboard.ConflictError}
189
+ * @throws {@link NizamDashboard.UnprocessableEntityError}
190
+ * @throws {@link NizamDashboard.TooManyRequestsError}
191
+ * @throws {@link NizamDashboard.InternalServerError}
192
+ *
193
+ * @example
194
+ * await client.assets.updateAsset({
195
+ * id: "00000000-0000-0000-0000-000000000000",
196
+ * name: "Truck 7B"
197
+ * })
198
+ *
199
+ * @example
200
+ * await client.assets.updateAsset({
201
+ * id: "00000000-0000-0000-0000-000000000000",
202
+ * vin: "1HGCM82633A004352",
203
+ * plate_number: "AB-123-CD",
204
+ * make: "Volvo",
205
+ * model: "FH16",
206
+ * year: 2024
207
+ * })
208
+ */
209
+ updateAsset(request: NizamDashboard.UpdateAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
210
+ private __updateAsset;
211
+ /**
212
+ * Returns the asset to `active` service. Idempotent no-op if already active; an illegal edge (e.g. from a terminal sold/lost asset) → 409 `asset.invalid_transition`. No body — fan out per id for a bulk change.
213
+ *
214
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
215
+ *
216
+ * @param {NizamDashboard.ActivateAssetRequest} request
217
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
219
+ * @throws {@link NizamDashboard.UnauthorizedError}
220
+ * @throws {@link NizamDashboard.ForbiddenError}
221
+ * @throws {@link NizamDashboard.NotFoundError}
222
+ * @throws {@link NizamDashboard.ConflictError}
223
+ * @throws {@link NizamDashboard.TooManyRequestsError}
224
+ * @throws {@link NizamDashboard.InternalServerError}
225
+ *
226
+ * @example
227
+ * await client.assets.activateAsset({
228
+ * id: "00000000-0000-0000-0000-000000000000"
229
+ * })
230
+ */
231
+ activateAsset(request: NizamDashboard.ActivateAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
232
+ private __activateAsset;
233
+ /**
234
+ * Marks the asset `inactive` (idle but still in-fleet). Idempotent no-op if already inactive; an illegal edge → 409 `asset.invalid_transition`. No body.
235
+ *
236
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
237
+ *
238
+ * @param {NizamDashboard.DeactivateAssetRequest} request
239
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
240
+ *
241
+ * @throws {@link NizamDashboard.UnauthorizedError}
242
+ * @throws {@link NizamDashboard.ForbiddenError}
243
+ * @throws {@link NizamDashboard.NotFoundError}
244
+ * @throws {@link NizamDashboard.ConflictError}
245
+ * @throws {@link NizamDashboard.TooManyRequestsError}
246
+ * @throws {@link NizamDashboard.InternalServerError}
247
+ *
248
+ * @example
249
+ * await client.assets.deactivateAsset({
250
+ * id: "00000000-0000-0000-0000-000000000000"
251
+ * })
252
+ */
253
+ deactivateAsset(request: NizamDashboard.DeactivateAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
254
+ private __deactivateAsset;
255
+ /**
256
+ * Moves the asset into `maintenance`. Idempotent no-op if already in maintenance; an illegal edge → 409 `asset.invalid_transition`. No body.
257
+ *
258
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
259
+ *
260
+ * @param {NizamDashboard.EnterAssetMaintenanceRequest} request
261
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
262
+ *
263
+ * @throws {@link NizamDashboard.UnauthorizedError}
264
+ * @throws {@link NizamDashboard.ForbiddenError}
265
+ * @throws {@link NizamDashboard.NotFoundError}
266
+ * @throws {@link NizamDashboard.ConflictError}
267
+ * @throws {@link NizamDashboard.TooManyRequestsError}
268
+ * @throws {@link NizamDashboard.InternalServerError}
269
+ *
270
+ * @example
271
+ * await client.assets.enterAssetMaintenance({
272
+ * id: "00000000-0000-0000-0000-000000000000"
273
+ * })
274
+ */
275
+ enterAssetMaintenance(request: NizamDashboard.EnterAssetMaintenanceRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
276
+ private __enterAssetMaintenance;
277
+ /**
278
+ * Marks the asset `lost` — a terminal state; the asset has left the fleet and accepts no further transitions. Idempotent no-op if already lost; an illegal edge → 409 `asset.invalid_transition`. No body.
279
+ *
280
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
281
+ *
282
+ * @param {NizamDashboard.ReportAssetLostRequest} request
283
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
284
+ *
285
+ * @throws {@link NizamDashboard.UnauthorizedError}
286
+ * @throws {@link NizamDashboard.ForbiddenError}
287
+ * @throws {@link NizamDashboard.NotFoundError}
288
+ * @throws {@link NizamDashboard.ConflictError}
289
+ * @throws {@link NizamDashboard.TooManyRequestsError}
290
+ * @throws {@link NizamDashboard.InternalServerError}
291
+ *
292
+ * @example
293
+ * await client.assets.reportAssetLost({
294
+ * id: "00000000-0000-0000-0000-000000000000"
295
+ * })
296
+ */
297
+ reportAssetLost(request: NizamDashboard.ReportAssetLostRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
298
+ private __reportAssetLost;
299
+ /**
300
+ * Retires the asset (`retired`) — decommissioned but still owned; it may later be reactivated, sold, or reported lost. Idempotent no-op if already retired; an illegal edge → 409 `asset.invalid_transition`. No body.
301
+ *
302
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
303
+ *
304
+ * @param {NizamDashboard.RetireAssetRequest} request
305
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
306
+ *
307
+ * @throws {@link NizamDashboard.UnauthorizedError}
308
+ * @throws {@link NizamDashboard.ForbiddenError}
309
+ * @throws {@link NizamDashboard.NotFoundError}
310
+ * @throws {@link NizamDashboard.ConflictError}
311
+ * @throws {@link NizamDashboard.TooManyRequestsError}
312
+ * @throws {@link NizamDashboard.InternalServerError}
313
+ *
314
+ * @example
315
+ * await client.assets.retireAsset({
316
+ * id: "00000000-0000-0000-0000-000000000000"
317
+ * })
318
+ */
319
+ retireAsset(request: NizamDashboard.RetireAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
320
+ private __retireAsset;
321
+ /**
322
+ * Marks the asset `sold` — a terminal state; the asset has left the fleet and accepts no further transitions. Idempotent no-op if already sold; an illegal edge → 409 `asset.invalid_transition`. No body.
323
+ *
324
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
325
+ *
326
+ * @param {NizamDashboard.SellAssetRequest} request
327
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
328
+ *
329
+ * @throws {@link NizamDashboard.UnauthorizedError}
330
+ * @throws {@link NizamDashboard.ForbiddenError}
331
+ * @throws {@link NizamDashboard.NotFoundError}
332
+ * @throws {@link NizamDashboard.ConflictError}
333
+ * @throws {@link NizamDashboard.TooManyRequestsError}
334
+ * @throws {@link NizamDashboard.InternalServerError}
335
+ *
336
+ * @example
337
+ * await client.assets.sellAsset({
338
+ * id: "00000000-0000-0000-0000-000000000000"
339
+ * })
340
+ */
341
+ sellAsset(request: NizamDashboard.SellAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
342
+ private __sellAsset;
343
+ /**
344
+ * Moves the asset `out_of_service`. Idempotent no-op if already out of service; an illegal edge → 409 `asset.invalid_transition`. No body.
345
+ *
346
+ * > **Requires** `manage` on `asset` (SpiceDB permission expression).
347
+ *
348
+ * @param {NizamDashboard.TakeAssetOutOfServiceRequest} request
349
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
350
+ *
351
+ * @throws {@link NizamDashboard.UnauthorizedError}
352
+ * @throws {@link NizamDashboard.ForbiddenError}
353
+ * @throws {@link NizamDashboard.NotFoundError}
354
+ * @throws {@link NizamDashboard.ConflictError}
355
+ * @throws {@link NizamDashboard.TooManyRequestsError}
356
+ * @throws {@link NizamDashboard.InternalServerError}
357
+ *
358
+ * @example
359
+ * await client.assets.takeAssetOutOfService({
360
+ * id: "00000000-0000-0000-0000-000000000000"
361
+ * })
362
+ */
363
+ takeAssetOutOfService(request: NizamDashboard.TakeAssetOutOfServiceRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.Asset>;
364
+ private __takeAssetOutOfService;
110
365
  }