@openstatus/sdk-node 0.1.2 → 0.1.3

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 (26) hide show
  1. package/README.md +837 -453
  2. package/esm/gen/openstatus/notification/v1/notification_pb.d.ts +110 -0
  3. package/esm/gen/openstatus/notification/v1/notification_pb.d.ts.map +1 -0
  4. package/esm/gen/openstatus/notification/v1/notification_pb.js +19 -0
  5. package/esm/gen/openstatus/notification/v1/providers_pb.d.ts +504 -0
  6. package/esm/gen/openstatus/notification/v1/providers_pb.d.ts.map +1 -0
  7. package/esm/gen/openstatus/notification/v1/providers_pb.js +199 -0
  8. package/esm/gen/openstatus/notification/v1/service_pb.d.ts +403 -0
  9. package/esm/gen/openstatus/notification/v1/service_pb.d.ts.map +1 -0
  10. package/esm/gen/openstatus/notification/v1/service_pb.js +91 -0
  11. package/esm/mod.d.ts +25 -0
  12. package/esm/mod.d.ts.map +1 -1
  13. package/esm/mod.js +7 -0
  14. package/package.json +5 -2
  15. package/script/gen/openstatus/notification/v1/notification_pb.d.ts +110 -0
  16. package/script/gen/openstatus/notification/v1/notification_pb.d.ts.map +1 -0
  17. package/script/gen/openstatus/notification/v1/notification_pb.js +22 -0
  18. package/script/gen/openstatus/notification/v1/providers_pb.d.ts +504 -0
  19. package/script/gen/openstatus/notification/v1/providers_pb.d.ts.map +1 -0
  20. package/script/gen/openstatus/notification/v1/providers_pb.js +202 -0
  21. package/script/gen/openstatus/notification/v1/service_pb.d.ts +403 -0
  22. package/script/gen/openstatus/notification/v1/service_pb.d.ts.map +1 -0
  23. package/script/gen/openstatus/notification/v1/service_pb.js +94 -0
  24. package/script/mod.d.ts +25 -0
  25. package/script/mod.d.ts.map +1 -1
  26. package/script/mod.js +12 -3
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
3
+ // @generated from file openstatus/notification/v1/service.proto (package openstatus.notification.v1, syntax proto3)
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NotificationService = exports.CheckNotificationLimitResponseSchema = exports.CheckNotificationLimitRequestSchema = exports.SendTestNotificationResponseSchema = exports.SendTestNotificationRequestSchema = exports.DeleteNotificationResponseSchema = exports.DeleteNotificationRequestSchema = exports.UpdateNotificationResponseSchema = exports.UpdateNotificationRequestSchema = exports.ListNotificationsResponseSchema = exports.ListNotificationsRequestSchema = exports.GetNotificationResponseSchema = exports.GetNotificationRequestSchema = exports.CreateNotificationResponseSchema = exports.CreateNotificationRequestSchema = exports.file_openstatus_notification_v1_service = void 0;
7
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
+ const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js");
9
+ const notification_pb_js_1 = require("./notification_pb.js");
10
+ const providers_pb_js_1 = require("./providers_pb.js");
11
+ /**
12
+ * Describes the file openstatus/notification/v1/service.proto.
13
+ */
14
+ exports.file_openstatus_notification_v1_service = (0, codegenv2_1.fileDesc)("CihvcGVuc3RhdHVzL25vdGlmaWNhdGlvbi92MS9zZXJ2aWNlLnByb3RvEhpvcGVuc3RhdHVzLm5vdGlmaWNhdGlvbi52MSLbAQoZQ3JlYXRlTm90aWZpY2F0aW9uUmVxdWVzdBIVCgRuYW1lGAEgASgJQge6SARyAhABEk4KCHByb3ZpZGVyGAIgASgOMjAub3BlbnN0YXR1cy5ub3RpZmljYXRpb24udjEuTm90aWZpY2F0aW9uUHJvdmlkZXJCCrpIB4IBBBABIAASQgoEZGF0YRgDIAEoCzIsLm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLk5vdGlmaWNhdGlvbkRhdGFCBrpIA8gBARITCgttb25pdG9yX2lkcxgEIAMoCSJcChpDcmVhdGVOb3RpZmljYXRpb25SZXNwb25zZRI+Cgxub3RpZmljYXRpb24YASABKAsyKC5vcGVuc3RhdHVzLm5vdGlmaWNhdGlvbi52MS5Ob3RpZmljYXRpb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vdGlmaWNhdGlvblJlcXVlc3QaNi5vcGVuc3RhdHVzLm5vdGlmaWNhdGlvbi52MS5VcGRhdGVOb3RpZmljYXRpb25SZXNwb25zZRKDAQoSRGVsZXRlTm90aWZpY2F0aW9uEjUub3BlbnN0YXR1cy5ub3RpZmljYXRpb24udjEuRGVsZXRlTm90aWZpY2F0aW9uUmVxdWVzdBo2Lm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLkRlbGV0ZU5vdGlmaWNhdGlvblJlc3BvbnNlEokBChRTZW5kVGVzdE5vdGlmaWNhdGlvbhI3Lm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLlNlbmRUZXN0Tm90aWZpY2F0aW9uUmVxdWVzdBo4Lm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLlNlbmRUZXN0Tm90aWZpY2F0aW9uUmVzcG9uc2USjwEKFkNoZWNrTm90aWZpY2F0aW9uTGltaXQSOS5vcGVuc3RhdHVzLm5vdGlmaWNhdGlvbi52MS5DaGVja05vdGlmaWNhdGlvbkxpbWl0UmVxdWVzdBo6Lm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLkNoZWNrTm90aWZpY2F0aW9uTGltaXRSZXNwb25zZUJdWltnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvbm90aWZpY2F0aW9uL3YxO25vdGlmaWNhdGlvbnYxYgZwcm90bzM", [
15
+ validate_pb_js_1.file_buf_validate_validate,
16
+ notification_pb_js_1.file_openstatus_notification_v1_notification,
17
+ providers_pb_js_1.file_openstatus_notification_v1_providers,
18
+ ]);
19
+ /**
20
+ * Describes the message openstatus.notification.v1.CreateNotificationRequest.
21
+ * Use `create(CreateNotificationRequestSchema)` to create a new message.
22
+ */
23
+ exports.CreateNotificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 0);
24
+ /**
25
+ * Describes the message openstatus.notification.v1.CreateNotificationResponse.
26
+ * Use `create(CreateNotificationResponseSchema)` to create a new message.
27
+ */
28
+ exports.CreateNotificationResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 1);
29
+ /**
30
+ * Describes the message openstatus.notification.v1.GetNotificationRequest.
31
+ * Use `create(GetNotificationRequestSchema)` to create a new message.
32
+ */
33
+ exports.GetNotificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 2);
34
+ /**
35
+ * Describes the message openstatus.notification.v1.GetNotificationResponse.
36
+ * Use `create(GetNotificationResponseSchema)` to create a new message.
37
+ */
38
+ exports.GetNotificationResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 3);
39
+ /**
40
+ * Describes the message openstatus.notification.v1.ListNotificationsRequest.
41
+ * Use `create(ListNotificationsRequestSchema)` to create a new message.
42
+ */
43
+ exports.ListNotificationsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 4);
44
+ /**
45
+ * Describes the message openstatus.notification.v1.ListNotificationsResponse.
46
+ * Use `create(ListNotificationsResponseSchema)` to create a new message.
47
+ */
48
+ exports.ListNotificationsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 5);
49
+ /**
50
+ * Describes the message openstatus.notification.v1.UpdateNotificationRequest.
51
+ * Use `create(UpdateNotificationRequestSchema)` to create a new message.
52
+ */
53
+ exports.UpdateNotificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 6);
54
+ /**
55
+ * Describes the message openstatus.notification.v1.UpdateNotificationResponse.
56
+ * Use `create(UpdateNotificationResponseSchema)` to create a new message.
57
+ */
58
+ exports.UpdateNotificationResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 7);
59
+ /**
60
+ * Describes the message openstatus.notification.v1.DeleteNotificationRequest.
61
+ * Use `create(DeleteNotificationRequestSchema)` to create a new message.
62
+ */
63
+ exports.DeleteNotificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 8);
64
+ /**
65
+ * Describes the message openstatus.notification.v1.DeleteNotificationResponse.
66
+ * Use `create(DeleteNotificationResponseSchema)` to create a new message.
67
+ */
68
+ exports.DeleteNotificationResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 9);
69
+ /**
70
+ * Describes the message openstatus.notification.v1.SendTestNotificationRequest.
71
+ * Use `create(SendTestNotificationRequestSchema)` to create a new message.
72
+ */
73
+ exports.SendTestNotificationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 10);
74
+ /**
75
+ * Describes the message openstatus.notification.v1.SendTestNotificationResponse.
76
+ * Use `create(SendTestNotificationResponseSchema)` to create a new message.
77
+ */
78
+ exports.SendTestNotificationResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 11);
79
+ /**
80
+ * Describes the message openstatus.notification.v1.CheckNotificationLimitRequest.
81
+ * Use `create(CheckNotificationLimitRequestSchema)` to create a new message.
82
+ */
83
+ exports.CheckNotificationLimitRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 12);
84
+ /**
85
+ * Describes the message openstatus.notification.v1.CheckNotificationLimitResponse.
86
+ * Use `create(CheckNotificationLimitResponseSchema)` to create a new message.
87
+ */
88
+ exports.CheckNotificationLimitResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_openstatus_notification_v1_service, 13);
89
+ /**
90
+ * NotificationService provides CRUD operations for notification channels.
91
+ *
92
+ * @generated from service openstatus.notification.v1.NotificationService
93
+ */
94
+ exports.NotificationService = (0, codegenv2_1.serviceDesc)(exports.file_openstatus_notification_v1_service, 0);
package/script/mod.d.ts CHANGED
@@ -33,6 +33,7 @@ import { HealthService } from "./gen/openstatus/health/v1/health_pb.js";
33
33
  import { StatusReportService } from "./gen/openstatus/status_report/v1/service_pb.js";
34
34
  import { StatusPageService } from "./gen/openstatus/status_page/v1/service_pb.js";
35
35
  import { MaintenanceService } from "./gen/openstatus/maintenance/v1/service_pb.js";
36
+ import { NotificationService } from "./gen/openstatus/notification/v1/service_pb.js";
36
37
  export type { Headers, HTTPMonitor, OpenTelemetryConfig, } from "./gen/openstatus/monitor/v1/http_monitor_pb.js";
37
38
  export type { TCPMonitor } from "./gen/openstatus/monitor/v1/tcp_monitor_pb.js";
38
39
  export type { DNSMonitor } from "./gen/openstatus/monitor/v1/dns_monitor_pb.js";
@@ -56,6 +57,10 @@ export type { PageSubscriber } from "./gen/openstatus/status_page/v1/page_subscr
56
57
  export type { AddMonitorComponentRequest, AddMonitorComponentResponse, AddStaticComponentRequest, AddStaticComponentResponse, ComponentStatus, CreateComponentGroupRequest, CreateComponentGroupResponse, CreateStatusPageRequest, CreateStatusPageResponse, DeleteComponentGroupRequest, DeleteComponentGroupResponse, DeleteStatusPageRequest, DeleteStatusPageResponse, GetOverallStatusRequest, GetOverallStatusResponse, GetStatusPageContentRequest, GetStatusPageContentResponse, GetStatusPageRequest, GetStatusPageResponse, ListStatusPagesRequest, ListStatusPagesResponse, ListSubscribersRequest, ListSubscribersResponse, RemoveComponentRequest, RemoveComponentResponse, SubscribeToPageRequest, SubscribeToPageResponse, UnsubscribeFromPageRequest, UnsubscribeFromPageResponse, UpdateComponentGroupRequest, UpdateComponentGroupResponse, UpdateComponentRequest, UpdateComponentResponse, UpdateStatusPageRequest, UpdateStatusPageResponse, } from "./gen/openstatus/status_page/v1/service_pb.js";
57
58
  export type { Maintenance, MaintenanceSummary, } from "./gen/openstatus/maintenance/v1/maintenance_pb.js";
58
59
  export type { CreateMaintenanceRequest, CreateMaintenanceResponse, DeleteMaintenanceRequest, DeleteMaintenanceResponse, GetMaintenanceRequest, GetMaintenanceResponse, ListMaintenancesRequest, ListMaintenancesResponse, UpdateMaintenanceRequest, UpdateMaintenanceResponse, } from "./gen/openstatus/maintenance/v1/service_pb.js";
60
+ export type { Notification, NotificationSummary, } from "./gen/openstatus/notification/v1/notification_pb.js";
61
+ export type { DiscordData, EmailData, GoogleChatData, GrafanaOncallData, NotificationData, NtfyData, OpsgenieData, PagerDutyData, SlackData, SmsData, TelegramData, WebhookData, WebhookHeader, WhatsappData, } from "./gen/openstatus/notification/v1/providers_pb.js";
62
+ export { NotificationProvider, OpsgenieRegion, } from "./gen/openstatus/notification/v1/providers_pb.js";
63
+ export type { CheckNotificationLimitRequest, CheckNotificationLimitResponse, CreateNotificationRequest, CreateNotificationResponse, DeleteNotificationRequest, DeleteNotificationResponse, GetNotificationRequest, GetNotificationResponse, ListNotificationsRequest, ListNotificationsResponse, SendTestNotificationRequest, SendTestNotificationResponse, UpdateNotificationRequest, UpdateNotificationResponse, } from "./gen/openstatus/notification/v1/service_pb.js";
59
64
  /**
60
65
  * OpenStatus API client interface.
61
66
  *
@@ -167,6 +172,26 @@ export interface OpenStatusClient {
167
172
  MaintenanceService: Client<typeof MaintenanceService>;
168
173
  };
169
174
  };
175
+ /**
176
+ * Notification service namespace (v1).
177
+ */
178
+ notification: {
179
+ v1: {
180
+ /**
181
+ * NotificationService provides CRUD operations for notification channels.
182
+ *
183
+ * Methods:
184
+ * - `createNotification` - Create a new notification channel
185
+ * - `getNotification` - Get a notification channel by ID
186
+ * - `listNotifications` - List all notification channels
187
+ * - `updateNotification` - Update a notification channel
188
+ * - `deleteNotification` - Delete a notification channel
189
+ * - `sendTestNotification` - Send a test notification
190
+ * - `checkNotificationLimit` - Check notification limits
191
+ */
192
+ NotificationService: Client<typeof NotificationService>;
193
+ };
194
+ };
170
195
  }
171
196
  /**
172
197
  * OpenStatus SDK client.
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,M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KACH,CAAC;IACF;;OAEG;IACH,MAAM,EAAE;QACN,EAAE,EAAE;YACF;;;;;eAKG;YACH,aAAa,EAAE,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;SAC7C,CAAC;KACH,CAAC;IACF;;OAEG;IACH,YAAY,EAAE;QACZ,EAAE,EAAE;YACF;;;;;;;;;;eAUG;YACH,mBAAmB,EAAE,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;SACzD,CAAC;KACH,CAAC;IACF;;OAEG;IACH,UAAU,EAAE;QACV,EAAE,EAAE;YACF;;;;;;;;;;;;;;;;;;;;;eAqBG;YACH,iBAAiB,EAAE,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;SACrD,CAAC;KACH,CAAC;IACF;;OAEG;IACH,WAAW,EAAE;QACX,EAAE,EAAE;YACF;;;;;;;;;eASG;YACH,kBAAkB,EAAE,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;SACvD,CAAC;KACH,CAAC;IACF;;OAEG;IACH,YAAY,EAAE;QACZ,EAAE,EAAE;YACF;;;;;;;;;;;eAWG;YACH,mBAAmB,EAAE,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;SACzD,CAAC;KACH,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,EAAE,gBA+BxB,CAAC"}
package/script/mod.js CHANGED
@@ -29,7 +29,7 @@
29
29
  * ```
30
30
  */
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.openstatus = exports.PageComponentType = exports.PageTheme = exports.PageAccessType = exports.OverallStatus = exports.StatusReportStatus = exports.ServingStatus = exports.TimeRange = exports.MonitorStatus = exports.Region = exports.Periodicity = exports.HTTPMethod = exports.StringComparator = exports.RecordComparator = exports.NumberComparator = void 0;
32
+ exports.openstatus = exports.OpsgenieRegion = exports.NotificationProvider = exports.PageComponentType = exports.PageTheme = exports.PageAccessType = exports.OverallStatus = exports.StatusReportStatus = exports.ServingStatus = exports.TimeRange = exports.MonitorStatus = exports.Region = exports.Periodicity = exports.HTTPMethod = exports.StringComparator = exports.RecordComparator = exports.NumberComparator = void 0;
33
33
  const connect_1 = require("@connectrpc/connect");
34
34
  const connect_node_1 = require("@connectrpc/connect-node");
35
35
  const service_pb_js_1 = require("./gen/openstatus/monitor/v1/service_pb.js");
@@ -37,6 +37,7 @@ const health_pb_js_1 = require("./gen/openstatus/health/v1/health_pb.js");
37
37
  const service_pb_js_2 = require("./gen/openstatus/status_report/v1/service_pb.js");
38
38
  const service_pb_js_3 = require("./gen/openstatus/status_page/v1/service_pb.js");
39
39
  const service_pb_js_4 = require("./gen/openstatus/maintenance/v1/service_pb.js");
40
+ const service_pb_js_5 = require("./gen/openstatus/notification/v1/service_pb.js");
40
41
  // Re-export assertion comparator enums
41
42
  var assertions_pb_js_1 = require("./gen/openstatus/monitor/v1/assertions_pb.js");
42
43
  Object.defineProperty(exports, "NumberComparator", { enumerable: true, get: function () { return assertions_pb_js_1.NumberComparator; } });
@@ -50,8 +51,8 @@ Object.defineProperty(exports, "Periodicity", { enumerable: true, get: function
50
51
  Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return monitor_pb_js_1.Region; } });
51
52
  var monitor_pb_js_2 = require("./gen/openstatus/monitor/v1/monitor_pb.js");
52
53
  Object.defineProperty(exports, "MonitorStatus", { enumerable: true, get: function () { return monitor_pb_js_2.MonitorStatus; } });
53
- var service_pb_js_5 = require("./gen/openstatus/monitor/v1/service_pb.js");
54
- Object.defineProperty(exports, "TimeRange", { enumerable: true, get: function () { return service_pb_js_5.TimeRange; } });
54
+ var service_pb_js_6 = require("./gen/openstatus/monitor/v1/service_pb.js");
55
+ Object.defineProperty(exports, "TimeRange", { enumerable: true, get: function () { return service_pb_js_6.TimeRange; } });
55
56
  var health_pb_js_2 = require("./gen/openstatus/health/v1/health_pb.js");
56
57
  Object.defineProperty(exports, "ServingStatus", { enumerable: true, get: function () { return health_pb_js_2.CheckResponse_ServingStatus; } });
57
58
  var status_report_pb_js_1 = require("./gen/openstatus/status_report/v1/status_report_pb.js");
@@ -62,6 +63,9 @@ Object.defineProperty(exports, "PageAccessType", { enumerable: true, get: functi
62
63
  Object.defineProperty(exports, "PageTheme", { enumerable: true, get: function () { return status_page_pb_js_1.PageTheme; } });
63
64
  var page_component_pb_js_1 = require("./gen/openstatus/status_page/v1/page_component_pb.js");
64
65
  Object.defineProperty(exports, "PageComponentType", { enumerable: true, get: function () { return page_component_pb_js_1.PageComponentType; } });
66
+ var providers_pb_js_1 = require("./gen/openstatus/notification/v1/providers_pb.js");
67
+ Object.defineProperty(exports, "NotificationProvider", { enumerable: true, get: function () { return providers_pb_js_1.NotificationProvider; } });
68
+ Object.defineProperty(exports, "OpsgenieRegion", { enumerable: true, get: function () { return providers_pb_js_1.OpsgenieRegion; } });
65
69
  /**
66
70
  * Default OpenStatus API URL.
67
71
  */
@@ -123,4 +127,9 @@ exports.openstatus = {
123
127
  MaintenanceService: (0, connect_1.createClient)(service_pb_js_4.MaintenanceService, transport),
124
128
  },
125
129
  },
130
+ notification: {
131
+ v1: {
132
+ NotificationService: (0, connect_1.createClient)(service_pb_js_5.NotificationService, transport),
133
+ },
134
+ },
126
135
  };