@nizam-os/operator-sdk 2.8.3 → 3.0.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 (149) hide show
  1. package/dist/Client.d.ts +9 -0
  2. package/dist/Client.js +26 -14
  3. package/dist/api/resources/devices/client/Client.d.ts +71 -0
  4. package/dist/api/resources/devices/client/Client.js +238 -0
  5. package/dist/api/resources/devices/client/index.d.ts +1 -0
  6. package/dist/api/resources/devices/client/index.js +17 -0
  7. package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.d.ts +9 -0
  8. package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.js +3 -0
  9. package/dist/api/resources/devices/client/requests/RegisterDevice.d.ts +22 -0
  10. package/dist/api/resources/devices/client/requests/RegisterDevice.js +13 -0
  11. package/dist/api/resources/devices/client/requests/index.d.ts +2 -0
  12. package/dist/api/resources/devices/client/requests/index.js +5 -0
  13. package/dist/api/resources/devices/exports.d.ts +2 -0
  14. package/dist/api/resources/devices/exports.js +21 -0
  15. package/dist/api/resources/devices/index.d.ts +1 -0
  16. package/dist/api/resources/devices/index.js +17 -0
  17. package/dist/api/resources/index.d.ts +6 -0
  18. package/dist/api/resources/index.js +7 -1
  19. package/dist/api/resources/notificationPreferences/client/Client.d.ts +49 -0
  20. package/dist/api/resources/notificationPreferences/client/Client.js +175 -0
  21. package/dist/api/resources/notificationPreferences/client/index.d.ts +1 -0
  22. package/dist/api/resources/notificationPreferences/client/index.js +17 -0
  23. package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.d.ts +11 -0
  24. package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.js +3 -0
  25. package/dist/api/resources/notificationPreferences/client/requests/index.d.ts +1 -0
  26. package/dist/api/resources/notificationPreferences/client/requests/index.js +2 -0
  27. package/dist/api/resources/notificationPreferences/exports.d.ts +2 -0
  28. package/dist/api/resources/notificationPreferences/exports.js +21 -0
  29. package/dist/api/resources/notificationPreferences/index.d.ts +1 -0
  30. package/dist/api/resources/notificationPreferences/index.js +17 -0
  31. package/dist/api/resources/notifications/client/Client.d.ts +179 -0
  32. package/dist/api/resources/notifications/client/Client.js +629 -0
  33. package/dist/api/resources/notifications/client/index.d.ts +1 -0
  34. package/dist/api/resources/notifications/client/index.js +17 -0
  35. package/dist/api/resources/notifications/client/requests/ArchiveNotificationRequest.d.ts +9 -0
  36. package/dist/api/resources/notifications/client/requests/ArchiveNotificationRequest.js +3 -0
  37. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +30 -0
  38. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.js +3 -0
  39. package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.d.ts +9 -0
  40. package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.js +3 -0
  41. package/dist/api/resources/notifications/client/requests/MarkNotificationUnreadRequest.d.ts +9 -0
  42. package/dist/api/resources/notifications/client/requests/MarkNotificationUnreadRequest.js +3 -0
  43. package/dist/api/resources/notifications/client/requests/UnarchiveNotificationRequest.d.ts +9 -0
  44. package/dist/api/resources/notifications/client/requests/UnarchiveNotificationRequest.js +3 -0
  45. package/dist/api/resources/notifications/client/requests/index.d.ts +5 -0
  46. package/dist/api/resources/notifications/client/requests/index.js +2 -0
  47. package/dist/api/resources/notifications/exports.d.ts +2 -0
  48. package/dist/api/resources/notifications/exports.js +21 -0
  49. package/dist/api/resources/notifications/index.d.ts +1 -0
  50. package/dist/api/resources/notifications/index.js +17 -0
  51. package/dist/api/types/ActiveOrganization.d.ts +2 -2
  52. package/dist/api/types/ActiveOrganization.js +1 -1
  53. package/dist/api/types/ActivityResource.d.ts +2 -2
  54. package/dist/api/types/ActivityResource.js +1 -1
  55. package/dist/api/types/Asset.d.ts +2 -2
  56. package/dist/api/types/Asset.js +1 -1
  57. package/dist/api/types/AssetListItem.d.ts +2 -2
  58. package/dist/api/types/AssetListItem.js +1 -1
  59. package/dist/api/types/Assignment.d.ts +2 -2
  60. package/dist/api/types/Assignment.js +1 -1
  61. package/dist/api/types/BusinessCategory.d.ts +2 -2
  62. package/dist/api/types/BusinessCategory.js +1 -1
  63. package/dist/api/types/Country.d.ts +2 -2
  64. package/dist/api/types/Country.js +1 -1
  65. package/dist/api/types/Currency.d.ts +2 -2
  66. package/dist/api/types/Currency.js +1 -1
  67. package/dist/api/types/Device.d.ts +24 -0
  68. package/dist/api/types/Device.js +11 -0
  69. package/dist/api/types/Devices.d.ts +17 -0
  70. package/dist/api/types/Devices.js +11 -0
  71. package/dist/api/types/Invite.d.ts +2 -2
  72. package/dist/api/types/Invite.js +1 -1
  73. package/dist/api/types/Language.d.ts +2 -2
  74. package/dist/api/types/Language.js +1 -1
  75. package/dist/api/types/ListResponseActivityResource.d.ts +3 -3
  76. package/dist/api/types/ListResponseActivityResource.js +1 -1
  77. package/dist/api/types/ListResponseAssetListItem.d.ts +3 -3
  78. package/dist/api/types/ListResponseAssetListItem.js +1 -1
  79. package/dist/api/types/ListResponseBusinessCategory.d.ts +3 -3
  80. package/dist/api/types/ListResponseBusinessCategory.js +1 -1
  81. package/dist/api/types/ListResponseCountry.d.ts +3 -3
  82. package/dist/api/types/ListResponseCountry.js +1 -1
  83. package/dist/api/types/ListResponseCurrency.d.ts +3 -3
  84. package/dist/api/types/ListResponseCurrency.js +1 -1
  85. package/dist/api/types/ListResponseFile.d.ts +3 -3
  86. package/dist/api/types/ListResponseFile.js +1 -1
  87. package/dist/api/types/ListResponseHeatmapCell.d.ts +3 -3
  88. package/dist/api/types/ListResponseHeatmapCell.js +1 -1
  89. package/dist/api/types/ListResponseJob.d.ts +3 -3
  90. package/dist/api/types/ListResponseJob.js +1 -1
  91. package/dist/api/types/ListResponseLanguage.d.ts +3 -3
  92. package/dist/api/types/ListResponseLanguage.js +1 -1
  93. package/dist/api/types/ListResponseMembership.d.ts +3 -3
  94. package/dist/api/types/ListResponseMembership.js +1 -1
  95. package/dist/api/types/ListResponseNotification.d.ts +27 -0
  96. package/dist/api/types/ListResponseNotification.js +11 -0
  97. package/dist/api/types/ListResponseNotificationDeadLetter.d.ts +27 -0
  98. package/dist/api/types/ListResponseNotificationDeadLetter.js +11 -0
  99. package/dist/api/types/ListResponseOperatorPosition.d.ts +3 -3
  100. package/dist/api/types/ListResponseOperatorPosition.js +1 -1
  101. package/dist/api/types/ListResponseOrganization.d.ts +3 -3
  102. package/dist/api/types/ListResponseOrganization.js +1 -1
  103. package/dist/api/types/ListResponsePosition.d.ts +3 -3
  104. package/dist/api/types/ListResponsePosition.js +1 -1
  105. package/dist/api/types/ListResponseTimezone.d.ts +3 -3
  106. package/dist/api/types/ListResponseTimezone.js +1 -1
  107. package/dist/api/types/ListResponseUserResource.d.ts +3 -3
  108. package/dist/api/types/ListResponseUserResource.js +1 -1
  109. package/dist/api/types/Membership.d.ts +2 -2
  110. package/dist/api/types/Membership.js +1 -1
  111. package/dist/api/types/Notification.d.ts +52 -0
  112. package/dist/api/types/Notification.js +27 -0
  113. package/dist/api/types/NotificationCategoryCount.d.ts +23 -0
  114. package/dist/api/types/NotificationCategoryCount.js +16 -0
  115. package/dist/api/types/NotificationCounts.d.ts +23 -0
  116. package/dist/api/types/NotificationCounts.js +11 -0
  117. package/dist/api/types/NotificationDeadLetter.d.ts +36 -0
  118. package/dist/api/types/NotificationDeadLetter.js +11 -0
  119. package/dist/api/types/NotificationPreference.d.ts +13 -0
  120. package/dist/api/types/NotificationPreference.js +3 -0
  121. package/dist/api/types/NotificationPreferenceItem.d.ts +13 -0
  122. package/dist/api/types/NotificationPreferenceItem.js +3 -0
  123. package/dist/api/types/NotificationPreferences.d.ts +17 -0
  124. package/dist/api/types/NotificationPreferences.js +11 -0
  125. package/dist/api/types/NotificationUnreadCount.d.ts +16 -0
  126. package/dist/api/types/NotificationUnreadCount.js +11 -0
  127. package/dist/api/types/NotificationsArchived.d.ts +16 -0
  128. package/dist/api/types/NotificationsArchived.js +11 -0
  129. package/dist/api/types/NotificationsMarkedRead.d.ts +16 -0
  130. package/dist/api/types/NotificationsMarkedRead.js +11 -0
  131. package/dist/api/types/Operator.d.ts +2 -2
  132. package/dist/api/types/Operator.js +1 -1
  133. package/dist/api/types/Organization.d.ts +2 -2
  134. package/dist/api/types/Organization.js +1 -1
  135. package/dist/api/types/QuietHours.d.ts +11 -0
  136. package/dist/api/types/QuietHours.js +3 -0
  137. package/dist/api/types/RealtimeTicket.d.ts +2 -2
  138. package/dist/api/types/RealtimeTicket.js +1 -1
  139. package/dist/api/types/ReconcileResponse.d.ts +2 -2
  140. package/dist/api/types/ReconcileResponse.js +1 -1
  141. package/dist/api/types/Timezone.d.ts +2 -2
  142. package/dist/api/types/Timezone.js +1 -1
  143. package/dist/api/types/User.d.ts +2 -2
  144. package/dist/api/types/User.js +1 -1
  145. package/dist/api/types/UserResource.d.ts +2 -2
  146. package/dist/api/types/UserResource.js +1 -1
  147. package/dist/api/types/index.d.ts +15 -0
  148. package/dist/api/types/index.js +15 -0
  149. package/package.json +1 -1
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ListResponseCurrency = void 0;
5
5
  var ListResponseCurrency;
6
6
  (function (ListResponseCurrency) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseCurrency.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseFile {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseFile.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.File_[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseFile {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseFile {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseFile = void 0;
5
5
  var ListResponseFile;
6
6
  (function (ListResponseFile) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseFile.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseHeatmapCell {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseHeatmapCell.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.HeatmapCell[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseHeatmapCell {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseHeatmapCell {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseHeatmapCell = void 0;
5
5
  var ListResponseHeatmapCell;
6
6
  (function (ListResponseHeatmapCell) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseHeatmapCell.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseJob {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseJob.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Job[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseJob {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseJob {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseJob = void 0;
5
5
  var ListResponseJob;
6
6
  (function (ListResponseJob) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseJob.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseLanguage {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseLanguage.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Language[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseLanguage {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseLanguage {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseLanguage = void 0;
5
5
  var ListResponseLanguage;
6
6
  (function (ListResponseLanguage) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseLanguage.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseMembership {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseMembership.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Membership[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseMembership {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseMembership {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseMembership = void 0;
5
5
  var ListResponseMembership;
6
6
  (function (ListResponseMembership) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseMembership.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -0,0 +1,27 @@
1
+ import type * as NizamOperatorRuntime from "../index.js";
2
+ /**
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
+ */
5
+ export interface ListResponseNotification {
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
+ object?: ListResponseNotification.Object_ | undefined;
8
+ /** Page of resources. Empty array when there are no matches. */
9
+ data?: NizamOperatorRuntime.Notification[] | undefined;
10
+ /** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
11
+ has_more?: boolean | undefined;
12
+ /** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
13
+ has_previous?: boolean | undefined;
14
+ /** Opaque cursor for the next page. `null` on the last page. */
15
+ next_cursor?: string | undefined;
16
+ /** Opaque cursor for the previous page. `null` on the first page. */
17
+ prev_cursor?: string | undefined;
18
+ /** Page size that produced this response. */
19
+ limit?: number | undefined;
20
+ }
21
+ export declare namespace ListResponseNotification {
22
+ /** Object type discriminator. Always `list` for this envelope. */
23
+ const Object_: {
24
+ readonly List: "list";
25
+ };
26
+ type Object_ = (typeof Object_)[keyof typeof Object_];
27
+ }
@@ -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.ListResponseNotification = void 0;
5
+ var ListResponseNotification;
6
+ (function (ListResponseNotification) {
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
+ ListResponseNotification.Object_ = {
9
+ List: "list",
10
+ };
11
+ })(ListResponseNotification || (exports.ListResponseNotification = ListResponseNotification = {}));
@@ -0,0 +1,27 @@
1
+ import type * as NizamOperatorRuntime from "../index.js";
2
+ /**
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
+ */
5
+ export interface ListResponseNotificationDeadLetter {
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
+ object?: ListResponseNotificationDeadLetter.Object_ | undefined;
8
+ /** Page of resources. Empty array when there are no matches. */
9
+ data?: NizamOperatorRuntime.NotificationDeadLetter[] | undefined;
10
+ /** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
11
+ has_more?: boolean | undefined;
12
+ /** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
13
+ has_previous?: boolean | undefined;
14
+ /** Opaque cursor for the next page. `null` on the last page. */
15
+ next_cursor?: string | undefined;
16
+ /** Opaque cursor for the previous page. `null` on the first page. */
17
+ prev_cursor?: string | undefined;
18
+ /** Page size that produced this response. */
19
+ limit?: number | undefined;
20
+ }
21
+ export declare namespace ListResponseNotificationDeadLetter {
22
+ /** Object type discriminator. Always `list` for this envelope. */
23
+ const Object_: {
24
+ readonly List: "list";
25
+ };
26
+ type Object_ = (typeof Object_)[keyof typeof Object_];
27
+ }
@@ -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.ListResponseNotificationDeadLetter = void 0;
5
+ var ListResponseNotificationDeadLetter;
6
+ (function (ListResponseNotificationDeadLetter) {
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
+ ListResponseNotificationDeadLetter.Object_ = {
9
+ List: "list",
10
+ };
11
+ })(ListResponseNotificationDeadLetter || (exports.ListResponseNotificationDeadLetter = ListResponseNotificationDeadLetter = {}));
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseOperatorPosition {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseOperatorPosition.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.OperatorPosition[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseOperatorPosition {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseOperatorPosition {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseOperatorPosition = void 0;
5
5
  var ListResponseOperatorPosition;
6
6
  (function (ListResponseOperatorPosition) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseOperatorPosition.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseOrganization {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseOrganization.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Organization[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseOrganization {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseOrganization {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseOrganization = void 0;
5
5
  var ListResponseOrganization;
6
6
  (function (ListResponseOrganization) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponseOrganization.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponsePosition {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponsePosition.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Position[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponsePosition {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponsePosition {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponsePosition = void 0;
5
5
  var ListResponsePosition;
6
6
  (function (ListResponsePosition) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
7
+ /** Object type discriminator. Always `list` for this envelope. */
8
8
  ListResponsePosition.Object_ = {
9
9
  List: "list",
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import type * as NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseTimezone {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
6
+ /** Object type discriminator. Always `list` for this envelope. */
7
7
  object?: ListResponseTimezone.Object_ | undefined;
8
8
  /** Page of resources. Empty array when there are no matches. */
9
9
  data?: NizamOperatorRuntime.Timezone[] | undefined;
@@ -19,7 +19,7 @@ export interface ListResponseTimezone {
19
19
  limit?: number | undefined;
20
20
  }
21
21
  export declare namespace ListResponseTimezone {
22
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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.ListResponseTimezone = void 0;
5
5
  var ListResponseTimezone;
6
6
  (function (ListResponseTimezone) {
7
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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 NizamOperatorRuntime from "../index.js";
2
2
  /**
3
- * Envelope for paginated list responses (Stripe-style cursor pagination).
3
+ * Envelope for paginated list responses (opaque cursor pagination).
4
4
  */
5
5
  export interface ListResponseUserResource {
6
- /** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
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?: NizamOperatorRuntime.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 (Stripe pattern). Always `list` for this envelope. */
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 (Stripe pattern). Always `list` for this envelope. */
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?: NizamOperatorRuntime.Organization | undefined;
7
7
  /** The user's role in this organization. */
8
8
  role?: Membership.Role | undefined;
9
- /** Object type discriminator (Stripe pattern). */
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 (Stripe pattern). */
23
+ /** Object type discriminator. */
24
24
  const Object_: {
25
25
  readonly Membership: "membership";
26
26
  };
@@ -13,7 +13,7 @@ var Membership;
13
13
  Viewer: "viewer",
14
14
  BillingAdmin: "billing_admin",
15
15
  };
16
- /** Object type discriminator (Stripe pattern). */
16
+ /** Object type discriminator. */
17
17
  Membership.Object_ = {
18
18
  Membership: "membership",
19
19
  };
@@ -0,0 +1,52 @@
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
+ /** Whether the recipient has archived ("Done") it. */
22
+ archived?: boolean | undefined;
23
+ /** When it was archived (RFC 3339); null while in the active inbox. */
24
+ archived_at?: string | undefined;
25
+ /** When it was raised (RFC 3339). */
26
+ created_at?: string | undefined;
27
+ }
28
+ export declare namespace Notification {
29
+ /** Object type discriminator. */
30
+ const Object_: {
31
+ readonly Notification: "notification";
32
+ };
33
+ type Object_ = (typeof Object_)[keyof typeof Object_];
34
+ /** Opt-out / grouping category. */
35
+ const Category: {
36
+ readonly Transactional: "transactional";
37
+ readonly Operational: "operational";
38
+ readonly Alert: "alert";
39
+ readonly Marketing: "marketing";
40
+ readonly Security: "security";
41
+ readonly System: "system";
42
+ };
43
+ type Category = (typeof Category)[keyof typeof Category];
44
+ /** Delivery priority. */
45
+ const Priority: {
46
+ readonly Silent: "silent";
47
+ readonly Normal: "normal";
48
+ readonly High: "high";
49
+ readonly Urgent: "urgent";
50
+ };
51
+ type Priority = (typeof Priority)[keyof typeof Priority];
52
+ }
@@ -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,23 @@
1
+ /**
2
+ * Active total/unread for one category.
3
+ */
4
+ export interface NotificationCategoryCount {
5
+ /** Category. */
6
+ category?: NotificationCategoryCount.Category | undefined;
7
+ /** Active notifications in this category. */
8
+ total?: number | undefined;
9
+ /** Active unread notifications in this category. */
10
+ unread?: number | undefined;
11
+ }
12
+ export declare namespace NotificationCategoryCount {
13
+ /** Category. */
14
+ const Category: {
15
+ readonly Transactional: "transactional";
16
+ readonly Operational: "operational";
17
+ readonly Alert: "alert";
18
+ readonly Marketing: "marketing";
19
+ readonly Security: "security";
20
+ readonly System: "system";
21
+ };
22
+ type Category = (typeof Category)[keyof typeof Category];
23
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.NotificationCategoryCount = void 0;
5
+ var NotificationCategoryCount;
6
+ (function (NotificationCategoryCount) {
7
+ /** Category. */
8
+ NotificationCategoryCount.Category = {
9
+ Transactional: "transactional",
10
+ Operational: "operational",
11
+ Alert: "alert",
12
+ Marketing: "marketing",
13
+ Security: "security",
14
+ System: "system",
15
+ };
16
+ })(NotificationCategoryCount || (exports.NotificationCategoryCount = NotificationCategoryCount = {}));
@@ -0,0 +1,23 @@
1
+ import type * as NizamOperatorRuntime from "../index.js";
2
+ /**
3
+ * Inbox segment-badge counts (server-derived).
4
+ */
5
+ export interface NotificationCounts {
6
+ /** Active (non-archived) notifications. */
7
+ total?: number | undefined;
8
+ /** Active unread notifications. */
9
+ unread?: number | undefined;
10
+ /** Archived ("Done") notifications. */
11
+ archived?: number | undefined;
12
+ /** Per-category active counts; categories with no active row are omitted. */
13
+ categories?: NizamOperatorRuntime.NotificationCategoryCount[] | undefined;
14
+ /** Object type discriminator. */
15
+ object?: NotificationCounts.Object_ | undefined;
16
+ }
17
+ export declare namespace NotificationCounts {
18
+ /** Object type discriminator. */
19
+ const Object_: {
20
+ readonly NotificationCounts: "notification_counts";
21
+ };
22
+ type Object_ = (typeof Object_)[keyof typeof Object_];
23
+ }
@@ -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.NotificationCounts = void 0;
5
+ var NotificationCounts;
6
+ (function (NotificationCounts) {
7
+ /** Object type discriminator. */
8
+ NotificationCounts.Object_ = {
9
+ NotificationCounts: "notification_counts",
10
+ };
11
+ })(NotificationCounts || (exports.NotificationCounts = NotificationCounts = {}));
@@ -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
+ }