@incident-io/sdk 2.16.0 → 2.18.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 (25) hide show
  1. package/dist/cjs/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.d.ts +50 -0
  2. package/dist/cjs/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js +64 -0
  3. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.d.ts +58 -0
  4. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js +79 -0
  5. package/dist/cjs/models/StatusPagesCreateStatusPageIncidentPayloadV2.d.ts +1 -1
  6. package/dist/cjs/models/StatusPagesCreateStatusPageIncidentUpdatePayloadV2.d.ts +1 -1
  7. package/dist/cjs/models/StatusPagesCreateStatusPageMaintenancePayloadV2.d.ts +1 -1
  8. package/dist/cjs/models/StatusPagesCreateStatusPageMaintenanceUpdatePayloadV2.d.ts +1 -1
  9. package/dist/cjs/models/index.d.ts +2 -0
  10. package/dist/cjs/models/index.js +2 -0
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.d.ts +50 -0
  14. package/dist/esm/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js +57 -0
  15. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.d.ts +58 -0
  16. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js +72 -0
  17. package/dist/esm/models/StatusPagesCreateStatusPageIncidentPayloadV2.d.ts +1 -1
  18. package/dist/esm/models/StatusPagesCreateStatusPageIncidentUpdatePayloadV2.d.ts +1 -1
  19. package/dist/esm/models/StatusPagesCreateStatusPageMaintenancePayloadV2.d.ts +1 -1
  20. package/dist/esm/models/StatusPagesCreateStatusPageMaintenanceUpdatePayloadV2.d.ts +1 -1
  21. package/dist/esm/models/index.d.ts +2 -0
  22. package/dist/esm/models/index.js +2 -0
  23. package/dist/esm/version.d.ts +1 -1
  24. package/dist/esm/version.js +1 -1
  25. package/package.json +1 -1
@@ -0,0 +1,50 @@
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 AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2
16
+ */
17
+ export interface AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 {
18
+ /**
19
+ * The policy after the change, as JSON
20
+ */
21
+ after: string;
22
+ /**
23
+ * The policy before the change, as JSON; empty when the connector had no access policy
24
+ */
25
+ before: string;
26
+ /**
27
+ * Shared by every entry the same save produced, so the decision that changed and the access it reached can be read together
28
+ */
29
+ change_id: string;
30
+ /**
31
+ * The default notification channels after the change, as JSON; absent when they did not change, empty when there are none
32
+ */
33
+ notification_channels_after?: string;
34
+ /**
35
+ * The default notification channels before the change, as JSON; absent when they did not change, empty when there were none
36
+ */
37
+ notification_channels_before?: string;
38
+ /**
39
+ * ID of the user who saved the policy, absent when staff tooling saved it
40
+ */
41
+ set_by?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 interface.
45
+ */
46
+ export declare function instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2(value: object): value is AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
47
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON(json: any): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
48
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
49
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON(json: any): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
50
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(value?: AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 = instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
17
+ exports.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON = AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON;
18
+ exports.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped = AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped;
19
+ exports.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON = AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON;
20
+ exports.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped = AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 interface.
23
+ */
24
+ function instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2(value) {
25
+ if (!('after' in value) || value['after'] === undefined)
26
+ return false;
27
+ if (!('before' in value) || value['before'] === undefined)
28
+ return false;
29
+ if (!('change_id' in value) || value['change_id'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON(json) {
34
+ return AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json, false);
35
+ }
36
+ function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'after': json['after'],
42
+ 'before': json['before'],
43
+ 'change_id': json['change_id'],
44
+ 'notification_channels_after': json['notification_channels_after'] == null ? undefined : json['notification_channels_after'],
45
+ 'notification_channels_before': json['notification_channels_before'] == null ? undefined : json['notification_channels_before'],
46
+ 'set_by': json['set_by'] == null ? undefined : json['set_by'],
47
+ };
48
+ }
49
+ function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON(json) {
50
+ return AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(json, false);
51
+ }
52
+ function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'after': value['after'],
58
+ 'before': value['before'],
59
+ 'change_id': value['change_id'],
60
+ 'notification_channels_after': value['notification_channels_after'],
61
+ 'notification_channels_before': value['notification_channels_before'],
62
+ 'set_by': value['set_by'],
63
+ };
64
+ }
@@ -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 { AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 } from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsTelemetryDataSourceAccessPolicyChangedV2
20
+ */
21
+ export interface AuditLogsTelemetryDataSourceAccessPolicyChangedV2 {
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: AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2(value: object): value is AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
55
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON(json: any): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
56
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
57
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON(json: any): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
58
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(value?: AuditLogsTelemetryDataSourceAccessPolicyChangedV2 | 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.instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2 = instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2;
17
+ exports.AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON = AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON;
18
+ exports.AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped = AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped;
19
+ exports.AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON = AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON;
20
+ exports.AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped = AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2_js_1 = require("./AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js");
24
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsTelemetryDataSourceAccessPolicyChangedV2 interface.
28
+ */
29
+ function instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2(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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON(json) {
47
+ return AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(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, AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2_js_1.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON)(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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON(json) {
64
+ return AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(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, AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2_js_1.AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON)(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
+ }
@@ -37,7 +37,7 @@ export interface StatusPagesCreateStatusPageIncidentPayloadV2 {
37
37
  */
38
38
  name: string;
39
39
  /**
40
- * Whether to notify subscribers about this status page incident. This will not work if your status page has more than 1000 subscribers.
40
+ * Whether to notify subscribers about this status page incident. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
41
41
  */
42
42
  notify_subscribers: boolean;
43
43
  /**
@@ -29,7 +29,7 @@ export interface StatusPagesCreateStatusPageIncidentUpdatePayloadV2 {
29
29
  */
30
30
  message: string;
31
31
  /**
32
- * Whether to notify subscribers about this incident update. This will not work if your status page has more than 1000 subscribers.
32
+ * Whether to notify subscribers about this incident update. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
33
33
  */
34
34
  notify_subscribers: boolean;
35
35
  /**
@@ -44,7 +44,7 @@ export interface StatusPagesCreateStatusPageMaintenancePayloadV2 {
44
44
  */
45
45
  name: string;
46
46
  /**
47
- * Whether to notify subscribers about this status page maintenance. This will not work if your status page has more than 1000 subscribers.
47
+ * Whether to notify subscribers about this status page maintenance. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
48
48
  */
49
49
  notify_subscribers: boolean;
50
50
  /**
@@ -29,7 +29,7 @@ export interface StatusPagesCreateStatusPageMaintenanceUpdatePayloadV2 {
29
29
  */
30
30
  message: string;
31
31
  /**
32
- * Whether to notify subscribers about this status page maintenance update. This will not work if your status page has more than 1000 subscribers.
32
+ * Whether to notify subscribers about this status page maintenance update. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
33
33
  */
34
34
  notify_subscribers: boolean;
35
35
  /**
@@ -230,6 +230,7 @@ export * from './AuditLogScheduleOverrideMetadataV2.js';
230
230
  export * from './AuditLogTargetV2.js';
231
231
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
232
232
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
233
+ export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
233
234
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
234
235
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
235
236
  export * from './AuditLogTelemetryDataSourceRequestedMetadataV2.js';
@@ -451,6 +452,7 @@ export * from './AuditLogsTeamRoleUpdatedV1.js';
451
452
  export * from './AuditLogsTeamSettingsUpdatedV1.js';
452
453
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
453
454
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
455
+ export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
454
456
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
455
457
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
456
458
  export * from './AuditLogsTelemetryDataSourceQueriedV2.js';
@@ -248,6 +248,7 @@ __exportStar(require("./AuditLogScheduleOverrideMetadataV2.js"), exports);
248
248
  __exportStar(require("./AuditLogTargetV2.js"), exports);
249
249
  __exportStar(require("./AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js"), exports);
250
250
  __exportStar(require("./AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js"), exports);
251
+ __exportStar(require("./AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js"), exports);
251
252
  __exportStar(require("./AuditLogTelemetryDataSourceQueriedMetadataV2.js"), exports);
252
253
  __exportStar(require("./AuditLogTelemetryDataSourceQueriedMetadataV2V2.js"), exports);
253
254
  __exportStar(require("./AuditLogTelemetryDataSourceRequestedMetadataV2.js"), exports);
@@ -469,6 +470,7 @@ __exportStar(require("./AuditLogsTeamRoleUpdatedV1.js"), exports);
469
470
  __exportStar(require("./AuditLogsTeamSettingsUpdatedV1.js"), exports);
470
471
  __exportStar(require("./AuditLogsTelemetryDataSourceAccessModeChangedV1.js"), exports);
471
472
  __exportStar(require("./AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js"), exports);
473
+ __exportStar(require("./AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js"), exports);
472
474
  __exportStar(require("./AuditLogsTelemetryDataSourceInstalledV1.js"), exports);
473
475
  __exportStar(require("./AuditLogsTelemetryDataSourceQueriedV1.js"), exports);
474
476
  __exportStar(require("./AuditLogsTelemetryDataSourceQueriedV2.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.16.0";
1
+ export declare const VERSION = "2.18.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.16.0";
5
+ exports.VERSION = "2.18.0";
@@ -0,0 +1,50 @@
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 AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2
16
+ */
17
+ export interface AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 {
18
+ /**
19
+ * The policy after the change, as JSON
20
+ */
21
+ after: string;
22
+ /**
23
+ * The policy before the change, as JSON; empty when the connector had no access policy
24
+ */
25
+ before: string;
26
+ /**
27
+ * Shared by every entry the same save produced, so the decision that changed and the access it reached can be read together
28
+ */
29
+ change_id: string;
30
+ /**
31
+ * The default notification channels after the change, as JSON; absent when they did not change, empty when there are none
32
+ */
33
+ notification_channels_after?: string;
34
+ /**
35
+ * The default notification channels before the change, as JSON; absent when they did not change, empty when there were none
36
+ */
37
+ notification_channels_before?: string;
38
+ /**
39
+ * ID of the user who saved the policy, absent when staff tooling saved it
40
+ */
41
+ set_by?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 interface.
45
+ */
46
+ export declare function instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2(value: object): value is AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
47
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON(json: any): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
48
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
49
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON(json: any): AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
50
+ export declare function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(value?: AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 interface.
16
+ */
17
+ export function instanceOfAuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2(value) {
18
+ if (!('after' in value) || value['after'] === undefined)
19
+ return false;
20
+ if (!('before' in value) || value['before'] === undefined)
21
+ return false;
22
+ if (!('change_id' in value) || value['change_id'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON(json) {
27
+ return AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json, false);
28
+ }
29
+ export function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'after': json['after'],
35
+ 'before': json['before'],
36
+ 'change_id': json['change_id'],
37
+ 'notification_channels_after': json['notification_channels_after'] == null ? undefined : json['notification_channels_after'],
38
+ 'notification_channels_before': json['notification_channels_before'] == null ? undefined : json['notification_channels_before'],
39
+ 'set_by': json['set_by'] == null ? undefined : json['set_by'],
40
+ };
41
+ }
42
+ export function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON(json) {
43
+ return AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(json, false);
44
+ }
45
+ export function AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'after': value['after'],
51
+ 'before': value['before'],
52
+ 'change_id': value['change_id'],
53
+ 'notification_channels_after': value['notification_channels_after'],
54
+ 'notification_channels_before': value['notification_channels_before'],
55
+ 'set_by': value['set_by'],
56
+ };
57
+ }
@@ -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 { AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2 } from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsTelemetryDataSourceAccessPolicyChangedV2
20
+ */
21
+ export interface AuditLogsTelemetryDataSourceAccessPolicyChangedV2 {
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: AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2;
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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2(value: object): value is AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
55
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON(json: any): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
56
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
57
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON(json: any): AuditLogsTelemetryDataSourceAccessPolicyChangedV2;
58
+ export declare function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(value?: AuditLogsTelemetryDataSourceAccessPolicyChangedV2 | 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 { AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON, AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON, } from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
17
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsTelemetryDataSourceAccessPolicyChangedV2 interface.
21
+ */
22
+ export function instanceOfAuditLogsTelemetryDataSourceAccessPolicyChangedV2(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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSON(json) {
40
+ return AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsTelemetryDataSourceAccessPolicyChangedV2FromJSONTyped(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': AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2FromJSON(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 AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSON(json) {
57
+ return AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsTelemetryDataSourceAccessPolicyChangedV2ToJSONTyped(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': AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2ToJSON(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
+ }
@@ -37,7 +37,7 @@ export interface StatusPagesCreateStatusPageIncidentPayloadV2 {
37
37
  */
38
38
  name: string;
39
39
  /**
40
- * Whether to notify subscribers about this status page incident. This will not work if your status page has more than 1000 subscribers.
40
+ * Whether to notify subscribers about this status page incident. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
41
41
  */
42
42
  notify_subscribers: boolean;
43
43
  /**
@@ -29,7 +29,7 @@ export interface StatusPagesCreateStatusPageIncidentUpdatePayloadV2 {
29
29
  */
30
30
  message: string;
31
31
  /**
32
- * Whether to notify subscribers about this incident update. This will not work if your status page has more than 1000 subscribers.
32
+ * Whether to notify subscribers about this incident update. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
33
33
  */
34
34
  notify_subscribers: boolean;
35
35
  /**
@@ -44,7 +44,7 @@ export interface StatusPagesCreateStatusPageMaintenancePayloadV2 {
44
44
  */
45
45
  name: string;
46
46
  /**
47
- * Whether to notify subscribers about this status page maintenance. This will not work if your status page has more than 1000 subscribers.
47
+ * Whether to notify subscribers about this status page maintenance. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
48
48
  */
49
49
  notify_subscribers: boolean;
50
50
  /**
@@ -29,7 +29,7 @@ export interface StatusPagesCreateStatusPageMaintenanceUpdatePayloadV2 {
29
29
  */
30
30
  message: string;
31
31
  /**
32
- * Whether to notify subscribers about this status page maintenance update. This will not work if your status page has more than 1000 subscribers.
32
+ * Whether to notify subscribers about this status page maintenance update. If your status page has more than 1000 subscribers, requests that set this to true are rejected. This limit applies only to the public API: publishing from the incident.io dashboard or Slack always notifies every subscriber.
33
33
  */
34
34
  notify_subscribers: boolean;
35
35
  /**
@@ -230,6 +230,7 @@ export * from './AuditLogScheduleOverrideMetadataV2.js';
230
230
  export * from './AuditLogTargetV2.js';
231
231
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
232
232
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
233
+ export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
233
234
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
234
235
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
235
236
  export * from './AuditLogTelemetryDataSourceRequestedMetadataV2.js';
@@ -451,6 +452,7 @@ export * from './AuditLogsTeamRoleUpdatedV1.js';
451
452
  export * from './AuditLogsTeamSettingsUpdatedV1.js';
452
453
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
453
454
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
455
+ export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
454
456
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
455
457
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
456
458
  export * from './AuditLogsTelemetryDataSourceQueriedV2.js';
@@ -232,6 +232,7 @@ export * from './AuditLogScheduleOverrideMetadataV2.js';
232
232
  export * from './AuditLogTargetV2.js';
233
233
  export * from './AuditLogTelemetryDataSourceAccessModeChangedMetadataV2.js';
234
234
  export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2.js';
235
+ export * from './AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js';
235
236
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2.js';
236
237
  export * from './AuditLogTelemetryDataSourceQueriedMetadataV2V2.js';
237
238
  export * from './AuditLogTelemetryDataSourceRequestedMetadataV2.js';
@@ -453,6 +454,7 @@ export * from './AuditLogsTeamRoleUpdatedV1.js';
453
454
  export * from './AuditLogsTeamSettingsUpdatedV1.js';
454
455
  export * from './AuditLogsTelemetryDataSourceAccessModeChangedV1.js';
455
456
  export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV1.js';
457
+ export * from './AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js';
456
458
  export * from './AuditLogsTelemetryDataSourceInstalledV1.js';
457
459
  export * from './AuditLogsTelemetryDataSourceQueriedV1.js';
458
460
  export * from './AuditLogsTelemetryDataSourceQueriedV2.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.16.0";
1
+ export declare const VERSION = "2.18.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.16.0";
2
+ export const VERSION = "2.18.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.16.0",
3
+ "version": "2.18.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",