@openstatus/sdk-node 0.1.0 → 0.1.2

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 (52) hide show
  1. package/README.md +433 -10
  2. package/esm/gen/openstatus/maintenance/v1/maintenance_pb.d.ts +139 -0
  3. package/esm/gen/openstatus/maintenance/v1/maintenance_pb.d.ts.map +1 -0
  4. package/esm/gen/openstatus/maintenance/v1/maintenance_pb.js +18 -0
  5. package/esm/gen/openstatus/maintenance/v1/service_pb.d.ts +315 -0
  6. package/esm/gen/openstatus/maintenance/v1/service_pb.d.ts.map +1 -0
  7. package/esm/gen/openstatus/maintenance/v1/service_pb.js +66 -0
  8. package/esm/gen/openstatus/monitor/v1/service_pb.d.ts +7 -13
  9. package/esm/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -1
  10. package/esm/gen/openstatus/monitor/v1/service_pb.js +1 -1
  11. package/esm/gen/openstatus/status_page/v1/page_component_pb.d.ts +150 -0
  12. package/esm/gen/openstatus/status_page/v1/page_component_pb.d.ts.map +1 -0
  13. package/esm/gen/openstatus/status_page/v1/page_component_pb.js +42 -0
  14. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts +61 -0
  15. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts.map +1 -0
  16. package/esm/gen/openstatus/status_page/v1/page_subscriber_pb.js +13 -0
  17. package/esm/gen/openstatus/status_page/v1/service_pb.d.ts +1044 -0
  18. package/esm/gen/openstatus/status_page/v1/service_pb.d.ts.map +1 -0
  19. package/esm/gen/openstatus/status_page/v1/service_pb.js +204 -0
  20. package/esm/gen/openstatus/status_page/v1/status_page_pb.d.ts +238 -0
  21. package/esm/gen/openstatus/status_page/v1/status_page_pb.d.ts.map +1 -0
  22. package/esm/gen/openstatus/status_page/v1/status_page_pb.js +114 -0
  23. package/esm/gen/openstatus/status_report/v1/service_pb.js +1 -1
  24. package/esm/mod.d.ts +58 -0
  25. package/esm/mod.d.ts.map +1 -1
  26. package/esm/mod.js +14 -0
  27. package/package.json +1 -1
  28. package/script/gen/openstatus/maintenance/v1/maintenance_pb.d.ts +139 -0
  29. package/script/gen/openstatus/maintenance/v1/maintenance_pb.d.ts.map +1 -0
  30. package/script/gen/openstatus/maintenance/v1/maintenance_pb.js +21 -0
  31. package/script/gen/openstatus/maintenance/v1/service_pb.d.ts +315 -0
  32. package/script/gen/openstatus/maintenance/v1/service_pb.d.ts.map +1 -0
  33. package/script/gen/openstatus/maintenance/v1/service_pb.js +69 -0
  34. package/script/gen/openstatus/monitor/v1/service_pb.d.ts +7 -13
  35. package/script/gen/openstatus/monitor/v1/service_pb.d.ts.map +1 -1
  36. package/script/gen/openstatus/monitor/v1/service_pb.js +1 -1
  37. package/script/gen/openstatus/status_page/v1/page_component_pb.d.ts +150 -0
  38. package/script/gen/openstatus/status_page/v1/page_component_pb.d.ts.map +1 -0
  39. package/script/gen/openstatus/status_page/v1/page_component_pb.js +45 -0
  40. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts +61 -0
  41. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.d.ts.map +1 -0
  42. package/script/gen/openstatus/status_page/v1/page_subscriber_pb.js +16 -0
  43. package/script/gen/openstatus/status_page/v1/service_pb.d.ts +1044 -0
  44. package/script/gen/openstatus/status_page/v1/service_pb.d.ts.map +1 -0
  45. package/script/gen/openstatus/status_page/v1/service_pb.js +207 -0
  46. package/script/gen/openstatus/status_page/v1/status_page_pb.d.ts +238 -0
  47. package/script/gen/openstatus/status_page/v1/status_page_pb.d.ts.map +1 -0
  48. package/script/gen/openstatus/status_page/v1/status_page_pb.js +117 -0
  49. package/script/gen/openstatus/status_report/v1/service_pb.js +1 -1
  50. package/script/mod.d.ts +58 -0
  51. package/script/mod.d.ts.map +1 -1
  52. package/script/mod.js +21 -3
package/README.md CHANGED
@@ -4,14 +4,21 @@
4
4
  [![npm](https://img.shields.io/npm/v/@openstatus/sdk-node)](https://www.npmjs.com/package/@openstatus/sdk-node)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
- Official Node.js SDK for [OpenStatus](https://openstatus.dev) - The open-source status page with uptime monitoring.
7
+ Official Node.js SDK for [OpenStatus](https://openstatus.dev) - The open-source
8
+ status page with uptime monitoring.
8
9
 
9
10
  ## Features
10
11
 
11
12
  ### Status Page
12
- - **Status Reports** - Manage incident and maintenance reports with update timelines
13
+
14
+ - **Status Pages** - Create and manage public status pages with custom domains
15
+ - **Page Components** - Add monitor-based or static components with grouping
16
+ - **Subscribers** - Manage email subscriptions for status updates
17
+ - **Status Reports** - Manage incident reports with update timelines
18
+ - **Maintenance Windows** - Schedule and manage planned maintenance periods
13
19
 
14
20
  ### Monitoring
21
+
15
22
  - **HTTP Monitoring** - Monitor websites and APIs with customizable assertions
16
23
  - **TCP Monitoring** - Check database connections and other TCP services
17
24
  - **DNS Monitoring** - Verify DNS records and resolution
@@ -380,7 +387,10 @@ const { statusReports, totalSize } = await openstatus.statusReport.v1
380
387
  {
381
388
  limit: 10,
382
389
  offset: 0,
383
- statuses: [StatusReportStatus.INVESTIGATING, StatusReportStatus.IDENTIFIED],
390
+ statuses: [
391
+ StatusReportStatus.INVESTIGATING,
392
+ StatusReportStatus.IDENTIFIED,
393
+ ],
384
394
  },
385
395
  { headers },
386
396
  );
@@ -428,7 +438,8 @@ const { statusReport } = await openstatus.statusReport.v1.StatusReportService
428
438
  {
429
439
  statusReportId: "sr_123",
430
440
  status: StatusReportStatus.IDENTIFIED,
431
- message: "The issue has been identified as a database connection problem.",
441
+ message:
442
+ "The issue has been identified as a database connection problem.",
432
443
  date: "2024-01-15T11:00:00", // optional, defaults to current time
433
444
  notify: true,
434
445
  },
@@ -438,13 +449,425 @@ const { statusReport } = await openstatus.statusReport.v1.StatusReportService
438
449
 
439
450
  ### Status Report Status
440
451
 
441
- | Enum Value | Description |
442
- | --------------- | ------------------------------- |
443
- | `UNSPECIFIED` | Default/unspecified status |
452
+ | Enum Value | Description |
453
+ | --------------- | -------------------------------- |
454
+ | `UNSPECIFIED` | Default/unspecified status |
444
455
  | `INVESTIGATING` | Actively investigating the issue |
445
- | `IDENTIFIED` | Root cause has been identified |
446
- | `MONITORING` | Fix deployed, monitoring |
447
- | `RESOLVED` | Issue fully resolved |
456
+ | `IDENTIFIED` | Root cause has been identified |
457
+ | `MONITORING` | Fix deployed, monitoring |
458
+ | `RESOLVED` | Issue fully resolved |
459
+
460
+ ### Status Page Service
461
+
462
+ Manage status pages, components, and subscribers.
463
+
464
+ #### `createStatusPage(request, options)`
465
+
466
+ Create a new status page.
467
+
468
+ ```typescript
469
+ const { statusPage } = await openstatus.statusPage.v1.StatusPageService
470
+ .createStatusPage(
471
+ {
472
+ title: "My Service Status",
473
+ slug: "my-service",
474
+ description: "Status page for My Service",
475
+ homepageUrl: "https://example.com",
476
+ contactUrl: "https://example.com/contact",
477
+ },
478
+ { headers },
479
+ );
480
+
481
+ console.log(`Status page created: ${statusPage?.id}`);
482
+ ```
483
+
484
+ #### `getStatusPage(request, options)`
485
+
486
+ Get a status page by ID.
487
+
488
+ ```typescript
489
+ const { statusPage } = await openstatus.statusPage.v1.StatusPageService
490
+ .getStatusPage(
491
+ { id: "page_123" },
492
+ { headers },
493
+ );
494
+ ```
495
+
496
+ #### `listStatusPages(request, options)`
497
+
498
+ List all status pages with pagination.
499
+
500
+ ```typescript
501
+ const { statusPages, totalSize } = await openstatus.statusPage.v1
502
+ .StatusPageService.listStatusPages(
503
+ { limit: 10, offset: 0 },
504
+ { headers },
505
+ );
506
+
507
+ console.log(`Found ${totalSize} status pages`);
508
+ ```
509
+
510
+ #### `updateStatusPage(request, options)`
511
+
512
+ Update a status page.
513
+
514
+ ```typescript
515
+ const { statusPage } = await openstatus.statusPage.v1.StatusPageService
516
+ .updateStatusPage(
517
+ {
518
+ id: "page_123",
519
+ title: "Updated Title",
520
+ description: "Updated description",
521
+ },
522
+ { headers },
523
+ );
524
+ ```
525
+
526
+ #### `deleteStatusPage(request, options)`
527
+
528
+ Delete a status page.
529
+
530
+ ```typescript
531
+ const { success } = await openstatus.statusPage.v1.StatusPageService
532
+ .deleteStatusPage(
533
+ { id: "page_123" },
534
+ { headers },
535
+ );
536
+ ```
537
+
538
+ #### `addMonitorComponent(request, options)`
539
+
540
+ Add a monitor-based component to a status page.
541
+
542
+ ```typescript
543
+ const { component } = await openstatus.statusPage.v1.StatusPageService
544
+ .addMonitorComponent(
545
+ {
546
+ pageId: "page_123",
547
+ monitorId: "mon_456",
548
+ name: "API Server",
549
+ description: "Main API endpoint",
550
+ order: 1,
551
+ },
552
+ { headers },
553
+ );
554
+ ```
555
+
556
+ #### `addStaticComponent(request, options)`
557
+
558
+ Add a static component (not linked to a monitor).
559
+
560
+ ```typescript
561
+ const { component } = await openstatus.statusPage.v1.StatusPageService
562
+ .addStaticComponent(
563
+ {
564
+ pageId: "page_123",
565
+ name: "Third-party Service",
566
+ description: "External dependency",
567
+ order: 2,
568
+ },
569
+ { headers },
570
+ );
571
+ ```
572
+
573
+ #### `updateComponent(request, options)`
574
+
575
+ Update a component.
576
+
577
+ ```typescript
578
+ const { component } = await openstatus.statusPage.v1.StatusPageService
579
+ .updateComponent(
580
+ {
581
+ id: "comp_123",
582
+ name: "Updated Component Name",
583
+ order: 3,
584
+ },
585
+ { headers },
586
+ );
587
+ ```
588
+
589
+ #### `removeComponent(request, options)`
590
+
591
+ Remove a component from a status page.
592
+
593
+ ```typescript
594
+ const { success } = await openstatus.statusPage.v1.StatusPageService
595
+ .removeComponent(
596
+ { id: "comp_123" },
597
+ { headers },
598
+ );
599
+ ```
600
+
601
+ #### `createComponentGroup(request, options)`
602
+
603
+ Create a component group.
604
+
605
+ ```typescript
606
+ const { group } = await openstatus.statusPage.v1.StatusPageService
607
+ .createComponentGroup(
608
+ {
609
+ pageId: "page_123",
610
+ name: "Core Services",
611
+ },
612
+ { headers },
613
+ );
614
+ ```
615
+
616
+ #### `updateComponentGroup(request, options)`
617
+
618
+ Update a component group.
619
+
620
+ ```typescript
621
+ const { group } = await openstatus.statusPage.v1.StatusPageService
622
+ .updateComponentGroup(
623
+ {
624
+ id: "group_123",
625
+ name: "Updated Group Name",
626
+ },
627
+ { headers },
628
+ );
629
+ ```
630
+
631
+ #### `deleteComponentGroup(request, options)`
632
+
633
+ Delete a component group.
634
+
635
+ ```typescript
636
+ const { success } = await openstatus.statusPage.v1.StatusPageService
637
+ .deleteComponentGroup(
638
+ { id: "group_123" },
639
+ { headers },
640
+ );
641
+ ```
642
+
643
+ #### `subscribeToPage(request, options)`
644
+
645
+ Subscribe an email to status page updates.
646
+
647
+ ```typescript
648
+ const { subscriber } = await openstatus.statusPage.v1.StatusPageService
649
+ .subscribeToPage(
650
+ {
651
+ pageId: "page_123",
652
+ email: "user@example.com",
653
+ },
654
+ { headers },
655
+ );
656
+ ```
657
+
658
+ #### `unsubscribeFromPage(request, options)`
659
+
660
+ Unsubscribe from a status page.
661
+
662
+ ```typescript
663
+ // By email
664
+ const { success } = await openstatus.statusPage.v1.StatusPageService
665
+ .unsubscribeFromPage(
666
+ {
667
+ pageId: "page_123",
668
+ identifier: { case: "email", value: "user@example.com" },
669
+ },
670
+ { headers },
671
+ );
672
+
673
+ // Or by subscriber ID
674
+ const { success: success2 } = await openstatus.statusPage.v1.StatusPageService
675
+ .unsubscribeFromPage(
676
+ {
677
+ pageId: "page_123",
678
+ identifier: { case: "id", value: "sub_456" },
679
+ },
680
+ { headers },
681
+ );
682
+ ```
683
+
684
+ #### `listSubscribers(request, options)`
685
+
686
+ List all subscribers for a status page.
687
+
688
+ ```typescript
689
+ const { subscribers, totalSize } = await openstatus.statusPage.v1
690
+ .StatusPageService.listSubscribers(
691
+ {
692
+ pageId: "page_123",
693
+ limit: 50,
694
+ offset: 0,
695
+ includeUnsubscribed: false,
696
+ },
697
+ { headers },
698
+ );
699
+ ```
700
+
701
+ #### `getStatusPageContent(request, options)`
702
+
703
+ Get full status page content including components, groups, and active reports.
704
+
705
+ ```typescript
706
+ const content = await openstatus.statusPage.v1.StatusPageService
707
+ .getStatusPageContent(
708
+ { identifier: { case: "slug", value: "my-service" } },
709
+ { headers },
710
+ );
711
+
712
+ console.log(`Page: ${content.statusPage?.title}`);
713
+ console.log(`Components: ${content.components.length}`);
714
+ console.log(`Active reports: ${content.statusReports.length}`);
715
+ ```
716
+
717
+ #### `getOverallStatus(request, options)`
718
+
719
+ Get the aggregated status of a status page.
720
+
721
+ ```typescript
722
+ import { OverallStatus } from "@openstatus/sdk-node";
723
+
724
+ const { overallStatus, componentStatuses } = await openstatus.statusPage.v1
725
+ .StatusPageService.getOverallStatus(
726
+ { identifier: { case: "id", value: "page_123" } },
727
+ { headers },
728
+ );
729
+
730
+ console.log(`Overall: ${OverallStatus[overallStatus]}`);
731
+ for (const { componentId, status } of componentStatuses) {
732
+ console.log(` ${componentId}: ${OverallStatus[status]}`);
733
+ }
734
+ ```
735
+
736
+ ### Maintenance Service
737
+
738
+ Manage scheduled maintenance windows.
739
+
740
+ #### `createMaintenance(request, options)`
741
+
742
+ Create a new maintenance window.
743
+
744
+ ```typescript
745
+ const { maintenance } = await openstatus.maintenance.v1.MaintenanceService
746
+ .createMaintenance(
747
+ {
748
+ title: "Database Upgrade",
749
+ message: "We will be upgrading our database infrastructure.",
750
+ from: "2024-01-20T02:00:00Z",
751
+ to: "2024-01-20T04:00:00Z",
752
+ pageId: "page_123",
753
+ pageComponentIds: ["comp_456"],
754
+ notify: true,
755
+ },
756
+ { headers },
757
+ );
758
+
759
+ console.log(`Maintenance created: ${maintenance?.id}`);
760
+ ```
761
+
762
+ #### `getMaintenance(request, options)`
763
+
764
+ Get a maintenance window by ID.
765
+
766
+ ```typescript
767
+ const { maintenance } = await openstatus.maintenance.v1.MaintenanceService
768
+ .getMaintenance(
769
+ { id: "maint_123" },
770
+ { headers },
771
+ );
772
+
773
+ console.log(`Title: ${maintenance?.title}`);
774
+ console.log(`From: ${maintenance?.from}`);
775
+ console.log(`To: ${maintenance?.to}`);
776
+ ```
777
+
778
+ #### `listMaintenances(request, options)`
779
+
780
+ List all maintenance windows with pagination and optional filtering.
781
+
782
+ ```typescript
783
+ const { maintenances, totalSize } = await openstatus.maintenance.v1
784
+ .MaintenanceService.listMaintenances(
785
+ {
786
+ limit: 10,
787
+ offset: 0,
788
+ pageId: "page_123", // optional filter
789
+ },
790
+ { headers },
791
+ );
792
+
793
+ console.log(`Found ${totalSize} maintenance windows`);
794
+ ```
795
+
796
+ #### `updateMaintenance(request, options)`
797
+
798
+ Update a maintenance window.
799
+
800
+ ```typescript
801
+ const { maintenance } = await openstatus.maintenance.v1.MaintenanceService
802
+ .updateMaintenance(
803
+ {
804
+ id: "maint_123",
805
+ title: "Extended Database Upgrade",
806
+ to: "2024-01-20T06:00:00Z",
807
+ },
808
+ { headers },
809
+ );
810
+ ```
811
+
812
+ #### `deleteMaintenance(request, options)`
813
+
814
+ Delete a maintenance window.
815
+
816
+ ```typescript
817
+ const { success } = await openstatus.maintenance.v1.MaintenanceService
818
+ .deleteMaintenance(
819
+ { id: "maint_123" },
820
+ { headers },
821
+ );
822
+ ```
823
+
824
+ ### Status Page Options
825
+
826
+ | Option | Type | Required | Description |
827
+ | ------------- | ------ | -------- | ---------------------------------------- |
828
+ | `title` | string | Yes | Title of the status page (max 256 chars) |
829
+ | `slug` | string | Yes | URL-friendly slug (lowercase, hyphens) |
830
+ | `description` | string | No | Description (max 2048 chars) |
831
+ | `homepageUrl` | string | No | Link to your homepage |
832
+ | `contactUrl` | string | No | Link to your contact page |
833
+
834
+ ### Page Access Type
835
+
836
+ | Enum Value | Description |
837
+ | -------------------- | ----------------------- |
838
+ | `UNSPECIFIED` | Default/unspecified |
839
+ | `PUBLIC` | Publicly accessible |
840
+ | `PASSWORD_PROTECTED` | Requires password |
841
+ | `AUTHENTICATED` | Requires authentication |
842
+
843
+ ### Page Theme
844
+
845
+ | Enum Value | Description |
846
+ | ------------- | ------------------- |
847
+ | `UNSPECIFIED` | Default/unspecified |
848
+ | `SYSTEM` | Follow system theme |
849
+ | `LIGHT` | Light theme |
850
+ | `DARK` | Dark theme |
851
+
852
+ ### Overall Status
853
+
854
+ | Enum Value | Description |
855
+ | ---------------- | --------------------------- |
856
+ | `UNSPECIFIED` | Default/unspecified |
857
+ | `OPERATIONAL` | All systems operational |
858
+ | `DEGRADED` | Performance is degraded |
859
+ | `PARTIAL_OUTAGE` | Some systems are down |
860
+ | `MAJOR_OUTAGE` | Major systems are down |
861
+ | `MAINTENANCE` | Scheduled maintenance |
862
+ | `UNKNOWN` | Status cannot be determined |
863
+
864
+ ### Page Component Type
865
+
866
+ | Enum Value | Description |
867
+ | ------------- | ------------------------- |
868
+ | `UNSPECIFIED` | Default/unspecified |
869
+ | `MONITOR` | Linked to a monitor |
870
+ | `STATIC` | Static component (manual) |
448
871
 
449
872
  ## Monitor Options
450
873
 
@@ -0,0 +1,139 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file openstatus/maintenance/v1/maintenance.proto.
5
+ */
6
+ export declare const file_openstatus_maintenance_v1_maintenance: GenFile;
7
+ /**
8
+ * MaintenanceSummary represents metadata for a maintenance window (used in list responses).
9
+ *
10
+ * @generated from message openstatus.maintenance.v1.MaintenanceSummary
11
+ */
12
+ export type MaintenanceSummary = Message<"openstatus.maintenance.v1.MaintenanceSummary"> & {
13
+ /**
14
+ * Unique identifier for the maintenance.
15
+ *
16
+ * @generated from field: string id = 1;
17
+ */
18
+ id: string;
19
+ /**
20
+ * Title of the maintenance.
21
+ *
22
+ * @generated from field: string title = 2;
23
+ */
24
+ title: string;
25
+ /**
26
+ * Message describing the maintenance.
27
+ *
28
+ * @generated from field: string message = 3;
29
+ */
30
+ message: string;
31
+ /**
32
+ * Start time of the maintenance window (RFC 3339 format).
33
+ *
34
+ * @generated from field: string from = 4;
35
+ */
36
+ from: string;
37
+ /**
38
+ * End time of the maintenance window (RFC 3339 format).
39
+ *
40
+ * @generated from field: string to = 5;
41
+ */
42
+ to: string;
43
+ /**
44
+ * ID of the page this maintenance is associated with.
45
+ *
46
+ * @generated from field: string page_id = 6;
47
+ */
48
+ pageId: string;
49
+ /**
50
+ * IDs of affected page components.
51
+ *
52
+ * @generated from field: repeated string page_component_ids = 7;
53
+ */
54
+ pageComponentIds: string[];
55
+ /**
56
+ * Timestamp when the maintenance was created (RFC 3339 format).
57
+ *
58
+ * @generated from field: string created_at = 8;
59
+ */
60
+ createdAt: string;
61
+ /**
62
+ * Timestamp when the maintenance was last updated (RFC 3339 format).
63
+ *
64
+ * @generated from field: string updated_at = 9;
65
+ */
66
+ updatedAt: string;
67
+ };
68
+ /**
69
+ * Describes the message openstatus.maintenance.v1.MaintenanceSummary.
70
+ * Use `create(MaintenanceSummarySchema)` to create a new message.
71
+ */
72
+ export declare const MaintenanceSummarySchema: GenMessage<MaintenanceSummary>;
73
+ /**
74
+ * Maintenance represents a maintenance window with full details.
75
+ *
76
+ * @generated from message openstatus.maintenance.v1.Maintenance
77
+ */
78
+ export type Maintenance = Message<"openstatus.maintenance.v1.Maintenance"> & {
79
+ /**
80
+ * Unique identifier for the maintenance.
81
+ *
82
+ * @generated from field: string id = 1;
83
+ */
84
+ id: string;
85
+ /**
86
+ * Title of the maintenance.
87
+ *
88
+ * @generated from field: string title = 2;
89
+ */
90
+ title: string;
91
+ /**
92
+ * Message describing the maintenance.
93
+ *
94
+ * @generated from field: string message = 3;
95
+ */
96
+ message: string;
97
+ /**
98
+ * Start time of the maintenance window (RFC 3339 format).
99
+ *
100
+ * @generated from field: string from = 4;
101
+ */
102
+ from: string;
103
+ /**
104
+ * End time of the maintenance window (RFC 3339 format).
105
+ *
106
+ * @generated from field: string to = 5;
107
+ */
108
+ to: string;
109
+ /**
110
+ * ID of the page this maintenance is associated with.
111
+ *
112
+ * @generated from field: string page_id = 6;
113
+ */
114
+ pageId: string;
115
+ /**
116
+ * IDs of affected page components.
117
+ *
118
+ * @generated from field: repeated string page_component_ids = 7;
119
+ */
120
+ pageComponentIds: string[];
121
+ /**
122
+ * Timestamp when the maintenance was created (RFC 3339 format).
123
+ *
124
+ * @generated from field: string created_at = 8;
125
+ */
126
+ createdAt: string;
127
+ /**
128
+ * Timestamp when the maintenance was last updated (RFC 3339 format).
129
+ *
130
+ * @generated from field: string updated_at = 9;
131
+ */
132
+ updatedAt: string;
133
+ };
134
+ /**
135
+ * Describes the message openstatus.maintenance.v1.Maintenance.
136
+ * Use `create(MaintenanceSchema)` to create a new message.
137
+ */
138
+ export declare const MaintenanceSchema: GenMessage<Maintenance>;
139
+ //# sourceMappingURL=maintenance_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maintenance_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/openstatus/maintenance/v1/maintenance_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,0CAA0C,EAAE,OAGtD,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,OAAO,CAAC,8CAA8C,CAAC,GACvD;IACA;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAC/C,kBAAkB,CAEwC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,uCAAuC,CAAC,GAAG;IAC3E;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,CACM,CAAC"}
@@ -0,0 +1,18 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file openstatus/maintenance/v1/maintenance.proto (package openstatus.maintenance.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file openstatus/maintenance/v1/maintenance.proto.
7
+ */
8
+ export const file_openstatus_maintenance_v1_maintenance = /*@__PURE__*/ fileDesc("CitvcGVuc3RhdHVzL21haW50ZW5hbmNlL3YxL21haW50ZW5hbmNlLnByb3RvEhlvcGVuc3RhdHVzLm1haW50ZW5hbmNlLnYxIq8BChJNYWludGVuYW5jZVN1bW1hcnkSCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSDwoHbWVzc2FnZRgDIAEoCRIMCgRmcm9tGAQgASgJEgoKAnRvGAUgASgJEg8KB3BhZ2VfaWQYBiABKAkSGgoScGFnZV9jb21wb25lbnRfaWRzGAcgAygJEhIKCmNyZWF0ZWRfYXQYCCABKAkSEgoKdXBkYXRlZF9hdBgJIAEoCSKoAQoLTWFpbnRlbmFuY2USCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSDwoHbWVzc2FnZRgDIAEoCRIMCgRmcm9tGAQgASgJEgoKAnRvGAUgASgJEg8KB3BhZ2VfaWQYBiABKAkSGgoScGFnZV9jb21wb25lbnRfaWRzGAcgAygJEhIKCmNyZWF0ZWRfYXQYCCABKAkSEgoKdXBkYXRlZF9hdBgJIAEoCUJbWllnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvbWFpbnRlbmFuY2UvdjE7bWFpbnRlbmFuY2V2MWIGcHJvdG8z");
9
+ /**
10
+ * Describes the message openstatus.maintenance.v1.MaintenanceSummary.
11
+ * Use `create(MaintenanceSummarySchema)` to create a new message.
12
+ */
13
+ export const MaintenanceSummarySchema = /*@__PURE__*/ messageDesc(file_openstatus_maintenance_v1_maintenance, 0);
14
+ /**
15
+ * Describes the message openstatus.maintenance.v1.Maintenance.
16
+ * Use `create(MaintenanceSchema)` to create a new message.
17
+ */
18
+ export const MaintenanceSchema = /*@__PURE__*/ messageDesc(file_openstatus_maintenance_v1_maintenance, 1);