@nizam-os/operator-sdk 4.0.0 → 5.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 (104) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/Client.js +24 -20
  3. package/dist/api/resources/assets/client/Client.d.ts +54 -0
  4. package/dist/api/resources/assets/client/Client.js +184 -0
  5. package/dist/api/resources/assets/client/index.d.ts +1 -0
  6. package/dist/api/resources/assets/client/index.js +17 -0
  7. package/dist/api/resources/assets/client/requests/GetMyAssetRequest.d.ts +9 -0
  8. package/dist/api/resources/assets/client/requests/GetMyAssetRequest.js +3 -0
  9. package/dist/api/resources/assets/client/requests/ListMyAssetsRequest.d.ts +15 -0
  10. package/dist/api/resources/assets/client/requests/ListMyAssetsRequest.js +3 -0
  11. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  12. package/dist/api/resources/assets/client/requests/index.js +2 -0
  13. package/dist/api/resources/assets/exports.d.ts +2 -0
  14. package/dist/api/resources/assets/exports.js +21 -0
  15. package/dist/api/resources/assets/index.d.ts +1 -0
  16. package/dist/api/resources/assets/index.js +17 -0
  17. package/dist/api/resources/files/client/Client.d.ts +1 -1
  18. package/dist/api/resources/files/client/Client.js +4 -4
  19. package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.d.ts +1 -0
  20. package/dist/api/resources/files/client/requests/InitiateFileUploadRequest.js +1 -0
  21. package/dist/api/resources/files/client/requests/ListFilesRequest.d.ts +7 -6
  22. package/dist/api/resources/files/index.d.ts +1 -0
  23. package/dist/api/resources/files/index.js +1 -0
  24. package/dist/api/resources/files/types/ListFilesRequestKindItem.d.ts +11 -0
  25. package/dist/api/resources/files/types/ListFilesRequestKindItem.js +14 -0
  26. package/dist/api/resources/files/types/ListFilesRequestSortItem.d.ts +5 -0
  27. package/dist/api/resources/files/types/ListFilesRequestSortItem.js +8 -0
  28. package/dist/api/resources/files/types/ListFilesRequestStatusItem.d.ts +6 -0
  29. package/dist/api/resources/files/types/ListFilesRequestStatusItem.js +9 -0
  30. package/dist/api/resources/files/types/index.d.ts +3 -0
  31. package/dist/api/resources/files/types/index.js +19 -0
  32. package/dist/api/resources/index.d.ts +4 -0
  33. package/dist/api/resources/index.js +5 -1
  34. package/dist/api/resources/notifications/client/Client.d.ts +1 -1
  35. package/dist/api/resources/notifications/client/Client.js +2 -2
  36. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +3 -2
  37. package/dist/api/resources/notifications/index.d.ts +1 -0
  38. package/dist/api/resources/notifications/index.js +1 -0
  39. package/dist/api/resources/notifications/types/ListNotificationsRequestSortItem.d.ts +5 -0
  40. package/dist/api/resources/notifications/types/ListNotificationsRequestSortItem.js +8 -0
  41. package/dist/api/resources/notifications/types/index.d.ts +1 -0
  42. package/dist/api/resources/notifications/types/index.js +17 -0
  43. package/dist/api/types/ActiveOrganization.d.ts +2 -2
  44. package/dist/api/types/ActivityResource.d.ts +4 -4
  45. package/dist/api/types/AllowedTransitions.d.ts +28 -0
  46. package/dist/api/types/AllowedTransitions.js +23 -0
  47. package/dist/api/types/AllowedTransitionsRequest.d.ts +7 -0
  48. package/dist/api/types/AllowedTransitionsRequest.js +3 -0
  49. package/dist/api/types/ApiFieldError.d.ts +1 -1
  50. package/dist/api/types/Asset.d.ts +26 -4
  51. package/dist/api/types/Asset.js +13 -0
  52. package/dist/api/types/AssetListItem.d.ts +11 -5
  53. package/dist/api/types/Assignment.d.ts +6 -6
  54. package/dist/api/types/BulkJobSubmission.d.ts +3 -3
  55. package/dist/api/types/BusinessCategory.d.ts +3 -3
  56. package/dist/api/types/Country.d.ts +3 -3
  57. package/dist/api/types/CreateAssetRequest.d.ts +25 -0
  58. package/dist/api/types/CreateAssetRequest.js +10 -0
  59. package/dist/api/types/Currency.d.ts +5 -5
  60. package/dist/api/types/Device.d.ts +6 -6
  61. package/dist/api/types/Devices.d.ts +2 -2
  62. package/dist/api/types/ExportAssetsRequest.d.ts +36 -0
  63. package/dist/api/types/ExportAssetsRequest.js +31 -0
  64. package/dist/api/types/FileDownloadUrl.d.ts +4 -4
  65. package/dist/api/types/FileUploadSession.d.ts +12 -11
  66. package/dist/api/types/FileUploadSession.js +1 -0
  67. package/dist/api/types/File_.d.ts +14 -13
  68. package/dist/api/types/File_.js +1 -0
  69. package/dist/api/types/HeatmapCell.d.ts +4 -4
  70. package/dist/api/types/ImportError.d.ts +4 -4
  71. package/dist/api/types/ImportSubmission.d.ts +4 -4
  72. package/dist/api/types/Invite.d.ts +8 -8
  73. package/dist/api/types/Job.d.ts +11 -11
  74. package/dist/api/types/JobSubmission.d.ts +2 -2
  75. package/dist/api/types/Language.d.ts +4 -4
  76. package/dist/api/types/Membership.d.ts +3 -3
  77. package/dist/api/types/MqttToken.d.ts +4 -4
  78. package/dist/api/types/Notification.d.ts +9 -9
  79. package/dist/api/types/NotificationCounts.d.ts +5 -5
  80. package/dist/api/types/NotificationDeadLetter.d.ts +9 -9
  81. package/dist/api/types/NotificationPreferences.d.ts +2 -2
  82. package/dist/api/types/NotificationUnreadCount.d.ts +2 -2
  83. package/dist/api/types/NotificationsArchived.d.ts +2 -2
  84. package/dist/api/types/NotificationsMarkedRead.d.ts +2 -2
  85. package/dist/api/types/Operator.d.ts +4 -4
  86. package/dist/api/types/OperatorAsset.d.ts +64 -0
  87. package/dist/api/types/OperatorAsset.js +33 -0
  88. package/dist/api/types/OperatorPosition.d.ts +5 -5
  89. package/dist/api/types/Organization.d.ts +7 -7
  90. package/dist/api/types/Position.d.ts +6 -6
  91. package/dist/api/types/ProblemDetail.d.ts +1 -1
  92. package/dist/api/types/RealtimeTicket.d.ts +3 -3
  93. package/dist/api/types/ReconcileResponse.d.ts +4 -4
  94. package/dist/api/types/TaskAttemptPhoto.d.ts +7 -7
  95. package/dist/api/types/Timezone.d.ts +4 -4
  96. package/dist/api/types/UpdateAssetRequest.d.ts +21 -0
  97. package/dist/api/types/UpdateAssetRequest.js +3 -0
  98. package/dist/api/types/UploadInitiation.d.ts +6 -6
  99. package/dist/api/types/User.d.ts +27 -5
  100. package/dist/api/types/User.js +19 -0
  101. package/dist/api/types/UserResource.d.ts +4 -4
  102. package/dist/api/types/index.d.ts +5 -0
  103. package/dist/api/types/index.js +5 -0
  104. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExportAssetsRequest = void 0;
5
+ var ExportAssetsRequest;
6
+ (function (ExportAssetsRequest) {
7
+ /** Output format. */
8
+ ExportAssetsRequest.Format = {
9
+ Csv: "csv",
10
+ Xlsx: "xlsx",
11
+ Json: "json",
12
+ };
13
+ let Fields;
14
+ (function (Fields) {
15
+ /** An exportable asset column key (mirrors the list columns). */
16
+ Fields.Item = {
17
+ Id: "id",
18
+ Name: "name",
19
+ Kind: "kind",
20
+ SubKind: "sub_kind",
21
+ AutonomyLevel: "autonomy_level",
22
+ Status: "status",
23
+ Make: "make",
24
+ Model: "model",
25
+ Year: "year",
26
+ PlateNumber: "plate_number",
27
+ Vin: "vin",
28
+ CreatedAt: "created_at",
29
+ };
30
+ })(Fields = ExportAssetsRequest.Fields || (ExportAssetsRequest.Fields = {}));
31
+ })(ExportAssetsRequest || (exports.ExportAssetsRequest = ExportAssetsRequest = {}));
@@ -1,12 +1,12 @@
1
1
  /**
2
- * A short-lived URL granting read access to the file's bytes. Fetch it promptly — request a fresh grant after expiry.
2
+ * A short-lived URL granting read access to a file's bytes. Fetch it promptly — request a fresh grant after expiry.
3
3
  */
4
4
  export interface FileDownloadUrl {
5
5
  /** The URL to GET the bytes from. */
6
- url?: string | undefined;
6
+ url: string;
7
7
  /** When the URL stops working. */
8
- expires_at?: string | undefined;
9
- object?: FileDownloadUrl.Object_ | undefined;
8
+ expires_at: string;
9
+ object: FileDownloadUrl.Object_;
10
10
  }
11
11
  export declare namespace FileDownloadUrl {
12
12
  const Object_: {
@@ -4,24 +4,24 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface FileUploadSession {
6
6
  /** Session id — the handle for resume / complete / cancel. */
7
- id?: string | undefined;
7
+ id: string;
8
8
  /** Pre-reserved id of the file this upload will become. */
9
- file_id?: string | undefined;
9
+ file_id: string;
10
10
  /** The kind declared at initiation. */
11
- kind?: FileUploadSession.Kind | undefined;
11
+ kind: FileUploadSession.Kind;
12
12
  /** Session lifecycle. */
13
- status?: FileUploadSession.Status | undefined;
13
+ status: FileUploadSession.Status;
14
14
  /** Nominal part size; every part except the last must be exactly this size. */
15
- part_size_bytes?: number | undefined;
15
+ part_size_bytes: number;
16
16
  /** Total parts in the layout. */
17
- part_count?: number | undefined;
17
+ part_count: number;
18
18
  /** Bytes confirmed so far (client-reported, re-verified at completion). */
19
- bytes_uploaded?: number | undefined;
20
- completed_part_numbers?: number[] | undefined;
21
- parts?: NizamOperatorRuntime.FileUploadPart[] | undefined;
19
+ bytes_uploaded: number;
20
+ completed_part_numbers: number[];
21
+ parts: NizamOperatorRuntime.FileUploadPart[];
22
22
  /** Deadline: the session expires and is swept if not completed by then. */
23
- expires_at?: string | undefined;
24
- object?: FileUploadSession.Object_ | undefined;
23
+ expires_at: string;
24
+ object: FileUploadSession.Object_;
25
25
  }
26
26
  export declare namespace FileUploadSession {
27
27
  /** The kind declared at initiation. */
@@ -33,6 +33,7 @@ export declare namespace FileUploadSession {
33
33
  readonly ImportReport: "import_report";
34
34
  readonly SignedDocument: "signed_document";
35
35
  readonly ProductImage: "product_image";
36
+ readonly DataExport: "data_export";
36
37
  };
37
38
  type Kind = (typeof Kind)[keyof typeof Kind];
38
39
  /** Session lifecycle. */
@@ -13,6 +13,7 @@ var FileUploadSession;
13
13
  ImportReport: "import_report",
14
14
  SignedDocument: "signed_document",
15
15
  ProductImage: "product_image",
16
+ DataExport: "data_export",
16
17
  };
17
18
  /** Session lifecycle. */
18
19
  FileUploadSession.Status = {
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export interface File_ {
5
5
  /** Stable file id (pre-reserved at upload initiation). */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Owning organization. */
8
- organization_id?: string | undefined;
8
+ organization_id: string;
9
9
  /** Uploading user. Null for system-generated artifacts. */
10
10
  uploader_id?: string | undefined;
11
11
  /** What the bytes are for the platform — fixes the size/type/visibility/scan/retention policy applied to this file. */
12
- kind?: File_.Kind | undefined;
12
+ kind: File_.Kind;
13
13
  /** Type of the business entity this file documents. */
14
14
  subject_type?: string | undefined;
15
15
  /** Id of the business entity this file documents. */
@@ -17,21 +17,21 @@ export interface File_ {
17
17
  /** For derived files (thumbnails): the original this one was rendered from. */
18
18
  parent_file_id?: string | undefined;
19
19
  /** Client-supplied filename, served back via Content-Disposition on download. */
20
- original_filename?: string | undefined;
20
+ original_filename: string;
21
21
  /** MIME type declared by the uploader at initiation. */
22
- declared_content_type?: string | undefined;
22
+ declared_content_type: string;
23
23
  /** MIME type detected server-side from the bytes (Tika). Null when detection was inconclusive. */
24
24
  sniffed_content_type?: string | undefined;
25
25
  /** Object size in bytes, storage-confirmed at completion. */
26
- size_bytes?: number | undefined;
26
+ size_bytes: number;
27
27
  /** SHA-256 of the content, 64 lowercase hex characters. */
28
- checksum_sha256?: string | undefined;
28
+ checksum_sha256: string;
29
29
  /** Lifecycle: `active` (serving), `quarantined` (malware-positive), `deleted` (bytes purged, row retained under regulatory hold). */
30
- status?: File_.Status | undefined;
30
+ status: File_.Status;
31
31
  /** Access posture of the bytes, fixed by the kind's policy. */
32
- visibility?: File_.Visibility | undefined;
32
+ visibility: File_.Visibility;
33
33
  /** Malware-scan verdict. Bytes are downloadable only on `clean` or `skipped`. */
34
- virus_scan_status?: File_.VirusScanStatus | undefined;
34
+ virus_scan_status: File_.VirusScanStatus;
35
35
  /** When the scan verdict was produced. */
36
36
  virus_scanned_at?: string | undefined;
37
37
  /** When this file becomes eligible for the lifecycle sweep (TTL kinds). */
@@ -39,10 +39,10 @@ export interface File_ {
39
39
  /** Regulatory hold: the file cannot be deleted before this instant. */
40
40
  retention_until?: string | undefined;
41
41
  /** Upload completion time. */
42
- created_at?: string | undefined;
42
+ created_at: string;
43
43
  /** Last lifecycle/scan change. */
44
- updated_at?: string | undefined;
45
- object?: File_.Object_ | undefined;
44
+ updated_at: string;
45
+ object: File_.Object_;
46
46
  }
47
47
  export declare namespace File_ {
48
48
  /** What the bytes are for the platform — fixes the size/type/visibility/scan/retention policy applied to this file. */
@@ -54,6 +54,7 @@ export declare namespace File_ {
54
54
  readonly ImportReport: "import_report";
55
55
  readonly SignedDocument: "signed_document";
56
56
  readonly ProductImage: "product_image";
57
+ readonly DataExport: "data_export";
57
58
  };
58
59
  type Kind = (typeof Kind)[keyof typeof Kind];
59
60
  /** Lifecycle: `active` (serving), `quarantined` (malware-positive), `deleted` (bytes purged, row retained under regulatory hold). */
@@ -13,6 +13,7 @@ var File_;
13
13
  ImportReport: "import_report",
14
14
  SignedDocument: "signed_document",
15
15
  ProductImage: "product_image",
16
+ DataExport: "data_export",
16
17
  };
17
18
  /** Lifecycle: `active` (serving), `quarantined` (malware-positive), `deleted` (bytes purged, row retained under regulatory hold). */
18
19
  File_.Status = {
@@ -3,12 +3,12 @@
3
3
  */
4
4
  export interface HeatmapCell {
5
5
  /** H3 cell index, lowercase hex (string — H3 indexes exceed the JS safe-integer range). */
6
- h3_cell?: string | undefined;
6
+ h3_cell: string;
7
7
  /** H3 resolution of the cell (9 or 11). */
8
- h3_res?: number | undefined;
8
+ h3_res: number;
9
9
  /** Number of positions recorded in the cell over the window. */
10
- count?: number | undefined;
11
- object?: HeatmapCell.Object_ | undefined;
10
+ count: number;
11
+ object: HeatmapCell.Object_;
12
12
  }
13
13
  export declare namespace HeatmapCell {
14
14
  const Object_: {
@@ -3,16 +3,16 @@
3
3
  */
4
4
  export interface ImportError {
5
5
  /** The 1-based data-row index that failed (header excluded). */
6
- row_number?: number | undefined;
6
+ row_number: number;
7
7
  /** The offending column header, or null for a whole-row error. */
8
8
  field?: string | undefined;
9
9
  /** Stable machine-readable error code. */
10
- error_code?: string | undefined;
10
+ error_code: string;
11
11
  /** Human-readable explanation of the error. */
12
- error_message?: string | undefined;
12
+ error_message: string;
13
13
  /** The raw cell value that failed (truncated), when relevant. */
14
14
  raw_value?: string | undefined;
15
- object?: ImportError.Object_ | undefined;
15
+ object: ImportError.Object_;
16
16
  }
17
17
  export declare namespace ImportError {
18
18
  const Object_: {
@@ -4,11 +4,11 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface ImportSubmission {
6
6
  /** The created import job — poll/cancel it via /v1/jobs/{id}. */
7
- job_id?: string | undefined;
7
+ job_id: string;
8
8
  /** The id the uploaded source file will carry. */
9
- file_id?: string | undefined;
10
- upload?: NizamOperatorRuntime.FileUploadSession | undefined;
11
- object?: ImportSubmission.Object_ | undefined;
9
+ file_id: string;
10
+ upload: NizamOperatorRuntime.FileUploadSession;
11
+ object: ImportSubmission.Object_;
12
12
  }
13
13
  export declare namespace ImportSubmission {
14
14
  const Object_: {
@@ -3,21 +3,21 @@
3
3
  */
4
4
  export interface Invite {
5
5
  /** Stable UUID of this invite. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Organization the invite confers membership in. */
8
- organization_id?: string | undefined;
8
+ organization_id: string;
9
9
  /** Recipient email — canonical lowercase form. */
10
- invited_email?: string | undefined;
10
+ invited_email: string;
11
11
  /** Role the recipient will hold after acceptance. */
12
- role?: Invite.Role | undefined;
12
+ role: Invite.Role;
13
13
  /** Lifecycle status. */
14
- status?: Invite.Status | undefined;
14
+ status: Invite.Status;
15
15
  /** When the invite expires. Recipients must accept before then. */
16
- expires_at?: string | undefined;
16
+ expires_at: string;
17
17
  /** Bearer secret used to redeem the invite. Returned only on POST /v1/invites; subsequent lookups omit it. */
18
- token?: string | undefined;
18
+ token: string;
19
19
  /** Object type discriminator. */
20
- object?: Invite.Object_ | undefined;
20
+ object: Invite.Object_;
21
21
  }
22
22
  export declare namespace Invite {
23
23
  /** Role the recipient will hold after acceptance. */
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export interface Job {
5
5
  /** Stable job id. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Owning organization. */
8
- organization_id?: string | undefined;
8
+ organization_id: string;
9
9
  /** What kind of work this job performs; the kind also fixes the executing engine. */
10
- kind?: Job.Kind | undefined;
10
+ kind: Job.Kind;
11
11
  /** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
12
- status?: Job.Status | undefined;
12
+ status: Job.Status;
13
13
  /** User who submitted the job. Null only if that user was since deleted. */
14
14
  requested_by_id?: string | undefined;
15
15
  /** File the job consumes (kind-specific), e.g. an uploaded import file. References a file id; download via the file's own endpoint. */
@@ -19,9 +19,9 @@ export interface Job {
19
19
  /** Total work items, once the engine has sized the work. Null while unknown. */
20
20
  rows_total?: number | undefined;
21
21
  /** Work items processed so far (monotonic). */
22
- rows_processed?: number | undefined;
22
+ rows_processed: number;
23
23
  /** Work items that failed so far (monotonic). */
24
- rows_failed?: number | undefined;
24
+ rows_failed: number;
25
25
  /** Operator-facing failure reason. Set only when status is `failed`. */
26
26
  error_summary?: string | undefined;
27
27
  /** Temporal workflow id (Temporal-engine kinds only) — cross-reference into the Temporal UI. */
@@ -29,18 +29,18 @@ export interface Job {
29
29
  /** Temporal run id of the latest attempt (changes across workflow retries). */
30
30
  run_id?: string | undefined;
31
31
  /** Engine execution attempts spent so far. */
32
- attempt_count?: number | undefined;
32
+ attempt_count: number;
33
33
  /** Retry budget: a failed job with attempt_count >= max_attempts is dead-lettered. */
34
- max_attempts?: number | undefined;
34
+ max_attempts: number;
35
35
  /** When the first engine attempt started. Null while pending (and for jobs cancelled before starting). */
36
36
  started_at?: string | undefined;
37
37
  /** When the job reached a terminal status. */
38
38
  finished_at?: string | undefined;
39
39
  /** Submission time. */
40
- created_at?: string | undefined;
40
+ created_at: string;
41
41
  /** Last state/progress change. */
42
- updated_at?: string | undefined;
43
- object?: Job.Object_ | undefined;
42
+ updated_at: string;
43
+ object: Job.Object_;
44
44
  }
45
45
  export declare namespace Job {
46
46
  /** What kind of work this job performs; the kind also fixes the executing engine. */
@@ -3,8 +3,8 @@
3
3
  */
4
4
  export interface JobSubmission {
5
5
  /** The created job — poll/cancel it via /v1/jobs/{id}. */
6
- job_id?: string | undefined;
7
- object?: JobSubmission.Object_ | undefined;
6
+ job_id: string;
7
+ object: JobSubmission.Object_;
8
8
  }
9
9
  export declare namespace JobSubmission {
10
10
  const Object_: {
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export interface Language {
5
5
  /** ISO 639-1 two-letter code. */
6
- code?: string | undefined;
6
+ code: string;
7
7
  /** Display name in the Accept-Language locale. */
8
- name?: string | undefined;
8
+ name: string;
9
9
  /** Name in the language itself, useful in language pickers. */
10
- native_name?: string | undefined;
10
+ native_name: string;
11
11
  /** Object type discriminator. */
12
- object?: Language.Object_ | undefined;
12
+ object: Language.Object_;
13
13
  }
14
14
  export declare namespace Language {
15
15
  /** Object type discriminator. */
@@ -3,11 +3,11 @@ import type * as NizamOperatorRuntime from "../index.js";
3
3
  * An organization the current user belongs to, with their role inside it.
4
4
  */
5
5
  export interface Membership {
6
- organization?: NizamOperatorRuntime.Organization | undefined;
6
+ organization: NizamOperatorRuntime.Organization;
7
7
  /** The user's role in this organization. */
8
- role?: Membership.Role | undefined;
8
+ role: Membership.Role;
9
9
  /** Object type discriminator. */
10
- object?: Membership.Object_ | undefined;
10
+ object: Membership.Object_;
11
11
  }
12
12
  export declare namespace Membership {
13
13
  /** The user's role in this organization. */
@@ -3,10 +3,10 @@
3
3
  */
4
4
  export interface MqttToken {
5
5
  /** JWT to present as the MQTT CONNECT password. The CONNECT username must be the operator id embedded in the token's operator_id claim. */
6
- token?: string | undefined;
6
+ token: string;
7
7
  /** Seconds until the token expires. Re-mint before this elapses to stay connected. */
8
- expires_in?: number | undefined;
8
+ expires_in: number;
9
9
  /** The only topic this credential may publish to: nizam/{organizationId}/operators/{operatorId}/location. */
10
- topic?: string | undefined;
11
- object?: string | undefined;
10
+ topic: string;
11
+ object: string;
12
12
  }
@@ -3,27 +3,27 @@
3
3
  */
4
4
  export interface Notification {
5
5
  /** Object type discriminator. */
6
- object?: Notification.Object_ | undefined;
6
+ object: Notification.Object_;
7
7
  /** Notification id. */
8
- id?: string | undefined;
8
+ id: string;
9
9
  /** Notification kind (stable wire key). */
10
- kind?: string | undefined;
10
+ kind: string;
11
11
  /** Opt-out / grouping category. */
12
- category?: Notification.Category | undefined;
12
+ category: Notification.Category;
13
13
  /** Delivery priority. */
14
- priority?: Notification.Priority | undefined;
14
+ priority: Notification.Priority;
15
15
  /** Kind-specific render payload. */
16
- data?: Record<string, Record<string, unknown>> | undefined;
16
+ data: Record<string, Record<string, unknown>>;
17
17
  /** Whether the recipient has read it. */
18
- read?: boolean | undefined;
18
+ read: boolean;
19
19
  /** When it was read (RFC 3339); null while unread. */
20
20
  read_at?: string | undefined;
21
21
  /** Whether the recipient has archived ("Done") it. */
22
- archived?: boolean | undefined;
22
+ archived: boolean;
23
23
  /** When it was archived (RFC 3339); null while in the active inbox. */
24
24
  archived_at?: string | undefined;
25
25
  /** When it was raised (RFC 3339). */
26
- created_at?: string | undefined;
26
+ created_at: string;
27
27
  }
28
28
  export declare namespace Notification {
29
29
  /** Object type discriminator. */
@@ -4,15 +4,15 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface NotificationCounts {
6
6
  /** Active (non-archived) notifications. */
7
- total?: number | undefined;
7
+ total: number;
8
8
  /** Active unread notifications. */
9
- unread?: number | undefined;
9
+ unread: number;
10
10
  /** Archived ("Done") notifications. */
11
- archived?: number | undefined;
11
+ archived: number;
12
12
  /** Per-category active counts; categories with no active row are omitted. */
13
- categories?: NizamOperatorRuntime.NotificationCategoryCount[] | undefined;
13
+ categories: NizamOperatorRuntime.NotificationCategoryCount[];
14
14
  /** Object type discriminator. */
15
- object?: NotificationCounts.Object_ | undefined;
15
+ object: NotificationCounts.Object_;
16
16
  }
17
17
  export declare namespace NotificationCounts {
18
18
  /** Object type discriminator. */
@@ -3,19 +3,19 @@
3
3
  */
4
4
  export interface NotificationDeadLetter {
5
5
  /** Delivery attempt id. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** The notification this attempt belongs to. */
8
- notification_id?: string | undefined;
8
+ notification_id: string;
9
9
  /** Owning organization. */
10
- organization_id?: string | undefined;
10
+ organization_id: string;
11
11
  /** Channel. */
12
- channel?: string | undefined;
12
+ channel: string;
13
13
  /** Provider/gateway. */
14
- provider?: string | undefined;
14
+ provider: string;
15
15
  /** Resolved recipient endpoint (device id, email, user id). */
16
- recipient_address?: string | undefined;
16
+ recipient_address: string;
17
17
  /** Number of send attempts made. */
18
- attempt_count?: number | undefined;
18
+ attempt_count: number;
19
19
  /** Machine error code from the last attempt. */
20
20
  error_code?: string | undefined;
21
21
  /** Human-readable error from the last attempt. */
@@ -23,9 +23,9 @@ export interface NotificationDeadLetter {
23
23
  /** When it dead-lettered (RFC 3339). */
24
24
  failed_at?: string | undefined;
25
25
  /** When the attempt row was created (RFC 3339). */
26
- created_at?: string | undefined;
26
+ created_at: string;
27
27
  /** Object type discriminator. */
28
- object?: NotificationDeadLetter.Object_ | undefined;
28
+ object: NotificationDeadLetter.Object_;
29
29
  }
30
30
  export declare namespace NotificationDeadLetter {
31
31
  /** Object type discriminator. */
@@ -4,9 +4,9 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface NotificationPreferences {
6
6
  /** The user's explicit per-kind × channel overrides. */
7
- preferences?: NizamOperatorRuntime.NotificationPreference[] | undefined;
7
+ preferences: NizamOperatorRuntime.NotificationPreference[];
8
8
  /** Object type discriminator. */
9
- object?: NotificationPreferences.Object_ | undefined;
9
+ object: NotificationPreferences.Object_;
10
10
  }
11
11
  export declare namespace NotificationPreferences {
12
12
  /** Object type discriminator. */
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface NotificationUnreadCount {
5
5
  /** Number of unread notifications. */
6
- count?: number | undefined;
6
+ count: number;
7
7
  /** Object type discriminator. */
8
- object?: NotificationUnreadCount.Object_ | undefined;
8
+ object: NotificationUnreadCount.Object_;
9
9
  }
10
10
  export declare namespace NotificationUnreadCount {
11
11
  /** Object type discriminator. */
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface NotificationsArchived {
5
5
  /** Number of notifications archived. */
6
- archived?: number | undefined;
6
+ archived: number;
7
7
  /** Object type discriminator. */
8
- object?: NotificationsArchived.Object_ | undefined;
8
+ object: NotificationsArchived.Object_;
9
9
  }
10
10
  export declare namespace NotificationsArchived {
11
11
  /** Object type discriminator. */
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface NotificationsMarkedRead {
5
5
  /** Number of notifications flipped to read. */
6
- marked?: number | undefined;
6
+ marked: number;
7
7
  /** Object type discriminator. */
8
- object?: NotificationsMarkedRead.Object_ | undefined;
8
+ object: NotificationsMarkedRead.Object_;
9
9
  }
10
10
  export declare namespace NotificationsMarkedRead {
11
11
  /** Object type discriminator. */
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export interface Operator {
5
5
  /** Stable UUID. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Kind discriminator. */
8
- kind?: Operator.Kind | undefined;
8
+ kind: Operator.Kind;
9
9
  /** Lifecycle status. */
10
- status?: Operator.Status | undefined;
10
+ status: Operator.Status;
11
11
  /** Display name. */
12
12
  display_name?: string | undefined;
13
13
  /** Linked user id (humans with a Nizam login). Null for software agents. */
@@ -17,7 +17,7 @@ export interface Operator {
17
17
  /** Owning organization id. */
18
18
  organization_id?: string | undefined;
19
19
  /** Object type discriminator. */
20
- object?: Operator.Object_ | undefined;
20
+ object: Operator.Object_;
21
21
  }
22
22
  export declare namespace Operator {
23
23
  /** Kind discriminator. */
@@ -0,0 +1,64 @@
1
+ /**
2
+ * An asset as seen by an operator assigned to operate it — the operational identity fields, without the dashboard's lifecycle-management hints.
3
+ */
4
+ export interface OperatorAsset {
5
+ /** Stable UUID. */
6
+ id: string;
7
+ /** Top-level kind. */
8
+ kind: OperatorAsset.Kind;
9
+ /** Sub-kind within the kind (free-form). */
10
+ sub_kind?: string | undefined;
11
+ /** SAE J3016 autonomy level 0..5. */
12
+ autonomy_level?: number | undefined;
13
+ /** Lifecycle status. */
14
+ status: OperatorAsset.Status;
15
+ /** Display name. */
16
+ name?: string | undefined;
17
+ /** Vehicle Identification Number. */
18
+ vin?: string | undefined;
19
+ /** License plate. */
20
+ plate_number?: string | undefined;
21
+ /** Manufacturer. */
22
+ make?: string | undefined;
23
+ /** Model designation. */
24
+ model?: string | undefined;
25
+ /** Model year. */
26
+ year?: number | undefined;
27
+ /** Owning organization id. */
28
+ organization_id?: string | undefined;
29
+ /** Current primary operator (active assignment, role=primary). */
30
+ current_primary_operator_id?: string | undefined;
31
+ /** Object type discriminator. */
32
+ object: OperatorAsset.Object_;
33
+ }
34
+ export declare namespace OperatorAsset {
35
+ /** Top-level kind. */
36
+ const Kind: {
37
+ readonly GroundVehicle: "ground_vehicle";
38
+ readonly AerialVehicle: "aerial_vehicle";
39
+ readonly MarineVehicle: "marine_vehicle";
40
+ readonly Robot: "robot";
41
+ readonly Agv: "agv";
42
+ readonly Trailer: "trailer";
43
+ readonly Container: "container";
44
+ readonly Pallet: "pallet";
45
+ readonly Equipment: "equipment";
46
+ };
47
+ type Kind = (typeof Kind)[keyof typeof Kind];
48
+ /** Lifecycle status. */
49
+ const Status: {
50
+ readonly Active: "active";
51
+ readonly Maintenance: "maintenance";
52
+ readonly OutOfService: "out_of_service";
53
+ readonly Retired: "retired";
54
+ readonly Sold: "sold";
55
+ readonly Inactive: "inactive";
56
+ readonly Lost: "lost";
57
+ };
58
+ type Status = (typeof Status)[keyof typeof Status];
59
+ /** Object type discriminator. */
60
+ const Object_: {
61
+ readonly Asset: "asset";
62
+ };
63
+ type Object_ = (typeof Object_)[keyof typeof Object_];
64
+ }