@nizam-os/dashboard-sdk 8.0.1 → 8.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.
- package/dist/Client.d.ts +9 -0
- package/dist/Client.js +36 -24
- package/dist/api/resources/devices/client/Client.d.ts +71 -0
- package/dist/api/resources/devices/client/Client.js +238 -0
- package/dist/api/resources/devices/client/index.d.ts +1 -0
- package/dist/api/resources/devices/client/index.js +17 -0
- package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.d.ts +9 -0
- package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.js +3 -0
- package/dist/api/resources/devices/client/requests/RegisterDevice.d.ts +22 -0
- package/dist/api/resources/devices/client/requests/RegisterDevice.js +13 -0
- package/dist/api/resources/devices/client/requests/index.d.ts +2 -0
- package/dist/api/resources/devices/client/requests/index.js +5 -0
- package/dist/api/resources/devices/exports.d.ts +2 -0
- package/dist/api/resources/devices/exports.js +21 -0
- package/dist/api/resources/devices/index.d.ts +1 -0
- package/dist/api/resources/devices/index.js +17 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/notificationPreferences/client/Client.d.ts +49 -0
- package/dist/api/resources/notificationPreferences/client/Client.js +175 -0
- package/dist/api/resources/notificationPreferences/client/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/client/index.js +17 -0
- package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.d.ts +11 -0
- package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.js +3 -0
- package/dist/api/resources/notificationPreferences/client/requests/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/client/requests/index.js +2 -0
- package/dist/api/resources/notificationPreferences/exports.d.ts +2 -0
- package/dist/api/resources/notificationPreferences/exports.js +21 -0
- package/dist/api/resources/notificationPreferences/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/index.js +17 -0
- package/dist/api/resources/notifications/client/Client.d.ts +88 -0
- package/dist/api/resources/notifications/client/Client.js +316 -0
- package/dist/api/resources/notifications/client/index.d.ts +1 -0
- package/dist/api/resources/notifications/client/index.js +17 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +22 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.d.ts +9 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/index.d.ts +2 -0
- package/dist/api/resources/notifications/client/requests/index.js +2 -0
- package/dist/api/resources/notifications/exports.d.ts +2 -0
- package/dist/api/resources/notifications/exports.js +21 -0
- package/dist/api/resources/notifications/index.d.ts +1 -0
- package/dist/api/resources/notifications/index.js +17 -0
- package/dist/api/types/ActiveOrganization.d.ts +2 -2
- package/dist/api/types/ActiveOrganization.js +1 -1
- package/dist/api/types/ActivityResource.d.ts +2 -2
- package/dist/api/types/ActivityResource.js +1 -1
- package/dist/api/types/Asset.d.ts +2 -2
- package/dist/api/types/Asset.js +1 -1
- package/dist/api/types/AssetListItem.d.ts +2 -2
- package/dist/api/types/AssetListItem.js +1 -1
- package/dist/api/types/Assignment.d.ts +2 -2
- package/dist/api/types/Assignment.js +1 -1
- package/dist/api/types/BusinessCategory.d.ts +2 -2
- package/dist/api/types/BusinessCategory.js +1 -1
- package/dist/api/types/Country.d.ts +2 -2
- package/dist/api/types/Country.js +1 -1
- package/dist/api/types/Currency.d.ts +2 -2
- package/dist/api/types/Currency.js +1 -1
- package/dist/api/types/Device.d.ts +24 -0
- package/dist/api/types/Device.js +11 -0
- package/dist/api/types/Devices.d.ts +17 -0
- package/dist/api/types/Devices.js +11 -0
- package/dist/api/types/Invite.d.ts +2 -2
- package/dist/api/types/Invite.js +1 -1
- package/dist/api/types/Language.d.ts +2 -2
- package/dist/api/types/Language.js +1 -1
- package/dist/api/types/ListResponseActivityResource.d.ts +3 -3
- package/dist/api/types/ListResponseActivityResource.js +1 -1
- package/dist/api/types/ListResponseAssetListItem.d.ts +3 -3
- package/dist/api/types/ListResponseAssetListItem.js +1 -1
- package/dist/api/types/ListResponseBusinessCategory.d.ts +3 -3
- package/dist/api/types/ListResponseBusinessCategory.js +1 -1
- package/dist/api/types/ListResponseCountry.d.ts +3 -3
- package/dist/api/types/ListResponseCountry.js +1 -1
- package/dist/api/types/ListResponseCurrency.d.ts +3 -3
- package/dist/api/types/ListResponseCurrency.js +1 -1
- package/dist/api/types/ListResponseFile.d.ts +3 -3
- package/dist/api/types/ListResponseFile.js +1 -1
- package/dist/api/types/ListResponseHeatmapCell.d.ts +3 -3
- package/dist/api/types/ListResponseHeatmapCell.js +1 -1
- package/dist/api/types/ListResponseJob.d.ts +3 -3
- package/dist/api/types/ListResponseJob.js +1 -1
- package/dist/api/types/ListResponseLanguage.d.ts +3 -3
- package/dist/api/types/ListResponseLanguage.js +1 -1
- package/dist/api/types/ListResponseMembership.d.ts +3 -3
- package/dist/api/types/ListResponseMembership.js +1 -1
- package/dist/api/types/ListResponseNotification.d.ts +27 -0
- package/dist/api/types/ListResponseNotification.js +11 -0
- package/dist/api/types/ListResponseNotificationDeadLetter.d.ts +27 -0
- package/dist/api/types/ListResponseNotificationDeadLetter.js +11 -0
- package/dist/api/types/ListResponseOperatorPosition.d.ts +3 -3
- package/dist/api/types/ListResponseOperatorPosition.js +1 -1
- package/dist/api/types/ListResponseOrganization.d.ts +3 -3
- package/dist/api/types/ListResponseOrganization.js +1 -1
- package/dist/api/types/ListResponsePosition.d.ts +3 -3
- package/dist/api/types/ListResponsePosition.js +1 -1
- package/dist/api/types/ListResponseTimezone.d.ts +3 -3
- package/dist/api/types/ListResponseTimezone.js +1 -1
- package/dist/api/types/ListResponseUserResource.d.ts +3 -3
- package/dist/api/types/ListResponseUserResource.js +1 -1
- package/dist/api/types/Membership.d.ts +2 -2
- package/dist/api/types/Membership.js +1 -1
- package/dist/api/types/Notification.d.ts +48 -0
- package/dist/api/types/Notification.js +27 -0
- package/dist/api/types/NotificationDeadLetter.d.ts +36 -0
- package/dist/api/types/NotificationDeadLetter.js +11 -0
- package/dist/api/types/NotificationPreference.d.ts +13 -0
- package/dist/api/types/NotificationPreference.js +3 -0
- package/dist/api/types/NotificationPreferenceItem.d.ts +13 -0
- package/dist/api/types/NotificationPreferenceItem.js +3 -0
- package/dist/api/types/NotificationPreferences.d.ts +17 -0
- package/dist/api/types/NotificationPreferences.js +11 -0
- package/dist/api/types/NotificationUnreadCount.d.ts +16 -0
- package/dist/api/types/NotificationUnreadCount.js +11 -0
- package/dist/api/types/NotificationsMarkedRead.d.ts +16 -0
- package/dist/api/types/NotificationsMarkedRead.js +11 -0
- package/dist/api/types/Operator.d.ts +2 -2
- package/dist/api/types/Operator.js +1 -1
- package/dist/api/types/Organization.d.ts +2 -2
- package/dist/api/types/Organization.js +1 -1
- package/dist/api/types/QuietHours.d.ts +11 -0
- package/dist/api/types/QuietHours.js +3 -0
- package/dist/api/types/RealtimeTicket.d.ts +2 -2
- package/dist/api/types/RealtimeTicket.js +1 -1
- package/dist/api/types/ReconcileResponse.d.ts +2 -2
- package/dist/api/types/ReconcileResponse.js +1 -1
- package/dist/api/types/Timezone.d.ts +2 -2
- package/dist/api/types/Timezone.js +1 -1
- package/dist/api/types/User.d.ts +2 -2
- package/dist/api/types/User.js +1 -1
- package/dist/api/types/UserResource.d.ts +2 -2
- package/dist/api/types/UserResource.js +1 -1
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseTimezone = void 0;
|
|
5
5
|
var ListResponseTimezone;
|
|
6
6
|
(function (ListResponseTimezone) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseTimezone.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseUserResource {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseUserResource.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.UserResource[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseUserResource {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseUserResource {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseUserResource = void 0;
|
|
5
5
|
var ListResponseUserResource;
|
|
6
6
|
(function (ListResponseUserResource) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseUserResource.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ export interface Membership {
|
|
|
6
6
|
organization?: NizamDashboard.Organization | undefined;
|
|
7
7
|
/** The user's role in this organization. */
|
|
8
8
|
role?: Membership.Role | undefined;
|
|
9
|
-
/** Object type discriminator
|
|
9
|
+
/** Object type discriminator. */
|
|
10
10
|
object?: Membership.Object_ | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare namespace Membership {
|
|
@@ -20,7 +20,7 @@ export declare namespace Membership {
|
|
|
20
20
|
readonly BillingAdmin: "billing_admin";
|
|
21
21
|
};
|
|
22
22
|
type Role = (typeof Role)[keyof typeof Role];
|
|
23
|
-
/** Object type discriminator
|
|
23
|
+
/** Object type discriminator. */
|
|
24
24
|
const Object_: {
|
|
25
25
|
readonly Membership: "membership";
|
|
26
26
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single notification as it appears in a user's inbox.
|
|
3
|
+
*/
|
|
4
|
+
export interface Notification {
|
|
5
|
+
/** Object type discriminator. */
|
|
6
|
+
object?: Notification.Object_ | undefined;
|
|
7
|
+
/** Notification id. */
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
/** Notification kind (stable wire key). */
|
|
10
|
+
kind?: string | undefined;
|
|
11
|
+
/** Opt-out / grouping category. */
|
|
12
|
+
category?: Notification.Category | undefined;
|
|
13
|
+
/** Delivery priority. */
|
|
14
|
+
priority?: Notification.Priority | undefined;
|
|
15
|
+
/** Kind-specific render payload. */
|
|
16
|
+
data?: Record<string, Record<string, unknown>> | undefined;
|
|
17
|
+
/** Whether the recipient has read it. */
|
|
18
|
+
read?: boolean | undefined;
|
|
19
|
+
/** When it was read (RFC 3339); null while unread. */
|
|
20
|
+
read_at?: string | undefined;
|
|
21
|
+
/** When it was raised (RFC 3339). */
|
|
22
|
+
created_at?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace Notification {
|
|
25
|
+
/** Object type discriminator. */
|
|
26
|
+
const Object_: {
|
|
27
|
+
readonly Notification: "notification";
|
|
28
|
+
};
|
|
29
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
30
|
+
/** Opt-out / grouping category. */
|
|
31
|
+
const Category: {
|
|
32
|
+
readonly Transactional: "transactional";
|
|
33
|
+
readonly Operational: "operational";
|
|
34
|
+
readonly Alert: "alert";
|
|
35
|
+
readonly Marketing: "marketing";
|
|
36
|
+
readonly Security: "security";
|
|
37
|
+
readonly System: "system";
|
|
38
|
+
};
|
|
39
|
+
type Category = (typeof Category)[keyof typeof Category];
|
|
40
|
+
/** Delivery priority. */
|
|
41
|
+
const Priority: {
|
|
42
|
+
readonly Silent: "silent";
|
|
43
|
+
readonly Normal: "normal";
|
|
44
|
+
readonly High: "high";
|
|
45
|
+
readonly Urgent: "urgent";
|
|
46
|
+
};
|
|
47
|
+
type Priority = (typeof Priority)[keyof typeof Priority];
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Notification = void 0;
|
|
5
|
+
var Notification;
|
|
6
|
+
(function (Notification) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
Notification.Object_ = {
|
|
9
|
+
Notification: "notification",
|
|
10
|
+
};
|
|
11
|
+
/** Opt-out / grouping category. */
|
|
12
|
+
Notification.Category = {
|
|
13
|
+
Transactional: "transactional",
|
|
14
|
+
Operational: "operational",
|
|
15
|
+
Alert: "alert",
|
|
16
|
+
Marketing: "marketing",
|
|
17
|
+
Security: "security",
|
|
18
|
+
System: "system",
|
|
19
|
+
};
|
|
20
|
+
/** Delivery priority. */
|
|
21
|
+
Notification.Priority = {
|
|
22
|
+
Silent: "silent",
|
|
23
|
+
Normal: "normal",
|
|
24
|
+
High: "high",
|
|
25
|
+
Urgent: "urgent",
|
|
26
|
+
};
|
|
27
|
+
})(Notification || (exports.Notification = Notification = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A notification delivery attempt that exhausted its retries.
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationDeadLetter {
|
|
5
|
+
/** Delivery attempt id. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** The notification this attempt belongs to. */
|
|
8
|
+
notification_id?: string | undefined;
|
|
9
|
+
/** Owning organization. */
|
|
10
|
+
organization_id?: string | undefined;
|
|
11
|
+
/** Channel. */
|
|
12
|
+
channel?: string | undefined;
|
|
13
|
+
/** Provider/gateway. */
|
|
14
|
+
provider?: string | undefined;
|
|
15
|
+
/** Resolved recipient endpoint (device id, email, user id). */
|
|
16
|
+
recipient_address?: string | undefined;
|
|
17
|
+
/** Number of send attempts made. */
|
|
18
|
+
attempt_count?: number | undefined;
|
|
19
|
+
/** Machine error code from the last attempt. */
|
|
20
|
+
error_code?: string | undefined;
|
|
21
|
+
/** Human-readable error from the last attempt. */
|
|
22
|
+
error_message?: string | undefined;
|
|
23
|
+
/** When it dead-lettered (RFC 3339). */
|
|
24
|
+
failed_at?: string | undefined;
|
|
25
|
+
/** When the attempt row was created (RFC 3339). */
|
|
26
|
+
created_at?: string | undefined;
|
|
27
|
+
/** Object type discriminator. */
|
|
28
|
+
object?: NotificationDeadLetter.Object_ | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace NotificationDeadLetter {
|
|
31
|
+
/** Object type discriminator. */
|
|
32
|
+
const Object_: {
|
|
33
|
+
readonly NotificationDeadLetter: "notification_dead_letter";
|
|
34
|
+
};
|
|
35
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationDeadLetter = void 0;
|
|
5
|
+
var NotificationDeadLetter;
|
|
6
|
+
(function (NotificationDeadLetter) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
NotificationDeadLetter.Object_ = {
|
|
9
|
+
NotificationDeadLetter: "notification_dead_letter",
|
|
10
|
+
};
|
|
11
|
+
})(NotificationDeadLetter || (exports.NotificationDeadLetter = NotificationDeadLetter = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A user's explicit per-kind × channel override.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotificationPreference {
|
|
6
|
+
/** Notification kind (wire key). */
|
|
7
|
+
kind?: string | undefined;
|
|
8
|
+
/** Delivery channel. */
|
|
9
|
+
channel?: string | undefined;
|
|
10
|
+
/** Whether the kind is enabled on this channel. */
|
|
11
|
+
enabled?: boolean | undefined;
|
|
12
|
+
quiet_hours?: NizamDashboard.QuietHours | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Desired state of one (kind, channel) preference.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotificationPreferenceItem {
|
|
6
|
+
/** Notification kind (wire key). */
|
|
7
|
+
kind?: string | undefined;
|
|
8
|
+
/** Delivery channel. */
|
|
9
|
+
channel?: string | undefined;
|
|
10
|
+
/** Whether the user wants this kind on this channel. */
|
|
11
|
+
enabled?: boolean | undefined;
|
|
12
|
+
quiet_hours?: NizamDashboard.QuietHours | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The current user's notification-preference settings.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotificationPreferences {
|
|
6
|
+
/** The user's explicit per-kind × channel overrides. */
|
|
7
|
+
preferences?: NizamDashboard.NotificationPreference[] | undefined;
|
|
8
|
+
/** Object type discriminator. */
|
|
9
|
+
object?: NotificationPreferences.Object_ | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace NotificationPreferences {
|
|
12
|
+
/** Object type discriminator. */
|
|
13
|
+
const Object_: {
|
|
14
|
+
readonly NotificationPreferences: "notification_preferences";
|
|
15
|
+
};
|
|
16
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationPreferences = void 0;
|
|
5
|
+
var NotificationPreferences;
|
|
6
|
+
(function (NotificationPreferences) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
NotificationPreferences.Object_ = {
|
|
9
|
+
NotificationPreferences: "notification_preferences",
|
|
10
|
+
};
|
|
11
|
+
})(NotificationPreferences || (exports.NotificationPreferences = NotificationPreferences = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The caller's unread notification count.
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationUnreadCount {
|
|
5
|
+
/** Number of unread notifications. */
|
|
6
|
+
count?: number | undefined;
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
object?: NotificationUnreadCount.Object_ | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace NotificationUnreadCount {
|
|
11
|
+
/** Object type discriminator. */
|
|
12
|
+
const Object_: {
|
|
13
|
+
readonly NotificationUnreadCount: "notification_unread_count";
|
|
14
|
+
};
|
|
15
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationUnreadCount = void 0;
|
|
5
|
+
var NotificationUnreadCount;
|
|
6
|
+
(function (NotificationUnreadCount) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
NotificationUnreadCount.Object_ = {
|
|
9
|
+
NotificationUnreadCount: "notification_unread_count",
|
|
10
|
+
};
|
|
11
|
+
})(NotificationUnreadCount || (exports.NotificationUnreadCount = NotificationUnreadCount = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of a mark-all-read operation.
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationsMarkedRead {
|
|
5
|
+
/** Number of notifications flipped to read. */
|
|
6
|
+
marked?: number | undefined;
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
object?: NotificationsMarkedRead.Object_ | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace NotificationsMarkedRead {
|
|
11
|
+
/** Object type discriminator. */
|
|
12
|
+
const Object_: {
|
|
13
|
+
readonly NotificationsMarkedRead: "notifications_marked_read";
|
|
14
|
+
};
|
|
15
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationsMarkedRead = void 0;
|
|
5
|
+
var NotificationsMarkedRead;
|
|
6
|
+
(function (NotificationsMarkedRead) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
NotificationsMarkedRead.Object_ = {
|
|
9
|
+
NotificationsMarkedRead: "notifications_marked_read",
|
|
10
|
+
};
|
|
11
|
+
})(NotificationsMarkedRead || (exports.NotificationsMarkedRead = NotificationsMarkedRead = {}));
|
|
@@ -16,7 +16,7 @@ export interface Operator {
|
|
|
16
16
|
responsible_party_id?: string | undefined;
|
|
17
17
|
/** Owning organization id. */
|
|
18
18
|
organization_id?: string | undefined;
|
|
19
|
-
/** Object type discriminator
|
|
19
|
+
/** Object type discriminator. */
|
|
20
20
|
object?: Operator.Object_ | undefined;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Operator {
|
|
@@ -37,7 +37,7 @@ export declare namespace Operator {
|
|
|
37
37
|
readonly Decommissioned: "decommissioned";
|
|
38
38
|
};
|
|
39
39
|
type Status = (typeof Status)[keyof typeof Status];
|
|
40
|
-
/** Object type discriminator
|
|
40
|
+
/** Object type discriminator. */
|
|
41
41
|
const Object_: {
|
|
42
42
|
readonly Operator: "operator";
|
|
43
43
|
};
|
|
@@ -18,7 +18,7 @@ export interface Organization {
|
|
|
18
18
|
created_at?: string | undefined;
|
|
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
|
-
/** Object type discriminator
|
|
21
|
+
/** Object type discriminator. */
|
|
22
22
|
object?: Organization.Object_ | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace Organization {
|
|
@@ -29,7 +29,7 @@ export declare namespace Organization {
|
|
|
29
29
|
readonly Inactive: "inactive";
|
|
30
30
|
};
|
|
31
31
|
type Status = (typeof Status)[keyof typeof Status];
|
|
32
|
-
/** Object type discriminator
|
|
32
|
+
/** Object type discriminator. */
|
|
33
33
|
const Object_: {
|
|
34
34
|
readonly Organization: "organization";
|
|
35
35
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A do-not-disturb window in wall-clock time within a zone.
|
|
3
|
+
*/
|
|
4
|
+
export interface QuietHours {
|
|
5
|
+
/** Window start (HH:mm, zone-local). */
|
|
6
|
+
start?: string | undefined;
|
|
7
|
+
/** Window end (HH:mm, zone-local). */
|
|
8
|
+
end?: string | undefined;
|
|
9
|
+
/** IANA zone id the wall-clock is read in. */
|
|
10
|
+
timezone?: string | undefined;
|
|
11
|
+
}
|
|
@@ -6,11 +6,11 @@ export interface RealtimeTicket {
|
|
|
6
6
|
ticket?: string | undefined;
|
|
7
7
|
/** When the ticket expires (ISO-8601). Connect promptly; mint a fresh ticket for each new connection attempt. */
|
|
8
8
|
expires_at?: string | undefined;
|
|
9
|
-
/** Object type discriminator
|
|
9
|
+
/** Object type discriminator. */
|
|
10
10
|
object?: RealtimeTicket.Object_ | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare namespace RealtimeTicket {
|
|
13
|
-
/** Object type discriminator
|
|
13
|
+
/** Object type discriminator. */
|
|
14
14
|
const Object_: {
|
|
15
15
|
readonly RealtimeTicket: "realtime_ticket";
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.RealtimeTicket = void 0;
|
|
5
5
|
var RealtimeTicket;
|
|
6
6
|
(function (RealtimeTicket) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
RealtimeTicket.Object_ = {
|
|
9
9
|
RealtimeTicket: "realtime_ticket",
|
|
10
10
|
};
|
|
@@ -9,11 +9,11 @@ export interface ReconcileResponse {
|
|
|
9
9
|
kc_has_nizam_missing?: string[] | undefined;
|
|
10
10
|
/** Per-org membership-set divergences (KC vs Nizam). */
|
|
11
11
|
membership_divergent?: NizamDashboard.MembershipDriftResponse[] | undefined;
|
|
12
|
-
/** Object type discriminator
|
|
12
|
+
/** Object type discriminator. */
|
|
13
13
|
object?: ReconcileResponse.Object_ | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare namespace ReconcileResponse {
|
|
16
|
-
/** Object type discriminator
|
|
16
|
+
/** Object type discriminator. */
|
|
17
17
|
const Object_: {
|
|
18
18
|
readonly KeycloakReconciliation: "keycloak_reconciliation";
|
|
19
19
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ReconcileResponse = void 0;
|
|
5
5
|
var ReconcileResponse;
|
|
6
6
|
(function (ReconcileResponse) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
ReconcileResponse.Object_ = {
|
|
9
9
|
KeycloakReconciliation: "keycloak_reconciliation",
|
|
10
10
|
};
|
|
@@ -8,11 +8,11 @@ export interface Timezone {
|
|
|
8
8
|
display_name?: string | undefined;
|
|
9
9
|
/** Current offset from UTC in minutes (DST-aware). */
|
|
10
10
|
gmt_offset_minutes?: number | undefined;
|
|
11
|
-
/** Object type discriminator
|
|
11
|
+
/** Object type discriminator. */
|
|
12
12
|
object?: Timezone.Object_ | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace Timezone {
|
|
15
|
-
/** Object type discriminator
|
|
15
|
+
/** Object type discriminator. */
|
|
16
16
|
const Object_: {
|
|
17
17
|
readonly Timezone: "timezone";
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Timezone = void 0;
|
|
5
5
|
var Timezone;
|
|
6
6
|
(function (Timezone) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
Timezone.Object_ = {
|
|
9
9
|
Timezone: "timezone",
|
|
10
10
|
};
|
package/dist/api/types/User.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface User {
|
|
|
19
19
|
login_count?: number | undefined;
|
|
20
20
|
/** 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
21
|
profile_picture_file_id?: string | undefined;
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. */
|
|
23
23
|
object?: User.Object_ | undefined;
|
|
24
24
|
}
|
|
25
25
|
export declare namespace User {
|
|
@@ -34,7 +34,7 @@ export declare namespace User {
|
|
|
34
34
|
readonly Admin: "admin";
|
|
35
35
|
};
|
|
36
36
|
type Portal = (typeof Portal)[keyof typeof Portal];
|
|
37
|
-
/** Object type discriminator
|
|
37
|
+
/** Object type discriminator. */
|
|
38
38
|
const Object_: {
|
|
39
39
|
readonly User: "user";
|
|
40
40
|
};
|
package/dist/api/types/User.js
CHANGED
|
@@ -14,7 +14,7 @@ export interface UserResource {
|
|
|
14
14
|
last_login_at?: string | undefined;
|
|
15
15
|
/** Total logins observed. */
|
|
16
16
|
login_count?: number | undefined;
|
|
17
|
-
/** Object type discriminator
|
|
17
|
+
/** Object type discriminator. */
|
|
18
18
|
object?: UserResource.Object_ | undefined;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace UserResource {
|
|
@@ -26,7 +26,7 @@ export declare namespace UserResource {
|
|
|
26
26
|
readonly PendingVerification: "pending_verification";
|
|
27
27
|
};
|
|
28
28
|
type Status = (typeof Status)[keyof typeof Status];
|
|
29
|
-
/** Object type discriminator
|
|
29
|
+
/** Object type discriminator. */
|
|
30
30
|
const Object_: {
|
|
31
31
|
readonly User: "user";
|
|
32
32
|
};
|
|
@@ -12,6 +12,8 @@ export * from "./CreateHumanOperatorRequest.js";
|
|
|
12
12
|
export * from "./CreateOperatorRequest.js";
|
|
13
13
|
export * from "./CreateTeleoperatedOperatorRequest.js";
|
|
14
14
|
export * from "./Currency.js";
|
|
15
|
+
export * from "./Device.js";
|
|
16
|
+
export * from "./Devices.js";
|
|
15
17
|
export * from "./File_.js";
|
|
16
18
|
export * from "./FileDownloadUrl.js";
|
|
17
19
|
export * from "./FileUploadPart.js";
|
|
@@ -35,6 +37,8 @@ export * from "./ListResponseHeatmapCell.js";
|
|
|
35
37
|
export * from "./ListResponseJob.js";
|
|
36
38
|
export * from "./ListResponseLanguage.js";
|
|
37
39
|
export * from "./ListResponseMembership.js";
|
|
40
|
+
export * from "./ListResponseNotification.js";
|
|
41
|
+
export * from "./ListResponseNotificationDeadLetter.js";
|
|
38
42
|
export * from "./ListResponseOperatorPosition.js";
|
|
39
43
|
export * from "./ListResponseOrganization.js";
|
|
40
44
|
export * from "./ListResponsePosition.js";
|
|
@@ -44,11 +48,19 @@ export * from "./Membership.js";
|
|
|
44
48
|
export * from "./MembershipChoice.js";
|
|
45
49
|
export * from "./MembershipDriftResponse.js";
|
|
46
50
|
export * from "./MqttToken.js";
|
|
51
|
+
export * from "./Notification.js";
|
|
52
|
+
export * from "./NotificationDeadLetter.js";
|
|
53
|
+
export * from "./NotificationPreference.js";
|
|
54
|
+
export * from "./NotificationPreferenceItem.js";
|
|
55
|
+
export * from "./NotificationPreferences.js";
|
|
56
|
+
export * from "./NotificationsMarkedRead.js";
|
|
57
|
+
export * from "./NotificationUnreadCount.js";
|
|
47
58
|
export * from "./Operator.js";
|
|
48
59
|
export * from "./OperatorPosition.js";
|
|
49
60
|
export * from "./Organization.js";
|
|
50
61
|
export * from "./Position.js";
|
|
51
62
|
export * from "./ProblemDetail.js";
|
|
63
|
+
export * from "./QuietHours.js";
|
|
52
64
|
export * from "./RealtimeTicket.js";
|
|
53
65
|
export * from "./ReconcileResponse.js";
|
|
54
66
|
export * from "./TaskAttemptPhoto.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -28,6 +28,8 @@ __exportStar(require("./CreateHumanOperatorRequest.js"), exports);
|
|
|
28
28
|
__exportStar(require("./CreateOperatorRequest.js"), exports);
|
|
29
29
|
__exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
|
|
30
30
|
__exportStar(require("./Currency.js"), exports);
|
|
31
|
+
__exportStar(require("./Device.js"), exports);
|
|
32
|
+
__exportStar(require("./Devices.js"), exports);
|
|
31
33
|
__exportStar(require("./File_.js"), exports);
|
|
32
34
|
__exportStar(require("./FileDownloadUrl.js"), exports);
|
|
33
35
|
__exportStar(require("./FileUploadPart.js"), exports);
|
|
@@ -51,6 +53,8 @@ __exportStar(require("./ListResponseHeatmapCell.js"), exports);
|
|
|
51
53
|
__exportStar(require("./ListResponseJob.js"), exports);
|
|
52
54
|
__exportStar(require("./ListResponseLanguage.js"), exports);
|
|
53
55
|
__exportStar(require("./ListResponseMembership.js"), exports);
|
|
56
|
+
__exportStar(require("./ListResponseNotification.js"), exports);
|
|
57
|
+
__exportStar(require("./ListResponseNotificationDeadLetter.js"), exports);
|
|
54
58
|
__exportStar(require("./ListResponseOperatorPosition.js"), exports);
|
|
55
59
|
__exportStar(require("./ListResponseOrganization.js"), exports);
|
|
56
60
|
__exportStar(require("./ListResponsePosition.js"), exports);
|
|
@@ -60,11 +64,19 @@ __exportStar(require("./Membership.js"), exports);
|
|
|
60
64
|
__exportStar(require("./MembershipChoice.js"), exports);
|
|
61
65
|
__exportStar(require("./MembershipDriftResponse.js"), exports);
|
|
62
66
|
__exportStar(require("./MqttToken.js"), exports);
|
|
67
|
+
__exportStar(require("./Notification.js"), exports);
|
|
68
|
+
__exportStar(require("./NotificationDeadLetter.js"), exports);
|
|
69
|
+
__exportStar(require("./NotificationPreference.js"), exports);
|
|
70
|
+
__exportStar(require("./NotificationPreferenceItem.js"), exports);
|
|
71
|
+
__exportStar(require("./NotificationPreferences.js"), exports);
|
|
72
|
+
__exportStar(require("./NotificationsMarkedRead.js"), exports);
|
|
73
|
+
__exportStar(require("./NotificationUnreadCount.js"), exports);
|
|
63
74
|
__exportStar(require("./Operator.js"), exports);
|
|
64
75
|
__exportStar(require("./OperatorPosition.js"), exports);
|
|
65
76
|
__exportStar(require("./Organization.js"), exports);
|
|
66
77
|
__exportStar(require("./Position.js"), exports);
|
|
67
78
|
__exportStar(require("./ProblemDetail.js"), exports);
|
|
79
|
+
__exportStar(require("./QuietHours.js"), exports);
|
|
68
80
|
__exportStar(require("./RealtimeTicket.js"), exports);
|
|
69
81
|
__exportStar(require("./ReconcileResponse.js"), exports);
|
|
70
82
|
__exportStar(require("./TaskAttemptPhoto.js"), exports);
|