@incident-io/sdk 2.28.0 → 2.30.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.
@@ -174,12 +174,12 @@ export declare class IncidentsV2Api extends runtime.BaseAPI {
174
174
  */
175
175
  incidentsV2EditRequestOpts(requestParameters: IncidentsV2EditRequest): Promise<runtime.RequestOpts>;
176
176
  /**
177
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
177
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
178
178
  * Edit Incidents V2
179
179
  */
180
180
  incidentsV2EditRaw(requestParameters: IncidentsV2EditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentsEditResultV2>>;
181
181
  /**
182
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
182
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
183
183
  * Edit Incidents V2
184
184
  */
185
185
  incidentsV2Edit(requestParameters: IncidentsV2EditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentsEditResultV2>;
@@ -181,7 +181,7 @@ class IncidentsV2Api extends runtime.BaseAPI {
181
181
  };
182
182
  }
183
183
  /**
184
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
184
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
185
185
  * Edit Incidents V2
186
186
  */
187
187
  async incidentsV2EditRaw(requestParameters, initOverrides) {
@@ -190,7 +190,7 @@ class IncidentsV2Api extends runtime.BaseAPI {
190
190
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, IncidentsEditResultV2_js_1.IncidentsEditResultV2FromJSON)(jsonValue));
191
191
  }
192
192
  /**
193
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
193
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
194
194
  * Edit Incidents V2
195
195
  */
196
196
  async incidentsV2Edit(requestParameters, initOverrides) {
@@ -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 AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2
16
+ */
17
+ export interface AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 {
18
+ /**
19
+ * Whether tool calls to the connector carry the caller's identity after the change (true, false)
20
+ */
21
+ enabled: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 interface.
25
+ */
26
+ export declare function instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2(value: object): value is AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
27
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON(json: any): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
28
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
29
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON(json: any): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
30
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(value?: AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 | 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.instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 = instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
17
+ exports.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON = AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON;
18
+ exports.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped = AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped;
19
+ exports.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON = AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON;
20
+ exports.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped = AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON(json) {
30
+ return AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'enabled': json['enabled'],
38
+ };
39
+ }
40
+ function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON(json) {
41
+ return AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(json, false);
42
+ }
43
+ function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'enabled': value['enabled'],
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 { AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 } from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1
20
+ */
21
+ export interface AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 {
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: AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
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 AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1(value: object): value is AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
55
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON(json: any): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
56
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
57
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON(json: any): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
58
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(value?: AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 | 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.instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 = instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
17
+ exports.AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON = AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON;
18
+ exports.AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped = AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped;
19
+ exports.AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON = AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON;
20
+ exports.AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped = AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped;
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 AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2_js_1 = require("./AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1(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 AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON(json) {
47
+ return AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(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, AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2_js_1.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON)(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 AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON(json) {
64
+ return AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(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, AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2_js_1.AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON)(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
+ }
@@ -233,6 +233,7 @@ export * from './AuditLogTargetV2.js';
233
233
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
234
234
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
235
235
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
236
+ export * from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
236
237
  export * from './AuditLogTelemetryDataSourcePassthroughChangedMetadataV2.js';
237
238
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
238
239
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
@@ -458,6 +459,7 @@ export * from './AuditLogsTeamSettingsUpdatedV1.js';
458
459
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
459
460
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
460
461
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
462
+ export * from './AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1.js';
461
463
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
462
464
  export * from './AuditLogsTelemetryDataSourcePassthroughChangedV1.js';
463
465
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
@@ -251,6 +251,7 @@ __exportStar(require("./AuditLogTargetV2.js"), exports);
251
251
  __exportStar(require("./AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js"), exports);
252
252
  __exportStar(require("./AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js"), exports);
253
253
  __exportStar(require("./AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js"), exports);
254
+ __exportStar(require("./AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js"), exports);
254
255
  __exportStar(require("./AuditLogTelemetryDataSourcePassthroughChangedMetadataV2.js"), exports);
255
256
  __exportStar(require("./AuditLogTelemetryDataSourceQueriedMetadataV2.js"), exports);
256
257
  __exportStar(require("./AuditLogTelemetryDataSourceQueriedMetadataV2V2.js"), exports);
@@ -476,6 +477,7 @@ __exportStar(require("./AuditLogsTeamSettingsUpdatedV1.js"), exports);
476
477
  __exportStar(require("./AuditLogsTelemetryDataSourceAccessModeChangedV1.js"), exports);
477
478
  __exportStar(require("./AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js"), exports);
478
479
  __exportStar(require("./AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js"), exports);
480
+ __exportStar(require("./AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1.js"), exports);
479
481
  __exportStar(require("./AuditLogsTelemetryDataSourceInstalledV1.js"), exports);
480
482
  __exportStar(require("./AuditLogsTelemetryDataSourcePassthroughChangedV1.js"), exports);
481
483
  __exportStar(require("./AuditLogsTelemetryDataSourceQueriedV1.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.28.0";
1
+ export declare const VERSION = "2.30.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "2.28.0";
5
+ exports.VERSION = "2.30.0";
@@ -174,12 +174,12 @@ export declare class IncidentsV2Api extends runtime.BaseAPI {
174
174
  */
175
175
  incidentsV2EditRequestOpts(requestParameters: IncidentsV2EditRequest): Promise<runtime.RequestOpts>;
176
176
  /**
177
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
177
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
178
178
  * Edit Incidents V2
179
179
  */
180
180
  incidentsV2EditRaw(requestParameters: IncidentsV2EditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentsEditResultV2>>;
181
181
  /**
182
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
182
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
183
183
  * Edit Incidents V2
184
184
  */
185
185
  incidentsV2Edit(requestParameters: IncidentsV2EditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentsEditResultV2>;
@@ -145,7 +145,7 @@ export class IncidentsV2Api extends runtime.BaseAPI {
145
145
  };
146
146
  }
147
147
  /**
148
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
148
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
149
149
  * Edit Incidents V2
150
150
  */
151
151
  async incidentsV2EditRaw(requestParameters, initOverrides) {
@@ -154,7 +154,7 @@ export class IncidentsV2Api extends runtime.BaseAPI {
154
154
  return new runtime.JSONApiResponse(response, (jsonValue) => IncidentsEditResultV2FromJSON(jsonValue));
155
155
  }
156
156
  /**
157
- * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have the scope corresponding to each property it changes: - `incidents.update_name` for the name - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
157
+ * Edit an existing incident. This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields. When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored). The API key must have `incidents.view`, and the scope corresponding to each property it changes: - `incidents.update_name` for the name or the Slack channel name override - `incidents.update_summary` for the summary - `incidents.update_severity` for the severity - `incidents.update_status` for the status - `incidents.update_custom_fields` for custom fields - `incidents.update_timestamps` for timestamps - `incidents.update_role_assignments` for role assignments - `incident_calls.create` to set the call URL - `incident_calls.destroy` when replacing an existing call URL
158
158
  * Edit Incidents V2
159
159
  */
160
160
  async incidentsV2Edit(requestParameters, initOverrides) {
@@ -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 AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2
16
+ */
17
+ export interface AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 {
18
+ /**
19
+ * Whether tool calls to the connector carry the caller's identity after the change (true, false)
20
+ */
21
+ enabled: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 interface.
25
+ */
26
+ export declare function instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2(value: object): value is AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
27
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON(json: any): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
28
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
29
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON(json: any): AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
30
+ export declare function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(value?: AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 interface.
16
+ */
17
+ export function instanceOfAuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2(value) {
18
+ if (!('enabled' in value) || value['enabled'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON(json) {
23
+ return AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json, false);
24
+ }
25
+ export function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'enabled': json['enabled'],
31
+ };
32
+ }
33
+ export function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON(json) {
34
+ return AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(json, false);
35
+ }
36
+ export function AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'enabled': value['enabled'],
42
+ };
43
+ }
@@ -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 { AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2 } from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1
20
+ */
21
+ export interface AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 {
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: AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2;
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 AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1(value: object): value is AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
55
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON(json: any): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
56
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
57
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON(json: any): AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1;
58
+ export declare function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(value?: AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ import { AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON, AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON, } from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1(value) {
23
+ if (!('action' in value) || value['action'] === undefined)
24
+ return false;
25
+ if (!('actor' in value) || value['actor'] === undefined)
26
+ return false;
27
+ if (!('context' in value) || value['context'] === undefined)
28
+ return false;
29
+ if (!('metadata' in value) || value['metadata'] === undefined)
30
+ return false;
31
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
32
+ return false;
33
+ if (!('targets' in value) || value['targets'] === undefined)
34
+ return false;
35
+ if (!('version' in value) || value['version'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSON(json) {
40
+ return AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1FromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'action': json['action'],
48
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
49
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
50
+ 'metadata': AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2FromJSON(json['metadata']),
51
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
52
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
53
+ 'version': json['version'],
54
+ };
55
+ }
56
+ export function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSON(json) {
57
+ return AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1ToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'action': value['action'],
65
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
66
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
67
+ 'metadata': AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2ToJSON(value['metadata']),
68
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
69
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
70
+ 'version': value['version'],
71
+ };
72
+ }
@@ -233,6 +233,7 @@ export * from './AuditLogTargetV2.js';
233
233
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
234
234
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
235
235
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
236
+ export * from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
236
237
  export * from './AuditLogTelemetryDataSourcePassthroughChangedMetadataV2.js';
237
238
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
238
239
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
@@ -458,6 +459,7 @@ export * from './AuditLogsTeamSettingsUpdatedV1.js';
458
459
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
459
460
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
460
461
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
462
+ export * from './AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1.js';
461
463
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
462
464
  export * from './AuditLogsTelemetryDataSourcePassthroughChangedV1.js';
463
465
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
@@ -235,6 +235,7 @@ export * from './AuditLogTargetV2.js';
235
235
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
236
236
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
237
237
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
238
+ export * from './AuditLogTelemetryDataSourceCallerIdentitySharingChangedMetadataV2.js';
238
239
  export * from './AuditLogTelemetryDataSourcePassthroughChangedMetadataV2.js';
239
240
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
240
241
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
@@ -460,6 +461,7 @@ export * from './AuditLogsTeamSettingsUpdatedV1.js';
460
461
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
461
462
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
462
463
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
464
+ export * from './AuditLogsTelemetryDataSourceCallerIdentitySharingChangedV1.js';
463
465
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
464
466
  export * from './AuditLogsTelemetryDataSourcePassthroughChangedV1.js';
465
467
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.28.0";
1
+ export declare const VERSION = "2.30.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.28.0";
2
+ export const VERSION = "2.30.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.28.0",
3
+ "version": "2.30.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",