@incident-io/sdk 2.44.0 → 2.46.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 (41) 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/AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.d.ts +30 -0
  4. package/dist/cjs/models/AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.js +50 -0
  5. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessInheritanceChangedV1.d.ts +58 -0
  6. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessInheritanceChangedV1.js +79 -0
  7. package/dist/cjs/models/StatusPageCustomerPageComponentV2.d.ts +57 -0
  8. package/dist/cjs/models/StatusPageCustomerPageComponentV2.js +75 -0
  9. package/dist/cjs/models/StatusPageCustomerPageGroupV2.d.ts +47 -0
  10. package/dist/cjs/models/StatusPageCustomerPageGroupV2.js +65 -0
  11. package/dist/cjs/models/StatusPageCustomerPageItemV2.d.ts +36 -0
  12. package/dist/cjs/models/StatusPageCustomerPageItemV2.js +52 -0
  13. package/dist/cjs/models/StatusPageCustomerPageV2.d.ts +68 -0
  14. package/dist/cjs/models/StatusPageCustomerPageV2.js +88 -0
  15. package/dist/cjs/models/StatusPagesShowStatusPageCustomerPageResultV2.d.ts +31 -0
  16. package/dist/cjs/models/StatusPagesShowStatusPageCustomerPageResultV2.js +51 -0
  17. package/dist/cjs/models/index.d.ts +7 -0
  18. package/dist/cjs/models/index.js +7 -0
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/apis/StatusPagesV2Api.d.ts +25 -0
  22. package/dist/esm/apis/StatusPagesV2Api.js +47 -0
  23. package/dist/esm/models/AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.d.ts +30 -0
  24. package/dist/esm/models/AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.js +43 -0
  25. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessInheritanceChangedV1.d.ts +58 -0
  26. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessInheritanceChangedV1.js +72 -0
  27. package/dist/esm/models/StatusPageCustomerPageComponentV2.d.ts +57 -0
  28. package/dist/esm/models/StatusPageCustomerPageComponentV2.js +67 -0
  29. package/dist/esm/models/StatusPageCustomerPageGroupV2.d.ts +47 -0
  30. package/dist/esm/models/StatusPageCustomerPageGroupV2.js +58 -0
  31. package/dist/esm/models/StatusPageCustomerPageItemV2.d.ts +36 -0
  32. package/dist/esm/models/StatusPageCustomerPageItemV2.js +45 -0
  33. package/dist/esm/models/StatusPageCustomerPageV2.d.ts +68 -0
  34. package/dist/esm/models/StatusPageCustomerPageV2.js +80 -0
  35. package/dist/esm/models/StatusPagesShowStatusPageCustomerPageResultV2.d.ts +31 -0
  36. package/dist/esm/models/StatusPagesShowStatusPageCustomerPageResultV2.js +44 -0
  37. package/dist/esm/models/index.d.ts +7 -0
  38. package/dist/esm/models/index.js +7 -0
  39. package/dist/esm/version.d.ts +1 -1
  40. package/dist/esm/version.js +1 -1
  41. package/package.json +1 -1
@@ -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
  */
@@ -62,6 +62,7 @@ const StatusPagesListStatusPageIncidentsResultV2_js_1 = require("../models/Statu
62
62
  const StatusPagesListStatusPageMaintenancesResultV2_js_1 = require("../models/StatusPagesListStatusPageMaintenancesResultV2.js");
63
63
  const StatusPagesListStatusPagesResultV2_js_1 = require("../models/StatusPagesListStatusPagesResultV2.js");
64
64
  const StatusPagesShowStatusPageComponentAvailabilityResultV2_js_1 = require("../models/StatusPagesShowStatusPageComponentAvailabilityResultV2.js");
65
+ const StatusPagesShowStatusPageCustomerPageResultV2_js_1 = require("../models/StatusPagesShowStatusPageCustomerPageResultV2.js");
65
66
  const StatusPagesShowStatusPageIncidentResultV2_js_1 = require("../models/StatusPagesShowStatusPageIncidentResultV2.js");
66
67
  const StatusPagesShowStatusPageMaintenanceResultV2_js_1 = require("../models/StatusPagesShowStatusPageMaintenanceResultV2.js");
67
68
  const StatusPagesShowStatusPageResultV2_js_1 = require("../models/StatusPagesShowStatusPageResultV2.js");
@@ -604,6 +605,52 @@ class StatusPagesV2Api extends runtime.BaseAPI {
604
605
  const response = await this.statusPagesV2ShowStatusPageComponentAvailabilityRaw(requestParameters, initOverrides);
605
606
  return await response.value();
606
607
  }
608
+ /**
609
+ * Creates request options for statusPagesV2ShowStatusPageCustomerPage without sending the request
610
+ */
611
+ async statusPagesV2ShowStatusPageCustomerPageRequestOpts(requestParameters) {
612
+ if (requestParameters['status_page_id'] == null) {
613
+ throw new runtime.RequiredError('status_page_id', 'Required parameter "status_page_id" was null or undefined when calling statusPagesV2ShowStatusPageCustomerPage().');
614
+ }
615
+ if (requestParameters['customer_id'] == null) {
616
+ throw new runtime.RequiredError('customer_id', 'Required parameter "customer_id" was null or undefined when calling statusPagesV2ShowStatusPageCustomerPage().');
617
+ }
618
+ const queryParameters = {};
619
+ const headerParameters = {};
620
+ if (this.configuration && this.configuration.accessToken) {
621
+ const token = this.configuration.accessToken;
622
+ const tokenString = await token("BearerAuth", []);
623
+ if (tokenString) {
624
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
625
+ }
626
+ }
627
+ let urlPath = `/v2/status_pages/{status_page_id}/customers/{customer_id}`;
628
+ urlPath = urlPath.replace('{status_page_id}', encodeURIComponent(String(requestParameters['status_page_id'])));
629
+ urlPath = urlPath.replace('{customer_id}', encodeURIComponent(String(requestParameters['customer_id'])));
630
+ return {
631
+ path: urlPath,
632
+ method: 'GET',
633
+ headers: headerParameters,
634
+ query: queryParameters,
635
+ };
636
+ }
637
+ /**
638
+ * 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.
639
+ * ShowStatusPageCustomerPage Status Pages V2
640
+ */
641
+ async statusPagesV2ShowStatusPageCustomerPageRaw(requestParameters, initOverrides) {
642
+ const requestOptions = await this.statusPagesV2ShowStatusPageCustomerPageRequestOpts(requestParameters);
643
+ const response = await this.request(requestOptions, initOverrides);
644
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPagesShowStatusPageCustomerPageResultV2_js_1.StatusPagesShowStatusPageCustomerPageResultV2FromJSON)(jsonValue));
645
+ }
646
+ /**
647
+ * 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.
648
+ * ShowStatusPageCustomerPage Status Pages V2
649
+ */
650
+ async statusPagesV2ShowStatusPageCustomerPage(requestParameters, initOverrides) {
651
+ const response = await this.statusPagesV2ShowStatusPageCustomerPageRaw(requestParameters, initOverrides);
652
+ return await response.value();
653
+ }
607
654
  /**
608
655
  * Creates request options for statusPagesV2ShowStatusPageIncident without sending the request
609
656
  */
@@ -0,0 +1,30 @@
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 AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2
16
+ */
17
+ export interface AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 {
18
+ /**
19
+ * Whether the data source takes its access mode and teams from its parent after the change (true, false)
20
+ */
21
+ inherits_access: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 interface.
25
+ */
26
+ export declare function instanceOfAuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2(value: object): value is AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
27
+ export declare function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSON(json: any): AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
28
+ export declare function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
29
+ export declare function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSON(json: any): AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
30
+ export declare function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSONTyped(value?: AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfAuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 = instanceOfAuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
17
+ exports.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSON = AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSON;
18
+ exports.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSONTyped = AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSONTyped;
19
+ exports.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSON = AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSON;
20
+ exports.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSONTyped = AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2(value) {
25
+ if (!('inherits_access' in value) || value['inherits_access'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSON(json) {
30
+ return AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'inherits_access': json['inherits_access'],
38
+ };
39
+ }
40
+ function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSON(json) {
41
+ return AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSONTyped(json, false);
42
+ }
43
+ function AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'inherits_access': value['inherits_access'],
49
+ };
50
+ }
@@ -0,0 +1,58 @@
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ import type { AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2 } from './AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsTelemetryDataSourceAccessInheritanceChangedV1
20
+ */
21
+ export interface AuditLogsTelemetryDataSourceAccessInheritanceChangedV1 {
22
+ /**
23
+ * The type of log entry that this is
24
+ */
25
+ action: string;
26
+ /**
27
+ *
28
+ */
29
+ actor: AuditLogActorV2;
30
+ /**
31
+ *
32
+ */
33
+ context: AuditLogEntryContextV2;
34
+ /**
35
+ *
36
+ */
37
+ metadata: AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2;
38
+ /**
39
+ * When the entry occurred
40
+ */
41
+ occurred_at: Date;
42
+ /**
43
+ * The custom field that was created
44
+ */
45
+ targets: Array<AuditLogTargetV2>;
46
+ /**
47
+ * Which version the event is
48
+ */
49
+ version: number;
50
+ }
51
+ /**
52
+ * Check if a given object implements the AuditLogsTelemetryDataSourceAccessInheritanceChangedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsTelemetryDataSourceAccessInheritanceChangedV1(value: object): value is AuditLogsTelemetryDataSourceAccessInheritanceChangedV1;
55
+ export declare function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSON(json: any): AuditLogsTelemetryDataSourceAccessInheritanceChangedV1;
56
+ export declare function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsTelemetryDataSourceAccessInheritanceChangedV1;
57
+ export declare function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSON(json: any): AuditLogsTelemetryDataSourceAccessInheritanceChangedV1;
58
+ export declare function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSONTyped(value?: AuditLogsTelemetryDataSourceAccessInheritanceChangedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.instanceOfAuditLogsTelemetryDataSourceAccessInheritanceChangedV1 = instanceOfAuditLogsTelemetryDataSourceAccessInheritanceChangedV1;
17
+ exports.AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSON = AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSON;
18
+ exports.AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSONTyped = AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSONTyped;
19
+ exports.AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSON = AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSON;
20
+ exports.AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSONTyped = AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ const AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2_js_1 = require("./AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsTelemetryDataSourceAccessInheritanceChangedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsTelemetryDataSourceAccessInheritanceChangedV1(value) {
30
+ if (!('action' in value) || value['action'] === undefined)
31
+ return false;
32
+ if (!('actor' in value) || value['actor'] === undefined)
33
+ return false;
34
+ if (!('context' in value) || value['context'] === undefined)
35
+ return false;
36
+ if (!('metadata' in value) || value['metadata'] === undefined)
37
+ return false;
38
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
39
+ return false;
40
+ if (!('targets' in value) || value['targets'] === undefined)
41
+ return false;
42
+ if (!('version' in value) || value['version'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSON(json) {
47
+ return AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1FromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'action': json['action'],
55
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
56
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
57
+ 'metadata': (0, AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2_js_1.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2FromJSON)(json['metadata']),
58
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
59
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
60
+ 'version': json['version'],
61
+ };
62
+ }
63
+ function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSON(json) {
64
+ return AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsTelemetryDataSourceAccessInheritanceChangedV1ToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'action': value['action'],
72
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
73
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
74
+ 'metadata': (0, AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2_js_1.AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2ToJSON)(value['metadata']),
75
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
76
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
77
+ 'version': value['version'],
78
+ };
79
+ }
@@ -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,75 @@
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.StatusPageCustomerPageComponentV2StatusEnum = void 0;
17
+ exports.instanceOfStatusPageCustomerPageComponentV2 = instanceOfStatusPageCustomerPageComponentV2;
18
+ exports.StatusPageCustomerPageComponentV2FromJSON = StatusPageCustomerPageComponentV2FromJSON;
19
+ exports.StatusPageCustomerPageComponentV2FromJSONTyped = StatusPageCustomerPageComponentV2FromJSONTyped;
20
+ exports.StatusPageCustomerPageComponentV2ToJSON = StatusPageCustomerPageComponentV2ToJSON;
21
+ exports.StatusPageCustomerPageComponentV2ToJSONTyped = StatusPageCustomerPageComponentV2ToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.StatusPageCustomerPageComponentV2StatusEnum = {
26
+ Operational: 'operational',
27
+ UnderMaintenance: 'under_maintenance',
28
+ DegradedPerformance: 'degraded_performance',
29
+ PartialOutage: 'partial_outage',
30
+ FullOutage: 'full_outage',
31
+ };
32
+ /**
33
+ * Check if a given object implements the StatusPageCustomerPageComponentV2 interface.
34
+ */
35
+ function instanceOfStatusPageCustomerPageComponentV2(value) {
36
+ if (!('component_id' in value) || value['component_id'] === undefined)
37
+ return false;
38
+ if (!('display_uptime' in value) || value['display_uptime'] === undefined)
39
+ return false;
40
+ if (!('name' in value) || value['name'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function StatusPageCustomerPageComponentV2FromJSON(json) {
47
+ return StatusPageCustomerPageComponentV2FromJSONTyped(json, false);
48
+ }
49
+ function StatusPageCustomerPageComponentV2FromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'component_id': json['component_id'],
55
+ 'description': json['description'] == null ? undefined : json['description'],
56
+ 'display_uptime': json['display_uptime'],
57
+ 'name': json['name'],
58
+ 'status': json['status'],
59
+ };
60
+ }
61
+ function StatusPageCustomerPageComponentV2ToJSON(json) {
62
+ return StatusPageCustomerPageComponentV2ToJSONTyped(json, false);
63
+ }
64
+ function StatusPageCustomerPageComponentV2ToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'component_id': value['component_id'],
70
+ 'description': value['description'],
71
+ 'display_uptime': value['display_uptime'],
72
+ 'name': value['name'],
73
+ 'status': value['status'],
74
+ };
75
+ }
@@ -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,65 @@
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.instanceOfStatusPageCustomerPageGroupV2 = instanceOfStatusPageCustomerPageGroupV2;
17
+ exports.StatusPageCustomerPageGroupV2FromJSON = StatusPageCustomerPageGroupV2FromJSON;
18
+ exports.StatusPageCustomerPageGroupV2FromJSONTyped = StatusPageCustomerPageGroupV2FromJSONTyped;
19
+ exports.StatusPageCustomerPageGroupV2ToJSON = StatusPageCustomerPageGroupV2ToJSON;
20
+ exports.StatusPageCustomerPageGroupV2ToJSONTyped = StatusPageCustomerPageGroupV2ToJSONTyped;
21
+ const StatusPageCustomerPageComponentV2_js_1 = require("./StatusPageCustomerPageComponentV2.js");
22
+ /**
23
+ * Check if a given object implements the StatusPageCustomerPageGroupV2 interface.
24
+ */
25
+ function instanceOfStatusPageCustomerPageGroupV2(value) {
26
+ if (!('components' in value) || value['components'] === undefined)
27
+ return false;
28
+ if (!('display_aggregated_uptime' in value) || value['display_aggregated_uptime'] === undefined)
29
+ return false;
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('name' in value) || value['name'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function StatusPageCustomerPageGroupV2FromJSON(json) {
37
+ return StatusPageCustomerPageGroupV2FromJSONTyped(json, false);
38
+ }
39
+ function StatusPageCustomerPageGroupV2FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'components': (json['components'].map(StatusPageCustomerPageComponentV2_js_1.StatusPageCustomerPageComponentV2FromJSON)),
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'display_aggregated_uptime': json['display_aggregated_uptime'],
47
+ 'id': json['id'],
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+ function StatusPageCustomerPageGroupV2ToJSON(json) {
52
+ return StatusPageCustomerPageGroupV2ToJSONTyped(json, false);
53
+ }
54
+ function StatusPageCustomerPageGroupV2ToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'components': (value['components'].map(StatusPageCustomerPageComponentV2_js_1.StatusPageCustomerPageComponentV2ToJSON)),
60
+ 'description': value['description'],
61
+ 'display_aggregated_uptime': value['display_aggregated_uptime'],
62
+ 'id': value['id'],
63
+ 'name': value['name'],
64
+ };
65
+ }
@@ -0,0 +1,36 @@
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
+ import type { StatusPageCustomerPageGroupV2 } from './StatusPageCustomerPageGroupV2.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface StatusPageCustomerPageItemV2
18
+ */
19
+ export interface StatusPageCustomerPageItemV2 {
20
+ /**
21
+ *
22
+ */
23
+ component?: StatusPageCustomerPageComponentV2;
24
+ /**
25
+ *
26
+ */
27
+ group?: StatusPageCustomerPageGroupV2;
28
+ }
29
+ /**
30
+ * Check if a given object implements the StatusPageCustomerPageItemV2 interface.
31
+ */
32
+ export declare function instanceOfStatusPageCustomerPageItemV2(value: object): value is StatusPageCustomerPageItemV2;
33
+ export declare function StatusPageCustomerPageItemV2FromJSON(json: any): StatusPageCustomerPageItemV2;
34
+ export declare function StatusPageCustomerPageItemV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusPageCustomerPageItemV2;
35
+ export declare function StatusPageCustomerPageItemV2ToJSON(json: any): StatusPageCustomerPageItemV2;
36
+ export declare function StatusPageCustomerPageItemV2ToJSONTyped(value?: StatusPageCustomerPageItemV2 | null, ignoreDiscriminator?: boolean): any;