@incident-io/sdk 2.21.0 → 2.23.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.
- package/dist/cjs/apis/IncidentsV2Api.d.ts +25 -0
- package/dist/cjs/apis/IncidentsV2Api.js +47 -0
- package/dist/cjs/apis/ManagedResourcesV2Api.d.ts +39 -0
- package/dist/cjs/apis/ManagedResourcesV2Api.js +101 -0
- package/dist/cjs/apis/index.d.ts +1 -0
- package/dist/cjs/apis/index.js +1 -0
- package/dist/cjs/models/IncidentsConnectExternalIssuePayloadV2.d.ts +61 -0
- package/dist/cjs/models/IncidentsConnectExternalIssuePayloadV2.js +79 -0
- package/dist/cjs/models/ManagedResourceV2.d.ts +79 -0
- package/dist/cjs/models/ManagedResourceV2.js +94 -0
- package/dist/cjs/models/ManagedResourcesCreateManagedResourcePayloadV2.d.ts +62 -0
- package/dist/cjs/models/ManagedResourcesCreateManagedResourcePayloadV2.js +80 -0
- package/dist/cjs/models/ManagedResourcesCreateManagedResourceResultV2.d.ts +31 -0
- package/dist/cjs/models/ManagedResourcesCreateManagedResourceResultV2.js +51 -0
- package/dist/cjs/models/index.d.ts +4 -0
- package/dist/cjs/models/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/IncidentsV2Api.d.ts +25 -0
- package/dist/esm/apis/IncidentsV2Api.js +47 -0
- package/dist/esm/apis/ManagedResourcesV2Api.d.ts +39 -0
- package/dist/esm/apis/ManagedResourcesV2Api.js +64 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/IncidentsConnectExternalIssuePayloadV2.d.ts +61 -0
- package/dist/esm/models/IncidentsConnectExternalIssuePayloadV2.js +71 -0
- package/dist/esm/models/ManagedResourceV2.d.ts +79 -0
- package/dist/esm/models/ManagedResourceV2.js +86 -0
- package/dist/esm/models/ManagedResourcesCreateManagedResourcePayloadV2.d.ts +62 -0
- package/dist/esm/models/ManagedResourcesCreateManagedResourcePayloadV2.js +72 -0
- package/dist/esm/models/ManagedResourcesCreateManagedResourceResultV2.d.ts +31 -0
- package/dist/esm/models/ManagedResourcesCreateManagedResourceResultV2.js +44 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type IncidentsConnectExternalIssuePayloadV2 } from '../models/IncidentsConnectExternalIssuePayloadV2.js';
|
|
13
14
|
import { type IncidentsCreatePayloadV2 } from '../models/IncidentsCreatePayloadV2.js';
|
|
14
15
|
import { type IncidentsCreateResultV2 } from '../models/IncidentsCreateResultV2.js';
|
|
15
16
|
import { type IncidentsEditPayloadV2 } from '../models/IncidentsEditPayloadV2.js';
|
|
@@ -18,6 +19,16 @@ import { type IncidentsImportPostmortemDocumentPayloadV2 } from '../models/Incid
|
|
|
18
19
|
import { type IncidentsImportPostmortemDocumentResultV2 } from '../models/IncidentsImportPostmortemDocumentResultV2.js';
|
|
19
20
|
import { type IncidentsListResultV2 } from '../models/IncidentsListResultV2.js';
|
|
20
21
|
import { type IncidentsShowResultV2 } from '../models/IncidentsShowResultV2.js';
|
|
22
|
+
export interface IncidentsV2ConnectExternalIssueRequest {
|
|
23
|
+
/**
|
|
24
|
+
* The unique identifier of the incident
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
body: IncidentsConnectExternalIssuePayloadV2;
|
|
31
|
+
}
|
|
21
32
|
export interface IncidentsV2CreateRequest {
|
|
22
33
|
/**
|
|
23
34
|
*
|
|
@@ -130,6 +141,20 @@ export interface IncidentsV2ShowRequest {
|
|
|
130
141
|
*
|
|
131
142
|
*/
|
|
132
143
|
export declare class IncidentsV2Api extends runtime.BaseAPI {
|
|
144
|
+
/**
|
|
145
|
+
* Creates request options for incidentsV2ConnectExternalIssue without sending the request
|
|
146
|
+
*/
|
|
147
|
+
incidentsV2ConnectExternalIssueRequestOpts(requestParameters: IncidentsV2ConnectExternalIssueRequest): Promise<runtime.RequestOpts>;
|
|
148
|
+
/**
|
|
149
|
+
* Connect an existing issue in an issue tracker to an incident, as its external issue. The issue is synced using the given incident ticket template, as if incident.io had created it from that template. The next sync writes the incident\'s fields into the issue. This needs the incidents.connect_external_issue scope, either across the organisation or from an incident role on this incident. This fails if the incident already has a different external issue (unless replace is true), or if the issue is already linked to another incident or follow-up. The ID supplied can be either the incident\'s full ID, or the numeric part of its reference.
|
|
150
|
+
* ConnectExternalIssue Incidents V2
|
|
151
|
+
*/
|
|
152
|
+
incidentsV2ConnectExternalIssueRaw(requestParameters: IncidentsV2ConnectExternalIssueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
153
|
+
/**
|
|
154
|
+
* Connect an existing issue in an issue tracker to an incident, as its external issue. The issue is synced using the given incident ticket template, as if incident.io had created it from that template. The next sync writes the incident\'s fields into the issue. This needs the incidents.connect_external_issue scope, either across the organisation or from an incident role on this incident. This fails if the incident already has a different external issue (unless replace is true), or if the issue is already linked to another incident or follow-up. The ID supplied can be either the incident\'s full ID, or the numeric part of its reference.
|
|
155
|
+
* ConnectExternalIssue Incidents V2
|
|
156
|
+
*/
|
|
157
|
+
incidentsV2ConnectExternalIssue(requestParameters: IncidentsV2ConnectExternalIssueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
133
158
|
/**
|
|
134
159
|
* Creates request options for incidentsV2Create without sending the request
|
|
135
160
|
*/
|
|
@@ -48,6 +48,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
49
|
exports.IncidentsV2ListFilterModeEnum = exports.IncidentsV2ListSortByEnum = exports.IncidentsV2Api = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime.js"));
|
|
51
|
+
const IncidentsConnectExternalIssuePayloadV2_js_1 = require("../models/IncidentsConnectExternalIssuePayloadV2.js");
|
|
51
52
|
const IncidentsCreatePayloadV2_js_1 = require("../models/IncidentsCreatePayloadV2.js");
|
|
52
53
|
const IncidentsCreateResultV2_js_1 = require("../models/IncidentsCreateResultV2.js");
|
|
53
54
|
const IncidentsEditPayloadV2_js_1 = require("../models/IncidentsEditPayloadV2.js");
|
|
@@ -60,6 +61,52 @@ const IncidentsShowResultV2_js_1 = require("../models/IncidentsShowResultV2.js")
|
|
|
60
61
|
*
|
|
61
62
|
*/
|
|
62
63
|
class IncidentsV2Api extends runtime.BaseAPI {
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for incidentsV2ConnectExternalIssue without sending the request
|
|
66
|
+
*/
|
|
67
|
+
async incidentsV2ConnectExternalIssueRequestOpts(requestParameters) {
|
|
68
|
+
if (requestParameters['id'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling incidentsV2ConnectExternalIssue().');
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['body'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling incidentsV2ConnectExternalIssue().');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("BearerAuth", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
let urlPath = `/v2/incidents/{id}/actions/connect_external_issue`;
|
|
85
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
body: (0, IncidentsConnectExternalIssuePayloadV2_js_1.IncidentsConnectExternalIssuePayloadV2ToJSON)(requestParameters['body']),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Connect an existing issue in an issue tracker to an incident, as its external issue. The issue is synced using the given incident ticket template, as if incident.io had created it from that template. The next sync writes the incident\'s fields into the issue. This needs the incidents.connect_external_issue scope, either across the organisation or from an incident role on this incident. This fails if the incident already has a different external issue (unless replace is true), or if the issue is already linked to another incident or follow-up. The ID supplied can be either the incident\'s full ID, or the numeric part of its reference.
|
|
96
|
+
* ConnectExternalIssue Incidents V2
|
|
97
|
+
*/
|
|
98
|
+
async incidentsV2ConnectExternalIssueRaw(requestParameters, initOverrides) {
|
|
99
|
+
const requestOptions = await this.incidentsV2ConnectExternalIssueRequestOpts(requestParameters);
|
|
100
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
101
|
+
return new runtime.VoidApiResponse(response);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Connect an existing issue in an issue tracker to an incident, as its external issue. The issue is synced using the given incident ticket template, as if incident.io had created it from that template. The next sync writes the incident\'s fields into the issue. This needs the incidents.connect_external_issue scope, either across the organisation or from an incident role on this incident. This fails if the incident already has a different external issue (unless replace is true), or if the issue is already linked to another incident or follow-up. The ID supplied can be either the incident\'s full ID, or the numeric part of its reference.
|
|
105
|
+
* ConnectExternalIssue Incidents V2
|
|
106
|
+
*/
|
|
107
|
+
async incidentsV2ConnectExternalIssue(requestParameters, initOverrides) {
|
|
108
|
+
await this.incidentsV2ConnectExternalIssueRaw(requestParameters, initOverrides);
|
|
109
|
+
}
|
|
63
110
|
/**
|
|
64
111
|
* Creates request options for incidentsV2Create without sending the request
|
|
65
112
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type ManagedResourcesCreateManagedResourcePayloadV2 } from '../models/ManagedResourcesCreateManagedResourcePayloadV2.js';
|
|
14
|
+
import { type ManagedResourcesCreateManagedResourceResultV2 } from '../models/ManagedResourcesCreateManagedResourceResultV2.js';
|
|
15
|
+
export interface ManagedResourcesV2CreateManagedResourceRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
body: ManagedResourcesCreateManagedResourcePayloadV2;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class ManagedResourcesV2Api extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for managedResourcesV2CreateManagedResource without sending the request
|
|
27
|
+
*/
|
|
28
|
+
managedResourcesV2CreateManagedResourceRequestOpts(requestParameters: ManagedResourcesV2CreateManagedResourceRequest): Promise<runtime.RequestOpts>;
|
|
29
|
+
/**
|
|
30
|
+
* Create or update the management record for a resource. This replaces any annotations already stored on it. The annotations set `managed_by`: - `incident.io/terraform/version` sets it to `terraform`. - `incident.io/is-managed-externally` sets it to `external`. If both keys are present, `external` wins. - Neither key sets it to `dashboard`. This doesn\'t change the resource\'s configuration, but `managed_by` controls whether it can be edited in the dashboard. Returning a schedule to `dashboard` also returns its sync rules and targets. The API key must have the update scope for the resource type, e.g. `schedules.update` for a schedule.
|
|
31
|
+
* CreateManagedResource Managed Resources V2
|
|
32
|
+
*/
|
|
33
|
+
managedResourcesV2CreateManagedResourceRaw(requestParameters: ManagedResourcesV2CreateManagedResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedResourcesCreateManagedResourceResultV2>>;
|
|
34
|
+
/**
|
|
35
|
+
* Create or update the management record for a resource. This replaces any annotations already stored on it. The annotations set `managed_by`: - `incident.io/terraform/version` sets it to `terraform`. - `incident.io/is-managed-externally` sets it to `external`. If both keys are present, `external` wins. - Neither key sets it to `dashboard`. This doesn\'t change the resource\'s configuration, but `managed_by` controls whether it can be edited in the dashboard. Returning a schedule to `dashboard` also returns its sync rules and targets. The API key must have the update scope for the resource type, e.g. `schedules.update` for a schedule.
|
|
36
|
+
* CreateManagedResource Managed Resources V2
|
|
37
|
+
*/
|
|
38
|
+
managedResourcesV2CreateManagedResource(requestParameters: ManagedResourcesV2CreateManagedResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedResourcesCreateManagedResourceResultV2>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ManagedResourcesV2Api = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime.js"));
|
|
51
|
+
const ManagedResourcesCreateManagedResourcePayloadV2_js_1 = require("../models/ManagedResourcesCreateManagedResourcePayloadV2.js");
|
|
52
|
+
const ManagedResourcesCreateManagedResourceResultV2_js_1 = require("../models/ManagedResourcesCreateManagedResourceResultV2.js");
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
class ManagedResourcesV2Api extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for managedResourcesV2CreateManagedResource without sending the request
|
|
59
|
+
*/
|
|
60
|
+
async managedResourcesV2CreateManagedResourceRequestOpts(requestParameters) {
|
|
61
|
+
if (requestParameters['body'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling managedResourcesV2CreateManagedResource().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("BearerAuth", []);
|
|
70
|
+
if (tokenString) {
|
|
71
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
let urlPath = `/v2/managed_resources`;
|
|
75
|
+
return {
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'POST',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
body: (0, ManagedResourcesCreateManagedResourcePayloadV2_js_1.ManagedResourcesCreateManagedResourcePayloadV2ToJSON)(requestParameters['body']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Create or update the management record for a resource. This replaces any annotations already stored on it. The annotations set `managed_by`: - `incident.io/terraform/version` sets it to `terraform`. - `incident.io/is-managed-externally` sets it to `external`. If both keys are present, `external` wins. - Neither key sets it to `dashboard`. This doesn\'t change the resource\'s configuration, but `managed_by` controls whether it can be edited in the dashboard. Returning a schedule to `dashboard` also returns its sync rules and targets. The API key must have the update scope for the resource type, e.g. `schedules.update` for a schedule.
|
|
85
|
+
* CreateManagedResource Managed Resources V2
|
|
86
|
+
*/
|
|
87
|
+
async managedResourcesV2CreateManagedResourceRaw(requestParameters, initOverrides) {
|
|
88
|
+
const requestOptions = await this.managedResourcesV2CreateManagedResourceRequestOpts(requestParameters);
|
|
89
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ManagedResourcesCreateManagedResourceResultV2_js_1.ManagedResourcesCreateManagedResourceResultV2FromJSON)(jsonValue));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create or update the management record for a resource. This replaces any annotations already stored on it. The annotations set `managed_by`: - `incident.io/terraform/version` sets it to `terraform`. - `incident.io/is-managed-externally` sets it to `external`. If both keys are present, `external` wins. - Neither key sets it to `dashboard`. This doesn\'t change the resource\'s configuration, but `managed_by` controls whether it can be edited in the dashboard. Returning a schedule to `dashboard` also returns its sync rules and targets. The API key must have the update scope for the resource type, e.g. `schedules.update` for a schedule.
|
|
94
|
+
* CreateManagedResource Managed Resources V2
|
|
95
|
+
*/
|
|
96
|
+
async managedResourcesV2CreateManagedResource(requestParameters, initOverrides) {
|
|
97
|
+
const response = await this.managedResourcesV2CreateManagedResourceRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.ManagedResourcesV2Api = ManagedResourcesV2Api;
|
package/dist/cjs/apis/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './IncidentUpdatesV2Api.js';
|
|
|
44
44
|
export * from './IncidentsV1Api.js';
|
|
45
45
|
export * from './IncidentsV2Api.js';
|
|
46
46
|
export * from './MaintenanceWindowsV1Api.js';
|
|
47
|
+
export * from './ManagedResourcesV2Api.js';
|
|
47
48
|
export * from './OnCallNotificationPausesV2Api.js';
|
|
48
49
|
export * from './PayConfigsV2Api.js';
|
|
49
50
|
export * from './PayReportsV2Api.js';
|
package/dist/cjs/apis/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./IncidentUpdatesV2Api.js"), exports);
|
|
|
62
62
|
__exportStar(require("./IncidentsV1Api.js"), exports);
|
|
63
63
|
__exportStar(require("./IncidentsV2Api.js"), exports);
|
|
64
64
|
__exportStar(require("./MaintenanceWindowsV1Api.js"), exports);
|
|
65
|
+
__exportStar(require("./ManagedResourcesV2Api.js"), exports);
|
|
65
66
|
__exportStar(require("./OnCallNotificationPausesV2Api.js"), exports);
|
|
66
67
|
__exportStar(require("./PayConfigsV2Api.js"), exports);
|
|
67
68
|
__exportStar(require("./PayReportsV2Api.js"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
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 IncidentsConnectExternalIssuePayloadV2
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsConnectExternalIssuePayloadV2 {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the incident ticket template to sync the issue with
|
|
20
|
+
*/
|
|
21
|
+
issue_template_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* The issue tracker provider the issue belongs to. It must match the provider of the incident ticket template.
|
|
24
|
+
*/
|
|
25
|
+
provider: IncidentsConnectExternalIssuePayloadV2ProviderEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to replace the incident's current external issue, if it has a different one
|
|
28
|
+
*/
|
|
29
|
+
replace?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* URL of the issue in the issue tracker
|
|
32
|
+
*/
|
|
33
|
+
url: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
export declare const IncidentsConnectExternalIssuePayloadV2ProviderEnum: {
|
|
39
|
+
readonly Asana: "asana";
|
|
40
|
+
readonly AzureDevops: "azure_devops";
|
|
41
|
+
readonly ClickUp: "click_up";
|
|
42
|
+
readonly Freshservice: "freshservice";
|
|
43
|
+
readonly Linear: "linear";
|
|
44
|
+
readonly Jira: "jira";
|
|
45
|
+
readonly Salesforce: "salesforce";
|
|
46
|
+
readonly JiraServer: "jira_server";
|
|
47
|
+
readonly Github: "github";
|
|
48
|
+
readonly Gitlab: "gitlab";
|
|
49
|
+
readonly ServiceNow: "service_now";
|
|
50
|
+
readonly Shortcut: "shortcut";
|
|
51
|
+
readonly Notion: "notion";
|
|
52
|
+
};
|
|
53
|
+
export type IncidentsConnectExternalIssuePayloadV2ProviderEnum = typeof IncidentsConnectExternalIssuePayloadV2ProviderEnum[keyof typeof IncidentsConnectExternalIssuePayloadV2ProviderEnum];
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IncidentsConnectExternalIssuePayloadV2 interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfIncidentsConnectExternalIssuePayloadV2(value: object): value is IncidentsConnectExternalIssuePayloadV2;
|
|
58
|
+
export declare function IncidentsConnectExternalIssuePayloadV2FromJSON(json: any): IncidentsConnectExternalIssuePayloadV2;
|
|
59
|
+
export declare function IncidentsConnectExternalIssuePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsConnectExternalIssuePayloadV2;
|
|
60
|
+
export declare function IncidentsConnectExternalIssuePayloadV2ToJSON(json: any): IncidentsConnectExternalIssuePayloadV2;
|
|
61
|
+
export declare function IncidentsConnectExternalIssuePayloadV2ToJSONTyped(value?: IncidentsConnectExternalIssuePayloadV2 | 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.IncidentsConnectExternalIssuePayloadV2ProviderEnum = void 0;
|
|
17
|
+
exports.instanceOfIncidentsConnectExternalIssuePayloadV2 = instanceOfIncidentsConnectExternalIssuePayloadV2;
|
|
18
|
+
exports.IncidentsConnectExternalIssuePayloadV2FromJSON = IncidentsConnectExternalIssuePayloadV2FromJSON;
|
|
19
|
+
exports.IncidentsConnectExternalIssuePayloadV2FromJSONTyped = IncidentsConnectExternalIssuePayloadV2FromJSONTyped;
|
|
20
|
+
exports.IncidentsConnectExternalIssuePayloadV2ToJSON = IncidentsConnectExternalIssuePayloadV2ToJSON;
|
|
21
|
+
exports.IncidentsConnectExternalIssuePayloadV2ToJSONTyped = IncidentsConnectExternalIssuePayloadV2ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IncidentsConnectExternalIssuePayloadV2ProviderEnum = {
|
|
26
|
+
Asana: 'asana',
|
|
27
|
+
AzureDevops: 'azure_devops',
|
|
28
|
+
ClickUp: 'click_up',
|
|
29
|
+
Freshservice: 'freshservice',
|
|
30
|
+
Linear: 'linear',
|
|
31
|
+
Jira: 'jira',
|
|
32
|
+
Salesforce: 'salesforce',
|
|
33
|
+
JiraServer: 'jira_server',
|
|
34
|
+
Github: 'github',
|
|
35
|
+
Gitlab: 'gitlab',
|
|
36
|
+
ServiceNow: 'service_now',
|
|
37
|
+
Shortcut: 'shortcut',
|
|
38
|
+
Notion: 'notion',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the IncidentsConnectExternalIssuePayloadV2 interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfIncidentsConnectExternalIssuePayloadV2(value) {
|
|
44
|
+
if (!('issue_template_id' in value) || value['issue_template_id'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function IncidentsConnectExternalIssuePayloadV2FromJSON(json) {
|
|
53
|
+
return IncidentsConnectExternalIssuePayloadV2FromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function IncidentsConnectExternalIssuePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'issue_template_id': json['issue_template_id'],
|
|
61
|
+
'provider': json['provider'],
|
|
62
|
+
'replace': json['replace'] == null ? undefined : json['replace'],
|
|
63
|
+
'url': json['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function IncidentsConnectExternalIssuePayloadV2ToJSON(json) {
|
|
67
|
+
return IncidentsConnectExternalIssuePayloadV2ToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function IncidentsConnectExternalIssuePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'issue_template_id': value['issue_template_id'],
|
|
75
|
+
'provider': value['provider'],
|
|
76
|
+
'replace': value['replace'],
|
|
77
|
+
'url': value['url'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 ManagedResourceV2
|
|
16
|
+
*/
|
|
17
|
+
export interface ManagedResourceV2 {
|
|
18
|
+
/**
|
|
19
|
+
* Annotations that track metadata about this resource
|
|
20
|
+
*/
|
|
21
|
+
annotations: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* How is this resource managed
|
|
26
|
+
*/
|
|
27
|
+
managed_by: ManagedResourceV2ManagedByEnum;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the resource that this relates to
|
|
30
|
+
*/
|
|
31
|
+
resource_id: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
resource_type: ManagedResourceV2ResourceTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The url of the external repository where this resource is managed (if there is one)
|
|
38
|
+
*/
|
|
39
|
+
source_url?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const ManagedResourceV2ManagedByEnum: {
|
|
45
|
+
readonly Dashboard: "dashboard";
|
|
46
|
+
readonly Terraform: "terraform";
|
|
47
|
+
readonly External: "external";
|
|
48
|
+
};
|
|
49
|
+
export type ManagedResourceV2ManagedByEnum = typeof ManagedResourceV2ManagedByEnum[keyof typeof ManagedResourceV2ManagedByEnum];
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const ManagedResourceV2ResourceTypeEnum: {
|
|
54
|
+
readonly AlertRoute: "alert_route";
|
|
55
|
+
readonly AlertSource: "alert_source";
|
|
56
|
+
readonly ApiKey: "api_key";
|
|
57
|
+
readonly IncidentForm: "incident_form";
|
|
58
|
+
readonly IncidentTemplate: "incident_template";
|
|
59
|
+
readonly EscalationPath: "escalation_path";
|
|
60
|
+
readonly EscalationPathTemplate: "escalation_path_template";
|
|
61
|
+
readonly Policy: "policy";
|
|
62
|
+
readonly Schedule: "schedule";
|
|
63
|
+
readonly ScheduleSyncTarget: "schedule_sync_target";
|
|
64
|
+
readonly ScheduleSyncRule: "schedule_sync_rule";
|
|
65
|
+
readonly Secret: "secret";
|
|
66
|
+
readonly StatusPageComponent: "status_page_component";
|
|
67
|
+
readonly StatusPageStructure: "status_page_structure";
|
|
68
|
+
readonly TeamGroupingPreference: "team_grouping_preference";
|
|
69
|
+
readonly Workflow: "workflow";
|
|
70
|
+
};
|
|
71
|
+
export type ManagedResourceV2ResourceTypeEnum = typeof ManagedResourceV2ResourceTypeEnum[keyof typeof ManagedResourceV2ResourceTypeEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the ManagedResourceV2 interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfManagedResourceV2(value: object): value is ManagedResourceV2;
|
|
76
|
+
export declare function ManagedResourceV2FromJSON(json: any): ManagedResourceV2;
|
|
77
|
+
export declare function ManagedResourceV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedResourceV2;
|
|
78
|
+
export declare function ManagedResourceV2ToJSON(json: any): ManagedResourceV2;
|
|
79
|
+
export declare function ManagedResourceV2ToJSONTyped(value?: ManagedResourceV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.ManagedResourceV2ResourceTypeEnum = exports.ManagedResourceV2ManagedByEnum = void 0;
|
|
17
|
+
exports.instanceOfManagedResourceV2 = instanceOfManagedResourceV2;
|
|
18
|
+
exports.ManagedResourceV2FromJSON = ManagedResourceV2FromJSON;
|
|
19
|
+
exports.ManagedResourceV2FromJSONTyped = ManagedResourceV2FromJSONTyped;
|
|
20
|
+
exports.ManagedResourceV2ToJSON = ManagedResourceV2ToJSON;
|
|
21
|
+
exports.ManagedResourceV2ToJSONTyped = ManagedResourceV2ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ManagedResourceV2ManagedByEnum = {
|
|
26
|
+
Dashboard: 'dashboard',
|
|
27
|
+
Terraform: 'terraform',
|
|
28
|
+
External: 'external',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.ManagedResourceV2ResourceTypeEnum = {
|
|
34
|
+
AlertRoute: 'alert_route',
|
|
35
|
+
AlertSource: 'alert_source',
|
|
36
|
+
ApiKey: 'api_key',
|
|
37
|
+
IncidentForm: 'incident_form',
|
|
38
|
+
IncidentTemplate: 'incident_template',
|
|
39
|
+
EscalationPath: 'escalation_path',
|
|
40
|
+
EscalationPathTemplate: 'escalation_path_template',
|
|
41
|
+
Policy: 'policy',
|
|
42
|
+
Schedule: 'schedule',
|
|
43
|
+
ScheduleSyncTarget: 'schedule_sync_target',
|
|
44
|
+
ScheduleSyncRule: 'schedule_sync_rule',
|
|
45
|
+
Secret: 'secret',
|
|
46
|
+
StatusPageComponent: 'status_page_component',
|
|
47
|
+
StatusPageStructure: 'status_page_structure',
|
|
48
|
+
TeamGroupingPreference: 'team_grouping_preference',
|
|
49
|
+
Workflow: 'workflow',
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ManagedResourceV2 interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfManagedResourceV2(value) {
|
|
55
|
+
if (!('annotations' in value) || value['annotations'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('managed_by' in value) || value['managed_by'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('resource_id' in value) || value['resource_id'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('resource_type' in value) || value['resource_type'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
function ManagedResourceV2FromJSON(json) {
|
|
66
|
+
return ManagedResourceV2FromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ManagedResourceV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'annotations': json['annotations'],
|
|
74
|
+
'managed_by': json['managed_by'],
|
|
75
|
+
'resource_id': json['resource_id'],
|
|
76
|
+
'resource_type': json['resource_type'],
|
|
77
|
+
'source_url': json['source_url'] == null ? undefined : json['source_url'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function ManagedResourceV2ToJSON(json) {
|
|
81
|
+
return ManagedResourceV2ToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function ManagedResourceV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'annotations': value['annotations'],
|
|
89
|
+
'managed_by': value['managed_by'],
|
|
90
|
+
'resource_id': value['resource_id'],
|
|
91
|
+
'resource_type': value['resource_type'],
|
|
92
|
+
'source_url': value['source_url'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 ManagedResourcesCreateManagedResourcePayloadV2
|
|
16
|
+
*/
|
|
17
|
+
export interface ManagedResourcesCreateManagedResourcePayloadV2 {
|
|
18
|
+
/**
|
|
19
|
+
* Annotations that track metadata about this resource
|
|
20
|
+
*/
|
|
21
|
+
annotations: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the resource that this relates to
|
|
26
|
+
*/
|
|
27
|
+
resource_id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The type of the related resource
|
|
30
|
+
*/
|
|
31
|
+
resource_type: ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum: {
|
|
37
|
+
readonly AlertRoute: "alert_route";
|
|
38
|
+
readonly AlertSource: "alert_source";
|
|
39
|
+
readonly ApiKey: "api_key";
|
|
40
|
+
readonly IncidentForm: "incident_form";
|
|
41
|
+
readonly IncidentTemplate: "incident_template";
|
|
42
|
+
readonly EscalationPath: "escalation_path";
|
|
43
|
+
readonly EscalationPathTemplate: "escalation_path_template";
|
|
44
|
+
readonly Policy: "policy";
|
|
45
|
+
readonly Schedule: "schedule";
|
|
46
|
+
readonly ScheduleSyncTarget: "schedule_sync_target";
|
|
47
|
+
readonly ScheduleSyncRule: "schedule_sync_rule";
|
|
48
|
+
readonly Secret: "secret";
|
|
49
|
+
readonly StatusPageComponent: "status_page_component";
|
|
50
|
+
readonly StatusPageStructure: "status_page_structure";
|
|
51
|
+
readonly TeamGroupingPreference: "team_grouping_preference";
|
|
52
|
+
readonly Workflow: "workflow";
|
|
53
|
+
};
|
|
54
|
+
export type ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum = typeof ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum[keyof typeof ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ManagedResourcesCreateManagedResourcePayloadV2 interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfManagedResourcesCreateManagedResourcePayloadV2(value: object): value is ManagedResourcesCreateManagedResourcePayloadV2;
|
|
59
|
+
export declare function ManagedResourcesCreateManagedResourcePayloadV2FromJSON(json: any): ManagedResourcesCreateManagedResourcePayloadV2;
|
|
60
|
+
export declare function ManagedResourcesCreateManagedResourcePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedResourcesCreateManagedResourcePayloadV2;
|
|
61
|
+
export declare function ManagedResourcesCreateManagedResourcePayloadV2ToJSON(json: any): ManagedResourcesCreateManagedResourcePayloadV2;
|
|
62
|
+
export declare function ManagedResourcesCreateManagedResourcePayloadV2ToJSONTyped(value?: ManagedResourcesCreateManagedResourcePayloadV2 | null, ignoreDiscriminator?: boolean): any;
|