@openstatus/sdk-node 0.0.2 → 0.1.1

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 (44) hide show
  1. package/README.md +616 -142
  2. package/esm/gen/openstatus/status_page/v1/page_component_pb.d.ts +150 -0
  3. package/esm/gen/openstatus/status_page/v1/page_component_pb.d.ts.map +1 -0
  4. package/esm/gen/openstatus/status_page/v1/page_component_pb.js +42 -0
  5. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts +61 -0
  6. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts.map +1 -0
  7. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.js +13 -0
  8. package/esm/gen/openstatus/status_page/v1/service_pb.d.ts +1043 -0
  9. package/esm/gen/openstatus/status_page/v1/service_pb.d.ts.map +1 -0
  10. package/esm/gen/openstatus/status_page/v1/service_pb.js +202 -0
  11. package/esm/gen/openstatus/status_page/v1/status_page_pb.d.ts +298 -0
  12. package/esm/gen/openstatus/status_page/v1/status_page_pb.d.ts.map +1 -0
  13. package/esm/gen/openstatus/status_page/v1/status_page_pb.js +119 -0
  14. package/esm/gen/openstatus/status_report/v1/service_pb.d.ts +357 -0
  15. package/esm/gen/openstatus/status_report/v1/service_pb.d.ts.map +1 -0
  16. package/esm/gen/openstatus/status_report/v1/service_pb.js +79 -0
  17. package/esm/gen/openstatus/status_report/v1/status_report_pb.d.ts +182 -0
  18. package/esm/gen/openstatus/status_report/v1/status_report_pb.d.ts.map +1 -0
  19. package/esm/gen/openstatus/status_report/v1/status_report_pb.js +55 -0
  20. package/esm/mod.d.ts +62 -2
  21. package/esm/mod.d.ts.map +1 -1
  22. package/esm/mod.js +16 -1
  23. package/package.json +1 -1
  24. package/script/gen/openstatus/status_page/v1/page_component_pb.d.ts +150 -0
  25. package/script/gen/openstatus/status_page/v1/page_component_pb.d.ts.map +1 -0
  26. package/script/gen/openstatus/status_page/v1/page_component_pb.js +45 -0
  27. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts +61 -0
  28. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts.map +1 -0
  29. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.js +16 -0
  30. package/script/gen/openstatus/status_page/v1/service_pb.d.ts +1043 -0
  31. package/script/gen/openstatus/status_page/v1/service_pb.d.ts.map +1 -0
  32. package/script/gen/openstatus/status_page/v1/service_pb.js +205 -0
  33. package/script/gen/openstatus/status_page/v1/status_page_pb.d.ts +298 -0
  34. package/script/gen/openstatus/status_page/v1/status_page_pb.d.ts.map +1 -0
  35. package/script/gen/openstatus/status_page/v1/status_page_pb.js +122 -0
  36. package/script/gen/openstatus/status_report/v1/service_pb.d.ts +357 -0
  37. package/script/gen/openstatus/status_report/v1/service_pb.d.ts.map +1 -0
  38. package/script/gen/openstatus/status_report/v1/service_pb.js +82 -0
  39. package/script/gen/openstatus/status_report/v1/status_report_pb.d.ts +182 -0
  40. package/script/gen/openstatus/status_report/v1/status_report_pb.d.ts.map +1 -0
  41. package/script/gen/openstatus/status_report/v1/status_report_pb.js +58 -0
  42. package/script/mod.d.ts +62 -2
  43. package/script/mod.d.ts.map +1 -1
  44. package/script/mod.js +24 -4
@@ -0,0 +1,150 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file openstatus/status_page/v1/page_component.proto.
5
+ */
6
+ export declare const file_openstatus_status_page_v1_page_component: GenFile;
7
+ /**
8
+ * PageComponent represents a component displayed on a status page.
9
+ *
10
+ * @generated from message openstatus.status_page.v1.PageComponent
11
+ */
12
+ export type PageComponent = Message<"openstatus.status_page.v1.PageComponent"> & {
13
+ /**
14
+ * Unique identifier for the component.
15
+ *
16
+ * @generated from field: string id = 1;
17
+ */
18
+ id: string;
19
+ /**
20
+ * ID of the status page this component belongs to.
21
+ *
22
+ * @generated from field: string page_id = 2;
23
+ */
24
+ pageId: string;
25
+ /**
26
+ * Display name of the component.
27
+ *
28
+ * @generated from field: string name = 3;
29
+ */
30
+ name: string;
31
+ /**
32
+ * Description of the component (optional).
33
+ *
34
+ * @generated from field: string description = 4;
35
+ */
36
+ description: string;
37
+ /**
38
+ * Type of the component (monitor or static).
39
+ *
40
+ * @generated from field: openstatus.status_page.v1.PageComponentType type = 5;
41
+ */
42
+ type: PageComponentType;
43
+ /**
44
+ * ID of the monitor if type is MONITOR (optional).
45
+ *
46
+ * @generated from field: string monitor_id = 6;
47
+ */
48
+ monitorId: string;
49
+ /**
50
+ * Display order of the component.
51
+ *
52
+ * @generated from field: int32 order = 7;
53
+ */
54
+ order: number;
55
+ /**
56
+ * ID of the group this component belongs to (optional).
57
+ *
58
+ * @generated from field: string group_id = 8;
59
+ */
60
+ groupId: string;
61
+ /**
62
+ * Order within the group if grouped.
63
+ *
64
+ * @generated from field: int32 group_order = 9;
65
+ */
66
+ groupOrder: number;
67
+ /**
68
+ * Timestamp when the component was created (RFC 3339 format).
69
+ *
70
+ * @generated from field: string created_at = 10;
71
+ */
72
+ createdAt: string;
73
+ /**
74
+ * Timestamp when the component was last updated (RFC 3339 format).
75
+ *
76
+ * @generated from field: string updated_at = 11;
77
+ */
78
+ updatedAt: string;
79
+ };
80
+ /**
81
+ * Describes the message openstatus.status_page.v1.PageComponent.
82
+ * Use `create(PageComponentSchema)` to create a new message.
83
+ */
84
+ export declare const PageComponentSchema: GenMessage<PageComponent>;
85
+ /**
86
+ * PageComponentGroup represents a group of components on a status page.
87
+ *
88
+ * @generated from message openstatus.status_page.v1.PageComponentGroup
89
+ */
90
+ export type PageComponentGroup = Message<"openstatus.status_page.v1.PageComponentGroup"> & {
91
+ /**
92
+ * Unique identifier for the group.
93
+ *
94
+ * @generated from field: string id = 1;
95
+ */
96
+ id: string;
97
+ /**
98
+ * ID of the status page this group belongs to.
99
+ *
100
+ * @generated from field: string page_id = 2;
101
+ */
102
+ pageId: string;
103
+ /**
104
+ * Display name of the group.
105
+ *
106
+ * @generated from field: string name = 3;
107
+ */
108
+ name: string;
109
+ /**
110
+ * Timestamp when the group was created (RFC 3339 format).
111
+ *
112
+ * @generated from field: string created_at = 4;
113
+ */
114
+ createdAt: string;
115
+ /**
116
+ * Timestamp when the group was last updated (RFC 3339 format).
117
+ *
118
+ * @generated from field: string updated_at = 5;
119
+ */
120
+ updatedAt: string;
121
+ };
122
+ /**
123
+ * Describes the message openstatus.status_page.v1.PageComponentGroup.
124
+ * Use `create(PageComponentGroupSchema)` to create a new message.
125
+ */
126
+ export declare const PageComponentGroupSchema: GenMessage<PageComponentGroup>;
127
+ /**
128
+ * PageComponentType defines the type of a component on a status page.
129
+ *
130
+ * @generated from enum openstatus.status_page.v1.PageComponentType
131
+ */
132
+ export declare enum PageComponentType {
133
+ /**
134
+ * @generated from enum value: PAGE_COMPONENT_TYPE_UNSPECIFIED = 0;
135
+ */
136
+ UNSPECIFIED = 0,
137
+ /**
138
+ * @generated from enum value: PAGE_COMPONENT_TYPE_MONITOR = 1;
139
+ */
140
+ MONITOR = 1,
141
+ /**
142
+ * @generated from enum value: PAGE_COMPONENT_TYPE_STATIC = 2;
143
+ */
144
+ STATIC = 2
145
+ }
146
+ /**
147
+ * Describes the enum openstatus.status_page.v1.PageComponentType.
148
+ */
149
+ export declare const PageComponentTypeSchema: GenEnum<PageComponentType>;
150
+ //# sourceMappingURL=page_component_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page_component_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/status_page/v1/page_component_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EACxD,OAGC,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAC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,0 +1,42 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file openstatus/status_page/v1/page_component.proto (package openstatus.status_page.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file openstatus/status_page/v1/page_component.proto.
7
+ */
8
+ export const file_openstatus_status_page_v1_page_component = /*@__PURE__*/ fileDesc("Ci5vcGVuc3RhdHVzL3N0YXR1c19wYWdlL3YxL3BhZ2VfY29tcG9uZW50LnByb3RvEhlvcGVuc3RhdHVzLnN0YXR1c19wYWdlLnYxIv0BCg1QYWdlQ29tcG9uZW50EgoKAmlkGAEgASgJEg8KB3BhZ2VfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRITCgtkZXNjcmlwdGlvbhgEIAEoCRI6CgR0eXBlGAUgASgOMiwub3BlbnN0YXR1cy5zdGF0dXNfcGFnZS52MS5QYWdlQ29tcG9uZW50VHlwZRISCgptb25pdG9yX2lkGAYgASgJEg0KBW9yZGVyGAcgASgFEhAKCGdyb3VwX2lkGAggASgJEhMKC2dyb3VwX29yZGVyGAkgASgFEhIKCmNyZWF0ZWRfYXQYCiABKAkSEgoKdXBkYXRlZF9hdBgLIAEoCSJnChJQYWdlQ29tcG9uZW50R3JvdXASCgoCaWQYASABKAkSDwoHcGFnZV9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhIKCmNyZWF0ZWRfYXQYBCABKAkSEgoKdXBkYXRlZF9hdBgFIAEoCSp5ChFQYWdlQ29tcG9uZW50VHlwZRIjCh9QQUdFX0NPTVBPTkVOVF9UWVBFX1VOU1BFQ0lGSUVEEAASHwobUEFHRV9DT01QT05FTlRfVFlQRV9NT05JVE9SEAESHgoaUEFHRV9DT01QT05FTlRfVFlQRV9TVEFUSUMQAkJaWlhnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvc3RhdHVzX3BhZ2UvdjE7c3RhdHVzcGFnZXYxYgZwcm90bzM");
9
+ /**
10
+ * Describes the message openstatus.status_page.v1.PageComponent.
11
+ * Use `create(PageComponentSchema)` to create a new message.
12
+ */
13
+ export const PageComponentSchema = /*@__PURE__*/ messageDesc(file_openstatus_status_page_v1_page_component, 0);
14
+ /**
15
+ * Describes the message openstatus.status_page.v1.PageComponentGroup.
16
+ * Use `create(PageComponentGroupSchema)` to create a new message.
17
+ */
18
+ export const PageComponentGroupSchema = /*@__PURE__*/ messageDesc(file_openstatus_status_page_v1_page_component, 1);
19
+ /**
20
+ * PageComponentType defines the type of a component on a status page.
21
+ *
22
+ * @generated from enum openstatus.status_page.v1.PageComponentType
23
+ */
24
+ export var PageComponentType;
25
+ (function (PageComponentType) {
26
+ /**
27
+ * @generated from enum value: PAGE_COMPONENT_TYPE_UNSPECIFIED = 0;
28
+ */
29
+ PageComponentType[PageComponentType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
30
+ /**
31
+ * @generated from enum value: PAGE_COMPONENT_TYPE_MONITOR = 1;
32
+ */
33
+ PageComponentType[PageComponentType["MONITOR"] = 1] = "MONITOR";
34
+ /**
35
+ * @generated from enum value: PAGE_COMPONENT_TYPE_STATIC = 2;
36
+ */
37
+ PageComponentType[PageComponentType["STATIC"] = 2] = "STATIC";
38
+ })(PageComponentType || (PageComponentType = {}));
39
+ /**
40
+ * Describes the enum openstatus.status_page.v1.PageComponentType.
41
+ */
42
+ export const PageComponentTypeSchema = /*@__PURE__*/ enumDesc(file_openstatus_status_page_v1_page_component, 0);
@@ -0,0 +1,61 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file openstatus/status_page/v1/page_subscriber.proto.
5
+ */
6
+ export declare const file_openstatus_status_page_v1_page_subscriber: GenFile;
7
+ /**
8
+ * PageSubscriber represents a subscriber to a status page.
9
+ *
10
+ * @generated from message openstatus.status_page.v1.PageSubscriber
11
+ */
12
+ export type PageSubscriber = Message<"openstatus.status_page.v1.PageSubscriber"> & {
13
+ /**
14
+ * Unique identifier for the subscriber.
15
+ *
16
+ * @generated from field: string id = 1;
17
+ */
18
+ id: string;
19
+ /**
20
+ * ID of the status page the user is subscribed to.
21
+ *
22
+ * @generated from field: string page_id = 2;
23
+ */
24
+ pageId: string;
25
+ /**
26
+ * Email address of the subscriber.
27
+ *
28
+ * @generated from field: string email = 3;
29
+ */
30
+ email: string;
31
+ /**
32
+ * Timestamp when the subscription was accepted/confirmed (RFC 3339 format, optional).
33
+ *
34
+ * @generated from field: string accepted_at = 4;
35
+ */
36
+ acceptedAt: string;
37
+ /**
38
+ * Timestamp when the user unsubscribed (RFC 3339 format, optional).
39
+ *
40
+ * @generated from field: string unsubscribed_at = 5;
41
+ */
42
+ unsubscribedAt: string;
43
+ /**
44
+ * Timestamp when the subscription was created (RFC 3339 format).
45
+ *
46
+ * @generated from field: string created_at = 6;
47
+ */
48
+ createdAt: string;
49
+ /**
50
+ * Timestamp when the subscription was last updated (RFC 3339 format).
51
+ *
52
+ * @generated from field: string updated_at = 7;
53
+ */
54
+ updatedAt: string;
55
+ };
56
+ /**
57
+ * Describes the message openstatus.status_page.v1.PageSubscriber.
58
+ * Use `create(PageSubscriberSchema)` to create a new message.
59
+ */
60
+ export declare const PageSubscriberSchema: GenMessage<PageSubscriber>;
61
+ //# sourceMappingURL=page_subscriber_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page_subscriber_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/status_page/v1/page_subscriber_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,8CAA8C,EACzD,OAGC,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,OAAO,CAAC,0CAA0C,CAAC,GACnD;IACA;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,CACI,CAAC"}
@@ -0,0 +1,13 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file openstatus/status_page/v1/page_subscriber.proto (package openstatus.status_page.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file openstatus/status_page/v1/page_subscriber.proto.
7
+ */
8
+ export const file_openstatus_status_page_v1_page_subscriber = /*@__PURE__*/ fileDesc("Ci9vcGVuc3RhdHVzL3N0YXR1c19wYWdlL3YxL3BhZ2Vfc3Vic2NyaWJlci5wcm90bxIZb3BlbnN0YXR1cy5zdGF0dXNfcGFnZS52MSKSAQoOUGFnZVN1YnNjcmliZXISCgoCaWQYASABKAkSDwoHcGFnZV9pZBgCIAEoCRINCgVlbWFpbBgDIAEoCRITCgthY2NlcHRlZF9hdBgEIAEoCRIXCg91bnN1YnNjcmliZWRfYXQYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRISCgp1cGRhdGVkX2F0GAcgASgJQlpaWGdpdGh1Yi5jb20vb3BlbnN0YXR1c2hxL29wZW5zdGF0dXMvcGFja2FnZXMvcHJvdG8vb3BlbnN0YXR1cy9zdGF0dXNfcGFnZS92MTtzdGF0dXNwYWdldjFiBnByb3RvMw");
9
+ /**
10
+ * Describes the message openstatus.status_page.v1.PageSubscriber.
11
+ * Use `create(PageSubscriberSchema)` to create a new message.
12
+ */
13
+ export const PageSubscriberSchema = /*@__PURE__*/ messageDesc(file_openstatus_status_page_v1_page_subscriber, 0);