@incident-io/sdk 1.1.0 → 1.2.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/models/AuditLogTargetV2.d.ts +1 -0
- package/dist/cjs/models/AuditLogTargetV2.js +1 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.js +74 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.js +74 -0
- package/dist/cjs/models/index.d.ts +2 -0
- package/dist/cjs/models/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/models/AuditLogTargetV2.d.ts +1 -0
- package/dist/esm/models/AuditLogTargetV2.js +1 -0
- package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.js +67 -0
- package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.js +67 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -97,6 +97,7 @@ export declare const AuditLogTargetV2TypeEnum: {
|
|
|
97
97
|
readonly TelemetryDataSource: "telemetry_data_source";
|
|
98
98
|
readonly TwilioConnection: "twilio_connection";
|
|
99
99
|
readonly User: "user";
|
|
100
|
+
readonly UserApiKey: "user_api_key";
|
|
100
101
|
readonly Workflow: "workflow";
|
|
101
102
|
readonly ActivityLog: "activity_log";
|
|
102
103
|
readonly TimelineItem: "timeline_item";
|
|
@@ -88,6 +88,7 @@ exports.AuditLogTargetV2TypeEnum = {
|
|
|
88
88
|
TelemetryDataSource: 'telemetry_data_source',
|
|
89
89
|
TwilioConnection: 'twilio_connection',
|
|
90
90
|
User: 'user',
|
|
91
|
+
UserApiKey: 'user_api_key',
|
|
91
92
|
Workflow: 'workflow',
|
|
92
93
|
ActivityLog: 'activity_log',
|
|
93
94
|
TimelineItem: 'timeline_item',
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuditLogsUserAPIKeyCreatedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsUserAPIKeyCreatedV1 {
|
|
21
|
+
/**
|
|
22
|
+
* The type of log entry that this is
|
|
23
|
+
*/
|
|
24
|
+
action: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
actor: AuditLogActorV2;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
context: AuditLogEntryContextV2;
|
|
33
|
+
/**
|
|
34
|
+
* When the entry occurred
|
|
35
|
+
*/
|
|
36
|
+
occurred_at: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The custom field that was created
|
|
39
|
+
*/
|
|
40
|
+
targets: Array<AuditLogTargetV2>;
|
|
41
|
+
/**
|
|
42
|
+
* Which version the event is
|
|
43
|
+
*/
|
|
44
|
+
version: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsUserAPIKeyCreatedV1(value: object): value is AuditLogsUserAPIKeyCreatedV1;
|
|
50
|
+
export declare function AuditLogsUserAPIKeyCreatedV1FromJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
|
|
51
|
+
export declare function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyCreatedV1;
|
|
52
|
+
export declare function AuditLogsUserAPIKeyCreatedV1ToJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
|
|
53
|
+
export declare function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value?: AuditLogsUserAPIKeyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfAuditLogsUserAPIKeyCreatedV1 = instanceOfAuditLogsUserAPIKeyCreatedV1;
|
|
17
|
+
exports.AuditLogsUserAPIKeyCreatedV1FromJSON = AuditLogsUserAPIKeyCreatedV1FromJSON;
|
|
18
|
+
exports.AuditLogsUserAPIKeyCreatedV1FromJSONTyped = AuditLogsUserAPIKeyCreatedV1FromJSONTyped;
|
|
19
|
+
exports.AuditLogsUserAPIKeyCreatedV1ToJSON = AuditLogsUserAPIKeyCreatedV1ToJSON;
|
|
20
|
+
exports.AuditLogsUserAPIKeyCreatedV1ToJSONTyped = AuditLogsUserAPIKeyCreatedV1ToJSONTyped;
|
|
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
|
+
/**
|
|
26
|
+
* Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAuditLogsUserAPIKeyCreatedV1(value) {
|
|
29
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AuditLogsUserAPIKeyCreatedV1FromJSON(json) {
|
|
44
|
+
return AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'action': json['action'],
|
|
52
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
|
|
53
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
|
|
54
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
|
|
55
|
+
'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
|
|
56
|
+
'version': json['version'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function AuditLogsUserAPIKeyCreatedV1ToJSON(json) {
|
|
60
|
+
return AuditLogsUserAPIKeyCreatedV1ToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'action': value['action'],
|
|
68
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
|
|
69
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
|
|
70
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
|
|
71
|
+
'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
|
|
72
|
+
'version': value['version'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuditLogsUserAPIKeyDeletedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsUserAPIKeyDeletedV1 {
|
|
21
|
+
/**
|
|
22
|
+
* The type of log entry that this is
|
|
23
|
+
*/
|
|
24
|
+
action: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
actor: AuditLogActorV2;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
context: AuditLogEntryContextV2;
|
|
33
|
+
/**
|
|
34
|
+
* When the entry occurred
|
|
35
|
+
*/
|
|
36
|
+
occurred_at: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The custom field that was created
|
|
39
|
+
*/
|
|
40
|
+
targets: Array<AuditLogTargetV2>;
|
|
41
|
+
/**
|
|
42
|
+
* Which version the event is
|
|
43
|
+
*/
|
|
44
|
+
version: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsUserAPIKeyDeletedV1(value: object): value is AuditLogsUserAPIKeyDeletedV1;
|
|
50
|
+
export declare function AuditLogsUserAPIKeyDeletedV1FromJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
|
|
51
|
+
export declare function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyDeletedV1;
|
|
52
|
+
export declare function AuditLogsUserAPIKeyDeletedV1ToJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
|
|
53
|
+
export declare function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value?: AuditLogsUserAPIKeyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfAuditLogsUserAPIKeyDeletedV1 = instanceOfAuditLogsUserAPIKeyDeletedV1;
|
|
17
|
+
exports.AuditLogsUserAPIKeyDeletedV1FromJSON = AuditLogsUserAPIKeyDeletedV1FromJSON;
|
|
18
|
+
exports.AuditLogsUserAPIKeyDeletedV1FromJSONTyped = AuditLogsUserAPIKeyDeletedV1FromJSONTyped;
|
|
19
|
+
exports.AuditLogsUserAPIKeyDeletedV1ToJSON = AuditLogsUserAPIKeyDeletedV1ToJSON;
|
|
20
|
+
exports.AuditLogsUserAPIKeyDeletedV1ToJSONTyped = AuditLogsUserAPIKeyDeletedV1ToJSONTyped;
|
|
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
|
+
/**
|
|
26
|
+
* Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAuditLogsUserAPIKeyDeletedV1(value) {
|
|
29
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AuditLogsUserAPIKeyDeletedV1FromJSON(json) {
|
|
44
|
+
return AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'action': json['action'],
|
|
52
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
|
|
53
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
|
|
54
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
|
|
55
|
+
'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
|
|
56
|
+
'version': json['version'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function AuditLogsUserAPIKeyDeletedV1ToJSON(json) {
|
|
60
|
+
return AuditLogsUserAPIKeyDeletedV1ToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'action': value['action'],
|
|
68
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
|
|
69
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
|
|
70
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
|
|
71
|
+
'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
|
|
72
|
+
'version': value['version'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -450,6 +450,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
|
|
|
450
450
|
export * from './AuditLogsTwilioConnectionCreatedV1.js';
|
|
451
451
|
export * from './AuditLogsTwilioConnectionDeletedV1.js';
|
|
452
452
|
export * from './AuditLogsTwilioConnectionUpdatedV1.js';
|
|
453
|
+
export * from './AuditLogsUserAPIKeyCreatedV1.js';
|
|
454
|
+
export * from './AuditLogsUserAPIKeyDeletedV1.js';
|
|
453
455
|
export * from './AuditLogsUserCreatedV1.js';
|
|
454
456
|
export * from './AuditLogsUserDeactivatedV1.js';
|
|
455
457
|
export * from './AuditLogsUserLoggedInV1.js';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -468,6 +468,8 @@ __exportStar(require("./AuditLogsTimelineItemDeletedV1.js"), exports);
|
|
|
468
468
|
__exportStar(require("./AuditLogsTwilioConnectionCreatedV1.js"), exports);
|
|
469
469
|
__exportStar(require("./AuditLogsTwilioConnectionDeletedV1.js"), exports);
|
|
470
470
|
__exportStar(require("./AuditLogsTwilioConnectionUpdatedV1.js"), exports);
|
|
471
|
+
__exportStar(require("./AuditLogsUserAPIKeyCreatedV1.js"), exports);
|
|
472
|
+
__exportStar(require("./AuditLogsUserAPIKeyDeletedV1.js"), exports);
|
|
471
473
|
__exportStar(require("./AuditLogsUserCreatedV1.js"), exports);
|
|
472
474
|
__exportStar(require("./AuditLogsUserDeactivatedV1.js"), exports);
|
|
473
475
|
__exportStar(require("./AuditLogsUserLoggedInV1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.2.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -97,6 +97,7 @@ export declare const AuditLogTargetV2TypeEnum: {
|
|
|
97
97
|
readonly TelemetryDataSource: "telemetry_data_source";
|
|
98
98
|
readonly TwilioConnection: "twilio_connection";
|
|
99
99
|
readonly User: "user";
|
|
100
|
+
readonly UserApiKey: "user_api_key";
|
|
100
101
|
readonly Workflow: "workflow";
|
|
101
102
|
readonly ActivityLog: "activity_log";
|
|
102
103
|
readonly TimelineItem: "timeline_item";
|
|
@@ -80,6 +80,7 @@ export const AuditLogTargetV2TypeEnum = {
|
|
|
80
80
|
TelemetryDataSource: 'telemetry_data_source',
|
|
81
81
|
TwilioConnection: 'twilio_connection',
|
|
82
82
|
User: 'user',
|
|
83
|
+
UserApiKey: 'user_api_key',
|
|
83
84
|
Workflow: 'workflow',
|
|
84
85
|
ActivityLog: 'activity_log',
|
|
85
86
|
TimelineItem: 'timeline_item',
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuditLogsUserAPIKeyCreatedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsUserAPIKeyCreatedV1 {
|
|
21
|
+
/**
|
|
22
|
+
* The type of log entry that this is
|
|
23
|
+
*/
|
|
24
|
+
action: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
actor: AuditLogActorV2;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
context: AuditLogEntryContextV2;
|
|
33
|
+
/**
|
|
34
|
+
* When the entry occurred
|
|
35
|
+
*/
|
|
36
|
+
occurred_at: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The custom field that was created
|
|
39
|
+
*/
|
|
40
|
+
targets: Array<AuditLogTargetV2>;
|
|
41
|
+
/**
|
|
42
|
+
* Which version the event is
|
|
43
|
+
*/
|
|
44
|
+
version: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsUserAPIKeyCreatedV1(value: object): value is AuditLogsUserAPIKeyCreatedV1;
|
|
50
|
+
export declare function AuditLogsUserAPIKeyCreatedV1FromJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
|
|
51
|
+
export declare function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyCreatedV1;
|
|
52
|
+
export declare function AuditLogsUserAPIKeyCreatedV1ToJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
|
|
53
|
+
export declare function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value?: AuditLogsUserAPIKeyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
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
|
+
/**
|
|
19
|
+
* Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfAuditLogsUserAPIKeyCreatedV1(value) {
|
|
22
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function AuditLogsUserAPIKeyCreatedV1FromJSON(json) {
|
|
37
|
+
return AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'action': json['action'],
|
|
45
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
46
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
47
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
48
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
49
|
+
'version': json['version'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function AuditLogsUserAPIKeyCreatedV1ToJSON(json) {
|
|
53
|
+
return AuditLogsUserAPIKeyCreatedV1ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'action': value['action'],
|
|
61
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
62
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
63
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
64
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
65
|
+
'version': value['version'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuditLogsUserAPIKeyDeletedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsUserAPIKeyDeletedV1 {
|
|
21
|
+
/**
|
|
22
|
+
* The type of log entry that this is
|
|
23
|
+
*/
|
|
24
|
+
action: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
actor: AuditLogActorV2;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
context: AuditLogEntryContextV2;
|
|
33
|
+
/**
|
|
34
|
+
* When the entry occurred
|
|
35
|
+
*/
|
|
36
|
+
occurred_at: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The custom field that was created
|
|
39
|
+
*/
|
|
40
|
+
targets: Array<AuditLogTargetV2>;
|
|
41
|
+
/**
|
|
42
|
+
* Which version the event is
|
|
43
|
+
*/
|
|
44
|
+
version: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsUserAPIKeyDeletedV1(value: object): value is AuditLogsUserAPIKeyDeletedV1;
|
|
50
|
+
export declare function AuditLogsUserAPIKeyDeletedV1FromJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
|
|
51
|
+
export declare function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyDeletedV1;
|
|
52
|
+
export declare function AuditLogsUserAPIKeyDeletedV1ToJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
|
|
53
|
+
export declare function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value?: AuditLogsUserAPIKeyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
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
|
+
/**
|
|
19
|
+
* Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfAuditLogsUserAPIKeyDeletedV1(value) {
|
|
22
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function AuditLogsUserAPIKeyDeletedV1FromJSON(json) {
|
|
37
|
+
return AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'action': json['action'],
|
|
45
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
46
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
47
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
48
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
49
|
+
'version': json['version'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function AuditLogsUserAPIKeyDeletedV1ToJSON(json) {
|
|
53
|
+
return AuditLogsUserAPIKeyDeletedV1ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'action': value['action'],
|
|
61
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
62
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
63
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
64
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
65
|
+
'version': value['version'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -450,6 +450,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
|
|
|
450
450
|
export * from './AuditLogsTwilioConnectionCreatedV1.js';
|
|
451
451
|
export * from './AuditLogsTwilioConnectionDeletedV1.js';
|
|
452
452
|
export * from './AuditLogsTwilioConnectionUpdatedV1.js';
|
|
453
|
+
export * from './AuditLogsUserAPIKeyCreatedV1.js';
|
|
454
|
+
export * from './AuditLogsUserAPIKeyDeletedV1.js';
|
|
453
455
|
export * from './AuditLogsUserCreatedV1.js';
|
|
454
456
|
export * from './AuditLogsUserDeactivatedV1.js';
|
|
455
457
|
export * from './AuditLogsUserLoggedInV1.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -452,6 +452,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
|
|
|
452
452
|
export * from './AuditLogsTwilioConnectionCreatedV1.js';
|
|
453
453
|
export * from './AuditLogsTwilioConnectionDeletedV1.js';
|
|
454
454
|
export * from './AuditLogsTwilioConnectionUpdatedV1.js';
|
|
455
|
+
export * from './AuditLogsUserAPIKeyCreatedV1.js';
|
|
456
|
+
export * from './AuditLogsUserAPIKeyDeletedV1.js';
|
|
455
457
|
export * from './AuditLogsUserCreatedV1.js';
|
|
456
458
|
export * from './AuditLogsUserDeactivatedV1.js';
|
|
457
459
|
export * from './AuditLogsUserLoggedInV1.js';
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.2.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Written by `make build` from package.json. Do not edit.
|
|
2
|
-
export const VERSION = "1.
|
|
2
|
+
export const VERSION = "1.2.0";
|