@incident-io/sdk 2.15.0 → 2.17.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 (37) hide show
  1. package/dist/cjs/apis/OnCallNotificationPausesV2Api.d.ts +71 -0
  2. package/dist/cjs/apis/OnCallNotificationPausesV2Api.js +150 -0
  3. package/dist/cjs/apis/index.d.ts +1 -0
  4. package/dist/cjs/apis/index.js +1 -0
  5. package/dist/cjs/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.d.ts +50 -0
  6. package/dist/cjs/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js +64 -0
  7. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.d.ts +58 -0
  8. package/dist/cjs/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js +79 -0
  9. package/dist/cjs/models/OnCallNotificationPauseV2.d.ts +54 -0
  10. package/dist/cjs/models/OnCallNotificationPauseV2.js +73 -0
  11. package/dist/cjs/models/OnCallNotificationPausesListResultV2.d.ts +36 -0
  12. package/dist/cjs/models/OnCallNotificationPausesListResultV2.js +56 -0
  13. package/dist/cjs/models/OnCallNotificationPausesShowResultV2.d.ts +31 -0
  14. package/dist/cjs/models/OnCallNotificationPausesShowResultV2.js +51 -0
  15. package/dist/cjs/models/index.d.ts +5 -0
  16. package/dist/cjs/models/index.js +5 -0
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/apis/OnCallNotificationPausesV2Api.d.ts +71 -0
  20. package/dist/esm/apis/OnCallNotificationPausesV2Api.js +113 -0
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.d.ts +50 -0
  24. package/dist/esm/models/AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2.js +57 -0
  25. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.d.ts +58 -0
  26. package/dist/esm/models/AuditLogsTelemetryDataSourceAccessPolicyChangedV2.js +72 -0
  27. package/dist/esm/models/OnCallNotificationPauseV2.d.ts +54 -0
  28. package/dist/esm/models/OnCallNotificationPauseV2.js +66 -0
  29. package/dist/esm/models/OnCallNotificationPausesListResultV2.d.ts +36 -0
  30. package/dist/esm/models/OnCallNotificationPausesListResultV2.js +49 -0
  31. package/dist/esm/models/OnCallNotificationPausesShowResultV2.d.ts +31 -0
  32. package/dist/esm/models/OnCallNotificationPausesShowResultV2.js +44 -0
  33. package/dist/esm/models/index.d.ts +5 -0
  34. package/dist/esm/models/index.js +5 -0
  35. package/dist/esm/version.d.ts +1 -1
  36. package/dist/esm/version.js +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,54 @@
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
+ * A window in which a user's on-call notifications are paused: while it's active, escalations skip the user instead of paging them.
14
+ * @export
15
+ * @interface OnCallNotificationPauseV2
16
+ */
17
+ export interface OnCallNotificationPauseV2 {
18
+ /**
19
+ *
20
+ */
21
+ created_at: Date;
22
+ /**
23
+ * When notifications resume
24
+ */
25
+ ends_at: Date;
26
+ /**
27
+ * Unique identifier for this notification pause
28
+ */
29
+ id: string;
30
+ /**
31
+ * Free text reason for why notifications are paused, shown to teammates
32
+ */
33
+ reason?: string;
34
+ /**
35
+ * When notifications stop being sent to the user
36
+ */
37
+ starts_at: Date;
38
+ /**
39
+ *
40
+ */
41
+ updated_at: Date;
42
+ /**
43
+ * The user whose on-call notifications are paused in this time window
44
+ */
45
+ user_id: string;
46
+ }
47
+ /**
48
+ * Check if a given object implements the OnCallNotificationPauseV2 interface.
49
+ */
50
+ export declare function instanceOfOnCallNotificationPauseV2(value: object): value is OnCallNotificationPauseV2;
51
+ export declare function OnCallNotificationPauseV2FromJSON(json: any): OnCallNotificationPauseV2;
52
+ export declare function OnCallNotificationPauseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPauseV2;
53
+ export declare function OnCallNotificationPauseV2ToJSON(json: any): OnCallNotificationPauseV2;
54
+ export declare function OnCallNotificationPauseV2ToJSONTyped(value?: OnCallNotificationPauseV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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
+ /**
16
+ * Check if a given object implements the OnCallNotificationPauseV2 interface.
17
+ */
18
+ export function instanceOfOnCallNotificationPauseV2(value) {
19
+ if (!('created_at' in value) || value['created_at'] === undefined)
20
+ return false;
21
+ if (!('ends_at' in value) || value['ends_at'] === undefined)
22
+ return false;
23
+ if (!('id' in value) || value['id'] === undefined)
24
+ return false;
25
+ if (!('starts_at' in value) || value['starts_at'] === undefined)
26
+ return false;
27
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
28
+ return false;
29
+ if (!('user_id' in value) || value['user_id'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function OnCallNotificationPauseV2FromJSON(json) {
34
+ return OnCallNotificationPauseV2FromJSONTyped(json, false);
35
+ }
36
+ export function OnCallNotificationPauseV2FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
42
+ 'ends_at': (json['ends_at'] == null ? json['ends_at'] : parseDateTime(json['ends_at'])),
43
+ 'id': json['id'],
44
+ 'reason': json['reason'] == null ? undefined : json['reason'],
45
+ 'starts_at': (json['starts_at'] == null ? json['starts_at'] : parseDateTime(json['starts_at'])),
46
+ 'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
47
+ 'user_id': json['user_id'],
48
+ };
49
+ }
50
+ export function OnCallNotificationPauseV2ToJSON(json) {
51
+ return OnCallNotificationPauseV2ToJSONTyped(json, false);
52
+ }
53
+ export function OnCallNotificationPauseV2ToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
59
+ 'ends_at': value['ends_at'] == null ? value['ends_at'] : serializeDateTime(value['ends_at']),
60
+ 'id': value['id'],
61
+ 'reason': value['reason'],
62
+ 'starts_at': value['starts_at'] == null ? value['starts_at'] : serializeDateTime(value['starts_at']),
63
+ 'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
64
+ 'user_id': value['user_id'],
65
+ };
66
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
13
+ import type { PaginationMetaResultV2 } from './PaginationMetaResultV2.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface OnCallNotificationPausesListResultV2
18
+ */
19
+ export interface OnCallNotificationPausesListResultV2 {
20
+ /**
21
+ * Pauses ordered by when they start
22
+ */
23
+ on_call_notification_pauses: Array<OnCallNotificationPauseV2>;
24
+ /**
25
+ *
26
+ */
27
+ pagination_meta: PaginationMetaResultV2;
28
+ }
29
+ /**
30
+ * Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
31
+ */
32
+ export declare function instanceOfOnCallNotificationPausesListResultV2(value: object): value is OnCallNotificationPausesListResultV2;
33
+ export declare function OnCallNotificationPausesListResultV2FromJSON(json: any): OnCallNotificationPausesListResultV2;
34
+ export declare function OnCallNotificationPausesListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesListResultV2;
35
+ export declare function OnCallNotificationPausesListResultV2ToJSON(json: any): OnCallNotificationPausesListResultV2;
36
+ export declare function OnCallNotificationPausesListResultV2ToJSONTyped(value?: OnCallNotificationPausesListResultV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 { OnCallNotificationPauseV2FromJSON, OnCallNotificationPauseV2ToJSON, } from './OnCallNotificationPauseV2.js';
15
+ import { PaginationMetaResultV2FromJSON, PaginationMetaResultV2ToJSON, } from './PaginationMetaResultV2.js';
16
+ /**
17
+ * Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
18
+ */
19
+ export function instanceOfOnCallNotificationPausesListResultV2(value) {
20
+ if (!('on_call_notification_pauses' in value) || value['on_call_notification_pauses'] === undefined)
21
+ return false;
22
+ if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function OnCallNotificationPausesListResultV2FromJSON(json) {
27
+ return OnCallNotificationPausesListResultV2FromJSONTyped(json, false);
28
+ }
29
+ export function OnCallNotificationPausesListResultV2FromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'on_call_notification_pauses': (json['on_call_notification_pauses'].map(OnCallNotificationPauseV2FromJSON)),
35
+ 'pagination_meta': PaginationMetaResultV2FromJSON(json['pagination_meta']),
36
+ };
37
+ }
38
+ export function OnCallNotificationPausesListResultV2ToJSON(json) {
39
+ return OnCallNotificationPausesListResultV2ToJSONTyped(json, false);
40
+ }
41
+ export function OnCallNotificationPausesListResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'on_call_notification_pauses': (value['on_call_notification_pauses'].map(OnCallNotificationPauseV2ToJSON)),
47
+ 'pagination_meta': PaginationMetaResultV2ToJSON(value['pagination_meta']),
48
+ };
49
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OnCallNotificationPausesShowResultV2
17
+ */
18
+ export interface OnCallNotificationPausesShowResultV2 {
19
+ /**
20
+ *
21
+ */
22
+ on_call_notification_pause: OnCallNotificationPauseV2;
23
+ }
24
+ /**
25
+ * Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
26
+ */
27
+ export declare function instanceOfOnCallNotificationPausesShowResultV2(value: object): value is OnCallNotificationPausesShowResultV2;
28
+ export declare function OnCallNotificationPausesShowResultV2FromJSON(json: any): OnCallNotificationPausesShowResultV2;
29
+ export declare function OnCallNotificationPausesShowResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesShowResultV2;
30
+ export declare function OnCallNotificationPausesShowResultV2ToJSON(json: any): OnCallNotificationPausesShowResultV2;
31
+ export declare function OnCallNotificationPausesShowResultV2ToJSONTyped(value?: OnCallNotificationPausesShowResultV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { OnCallNotificationPauseV2FromJSON, OnCallNotificationPauseV2ToJSON, } from './OnCallNotificationPauseV2.js';
15
+ /**
16
+ * Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
17
+ */
18
+ export function instanceOfOnCallNotificationPausesShowResultV2(value) {
19
+ if (!('on_call_notification_pause' in value) || value['on_call_notification_pause'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function OnCallNotificationPausesShowResultV2FromJSON(json) {
24
+ return OnCallNotificationPausesShowResultV2FromJSONTyped(json, false);
25
+ }
26
+ export function OnCallNotificationPausesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'on_call_notification_pause': OnCallNotificationPauseV2FromJSON(json['on_call_notification_pause']),
32
+ };
33
+ }
34
+ export function OnCallNotificationPausesShowResultV2ToJSON(json) {
35
+ return OnCallNotificationPausesShowResultV2ToJSONTyped(json, false);
36
+ }
37
+ export function OnCallNotificationPausesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'on_call_notification_pause': OnCallNotificationPauseV2ToJSON(value['on_call_notification_pause']),
43
+ };
44
+ }
@@ -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';
@@ -892,6 +894,9 @@ export * from './ManagementMetaV2.js';
892
894
  export * from './NewSlackUserGroupPayloadV2.js';
893
895
  export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
894
896
  export * from './OnCallNotificationMethodPublicV2.js';
897
+ export * from './OnCallNotificationPauseV2.js';
898
+ export * from './OnCallNotificationPausesListResultV2.js';
899
+ export * from './OnCallNotificationPausesShowResultV2.js';
895
900
  export * from './OnCallNotificationRuleAppDetailsPublicV2.js';
896
901
  export * from './OnCallNotificationRuleMethodTargetPublicV2.js';
897
902
  export * from './OnCallNotificationRuleMethodTargetSpecificPublicV2.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';
@@ -894,6 +896,9 @@ export * from './ManagementMetaV2.js';
894
896
  export * from './NewSlackUserGroupPayloadV2.js';
895
897
  export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
896
898
  export * from './OnCallNotificationMethodPublicV2.js';
899
+ export * from './OnCallNotificationPauseV2.js';
900
+ export * from './OnCallNotificationPausesListResultV2.js';
901
+ export * from './OnCallNotificationPausesShowResultV2.js';
897
902
  export * from './OnCallNotificationRuleAppDetailsPublicV2.js';
898
903
  export * from './OnCallNotificationRuleMethodTargetPublicV2.js';
899
904
  export * from './OnCallNotificationRuleMethodTargetSpecificPublicV2.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.15.0";
1
+ export declare const VERSION = "2.17.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.15.0";
2
+ export const VERSION = "2.17.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",