@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,33 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OperatorAsset = void 0;
5
+ var OperatorAsset;
6
+ (function (OperatorAsset) {
7
+ /** Top-level kind. */
8
+ OperatorAsset.Kind = {
9
+ GroundVehicle: "ground_vehicle",
10
+ AerialVehicle: "aerial_vehicle",
11
+ MarineVehicle: "marine_vehicle",
12
+ Robot: "robot",
13
+ Agv: "agv",
14
+ Trailer: "trailer",
15
+ Container: "container",
16
+ Pallet: "pallet",
17
+ Equipment: "equipment",
18
+ };
19
+ /** Lifecycle status. */
20
+ OperatorAsset.Status = {
21
+ Active: "active",
22
+ Maintenance: "maintenance",
23
+ OutOfService: "out_of_service",
24
+ Retired: "retired",
25
+ Sold: "sold",
26
+ Inactive: "inactive",
27
+ Lost: "lost",
28
+ };
29
+ /** Object type discriminator. */
30
+ OperatorAsset.Object_ = {
31
+ Asset: "asset",
32
+ };
33
+ })(OperatorAsset || (exports.OperatorAsset = OperatorAsset = {}));
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export interface OperatorPosition {
5
5
  /** Operator id. */
6
- operator_id?: string | undefined;
6
+ operator_id: string;
7
7
  /** Latitude (WGS84). */
8
- lat?: number | undefined;
8
+ lat: number;
9
9
  /** Longitude (WGS84). */
10
- lng?: number | undefined;
10
+ lng: number;
11
11
  /** Direction of travel, compass degrees [0,360). */
12
12
  heading?: number | undefined;
13
13
  /** Course over ground, compass degrees [0,360). */
@@ -17,8 +17,8 @@ export interface OperatorPosition {
17
17
  /** Altitude above the WGS84 ellipsoid, metres. */
18
18
  altitude?: number | undefined;
19
19
  /** Device-time of the fix. */
20
- captured_at?: string | undefined;
21
- object?: OperatorPosition.Object_ | undefined;
20
+ captured_at: string;
21
+ object: OperatorPosition.Object_;
22
22
  }
23
23
  export declare namespace OperatorPosition {
24
24
  const Object_: {
@@ -3,23 +3,23 @@
3
3
  */
4
4
  export interface Organization {
5
5
  /** Stable UUID owned by Nizam. Pin this value in URLs and external integrations. The matching Keycloak Organization is tracked server-side via a separate keycloak_id bridge and is not exposed over the SDK; do not assume the two ids are equal. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Display name. */
8
- name?: string | undefined;
8
+ name: string;
9
9
  /** URL-safe identifier — used in deep links and admin tooling. */
10
- slug?: string | undefined;
10
+ slug: string;
11
11
  /** Lifecycle status. */
12
- status?: Organization.Status | undefined;
12
+ status: Organization.Status;
13
13
  /** User id of the human who originally created this organization. Immutable for the row's lifetime — does NOT change when ownership is transferred. */
14
- founder_user_id?: string | undefined;
14
+ founder_user_id: string;
15
15
  /** User id of the current owner. Receives all admin notifications by default. Mutable; reassigned via ownership transfer. May be null transiently if the owner user has been hard-deleted. */
16
16
  owner_user_id?: string | undefined;
17
17
  /** When this organization was created. */
18
- created_at?: string | undefined;
18
+ created_at: string;
19
19
  /** Populated ONLY on the POST /v1/organizations create response — the active organization id Nizam pinned for the founder as part of the same transaction that created the org. Null on every other endpoint (GET, list, membership embeds). Per issue #67 phase 1, the SPA writes its active-org cookie from this field instead of issuing a follow-up PATCH /v1/me/active-organization. */
20
20
  active_organization_id?: string | undefined;
21
21
  /** Object type discriminator. */
22
- object?: Organization.Object_ | undefined;
22
+ object: Organization.Object_;
23
23
  }
24
24
  export declare namespace Organization {
25
25
  /** Lifecycle status. */
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export interface Position {
5
5
  /** Position id. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Operator the fix belongs to. */
8
- operator_id?: string | undefined;
8
+ operator_id: string;
9
9
  /** Latitude (WGS84). */
10
- lat?: number | undefined;
10
+ lat: number;
11
11
  /** Longitude (WGS84). */
12
- lng?: number | undefined;
12
+ lng: number;
13
13
  /** Direction of travel, compass degrees [0,360). */
14
14
  heading?: number | undefined;
15
15
  /** Course over ground toward the destination, compass degrees [0,360). */
@@ -19,8 +19,8 @@ export interface Position {
19
19
  /** Altitude above the WGS84 ellipsoid, metres. */
20
20
  altitude?: number | undefined;
21
21
  /** Device-time the fix was captured (authoritative). */
22
- recorded_at?: string | undefined;
23
- object?: Position.Object_ | undefined;
22
+ recorded_at: string;
23
+ object: Position.Object_;
24
24
  }
25
25
  export declare namespace Position {
26
26
  const Object_: {
@@ -16,6 +16,6 @@ export interface ProblemDetail {
16
16
  code: string;
17
17
  /** OpenTelemetry trace id from the request — match to logs for support. */
18
18
  trace_id?: string | undefined;
19
- /** Per-field validation errors. Populated only when status=422. */
19
+ /** Per-field errors keyed to the offending input. Present on 422 bean-validation failures AND on field-level 409 conflicts (e.g. a duplicate unique value such as a VIN) — bind each entry to its `field`; do not gate handling on `status == 422`. */
20
20
  errors?: NizamOperatorRuntime.ApiFieldError[] | undefined;
21
21
  }
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export interface RealtimeTicket {
5
5
  /** The signed ticket. Send it as `Authorization: Bearer <ticket>` on the STOMP CONNECT frame to /ws. Opaque to the client; do not parse or store it. */
6
- ticket?: string | undefined;
6
+ ticket: string;
7
7
  /** When the ticket expires (ISO-8601). Connect promptly; mint a fresh ticket for each new connection attempt. */
8
- expires_at?: string | undefined;
8
+ expires_at: string;
9
9
  /** Object type discriminator. */
10
- object?: RealtimeTicket.Object_ | undefined;
10
+ object: RealtimeTicket.Object_;
11
11
  }
12
12
  export declare namespace RealtimeTicket {
13
13
  /** Object type discriminator. */
@@ -4,13 +4,13 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface ReconcileResponse {
6
6
  /** Nizam org ids whose stored keycloak_id no longer resolves on the KC side. */
7
- nizam_has_kc_missing?: string[] | undefined;
7
+ nizam_has_kc_missing: string[];
8
8
  /** KC org ids with no matching Nizam organizations.keycloak_id row. */
9
- kc_has_nizam_missing?: string[] | undefined;
9
+ kc_has_nizam_missing: string[];
10
10
  /** Per-org membership-set divergences (KC vs Nizam). */
11
- membership_divergent?: NizamOperatorRuntime.MembershipDriftResponse[] | undefined;
11
+ membership_divergent: NizamOperatorRuntime.MembershipDriftResponse[];
12
12
  /** Object type discriminator. */
13
- object?: ReconcileResponse.Object_ | undefined;
13
+ object: ReconcileResponse.Object_;
14
14
  }
15
15
  export declare namespace ReconcileResponse {
16
16
  /** Object type discriminator. */
@@ -4,11 +4,11 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface TaskAttemptPhoto {
6
6
  /** Photo record id. */
7
- id?: string | undefined;
7
+ id: string;
8
8
  /** Central file id — request bytes via the files download-url endpoint. */
9
- file_id?: string | undefined;
9
+ file_id: string;
10
10
  /** Display order within the attempt. */
11
- sequence?: number | undefined;
11
+ sequence: number;
12
12
  /** Photo category, when categorised. */
13
13
  photo_type?: string | undefined;
14
14
  /** Operator-entered caption. */
@@ -16,11 +16,11 @@ export interface TaskAttemptPhoto {
16
16
  /** Device capture time (EXIF), when reported. */
17
17
  taken_at?: string | undefined;
18
18
  /** May the bytes be served right now (scan verdict + lifecycle)? */
19
- downloadable?: boolean | undefined;
20
- thumbnails?: NizamOperatorRuntime.TaskAttemptPhotoThumbnail[] | undefined;
19
+ downloadable: boolean;
20
+ thumbnails: NizamOperatorRuntime.TaskAttemptPhotoThumbnail[];
21
21
  /** When the photo row was recorded. */
22
- created_at?: string | undefined;
23
- object?: TaskAttemptPhoto.Object_ | undefined;
22
+ created_at: string;
23
+ object: TaskAttemptPhoto.Object_;
24
24
  }
25
25
  export declare namespace TaskAttemptPhoto {
26
26
  const Object_: {
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export interface Timezone {
5
5
  /** IANA timezone id (e.g. `America/New_York`). */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Long display name in the Accept-Language locale. */
8
- display_name?: string | undefined;
8
+ display_name: string;
9
9
  /** Current offset from UTC in minutes (DST-aware). */
10
- gmt_offset_minutes?: number | undefined;
10
+ gmt_offset_minutes: number;
11
11
  /** Object type discriminator. */
12
- object?: Timezone.Object_ | undefined;
12
+ object: Timezone.Object_;
13
13
  }
14
14
  export declare namespace Timezone {
15
15
  /** Object type discriminator. */
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Update mutable fields on an asset (set-only partial update).
3
+ */
4
+ export interface UpdateAssetRequest {
5
+ /** New display name. Omit to leave unchanged. */
6
+ name?: string | undefined;
7
+ /** New sub-kind. Omit to leave unchanged. */
8
+ sub_kind?: string | undefined;
9
+ /** New SAE J3016 autonomy level 0..5. Omit to leave unchanged. */
10
+ autonomy_level?: number | undefined;
11
+ /** New VIN — 17 chars of A-Z (no I, O, Q) and 0-9, uppercase. Unique per organization. Omit to leave unchanged. */
12
+ vin?: string | undefined;
13
+ /** New license plate. Omit to leave unchanged. */
14
+ plate_number?: string | undefined;
15
+ /** New manufacturer. Omit to leave unchanged. */
16
+ make?: string | undefined;
17
+ /** New model designation. Omit to leave unchanged. */
18
+ model?: string | undefined;
19
+ /** New model year — 1900 or later, no later than next year. Omit to leave unchanged. */
20
+ year?: number | undefined;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,15 +4,15 @@ import type * as NizamOperatorRuntime from "../index.js";
4
4
  */
5
5
  export interface UploadInitiation {
6
6
  /** Upload session id — the handle for resume/complete/cancel. */
7
- upload_session_id?: string | undefined;
7
+ upload_session_id: string;
8
8
  /** Pre-reserved file id — the id the completed file WILL carry. */
9
- file_id?: string | undefined;
9
+ file_id: string;
10
10
  /** Fixed size of every part except the last. */
11
- part_size_bytes?: number | undefined;
11
+ part_size_bytes: number;
12
12
  /** Session deadline; the sweep aborts the upload after this. */
13
- expires_at?: string | undefined;
14
- parts?: NizamOperatorRuntime.UploadInitiationPart[] | undefined;
15
- object?: UploadInitiation.Object_ | undefined;
13
+ expires_at: string;
14
+ parts: NizamOperatorRuntime.UploadInitiationPart[];
15
+ object: UploadInitiation.Object_;
16
16
  }
17
17
  export declare namespace UploadInitiation {
18
18
  const Object_: {
@@ -3,12 +3,14 @@
3
3
  */
4
4
  export interface User {
5
5
  /** Stable UUID. Equal to the Keycloak `sub` claim. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Which portal issued the bearer token used for this request. */
8
- portal?: User.Portal | undefined;
8
+ portal: User.Portal;
9
9
  /** Keycloak Organization id the user belongs to. Null for cross-tenant platform admins. */
10
10
  organization_id?: string | undefined;
11
- roles?: string[] | undefined;
11
+ roles: string[];
12
+ /** The caller's effective permission ids for the active organization (epic #317): the union of catalog grants for every role they hold. Gate actions on these (`can("asset:create")`) rather than role strings, so frontend and backend reference the one catalog and cannot drift. Coarse and instance-independent; per-instance authority ('may delete THIS asset') is enforced server-side at the mutation, never precomputed here. */
13
+ permissions: User.Permissions.Item[];
12
14
  /** Email shadowed from Keycloak. Null until the user completes a profile. */
13
15
  email?: string | undefined;
14
16
  /** Display name shadowed from Keycloak. */
@@ -16,11 +18,11 @@ export interface User {
16
18
  /** Timestamp of this login. Null only on the very first call before provisioning completes. */
17
19
  last_login_at?: string | undefined;
18
20
  /** Total logins observed by this service. */
19
- login_count?: number | undefined;
21
+ login_count: number;
20
22
  /** File id of the current profile picture (epic #151 / #166); null until one is uploaded. Request bytes via the files download-url endpoint, or let `GET /users/{id}/profile-picture` pick the nearest thumbnail. */
21
23
  profile_picture_file_id?: string | undefined;
22
24
  /** Object type discriminator. */
23
- object?: User.Object_ | undefined;
25
+ object: User.Object_;
24
26
  }
25
27
  export declare namespace User {
26
28
  /** Which portal issued the bearer token used for this request. */
@@ -34,6 +36,26 @@ export declare namespace User {
34
36
  readonly Admin: "admin";
35
37
  };
36
38
  type Portal = (typeof Portal)[keyof typeof Portal];
39
+ type Permissions = Permissions.Item[];
40
+ namespace Permissions {
41
+ const Item: {
42
+ readonly AssetCreate: "asset:create";
43
+ readonly AssetDelete: "asset:delete";
44
+ readonly AssetDispose: "asset:dispose";
45
+ readonly AssetExport: "asset:export";
46
+ readonly AssetImport: "asset:import";
47
+ readonly AssetRead: "asset:read";
48
+ readonly AssetTransition: "asset:transition";
49
+ readonly AssetUpdate: "asset:update";
50
+ readonly KeycloakProjectionAdminister: "keycloak-projection:administer";
51
+ readonly NotificationDeliveryRead: "notification-delivery:read";
52
+ readonly OrgMaintenanceAdminister: "org-maintenance:administer";
53
+ readonly ServiceAccountAdminister: "service-account:administer";
54
+ readonly UserAdminister: "user:administer";
55
+ readonly UserInvite: "user:invite";
56
+ };
57
+ type Item = (typeof Item)[keyof typeof Item];
58
+ }
37
59
  /** Object type discriminator. */
38
60
  const Object_: {
39
61
  readonly User: "user";
@@ -14,6 +14,25 @@ var User;
14
14
  PlatformStaff: "platform_staff",
15
15
  Admin: "admin",
16
16
  };
17
+ let Permissions;
18
+ (function (Permissions) {
19
+ Permissions.Item = {
20
+ AssetCreate: "asset:create",
21
+ AssetDelete: "asset:delete",
22
+ AssetDispose: "asset:dispose",
23
+ AssetExport: "asset:export",
24
+ AssetImport: "asset:import",
25
+ AssetRead: "asset:read",
26
+ AssetTransition: "asset:transition",
27
+ AssetUpdate: "asset:update",
28
+ KeycloakProjectionAdminister: "keycloak-projection:administer",
29
+ NotificationDeliveryRead: "notification-delivery:read",
30
+ OrgMaintenanceAdminister: "org-maintenance:administer",
31
+ ServiceAccountAdminister: "service-account:administer",
32
+ UserAdminister: "user:administer",
33
+ UserInvite: "user:invite",
34
+ };
35
+ })(Permissions = User.Permissions || (User.Permissions = {}));
17
36
  /** Object type discriminator. */
18
37
  User.Object_ = {
19
38
  User: "user",
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface UserResource {
5
5
  /** Stable UUID. */
6
- id?: string | undefined;
6
+ id: string;
7
7
  /** Lifecycle status. */
8
- status?: UserResource.Status | undefined;
8
+ status: UserResource.Status;
9
9
  /** Email shadowed from Keycloak. */
10
10
  email?: string | undefined;
11
11
  /** Display name. */
@@ -13,9 +13,9 @@ export interface UserResource {
13
13
  /** Timestamp of the last login. */
14
14
  last_login_at?: string | undefined;
15
15
  /** Total logins observed. */
16
- login_count?: number | undefined;
16
+ login_count: number;
17
17
  /** Object type discriminator. */
18
- object?: UserResource.Object_ | undefined;
18
+ object: UserResource.Object_;
19
19
  }
20
20
  export declare namespace UserResource {
21
21
  /** Lifecycle status. */
@@ -1,5 +1,7 @@
1
1
  export * from "./ActiveOrganization.js";
2
2
  export * from "./ActivityResource.js";
3
+ export * from "./AllowedTransitions.js";
4
+ export * from "./AllowedTransitionsRequest.js";
3
5
  export * from "./ApiFieldError.js";
4
6
  export * from "./Asset.js";
5
7
  export * from "./AssetListItem.js";
@@ -19,6 +21,7 @@ export * from "./CreateTeleoperatedOperatorRequest.js";
19
21
  export * from "./Currency.js";
20
22
  export * from "./Device.js";
21
23
  export * from "./Devices.js";
24
+ export * from "./ExportAssetsRequest.js";
22
25
  export * from "./File_.js";
23
26
  export * from "./FileDownloadUrl.js";
24
27
  export * from "./FileUploadPart.js";
@@ -66,6 +69,7 @@ export * from "./NotificationsMarkedRead.js";
66
69
  export * from "./NotificationUnreadCount.js";
67
70
  export * from "./OpenAssignmentRequest.js";
68
71
  export * from "./Operator.js";
72
+ export * from "./OperatorAsset.js";
69
73
  export * from "./OperatorPosition.js";
70
74
  export * from "./Organization.js";
71
75
  export * from "./Position.js";
@@ -77,6 +81,7 @@ export * from "./SetActiveOrganizationRequest.js";
77
81
  export * from "./TaskAttemptPhoto.js";
78
82
  export * from "./TaskAttemptPhotoThumbnail.js";
79
83
  export * from "./Timezone.js";
84
+ export * from "./UpdateAssetRequest.js";
80
85
  export * from "./UpdateOrganizationRequest.js";
81
86
  export * from "./UploadInitiation.js";
82
87
  export * from "./UploadInitiationPart.js";
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ActiveOrganization.js"), exports);
18
18
  __exportStar(require("./ActivityResource.js"), exports);
19
+ __exportStar(require("./AllowedTransitions.js"), exports);
20
+ __exportStar(require("./AllowedTransitionsRequest.js"), exports);
19
21
  __exportStar(require("./ApiFieldError.js"), exports);
20
22
  __exportStar(require("./Asset.js"), exports);
21
23
  __exportStar(require("./AssetListItem.js"), exports);
@@ -35,6 +37,7 @@ __exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
35
37
  __exportStar(require("./Currency.js"), exports);
36
38
  __exportStar(require("./Device.js"), exports);
37
39
  __exportStar(require("./Devices.js"), exports);
40
+ __exportStar(require("./ExportAssetsRequest.js"), exports);
38
41
  __exportStar(require("./File_.js"), exports);
39
42
  __exportStar(require("./FileDownloadUrl.js"), exports);
40
43
  __exportStar(require("./FileUploadPart.js"), exports);
@@ -82,6 +85,7 @@ __exportStar(require("./NotificationsMarkedRead.js"), exports);
82
85
  __exportStar(require("./NotificationUnreadCount.js"), exports);
83
86
  __exportStar(require("./OpenAssignmentRequest.js"), exports);
84
87
  __exportStar(require("./Operator.js"), exports);
88
+ __exportStar(require("./OperatorAsset.js"), exports);
85
89
  __exportStar(require("./OperatorPosition.js"), exports);
86
90
  __exportStar(require("./Organization.js"), exports);
87
91
  __exportStar(require("./Position.js"), exports);
@@ -93,6 +97,7 @@ __exportStar(require("./SetActiveOrganizationRequest.js"), exports);
93
97
  __exportStar(require("./TaskAttemptPhoto.js"), exports);
94
98
  __exportStar(require("./TaskAttemptPhotoThumbnail.js"), exports);
95
99
  __exportStar(require("./Timezone.js"), exports);
100
+ __exportStar(require("./UpdateAssetRequest.js"), exports);
96
101
  __exportStar(require("./UpdateOrganizationRequest.js"), exports);
97
102
  __exportStar(require("./UploadInitiation.js"), exports);
98
103
  __exportStar(require("./UploadInitiationPart.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizam-os/operator-sdk",
3
- "version": "4.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Nizam Operator API SDK for TypeScript / JavaScript.",
5
5
  "license": "MIT",
6
6
  "private": false,