Openstatus sdk www.openstatus.dev
at maintenance-api 194 lines 5.7 kB view raw
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 5import type { 6 GenEnum, 7 GenFile, 8 GenMessage, 9} from "@bufbuild/protobuf/codegenv2"; 10import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; 11import type { Message } from "@bufbuild/protobuf"; 12 13/** 14 * Describes the file openstatus/status_page/v1/page_component.proto. 15 */ 16export const file_openstatus_status_page_v1_page_component: 17 GenFile = /*@__PURE__*/ 18 fileDesc( 19 "Ci5vcGVuc3RhdHVzL3N0YXR1c19wYWdlL3YxL3BhZ2VfY29tcG9uZW50LnByb3RvEhlvcGVuc3RhdHVzLnN0YXR1c19wYWdlLnYxIv0BCg1QYWdlQ29tcG9uZW50EgoKAmlkGAEgASgJEg8KB3BhZ2VfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRITCgtkZXNjcmlwdGlvbhgEIAEoCRI6CgR0eXBlGAUgASgOMiwub3BlbnN0YXR1cy5zdGF0dXNfcGFnZS52MS5QYWdlQ29tcG9uZW50VHlwZRISCgptb25pdG9yX2lkGAYgASgJEg0KBW9yZGVyGAcgASgFEhAKCGdyb3VwX2lkGAggASgJEhMKC2dyb3VwX29yZGVyGAkgASgFEhIKCmNyZWF0ZWRfYXQYCiABKAkSEgoKdXBkYXRlZF9hdBgLIAEoCSJnChJQYWdlQ29tcG9uZW50R3JvdXASCgoCaWQYASABKAkSDwoHcGFnZV9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhIKCmNyZWF0ZWRfYXQYBCABKAkSEgoKdXBkYXRlZF9hdBgFIAEoCSp5ChFQYWdlQ29tcG9uZW50VHlwZRIjCh9QQUdFX0NPTVBPTkVOVF9UWVBFX1VOU1BFQ0lGSUVEEAASHwobUEFHRV9DT01QT05FTlRfVFlQRV9NT05JVE9SEAESHgoaUEFHRV9DT01QT05FTlRfVFlQRV9TVEFUSUMQAkJaWlhnaXRodWIuY29tL29wZW5zdGF0dXNocS9vcGVuc3RhdHVzL3BhY2thZ2VzL3Byb3RvL29wZW5zdGF0dXMvc3RhdHVzX3BhZ2UvdjE7c3RhdHVzcGFnZXYxYgZwcm90bzM", 20 ); 21 22/** 23 * PageComponent represents a component displayed on a status page. 24 * 25 * @generated from message openstatus.status_page.v1.PageComponent 26 */ 27export type PageComponent = 28 & Message<"openstatus.status_page.v1.PageComponent"> 29 & { 30 /** 31 * Unique identifier for the component. 32 * 33 * @generated from field: string id = 1; 34 */ 35 id: string; 36 37 /** 38 * ID of the status page this component belongs to. 39 * 40 * @generated from field: string page_id = 2; 41 */ 42 pageId: string; 43 44 /** 45 * Display name of the component. 46 * 47 * @generated from field: string name = 3; 48 */ 49 name: string; 50 51 /** 52 * Description of the component (optional). 53 * 54 * @generated from field: string description = 4; 55 */ 56 description: string; 57 58 /** 59 * Type of the component (monitor or static). 60 * 61 * @generated from field: openstatus.status_page.v1.PageComponentType type = 5; 62 */ 63 type: PageComponentType; 64 65 /** 66 * ID of the monitor if type is MONITOR (optional). 67 * 68 * @generated from field: string monitor_id = 6; 69 */ 70 monitorId: string; 71 72 /** 73 * Display order of the component. 74 * 75 * @generated from field: int32 order = 7; 76 */ 77 order: number; 78 79 /** 80 * ID of the group this component belongs to (optional). 81 * 82 * @generated from field: string group_id = 8; 83 */ 84 groupId: string; 85 86 /** 87 * Order within the group if grouped. 88 * 89 * @generated from field: int32 group_order = 9; 90 */ 91 groupOrder: number; 92 93 /** 94 * Timestamp when the component was created (RFC 3339 format). 95 * 96 * @generated from field: string created_at = 10; 97 */ 98 createdAt: string; 99 100 /** 101 * Timestamp when the component was last updated (RFC 3339 format). 102 * 103 * @generated from field: string updated_at = 11; 104 */ 105 updatedAt: string; 106 }; 107 108/** 109 * Describes the message openstatus.status_page.v1.PageComponent. 110 * Use `create(PageComponentSchema)` to create a new message. 111 */ 112export const PageComponentSchema: GenMessage<PageComponent> = /*@__PURE__*/ 113 messageDesc(file_openstatus_status_page_v1_page_component, 0); 114 115/** 116 * PageComponentGroup represents a group of components on a status page. 117 * 118 * @generated from message openstatus.status_page.v1.PageComponentGroup 119 */ 120export type PageComponentGroup = 121 & Message<"openstatus.status_page.v1.PageComponentGroup"> 122 & { 123 /** 124 * Unique identifier for the group. 125 * 126 * @generated from field: string id = 1; 127 */ 128 id: string; 129 130 /** 131 * ID of the status page this group belongs to. 132 * 133 * @generated from field: string page_id = 2; 134 */ 135 pageId: string; 136 137 /** 138 * Display name of the group. 139 * 140 * @generated from field: string name = 3; 141 */ 142 name: string; 143 144 /** 145 * Timestamp when the group was created (RFC 3339 format). 146 * 147 * @generated from field: string created_at = 4; 148 */ 149 createdAt: string; 150 151 /** 152 * Timestamp when the group was last updated (RFC 3339 format). 153 * 154 * @generated from field: string updated_at = 5; 155 */ 156 updatedAt: string; 157 }; 158 159/** 160 * Describes the message openstatus.status_page.v1.PageComponentGroup. 161 * Use `create(PageComponentGroupSchema)` to create a new message. 162 */ 163export const PageComponentGroupSchema: GenMessage< 164 PageComponentGroup 165> = /*@__PURE__*/ 166 messageDesc(file_openstatus_status_page_v1_page_component, 1); 167 168/** 169 * PageComponentType defines the type of a component on a status page. 170 * 171 * @generated from enum openstatus.status_page.v1.PageComponentType 172 */ 173export enum PageComponentType { 174 /** 175 * @generated from enum value: PAGE_COMPONENT_TYPE_UNSPECIFIED = 0; 176 */ 177 UNSPECIFIED = 0, 178 179 /** 180 * @generated from enum value: PAGE_COMPONENT_TYPE_MONITOR = 1; 181 */ 182 MONITOR = 1, 183 184 /** 185 * @generated from enum value: PAGE_COMPONENT_TYPE_STATIC = 2; 186 */ 187 STATIC = 2, 188} 189 190/** 191 * Describes the enum openstatus.status_page.v1.PageComponentType. 192 */ 193export const PageComponentTypeSchema: GenEnum<PageComponentType> = /*@__PURE__*/ 194 enumDesc(file_openstatus_status_page_v1_page_component, 0);