@incident-io/sdk 2.30.0 → 2.32.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 (77) hide show
  1. package/dist/cjs/apis/AlertAttachmentsV2Api.d.ts +92 -0
  2. package/dist/cjs/apis/AlertAttachmentsV2Api.js +193 -0
  3. package/dist/cjs/apis/index.d.ts +1 -0
  4. package/dist/cjs/apis/index.js +1 -0
  5. package/dist/cjs/models/AlertAttachmentV2.d.ts +51 -0
  6. package/dist/cjs/models/AlertAttachmentV2.js +67 -0
  7. package/dist/cjs/models/AlertAttachmentsCreatePayloadV2.d.ts +42 -0
  8. package/dist/cjs/models/AlertAttachmentsCreatePayloadV2.js +56 -0
  9. package/dist/cjs/models/AlertAttachmentsCreateResultV2.d.ts +31 -0
  10. package/dist/cjs/models/AlertAttachmentsCreateResultV2.js +51 -0
  11. package/dist/cjs/models/AlertAttachmentsListResultV2.d.ts +36 -0
  12. package/dist/cjs/models/AlertAttachmentsListResultV2.js +54 -0
  13. package/dist/cjs/models/AlertSourceV2.d.ts +1 -0
  14. package/dist/cjs/models/AlertSourceV2.js +1 -0
  15. package/dist/cjs/models/AlertSourcesCreatePayloadV2.d.ts +1 -0
  16. package/dist/cjs/models/AlertSourcesCreatePayloadV2.js +1 -0
  17. package/dist/cjs/models/AlertSourcesValidatePayloadV2.d.ts +1 -0
  18. package/dist/cjs/models/AlertSourcesValidatePayloadV2.js +1 -0
  19. package/dist/cjs/models/AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.d.ts +30 -0
  20. package/dist/cjs/models/AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.js +50 -0
  21. package/dist/cjs/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +62 -0
  22. package/dist/cjs/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +66 -0
  23. package/dist/cjs/models/AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.d.ts +34 -0
  24. package/dist/cjs/models/AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.js +50 -0
  25. package/dist/cjs/models/AuditLogTargetV2.d.ts +2 -0
  26. package/dist/cjs/models/AuditLogTargetV2.js +2 -0
  27. package/dist/cjs/models/AuditLogsReliabilityReviewRepositoryUpdatedV1.d.ts +58 -0
  28. package/dist/cjs/models/AuditLogsReliabilityReviewRepositoryUpdatedV1.js +79 -0
  29. package/dist/cjs/models/AuditLogsReliabilityReviewSettingsUpdatedV1.d.ts +58 -0
  30. package/dist/cjs/models/AuditLogsReliabilityReviewSettingsUpdatedV1.js +79 -0
  31. package/dist/cjs/models/AuditLogsReliabilityReviewSpendLimitUpdatedV1.d.ts +58 -0
  32. package/dist/cjs/models/AuditLogsReliabilityReviewSpendLimitUpdatedV1.js +79 -0
  33. package/dist/cjs/models/IncidentActivityLogEntryV2.d.ts +1 -0
  34. package/dist/cjs/models/IncidentActivityLogEntryV2.js +1 -0
  35. package/dist/cjs/models/index.d.ts +10 -0
  36. package/dist/cjs/models/index.js +10 -0
  37. package/dist/cjs/version.d.ts +1 -1
  38. package/dist/cjs/version.js +1 -1
  39. package/dist/esm/apis/AlertAttachmentsV2Api.d.ts +92 -0
  40. package/dist/esm/apis/AlertAttachmentsV2Api.js +156 -0
  41. package/dist/esm/apis/index.d.ts +1 -0
  42. package/dist/esm/apis/index.js +1 -0
  43. package/dist/esm/models/AlertAttachmentV2.d.ts +51 -0
  44. package/dist/esm/models/AlertAttachmentV2.js +60 -0
  45. package/dist/esm/models/AlertAttachmentsCreatePayloadV2.d.ts +42 -0
  46. package/dist/esm/models/AlertAttachmentsCreatePayloadV2.js +49 -0
  47. package/dist/esm/models/AlertAttachmentsCreateResultV2.d.ts +31 -0
  48. package/dist/esm/models/AlertAttachmentsCreateResultV2.js +44 -0
  49. package/dist/esm/models/AlertAttachmentsListResultV2.d.ts +36 -0
  50. package/dist/esm/models/AlertAttachmentsListResultV2.js +47 -0
  51. package/dist/esm/models/AlertSourceV2.d.ts +1 -0
  52. package/dist/esm/models/AlertSourceV2.js +1 -0
  53. package/dist/esm/models/AlertSourcesCreatePayloadV2.d.ts +1 -0
  54. package/dist/esm/models/AlertSourcesCreatePayloadV2.js +1 -0
  55. package/dist/esm/models/AlertSourcesValidatePayloadV2.d.ts +1 -0
  56. package/dist/esm/models/AlertSourcesValidatePayloadV2.js +1 -0
  57. package/dist/esm/models/AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.d.ts +30 -0
  58. package/dist/esm/models/AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.js +43 -0
  59. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +62 -0
  60. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +59 -0
  61. package/dist/esm/models/AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.d.ts +34 -0
  62. package/dist/esm/models/AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.js +43 -0
  63. package/dist/esm/models/AuditLogTargetV2.d.ts +2 -0
  64. package/dist/esm/models/AuditLogTargetV2.js +2 -0
  65. package/dist/esm/models/AuditLogsReliabilityReviewRepositoryUpdatedV1.d.ts +58 -0
  66. package/dist/esm/models/AuditLogsReliabilityReviewRepositoryUpdatedV1.js +72 -0
  67. package/dist/esm/models/AuditLogsReliabilityReviewSettingsUpdatedV1.d.ts +58 -0
  68. package/dist/esm/models/AuditLogsReliabilityReviewSettingsUpdatedV1.js +72 -0
  69. package/dist/esm/models/AuditLogsReliabilityReviewSpendLimitUpdatedV1.d.ts +58 -0
  70. package/dist/esm/models/AuditLogsReliabilityReviewSpendLimitUpdatedV1.js +72 -0
  71. package/dist/esm/models/IncidentActivityLogEntryV2.d.ts +1 -0
  72. package/dist/esm/models/IncidentActivityLogEntryV2.js +1 -0
  73. package/dist/esm/models/index.d.ts +10 -0
  74. package/dist/esm/models/index.js +10 -0
  75. package/dist/esm/version.d.ts +1 -1
  76. package/dist/esm/version.js +1 -1
  77. package/package.json +1 -1
@@ -0,0 +1,92 @@
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 AlertAttachmentsCreatePayloadV2 } from '../models/AlertAttachmentsCreatePayloadV2.js';
14
+ import { type AlertAttachmentsCreateResultV2 } from '../models/AlertAttachmentsCreateResultV2.js';
15
+ import { type AlertAttachmentsListResultV2 } from '../models/AlertAttachmentsListResultV2.js';
16
+ export interface AlertAttachmentsV2CreateRequest {
17
+ /**
18
+ *
19
+ */
20
+ body: AlertAttachmentsCreatePayloadV2;
21
+ }
22
+ export interface AlertAttachmentsV2DeleteRequest {
23
+ /**
24
+ * ID of the alert attachment
25
+ */
26
+ id: string;
27
+ }
28
+ export interface AlertAttachmentsV2ListRequest {
29
+ /**
30
+ * ID of the alert to list attachments for. Provide exactly one of alert_id or alert_group_id.
31
+ */
32
+ alert_id?: string;
33
+ /**
34
+ * ID of the alert group to list attachments for. Provide exactly one of alert_id or alert_group_id.
35
+ */
36
+ alert_group_id?: string;
37
+ /**
38
+ * Integer number of records to return
39
+ */
40
+ page_size?: number;
41
+ /**
42
+ * An alert attachment's ID. This endpoint will return the attachments after this one in the response order.
43
+ */
44
+ after?: string;
45
+ }
46
+ /**
47
+ *
48
+ */
49
+ export declare class AlertAttachmentsV2Api extends runtime.BaseAPI {
50
+ /**
51
+ * Creates request options for alertAttachmentsV2Create without sending the request
52
+ */
53
+ alertAttachmentsV2CreateRequestOpts(requestParameters: AlertAttachmentsV2CreateRequest): Promise<runtime.RequestOpts>;
54
+ /**
55
+ * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422.
56
+ * Create Alert Attachments V2
57
+ */
58
+ alertAttachmentsV2CreateRaw(requestParameters: AlertAttachmentsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlertAttachmentsCreateResultV2>>;
59
+ /**
60
+ * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422.
61
+ * Create Alert Attachments V2
62
+ */
63
+ alertAttachmentsV2Create(requestParameters: AlertAttachmentsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlertAttachmentsCreateResultV2>;
64
+ /**
65
+ * Creates request options for alertAttachmentsV2Delete without sending the request
66
+ */
67
+ alertAttachmentsV2DeleteRequestOpts(requestParameters: AlertAttachmentsV2DeleteRequest): Promise<runtime.RequestOpts>;
68
+ /**
69
+ * Remove an attachment from its alert or alert group.
70
+ * Delete Alert Attachments V2
71
+ */
72
+ alertAttachmentsV2DeleteRaw(requestParameters: AlertAttachmentsV2DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
73
+ /**
74
+ * Remove an attachment from its alert or alert group.
75
+ * Delete Alert Attachments V2
76
+ */
77
+ alertAttachmentsV2Delete(requestParameters: AlertAttachmentsV2DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
78
+ /**
79
+ * Creates request options for alertAttachmentsV2List without sending the request
80
+ */
81
+ alertAttachmentsV2ListRequestOpts(requestParameters: AlertAttachmentsV2ListRequest): Promise<runtime.RequestOpts>;
82
+ /**
83
+ * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group.
84
+ * List Alert Attachments V2
85
+ */
86
+ alertAttachmentsV2ListRaw(requestParameters: AlertAttachmentsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlertAttachmentsListResultV2>>;
87
+ /**
88
+ * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group.
89
+ * List Alert Attachments V2
90
+ */
91
+ alertAttachmentsV2List(requestParameters?: AlertAttachmentsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlertAttachmentsListResultV2>;
92
+ }
@@ -0,0 +1,193 @@
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.AlertAttachmentsV2Api = void 0;
50
+ const runtime = __importStar(require("../runtime.js"));
51
+ const AlertAttachmentsCreatePayloadV2_js_1 = require("../models/AlertAttachmentsCreatePayloadV2.js");
52
+ const AlertAttachmentsCreateResultV2_js_1 = require("../models/AlertAttachmentsCreateResultV2.js");
53
+ const AlertAttachmentsListResultV2_js_1 = require("../models/AlertAttachmentsListResultV2.js");
54
+ /**
55
+ *
56
+ */
57
+ class AlertAttachmentsV2Api extends runtime.BaseAPI {
58
+ /**
59
+ * Creates request options for alertAttachmentsV2Create without sending the request
60
+ */
61
+ async alertAttachmentsV2CreateRequestOpts(requestParameters) {
62
+ if (requestParameters['body'] == null) {
63
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling alertAttachmentsV2Create().');
64
+ }
65
+ const queryParameters = {};
66
+ const headerParameters = {};
67
+ headerParameters['Content-Type'] = 'application/json';
68
+ if (this.configuration && this.configuration.accessToken) {
69
+ const token = this.configuration.accessToken;
70
+ const tokenString = await token("BearerAuth", []);
71
+ if (tokenString) {
72
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
73
+ }
74
+ }
75
+ let urlPath = `/v2/alert_attachments`;
76
+ return {
77
+ path: urlPath,
78
+ method: 'POST',
79
+ headers: headerParameters,
80
+ query: queryParameters,
81
+ body: (0, AlertAttachmentsCreatePayloadV2_js_1.AlertAttachmentsCreatePayloadV2ToJSON)(requestParameters['body']),
82
+ };
83
+ }
84
+ /**
85
+ * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422.
86
+ * Create Alert Attachments V2
87
+ */
88
+ async alertAttachmentsV2CreateRaw(requestParameters, initOverrides) {
89
+ const requestOptions = await this.alertAttachmentsV2CreateRequestOpts(requestParameters);
90
+ const response = await this.request(requestOptions, initOverrides);
91
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AlertAttachmentsCreateResultV2_js_1.AlertAttachmentsCreateResultV2FromJSON)(jsonValue));
92
+ }
93
+ /**
94
+ * Attach a URL to an alert or alert group. Provide exactly one of alert_id or alert_group_id. A URL for a ticket or pull request from a connected integration is attached as that ticket or pull request. Any other URL is attached as a link. A URL that is already attached returns a 422.
95
+ * Create Alert Attachments V2
96
+ */
97
+ async alertAttachmentsV2Create(requestParameters, initOverrides) {
98
+ const response = await this.alertAttachmentsV2CreateRaw(requestParameters, initOverrides);
99
+ return await response.value();
100
+ }
101
+ /**
102
+ * Creates request options for alertAttachmentsV2Delete without sending the request
103
+ */
104
+ async alertAttachmentsV2DeleteRequestOpts(requestParameters) {
105
+ if (requestParameters['id'] == null) {
106
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling alertAttachmentsV2Delete().');
107
+ }
108
+ const queryParameters = {};
109
+ const headerParameters = {};
110
+ if (this.configuration && this.configuration.accessToken) {
111
+ const token = this.configuration.accessToken;
112
+ const tokenString = await token("BearerAuth", []);
113
+ if (tokenString) {
114
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
115
+ }
116
+ }
117
+ let urlPath = `/v2/alert_attachments/{id}`;
118
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
119
+ return {
120
+ path: urlPath,
121
+ method: 'DELETE',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ };
125
+ }
126
+ /**
127
+ * Remove an attachment from its alert or alert group.
128
+ * Delete Alert Attachments V2
129
+ */
130
+ async alertAttachmentsV2DeleteRaw(requestParameters, initOverrides) {
131
+ const requestOptions = await this.alertAttachmentsV2DeleteRequestOpts(requestParameters);
132
+ const response = await this.request(requestOptions, initOverrides);
133
+ return new runtime.VoidApiResponse(response);
134
+ }
135
+ /**
136
+ * Remove an attachment from its alert or alert group.
137
+ * Delete Alert Attachments V2
138
+ */
139
+ async alertAttachmentsV2Delete(requestParameters, initOverrides) {
140
+ await this.alertAttachmentsV2DeleteRaw(requestParameters, initOverrides);
141
+ }
142
+ /**
143
+ * Creates request options for alertAttachmentsV2List without sending the request
144
+ */
145
+ async alertAttachmentsV2ListRequestOpts(requestParameters) {
146
+ const queryParameters = {};
147
+ if (requestParameters['alert_id'] != null) {
148
+ queryParameters['alert_id'] = requestParameters['alert_id'];
149
+ }
150
+ if (requestParameters['alert_group_id'] != null) {
151
+ queryParameters['alert_group_id'] = requestParameters['alert_group_id'];
152
+ }
153
+ if (requestParameters['page_size'] != null) {
154
+ queryParameters['page_size'] = requestParameters['page_size'];
155
+ }
156
+ if (requestParameters['after'] != null) {
157
+ queryParameters['after'] = requestParameters['after'];
158
+ }
159
+ const headerParameters = {};
160
+ if (this.configuration && this.configuration.accessToken) {
161
+ const token = this.configuration.accessToken;
162
+ const tokenString = await token("BearerAuth", []);
163
+ if (tokenString) {
164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
165
+ }
166
+ }
167
+ let urlPath = `/v2/alert_attachments`;
168
+ return {
169
+ path: urlPath,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ };
174
+ }
175
+ /**
176
+ * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group.
177
+ * List Alert Attachments V2
178
+ */
179
+ async alertAttachmentsV2ListRaw(requestParameters, initOverrides) {
180
+ const requestOptions = await this.alertAttachmentsV2ListRequestOpts(requestParameters);
181
+ const response = await this.request(requestOptions, initOverrides);
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AlertAttachmentsListResultV2_js_1.AlertAttachmentsListResultV2FromJSON)(jsonValue));
183
+ }
184
+ /**
185
+ * List the attachments on an alert or alert group, newest first. Provide exactly one of alert_id or alert_group_id. Listing by alert_id returns only what is attached to that alert, not what is attached to its alert group.
186
+ * List Alert Attachments V2
187
+ */
188
+ async alertAttachmentsV2List(requestParameters = {}, initOverrides) {
189
+ const response = await this.alertAttachmentsV2ListRaw(requestParameters, initOverrides);
190
+ return await response.value();
191
+ }
192
+ }
193
+ exports.AlertAttachmentsV2Api = AlertAttachmentsV2Api;
@@ -2,6 +2,7 @@ export * from './APIKeysV1Api.js';
2
2
  export * from './ActionsV1Api.js';
3
3
  export * from './ActionsV2Api.js';
4
4
  export * from './ActionsV3Api.js';
5
+ export * from './AlertAttachmentsV2Api.js';
5
6
  export * from './AlertAttributesV2Api.js';
6
7
  export * from './AlertEventsV2Api.js';
7
8
  export * from './AlertNotesV1Api.js';
@@ -20,6 +20,7 @@ __exportStar(require("./APIKeysV1Api.js"), exports);
20
20
  __exportStar(require("./ActionsV1Api.js"), exports);
21
21
  __exportStar(require("./ActionsV2Api.js"), exports);
22
22
  __exportStar(require("./ActionsV3Api.js"), exports);
23
+ __exportStar(require("./AlertAttachmentsV2Api.js"), exports);
23
24
  __exportStar(require("./AlertAttributesV2Api.js"), exports);
24
25
  __exportStar(require("./AlertEventsV2Api.js"), exports);
25
26
  __exportStar(require("./AlertNotesV1Api.js"), exports);
@@ -0,0 +1,51 @@
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
+ * Something attached to an alert or alert group, such as a ticket, a pull request or
14
+ * a link.
15
+ * @export
16
+ * @interface AlertAttachmentV2
17
+ */
18
+ export interface AlertAttachmentV2 {
19
+ /**
20
+ * ID of the alert group this is attached to. Exactly one of alert_id or alert_group_id is set.
21
+ */
22
+ alert_group_id?: string;
23
+ /**
24
+ * ID of the alert this is attached to. Exactly one of alert_id or alert_group_id is set.
25
+ */
26
+ alert_id?: string;
27
+ /**
28
+ * When it was attached
29
+ */
30
+ created_at: Date;
31
+ /**
32
+ * Unique identifier for the alert attachment
33
+ */
34
+ id: string;
35
+ /**
36
+ * The ticket or pull request's title, or the link's title
37
+ */
38
+ title: string;
39
+ /**
40
+ * URL of the attached ticket, pull request or link
41
+ */
42
+ url: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AlertAttachmentV2 interface.
46
+ */
47
+ export declare function instanceOfAlertAttachmentV2(value: object): value is AlertAttachmentV2;
48
+ export declare function AlertAttachmentV2FromJSON(json: any): AlertAttachmentV2;
49
+ export declare function AlertAttachmentV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertAttachmentV2;
50
+ export declare function AlertAttachmentV2ToJSON(json: any): AlertAttachmentV2;
51
+ export declare function AlertAttachmentV2ToJSONTyped(value?: AlertAttachmentV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfAlertAttachmentV2 = instanceOfAlertAttachmentV2;
17
+ exports.AlertAttachmentV2FromJSON = AlertAttachmentV2FromJSON;
18
+ exports.AlertAttachmentV2FromJSONTyped = AlertAttachmentV2FromJSONTyped;
19
+ exports.AlertAttachmentV2ToJSON = AlertAttachmentV2ToJSON;
20
+ exports.AlertAttachmentV2ToJSONTyped = AlertAttachmentV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ /**
23
+ * Check if a given object implements the AlertAttachmentV2 interface.
24
+ */
25
+ function instanceOfAlertAttachmentV2(value) {
26
+ if (!('created_at' in value) || value['created_at'] === undefined)
27
+ return false;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('title' in value) || value['title'] === undefined)
31
+ return false;
32
+ if (!('url' in value) || value['url'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AlertAttachmentV2FromJSON(json) {
37
+ return AlertAttachmentV2FromJSONTyped(json, false);
38
+ }
39
+ function AlertAttachmentV2FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'alert_group_id': json['alert_group_id'] == null ? undefined : json['alert_group_id'],
45
+ 'alert_id': json['alert_id'] == null ? undefined : json['alert_id'],
46
+ 'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
47
+ 'id': json['id'],
48
+ 'title': json['title'],
49
+ 'url': json['url'],
50
+ };
51
+ }
52
+ function AlertAttachmentV2ToJSON(json) {
53
+ return AlertAttachmentV2ToJSONTyped(json, false);
54
+ }
55
+ function AlertAttachmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'alert_group_id': value['alert_group_id'],
61
+ 'alert_id': value['alert_id'],
62
+ 'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
63
+ 'id': value['id'],
64
+ 'title': value['title'],
65
+ 'url': value['url'],
66
+ };
67
+ }
@@ -0,0 +1,42 @@
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 AlertAttachmentsCreatePayloadV2
16
+ */
17
+ export interface AlertAttachmentsCreatePayloadV2 {
18
+ /**
19
+ * ID of the alert group to attach to. Provide exactly one of alert_id or alert_group_id.
20
+ */
21
+ alert_group_id?: string;
22
+ /**
23
+ * ID of the alert to attach to. Provide exactly one of alert_id or alert_group_id.
24
+ */
25
+ alert_id?: string;
26
+ /**
27
+ * Title for a link. Tickets and pull requests use their own title, so we ignore this for them.
28
+ */
29
+ title?: string;
30
+ /**
31
+ * The URL to attach
32
+ */
33
+ url: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the AlertAttachmentsCreatePayloadV2 interface.
37
+ */
38
+ export declare function instanceOfAlertAttachmentsCreatePayloadV2(value: object): value is AlertAttachmentsCreatePayloadV2;
39
+ export declare function AlertAttachmentsCreatePayloadV2FromJSON(json: any): AlertAttachmentsCreatePayloadV2;
40
+ export declare function AlertAttachmentsCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertAttachmentsCreatePayloadV2;
41
+ export declare function AlertAttachmentsCreatePayloadV2ToJSON(json: any): AlertAttachmentsCreatePayloadV2;
42
+ export declare function AlertAttachmentsCreatePayloadV2ToJSONTyped(value?: AlertAttachmentsCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfAlertAttachmentsCreatePayloadV2 = instanceOfAlertAttachmentsCreatePayloadV2;
17
+ exports.AlertAttachmentsCreatePayloadV2FromJSON = AlertAttachmentsCreatePayloadV2FromJSON;
18
+ exports.AlertAttachmentsCreatePayloadV2FromJSONTyped = AlertAttachmentsCreatePayloadV2FromJSONTyped;
19
+ exports.AlertAttachmentsCreatePayloadV2ToJSON = AlertAttachmentsCreatePayloadV2ToJSON;
20
+ exports.AlertAttachmentsCreatePayloadV2ToJSONTyped = AlertAttachmentsCreatePayloadV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AlertAttachmentsCreatePayloadV2 interface.
23
+ */
24
+ function instanceOfAlertAttachmentsCreatePayloadV2(value) {
25
+ if (!('url' in value) || value['url'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AlertAttachmentsCreatePayloadV2FromJSON(json) {
30
+ return AlertAttachmentsCreatePayloadV2FromJSONTyped(json, false);
31
+ }
32
+ function AlertAttachmentsCreatePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'alert_group_id': json['alert_group_id'] == null ? undefined : json['alert_group_id'],
38
+ 'alert_id': json['alert_id'] == null ? undefined : json['alert_id'],
39
+ 'title': json['title'] == null ? undefined : json['title'],
40
+ 'url': json['url'],
41
+ };
42
+ }
43
+ function AlertAttachmentsCreatePayloadV2ToJSON(json) {
44
+ return AlertAttachmentsCreatePayloadV2ToJSONTyped(json, false);
45
+ }
46
+ function AlertAttachmentsCreatePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'alert_group_id': value['alert_group_id'],
52
+ 'alert_id': value['alert_id'],
53
+ 'title': value['title'],
54
+ 'url': value['url'],
55
+ };
56
+ }
@@ -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 { AlertAttachmentV2 } from './AlertAttachmentV2.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AlertAttachmentsCreateResultV2
17
+ */
18
+ export interface AlertAttachmentsCreateResultV2 {
19
+ /**
20
+ *
21
+ */
22
+ alert_attachment: AlertAttachmentV2;
23
+ }
24
+ /**
25
+ * Check if a given object implements the AlertAttachmentsCreateResultV2 interface.
26
+ */
27
+ export declare function instanceOfAlertAttachmentsCreateResultV2(value: object): value is AlertAttachmentsCreateResultV2;
28
+ export declare function AlertAttachmentsCreateResultV2FromJSON(json: any): AlertAttachmentsCreateResultV2;
29
+ export declare function AlertAttachmentsCreateResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertAttachmentsCreateResultV2;
30
+ export declare function AlertAttachmentsCreateResultV2ToJSON(json: any): AlertAttachmentsCreateResultV2;
31
+ export declare function AlertAttachmentsCreateResultV2ToJSONTyped(value?: AlertAttachmentsCreateResultV2 | 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.instanceOfAlertAttachmentsCreateResultV2 = instanceOfAlertAttachmentsCreateResultV2;
17
+ exports.AlertAttachmentsCreateResultV2FromJSON = AlertAttachmentsCreateResultV2FromJSON;
18
+ exports.AlertAttachmentsCreateResultV2FromJSONTyped = AlertAttachmentsCreateResultV2FromJSONTyped;
19
+ exports.AlertAttachmentsCreateResultV2ToJSON = AlertAttachmentsCreateResultV2ToJSON;
20
+ exports.AlertAttachmentsCreateResultV2ToJSONTyped = AlertAttachmentsCreateResultV2ToJSONTyped;
21
+ const AlertAttachmentV2_js_1 = require("./AlertAttachmentV2.js");
22
+ /**
23
+ * Check if a given object implements the AlertAttachmentsCreateResultV2 interface.
24
+ */
25
+ function instanceOfAlertAttachmentsCreateResultV2(value) {
26
+ if (!('alert_attachment' in value) || value['alert_attachment'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AlertAttachmentsCreateResultV2FromJSON(json) {
31
+ return AlertAttachmentsCreateResultV2FromJSONTyped(json, false);
32
+ }
33
+ function AlertAttachmentsCreateResultV2FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'alert_attachment': (0, AlertAttachmentV2_js_1.AlertAttachmentV2FromJSON)(json['alert_attachment']),
39
+ };
40
+ }
41
+ function AlertAttachmentsCreateResultV2ToJSON(json) {
42
+ return AlertAttachmentsCreateResultV2ToJSONTyped(json, false);
43
+ }
44
+ function AlertAttachmentsCreateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'alert_attachment': (0, AlertAttachmentV2_js_1.AlertAttachmentV2ToJSON)(value['alert_attachment']),
50
+ };
51
+ }
@@ -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 { AlertAttachmentV2 } from './AlertAttachmentV2.js';
13
+ import type { PaginationMetaResultV2 } from './PaginationMetaResultV2.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AlertAttachmentsListResultV2
18
+ */
19
+ export interface AlertAttachmentsListResultV2 {
20
+ /**
21
+ *
22
+ */
23
+ alert_attachments: Array<AlertAttachmentV2>;
24
+ /**
25
+ *
26
+ */
27
+ pagination_meta?: PaginationMetaResultV2;
28
+ }
29
+ /**
30
+ * Check if a given object implements the AlertAttachmentsListResultV2 interface.
31
+ */
32
+ export declare function instanceOfAlertAttachmentsListResultV2(value: object): value is AlertAttachmentsListResultV2;
33
+ export declare function AlertAttachmentsListResultV2FromJSON(json: any): AlertAttachmentsListResultV2;
34
+ export declare function AlertAttachmentsListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertAttachmentsListResultV2;
35
+ export declare function AlertAttachmentsListResultV2ToJSON(json: any): AlertAttachmentsListResultV2;
36
+ export declare function AlertAttachmentsListResultV2ToJSONTyped(value?: AlertAttachmentsListResultV2 | null, ignoreDiscriminator?: boolean): any;