@incident-io/sdk 2.45.0 → 2.47.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 (39) hide show
  1. package/dist/cjs/apis/StatusPagesV2Api.d.ts +25 -0
  2. package/dist/cjs/apis/StatusPagesV2Api.js +47 -0
  3. package/dist/cjs/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +9 -1
  4. package/dist/cjs/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +4 -0
  5. package/dist/cjs/models/StatusPageComponentAvailabilityV2.d.ts +1 -1
  6. package/dist/cjs/models/StatusPageCustomerPageComponentV2.d.ts +57 -0
  7. package/dist/cjs/models/StatusPageCustomerPageComponentV2.js +75 -0
  8. package/dist/cjs/models/StatusPageCustomerPageGroupV2.d.ts +47 -0
  9. package/dist/cjs/models/StatusPageCustomerPageGroupV2.js +65 -0
  10. package/dist/cjs/models/StatusPageCustomerPageItemV2.d.ts +36 -0
  11. package/dist/cjs/models/StatusPageCustomerPageItemV2.js +52 -0
  12. package/dist/cjs/models/StatusPageCustomerPageV2.d.ts +68 -0
  13. package/dist/cjs/models/StatusPageCustomerPageV2.js +88 -0
  14. package/dist/cjs/models/StatusPagesShowStatusPageCustomerPageResultV2.d.ts +31 -0
  15. package/dist/cjs/models/StatusPagesShowStatusPageCustomerPageResultV2.js +51 -0
  16. package/dist/cjs/models/index.d.ts +5 -0
  17. package/dist/cjs/models/index.js +5 -0
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/apis/StatusPagesV2Api.d.ts +25 -0
  21. package/dist/esm/apis/StatusPagesV2Api.js +47 -0
  22. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +9 -1
  23. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +4 -0
  24. package/dist/esm/models/StatusPageComponentAvailabilityV2.d.ts +1 -1
  25. package/dist/esm/models/StatusPageCustomerPageComponentV2.d.ts +57 -0
  26. package/dist/esm/models/StatusPageCustomerPageComponentV2.js +67 -0
  27. package/dist/esm/models/StatusPageCustomerPageGroupV2.d.ts +47 -0
  28. package/dist/esm/models/StatusPageCustomerPageGroupV2.js +58 -0
  29. package/dist/esm/models/StatusPageCustomerPageItemV2.d.ts +36 -0
  30. package/dist/esm/models/StatusPageCustomerPageItemV2.js +45 -0
  31. package/dist/esm/models/StatusPageCustomerPageV2.d.ts +68 -0
  32. package/dist/esm/models/StatusPageCustomerPageV2.js +80 -0
  33. package/dist/esm/models/StatusPagesShowStatusPageCustomerPageResultV2.d.ts +31 -0
  34. package/dist/esm/models/StatusPagesShowStatusPageCustomerPageResultV2.js +44 -0
  35. package/dist/esm/models/index.d.ts +5 -0
  36. package/dist/esm/models/index.js +5 -0
  37. package/dist/esm/version.d.ts +1 -1
  38. package/dist/esm/version.js +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.StatusPageCustomerPageV2StatusEnum = void 0;
17
+ exports.instanceOfStatusPageCustomerPageV2 = instanceOfStatusPageCustomerPageV2;
18
+ exports.StatusPageCustomerPageV2FromJSON = StatusPageCustomerPageV2FromJSON;
19
+ exports.StatusPageCustomerPageV2FromJSONTyped = StatusPageCustomerPageV2FromJSONTyped;
20
+ exports.StatusPageCustomerPageV2ToJSON = StatusPageCustomerPageV2ToJSON;
21
+ exports.StatusPageCustomerPageV2ToJSONTyped = StatusPageCustomerPageV2ToJSONTyped;
22
+ const StatusPageMaintenanceV2_js_1 = require("./StatusPageMaintenanceV2.js");
23
+ const StatusPageCustomerPageItemV2_js_1 = require("./StatusPageCustomerPageItemV2.js");
24
+ const StatusPageIncidentV2_js_1 = require("./StatusPageIncidentV2.js");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.StatusPageCustomerPageV2StatusEnum = {
29
+ Operational: 'operational',
30
+ UnderMaintenance: 'under_maintenance',
31
+ DegradedPerformance: 'degraded_performance',
32
+ PartialOutage: 'partial_outage',
33
+ FullOutage: 'full_outage',
34
+ };
35
+ /**
36
+ * Check if a given object implements the StatusPageCustomerPageV2 interface.
37
+ */
38
+ function instanceOfStatusPageCustomerPageV2(value) {
39
+ if (!('components' in value) || value['components'] === undefined)
40
+ return false;
41
+ if (!('customer_id' in value) || value['customer_id'] === undefined)
42
+ return false;
43
+ if (!('maintenances' in value) || value['maintenances'] === undefined)
44
+ return false;
45
+ if (!('name' in value) || value['name'] === undefined)
46
+ return false;
47
+ if (!('ongoing_incidents' in value) || value['ongoing_incidents'] === undefined)
48
+ return false;
49
+ if (!('recent_incidents' in value) || value['recent_incidents'] === undefined)
50
+ return false;
51
+ if (!('status' in value) || value['status'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function StatusPageCustomerPageV2FromJSON(json) {
56
+ return StatusPageCustomerPageV2FromJSONTyped(json, false);
57
+ }
58
+ function StatusPageCustomerPageV2FromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'components': (json['components'].map(StatusPageCustomerPageItemV2_js_1.StatusPageCustomerPageItemV2FromJSON)),
64
+ 'customer_id': json['customer_id'],
65
+ 'maintenances': (json['maintenances'].map(StatusPageMaintenanceV2_js_1.StatusPageMaintenanceV2FromJSON)),
66
+ 'name': json['name'],
67
+ 'ongoing_incidents': (json['ongoing_incidents'].map(StatusPageIncidentV2_js_1.StatusPageIncidentV2FromJSON)),
68
+ 'recent_incidents': (json['recent_incidents'].map(StatusPageIncidentV2_js_1.StatusPageIncidentV2FromJSON)),
69
+ 'status': json['status'],
70
+ };
71
+ }
72
+ function StatusPageCustomerPageV2ToJSON(json) {
73
+ return StatusPageCustomerPageV2ToJSONTyped(json, false);
74
+ }
75
+ function StatusPageCustomerPageV2ToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'components': (value['components'].map(StatusPageCustomerPageItemV2_js_1.StatusPageCustomerPageItemV2ToJSON)),
81
+ 'customer_id': value['customer_id'],
82
+ 'maintenances': (value['maintenances'].map(StatusPageMaintenanceV2_js_1.StatusPageMaintenanceV2ToJSON)),
83
+ 'name': value['name'],
84
+ 'ongoing_incidents': (value['ongoing_incidents'].map(StatusPageIncidentV2_js_1.StatusPageIncidentV2ToJSON)),
85
+ 'recent_incidents': (value['recent_incidents'].map(StatusPageIncidentV2_js_1.StatusPageIncidentV2ToJSON)),
86
+ 'status': value['status'],
87
+ };
88
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { StatusPageCustomerPageV2 } from './StatusPageCustomerPageV2.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StatusPagesShowStatusPageCustomerPageResultV2
17
+ */
18
+ export interface StatusPagesShowStatusPageCustomerPageResultV2 {
19
+ /**
20
+ *
21
+ */
22
+ customer_page: StatusPageCustomerPageV2;
23
+ }
24
+ /**
25
+ * Check if a given object implements the StatusPagesShowStatusPageCustomerPageResultV2 interface.
26
+ */
27
+ export declare function instanceOfStatusPagesShowStatusPageCustomerPageResultV2(value: object): value is StatusPagesShowStatusPageCustomerPageResultV2;
28
+ export declare function StatusPagesShowStatusPageCustomerPageResultV2FromJSON(json: any): StatusPagesShowStatusPageCustomerPageResultV2;
29
+ export declare function StatusPagesShowStatusPageCustomerPageResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusPagesShowStatusPageCustomerPageResultV2;
30
+ export declare function StatusPagesShowStatusPageCustomerPageResultV2ToJSON(json: any): StatusPagesShowStatusPageCustomerPageResultV2;
31
+ export declare function StatusPagesShowStatusPageCustomerPageResultV2ToJSONTyped(value?: StatusPagesShowStatusPageCustomerPageResultV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStatusPagesShowStatusPageCustomerPageResultV2 = instanceOfStatusPagesShowStatusPageCustomerPageResultV2;
17
+ exports.StatusPagesShowStatusPageCustomerPageResultV2FromJSON = StatusPagesShowStatusPageCustomerPageResultV2FromJSON;
18
+ exports.StatusPagesShowStatusPageCustomerPageResultV2FromJSONTyped = StatusPagesShowStatusPageCustomerPageResultV2FromJSONTyped;
19
+ exports.StatusPagesShowStatusPageCustomerPageResultV2ToJSON = StatusPagesShowStatusPageCustomerPageResultV2ToJSON;
20
+ exports.StatusPagesShowStatusPageCustomerPageResultV2ToJSONTyped = StatusPagesShowStatusPageCustomerPageResultV2ToJSONTyped;
21
+ const StatusPageCustomerPageV2_js_1 = require("./StatusPageCustomerPageV2.js");
22
+ /**
23
+ * Check if a given object implements the StatusPagesShowStatusPageCustomerPageResultV2 interface.
24
+ */
25
+ function instanceOfStatusPagesShowStatusPageCustomerPageResultV2(value) {
26
+ if (!('customer_page' in value) || value['customer_page'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function StatusPagesShowStatusPageCustomerPageResultV2FromJSON(json) {
31
+ return StatusPagesShowStatusPageCustomerPageResultV2FromJSONTyped(json, false);
32
+ }
33
+ function StatusPagesShowStatusPageCustomerPageResultV2FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'customer_page': (0, StatusPageCustomerPageV2_js_1.StatusPageCustomerPageV2FromJSON)(json['customer_page']),
39
+ };
40
+ }
41
+ function StatusPagesShowStatusPageCustomerPageResultV2ToJSON(json) {
42
+ return StatusPagesShowStatusPageCustomerPageResultV2ToJSONTyped(json, false);
43
+ }
44
+ function StatusPagesShowStatusPageCustomerPageResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'customer_page': (0, StatusPageCustomerPageV2_js_1.StatusPageCustomerPageV2ToJSON)(value['customer_page']),
50
+ };
51
+ }
@@ -1342,6 +1342,10 @@ export * from './StatusPageComponentsListResultV2.js';
1342
1342
  export * from './StatusPageComponentsShowResultV2.js';
1343
1343
  export * from './StatusPageComponentsUpdatePayloadV2.js';
1344
1344
  export * from './StatusPageComponentsUpdateResultV2.js';
1345
+ export * from './StatusPageCustomerPageComponentV2.js';
1346
+ export * from './StatusPageCustomerPageGroupV2.js';
1347
+ export * from './StatusPageCustomerPageItemV2.js';
1348
+ export * from './StatusPageCustomerPageV2.js';
1345
1349
  export * from './StatusPageIncidentAffectedComponentV2.js';
1346
1350
  export * from './StatusPageIncidentComponentImpactV2.js';
1347
1351
  export * from './StatusPageIncidentUpdateV2.js';
@@ -1375,6 +1379,7 @@ export * from './StatusPagesListStatusPageIncidentsResultV2.js';
1375
1379
  export * from './StatusPagesListStatusPageMaintenancesResultV2.js';
1376
1380
  export * from './StatusPagesListStatusPagesResultV2.js';
1377
1381
  export * from './StatusPagesShowStatusPageComponentAvailabilityResultV2.js';
1382
+ export * from './StatusPagesShowStatusPageCustomerPageResultV2.js';
1378
1383
  export * from './StatusPagesShowStatusPageIncidentResultV2.js';
1379
1384
  export * from './StatusPagesShowStatusPageMaintenanceResultV2.js';
1380
1385
  export * from './StatusPagesShowStatusPageResultV2.js';
@@ -1360,6 +1360,10 @@ __exportStar(require("./StatusPageComponentsListResultV2.js"), exports);
1360
1360
  __exportStar(require("./StatusPageComponentsShowResultV2.js"), exports);
1361
1361
  __exportStar(require("./StatusPageComponentsUpdatePayloadV2.js"), exports);
1362
1362
  __exportStar(require("./StatusPageComponentsUpdateResultV2.js"), exports);
1363
+ __exportStar(require("./StatusPageCustomerPageComponentV2.js"), exports);
1364
+ __exportStar(require("./StatusPageCustomerPageGroupV2.js"), exports);
1365
+ __exportStar(require("./StatusPageCustomerPageItemV2.js"), exports);
1366
+ __exportStar(require("./StatusPageCustomerPageV2.js"), exports);
1363
1367
  __exportStar(require("./StatusPageIncidentAffectedComponentV2.js"), exports);
1364
1368
  __exportStar(require("./StatusPageIncidentComponentImpactV2.js"), exports);
1365
1369
  __exportStar(require("./StatusPageIncidentUpdateV2.js"), exports);
@@ -1393,6 +1397,7 @@ __exportStar(require("./StatusPagesListStatusPageIncidentsResultV2.js"), exports
1393
1397
  __exportStar(require("./StatusPagesListStatusPageMaintenancesResultV2.js"), exports);
1394
1398
  __exportStar(require("./StatusPagesListStatusPagesResultV2.js"), exports);
1395
1399
  __exportStar(require("./StatusPagesShowStatusPageComponentAvailabilityResultV2.js"), exports);
1400
+ __exportStar(require("./StatusPagesShowStatusPageCustomerPageResultV2.js"), exports);
1396
1401
  __exportStar(require("./StatusPagesShowStatusPageIncidentResultV2.js"), exports);
1397
1402
  __exportStar(require("./StatusPagesShowStatusPageMaintenanceResultV2.js"), exports);
1398
1403
  __exportStar(require("./StatusPagesShowStatusPageResultV2.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.45.0";
1
+ export declare const VERSION = "2.47.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "2.45.0";
5
+ exports.VERSION = "2.47.0";
@@ -24,6 +24,7 @@ import { type StatusPagesListStatusPageIncidentsResultV2 } from '../models/Statu
24
24
  import { type StatusPagesListStatusPageMaintenancesResultV2 } from '../models/StatusPagesListStatusPageMaintenancesResultV2.js';
25
25
  import { type StatusPagesListStatusPagesResultV2 } from '../models/StatusPagesListStatusPagesResultV2.js';
26
26
  import { type StatusPagesShowStatusPageComponentAvailabilityResultV2 } from '../models/StatusPagesShowStatusPageComponentAvailabilityResultV2.js';
27
+ import { type StatusPagesShowStatusPageCustomerPageResultV2 } from '../models/StatusPagesShowStatusPageCustomerPageResultV2.js';
27
28
  import { type StatusPagesShowStatusPageIncidentResultV2 } from '../models/StatusPagesShowStatusPageIncidentResultV2.js';
28
29
  import { type StatusPagesShowStatusPageMaintenanceResultV2 } from '../models/StatusPagesShowStatusPageMaintenanceResultV2.js';
29
30
  import { type StatusPagesShowStatusPageResultV2 } from '../models/StatusPagesShowStatusPageResultV2.js';
@@ -170,6 +171,16 @@ export interface StatusPagesV2ShowStatusPageComponentAvailabilityRequest {
170
171
  */
171
172
  component_id: string;
172
173
  }
174
+ export interface StatusPagesV2ShowStatusPageCustomerPageRequest {
175
+ /**
176
+ * ID of the customer status page. You can find this by calling the ListStatusPages endpoint.
177
+ */
178
+ status_page_id: string;
179
+ /**
180
+ * The external_id of the customer's catalog entry
181
+ */
182
+ customer_id: string;
183
+ }
173
184
  export interface StatusPagesV2ShowStatusPageIncidentRequest {
174
185
  /**
175
186
  * ID of the status page incident
@@ -366,6 +377,20 @@ export declare class StatusPagesV2Api extends runtime.BaseAPI {
366
377
  * ShowStatusPageComponentAvailability Status Pages V2
367
378
  */
368
379
  statusPagesV2ShowStatusPageComponentAvailability(requestParameters: StatusPagesV2ShowStatusPageComponentAvailabilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusPagesShowStatusPageComponentAvailabilityResultV2>;
380
+ /**
381
+ * Creates request options for statusPagesV2ShowStatusPageCustomerPage without sending the request
382
+ */
383
+ statusPagesV2ShowStatusPageCustomerPageRequestOpts(requestParameters: StatusPagesV2ShowStatusPageCustomerPageRequest): Promise<runtime.RequestOpts>;
384
+ /**
385
+ * Show one customer\'s page on a customer status page: its current status, its components, and the incidents and maintenance windows that customer sees. customer_id is the external_id of the catalog entry that defines the customer\'s page. That entry belongs to the catalog type the status page is split by. You can\'t use this endpoint for a customer whose catalog entry has no external_id. This endpoint requires a valid API key but no specific scopes. Responses can be up to 30 seconds old.
386
+ * ShowStatusPageCustomerPage Status Pages V2
387
+ */
388
+ statusPagesV2ShowStatusPageCustomerPageRaw(requestParameters: StatusPagesV2ShowStatusPageCustomerPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StatusPagesShowStatusPageCustomerPageResultV2>>;
389
+ /**
390
+ * Show one customer\'s page on a customer status page: its current status, its components, and the incidents and maintenance windows that customer sees. customer_id is the external_id of the catalog entry that defines the customer\'s page. That entry belongs to the catalog type the status page is split by. You can\'t use this endpoint for a customer whose catalog entry has no external_id. This endpoint requires a valid API key but no specific scopes. Responses can be up to 30 seconds old.
391
+ * ShowStatusPageCustomerPage Status Pages V2
392
+ */
393
+ statusPagesV2ShowStatusPageCustomerPage(requestParameters: StatusPagesV2ShowStatusPageCustomerPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusPagesShowStatusPageCustomerPageResultV2>;
369
394
  /**
370
395
  * Creates request options for statusPagesV2ShowStatusPageIncident without sending the request
371
396
  */
@@ -26,6 +26,7 @@ import { StatusPagesListStatusPageIncidentsResultV2FromJSON, } from '../models/S
26
26
  import { StatusPagesListStatusPageMaintenancesResultV2FromJSON, } from '../models/StatusPagesListStatusPageMaintenancesResultV2.js';
27
27
  import { StatusPagesListStatusPagesResultV2FromJSON, } from '../models/StatusPagesListStatusPagesResultV2.js';
28
28
  import { StatusPagesShowStatusPageComponentAvailabilityResultV2FromJSON, } from '../models/StatusPagesShowStatusPageComponentAvailabilityResultV2.js';
29
+ import { StatusPagesShowStatusPageCustomerPageResultV2FromJSON, } from '../models/StatusPagesShowStatusPageCustomerPageResultV2.js';
29
30
  import { StatusPagesShowStatusPageIncidentResultV2FromJSON, } from '../models/StatusPagesShowStatusPageIncidentResultV2.js';
30
31
  import { StatusPagesShowStatusPageMaintenanceResultV2FromJSON, } from '../models/StatusPagesShowStatusPageMaintenanceResultV2.js';
31
32
  import { StatusPagesShowStatusPageResultV2FromJSON, } from '../models/StatusPagesShowStatusPageResultV2.js';
@@ -568,6 +569,52 @@ export class StatusPagesV2Api extends runtime.BaseAPI {
568
569
  const response = await this.statusPagesV2ShowStatusPageComponentAvailabilityRaw(requestParameters, initOverrides);
569
570
  return await response.value();
570
571
  }
572
+ /**
573
+ * Creates request options for statusPagesV2ShowStatusPageCustomerPage without sending the request
574
+ */
575
+ async statusPagesV2ShowStatusPageCustomerPageRequestOpts(requestParameters) {
576
+ if (requestParameters['status_page_id'] == null) {
577
+ throw new runtime.RequiredError('status_page_id', 'Required parameter "status_page_id" was null or undefined when calling statusPagesV2ShowStatusPageCustomerPage().');
578
+ }
579
+ if (requestParameters['customer_id'] == null) {
580
+ throw new runtime.RequiredError('customer_id', 'Required parameter "customer_id" was null or undefined when calling statusPagesV2ShowStatusPageCustomerPage().');
581
+ }
582
+ const queryParameters = {};
583
+ const headerParameters = {};
584
+ if (this.configuration && this.configuration.accessToken) {
585
+ const token = this.configuration.accessToken;
586
+ const tokenString = await token("BearerAuth", []);
587
+ if (tokenString) {
588
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
589
+ }
590
+ }
591
+ let urlPath = `/v2/status_pages/{status_page_id}/customers/{customer_id}`;
592
+ urlPath = urlPath.replace('{status_page_id}', encodeURIComponent(String(requestParameters['status_page_id'])));
593
+ urlPath = urlPath.replace('{customer_id}', encodeURIComponent(String(requestParameters['customer_id'])));
594
+ return {
595
+ path: urlPath,
596
+ method: 'GET',
597
+ headers: headerParameters,
598
+ query: queryParameters,
599
+ };
600
+ }
601
+ /**
602
+ * Show one customer\'s page on a customer status page: its current status, its components, and the incidents and maintenance windows that customer sees. customer_id is the external_id of the catalog entry that defines the customer\'s page. That entry belongs to the catalog type the status page is split by. You can\'t use this endpoint for a customer whose catalog entry has no external_id. This endpoint requires a valid API key but no specific scopes. Responses can be up to 30 seconds old.
603
+ * ShowStatusPageCustomerPage Status Pages V2
604
+ */
605
+ async statusPagesV2ShowStatusPageCustomerPageRaw(requestParameters, initOverrides) {
606
+ const requestOptions = await this.statusPagesV2ShowStatusPageCustomerPageRequestOpts(requestParameters);
607
+ const response = await this.request(requestOptions, initOverrides);
608
+ return new runtime.JSONApiResponse(response, (jsonValue) => StatusPagesShowStatusPageCustomerPageResultV2FromJSON(jsonValue));
609
+ }
610
+ /**
611
+ * Show one customer\'s page on a customer status page: its current status, its components, and the incidents and maintenance windows that customer sees. customer_id is the external_id of the catalog entry that defines the customer\'s page. That entry belongs to the catalog type the status page is split by. You can\'t use this endpoint for a customer whose catalog entry has no external_id. This endpoint requires a valid API key but no specific scopes. Responses can be up to 30 seconds old.
612
+ * ShowStatusPageCustomerPage Status Pages V2
613
+ */
614
+ async statusPagesV2ShowStatusPageCustomerPage(requestParameters, initOverrides) {
615
+ const response = await this.statusPagesV2ShowStatusPageCustomerPageRaw(requestParameters, initOverrides);
616
+ return await response.value();
617
+ }
571
618
  /**
572
619
  * Creates request options for statusPagesV2ShowStatusPageIncident without sending the request
573
620
  */
@@ -27,6 +27,10 @@ export interface AuditLogReliabilityReviewSettingsUpdatedMetadataV2 {
27
27
  * Whether draft pull requests are reviewed after the change (review, skip)
28
28
  */
29
29
  after_draft_reviews?: string;
30
+ /**
31
+ * Whether a review that finds no issues posts a comment after the change (post, skip)
32
+ */
33
+ after_no_issue_reviews?: string;
30
34
  /**
31
35
  * Whose pull requests are reviewed after the change (everyone, selected_users)
32
36
  */
@@ -39,12 +43,16 @@ export interface AuditLogReliabilityReviewSettingsUpdatedMetadataV2 {
39
43
  * Whether draft pull requests were reviewed before the change (review, skip)
40
44
  */
41
45
  before_draft_reviews?: string;
46
+ /**
47
+ * Whether a review that found no issues posted a comment before the change (post, skip)
48
+ */
49
+ before_no_issue_reviews?: string;
42
50
  /**
43
51
  * Whose pull requests were reviewed before the change (everyone, selected_users)
44
52
  */
45
53
  before_reviewed_authors?: string;
46
54
  /**
47
- * What the update changed, comma separated (automatic_reviews, draft_reviews, reviewed_authors, reviewed_users)
55
+ * What the update changed, comma separated (automatic_reviews, draft_reviews, no_issue_reviews, reviewed_authors, reviewed_users)
48
56
  */
49
57
  changed: string;
50
58
  /**
@@ -30,9 +30,11 @@ export function AuditLogReliabilityReviewSettingsUpdatedMetadataV2FromJSONTyped(
30
30
  'added_user_ids': json['added_user_ids'] == null ? undefined : json['added_user_ids'],
31
31
  'after_automatic_reviews': json['after_automatic_reviews'] == null ? undefined : json['after_automatic_reviews'],
32
32
  'after_draft_reviews': json['after_draft_reviews'] == null ? undefined : json['after_draft_reviews'],
33
+ 'after_no_issue_reviews': json['after_no_issue_reviews'] == null ? undefined : json['after_no_issue_reviews'],
33
34
  'after_reviewed_authors': json['after_reviewed_authors'] == null ? undefined : json['after_reviewed_authors'],
34
35
  'before_automatic_reviews': json['before_automatic_reviews'] == null ? undefined : json['before_automatic_reviews'],
35
36
  'before_draft_reviews': json['before_draft_reviews'] == null ? undefined : json['before_draft_reviews'],
37
+ 'before_no_issue_reviews': json['before_no_issue_reviews'] == null ? undefined : json['before_no_issue_reviews'],
36
38
  'before_reviewed_authors': json['before_reviewed_authors'] == null ? undefined : json['before_reviewed_authors'],
37
39
  'changed': json['changed'],
38
40
  'removed_user_ids': json['removed_user_ids'] == null ? undefined : json['removed_user_ids'],
@@ -49,9 +51,11 @@ export function AuditLogReliabilityReviewSettingsUpdatedMetadataV2ToJSONTyped(va
49
51
  'added_user_ids': value['added_user_ids'],
50
52
  'after_automatic_reviews': value['after_automatic_reviews'],
51
53
  'after_draft_reviews': value['after_draft_reviews'],
54
+ 'after_no_issue_reviews': value['after_no_issue_reviews'],
52
55
  'after_reviewed_authors': value['after_reviewed_authors'],
53
56
  'before_automatic_reviews': value['before_automatic_reviews'],
54
57
  'before_draft_reviews': value['before_draft_reviews'],
58
+ 'before_no_issue_reviews': value['before_no_issue_reviews'],
55
59
  'before_reviewed_authors': value['before_reviewed_authors'],
56
60
  'changed': value['changed'],
57
61
  'removed_user_ids': value['removed_user_ids'],
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface StatusPageComponentAvailabilityV2 {
18
18
  /**
19
- * Availability over the window as a percentage, floored (for example "99.94"). Omitted when we have no data covering the window.
19
+ * Availability over the window as a percentage, floored (for example "99.94"). It has at least as many decimal places as the status page's uptime decimal places setting. Above 99.99%, it can have more decimal places, up to six. Omitted when we have no data covering the window.
20
20
  */
21
21
  availability_percent?: string;
22
22
  /**
@@ -0,0 +1,57 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface StatusPageCustomerPageComponentV2
16
+ */
17
+ export interface StatusPageCustomerPageComponentV2 {
18
+ /**
19
+ * The ID of this component. Incidents and maintenance windows refer to components by this ID.
20
+ */
21
+ component_id: string;
22
+ /**
23
+ * A description shown under the component's name, if it has one
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Whether the page shows this component's uptime
28
+ */
29
+ display_uptime: boolean;
30
+ /**
31
+ * The name of this component
32
+ */
33
+ name: string;
34
+ /**
35
+ * The current status of this component
36
+ */
37
+ status: StatusPageCustomerPageComponentV2StatusEnum;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const StatusPageCustomerPageComponentV2StatusEnum: {
43
+ readonly Operational: "operational";
44
+ readonly UnderMaintenance: "under_maintenance";
45
+ readonly DegradedPerformance: "degraded_performance";
46
+ readonly PartialOutage: "partial_outage";
47
+ readonly FullOutage: "full_outage";
48
+ };
49
+ export type StatusPageCustomerPageComponentV2StatusEnum = typeof StatusPageCustomerPageComponentV2StatusEnum[keyof typeof StatusPageCustomerPageComponentV2StatusEnum];
50
+ /**
51
+ * Check if a given object implements the StatusPageCustomerPageComponentV2 interface.
52
+ */
53
+ export declare function instanceOfStatusPageCustomerPageComponentV2(value: object): value is StatusPageCustomerPageComponentV2;
54
+ export declare function StatusPageCustomerPageComponentV2FromJSON(json: any): StatusPageCustomerPageComponentV2;
55
+ export declare function StatusPageCustomerPageComponentV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusPageCustomerPageComponentV2;
56
+ export declare function StatusPageCustomerPageComponentV2ToJSON(json: any): StatusPageCustomerPageComponentV2;
57
+ export declare function StatusPageCustomerPageComponentV2ToJSONTyped(value?: StatusPageCustomerPageComponentV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const StatusPageCustomerPageComponentV2StatusEnum = {
18
+ Operational: 'operational',
19
+ UnderMaintenance: 'under_maintenance',
20
+ DegradedPerformance: 'degraded_performance',
21
+ PartialOutage: 'partial_outage',
22
+ FullOutage: 'full_outage',
23
+ };
24
+ /**
25
+ * Check if a given object implements the StatusPageCustomerPageComponentV2 interface.
26
+ */
27
+ export function instanceOfStatusPageCustomerPageComponentV2(value) {
28
+ if (!('component_id' in value) || value['component_id'] === undefined)
29
+ return false;
30
+ if (!('display_uptime' in value) || value['display_uptime'] === undefined)
31
+ return false;
32
+ if (!('name' in value) || value['name'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function StatusPageCustomerPageComponentV2FromJSON(json) {
39
+ return StatusPageCustomerPageComponentV2FromJSONTyped(json, false);
40
+ }
41
+ export function StatusPageCustomerPageComponentV2FromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'component_id': json['component_id'],
47
+ 'description': json['description'] == null ? undefined : json['description'],
48
+ 'display_uptime': json['display_uptime'],
49
+ 'name': json['name'],
50
+ 'status': json['status'],
51
+ };
52
+ }
53
+ export function StatusPageCustomerPageComponentV2ToJSON(json) {
54
+ return StatusPageCustomerPageComponentV2ToJSONTyped(json, false);
55
+ }
56
+ export function StatusPageCustomerPageComponentV2ToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'component_id': value['component_id'],
62
+ 'description': value['description'],
63
+ 'display_uptime': value['display_uptime'],
64
+ 'name': value['name'],
65
+ 'status': value['status'],
66
+ };
67
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { StatusPageCustomerPageComponentV2 } from './StatusPageCustomerPageComponentV2.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StatusPageCustomerPageGroupV2
17
+ */
18
+ export interface StatusPageCustomerPageGroupV2 {
19
+ /**
20
+ * Array of components belonging to this group
21
+ */
22
+ components: Array<StatusPageCustomerPageComponentV2>;
23
+ /**
24
+ * A description shown under the group's name
25
+ */
26
+ description?: string;
27
+ /**
28
+ * Whether the page shows uptime aggregated across the group's components
29
+ */
30
+ display_aggregated_uptime: boolean;
31
+ /**
32
+ * Unique ID of this component group
33
+ */
34
+ id: string;
35
+ /**
36
+ * The name of this component group
37
+ */
38
+ name: string;
39
+ }
40
+ /**
41
+ * Check if a given object implements the StatusPageCustomerPageGroupV2 interface.
42
+ */
43
+ export declare function instanceOfStatusPageCustomerPageGroupV2(value: object): value is StatusPageCustomerPageGroupV2;
44
+ export declare function StatusPageCustomerPageGroupV2FromJSON(json: any): StatusPageCustomerPageGroupV2;
45
+ export declare function StatusPageCustomerPageGroupV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusPageCustomerPageGroupV2;
46
+ export declare function StatusPageCustomerPageGroupV2ToJSON(json: any): StatusPageCustomerPageGroupV2;
47
+ export declare function StatusPageCustomerPageGroupV2ToJSONTyped(value?: StatusPageCustomerPageGroupV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { StatusPageCustomerPageComponentV2FromJSON, StatusPageCustomerPageComponentV2ToJSON, } from './StatusPageCustomerPageComponentV2.js';
15
+ /**
16
+ * Check if a given object implements the StatusPageCustomerPageGroupV2 interface.
17
+ */
18
+ export function instanceOfStatusPageCustomerPageGroupV2(value) {
19
+ if (!('components' in value) || value['components'] === undefined)
20
+ return false;
21
+ if (!('display_aggregated_uptime' in value) || value['display_aggregated_uptime'] === undefined)
22
+ return false;
23
+ if (!('id' in value) || value['id'] === undefined)
24
+ return false;
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function StatusPageCustomerPageGroupV2FromJSON(json) {
30
+ return StatusPageCustomerPageGroupV2FromJSONTyped(json, false);
31
+ }
32
+ export function StatusPageCustomerPageGroupV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'components': (json['components'].map(StatusPageCustomerPageComponentV2FromJSON)),
38
+ 'description': json['description'] == null ? undefined : json['description'],
39
+ 'display_aggregated_uptime': json['display_aggregated_uptime'],
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ };
43
+ }
44
+ export function StatusPageCustomerPageGroupV2ToJSON(json) {
45
+ return StatusPageCustomerPageGroupV2ToJSONTyped(json, false);
46
+ }
47
+ export function StatusPageCustomerPageGroupV2ToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'components': (value['components'].map(StatusPageCustomerPageComponentV2ToJSON)),
53
+ 'description': value['description'],
54
+ 'display_aggregated_uptime': value['display_aggregated_uptime'],
55
+ 'id': value['id'],
56
+ 'name': value['name'],
57
+ };
58
+ }