@incident-io/sdk 1.2.0 → 2.1.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 (49) hide show
  1. package/dist/cjs/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
  2. package/dist/cjs/apis/IncidentTeamMembershipsV1Api.js +144 -0
  3. package/dist/cjs/apis/SchedulesV2Api.d.ts +2 -2
  4. package/dist/cjs/apis/SchedulesV2Api.js +2 -2
  5. package/dist/cjs/apis/index.d.ts +1 -0
  6. package/dist/cjs/apis/index.js +1 -0
  7. package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
  8. package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.js +79 -0
  9. package/dist/cjs/models/IncidentTeamMembershipV1.d.ts +47 -0
  10. package/dist/cjs/models/IncidentTeamMembershipV1.js +68 -0
  11. package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
  12. package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.js +54 -0
  13. package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
  14. package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.js +51 -0
  15. package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
  16. package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.js +54 -0
  17. package/dist/cjs/models/IncidentTeamV1.d.ts +34 -0
  18. package/dist/cjs/models/IncidentTeamV1.js +54 -0
  19. package/dist/cjs/models/ScheduleEntryV2.d.ts +4 -9
  20. package/dist/cjs/models/ScheduleEntryV2.js +0 -2
  21. package/dist/cjs/models/index.d.ts +6 -0
  22. package/dist/cjs/models/index.js +6 -0
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
  26. package/dist/esm/apis/IncidentTeamMembershipsV1Api.js +107 -0
  27. package/dist/esm/apis/SchedulesV2Api.d.ts +2 -2
  28. package/dist/esm/apis/SchedulesV2Api.js +2 -2
  29. package/dist/esm/apis/index.d.ts +1 -0
  30. package/dist/esm/apis/index.js +1 -0
  31. package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
  32. package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.js +72 -0
  33. package/dist/esm/models/IncidentTeamMembershipV1.d.ts +47 -0
  34. package/dist/esm/models/IncidentTeamMembershipV1.js +61 -0
  35. package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
  36. package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.js +47 -0
  37. package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
  38. package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.js +44 -0
  39. package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
  40. package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.js +47 -0
  41. package/dist/esm/models/IncidentTeamV1.d.ts +34 -0
  42. package/dist/esm/models/IncidentTeamV1.js +47 -0
  43. package/dist/esm/models/ScheduleEntryV2.d.ts +4 -9
  44. package/dist/esm/models/ScheduleEntryV2.js +0 -2
  45. package/dist/esm/models/index.d.ts +6 -0
  46. package/dist/esm/models/index.js +6 -0
  47. package/dist/esm/version.d.ts +1 -1
  48. package/dist/esm/version.js +1 -1
  49. package/package.json +1 -1
@@ -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 { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsOnCallNotificationPauseResumedV1
20
+ */
21
+ export interface AuditLogsOnCallNotificationPauseResumedV1 {
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: AuditLogOnCallNotificationPauseMetadataV2;
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 AuditLogsOnCallNotificationPauseResumedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsOnCallNotificationPauseResumedV1(value: object): value is AuditLogsOnCallNotificationPauseResumedV1;
55
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
56
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseResumedV1;
57
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
58
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseResumedV1 | 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 { AuditLogOnCallNotificationPauseMetadataV2FromJSON, AuditLogOnCallNotificationPauseMetadataV2ToJSON, } from './AuditLogOnCallNotificationPauseMetadataV2.js';
17
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseResumedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsOnCallNotificationPauseResumedV1(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 AuditLogsOnCallNotificationPauseResumedV1FromJSON(json) {
40
+ return AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(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': AuditLogOnCallNotificationPauseMetadataV2FromJSON(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 AuditLogsOnCallNotificationPauseResumedV1ToJSON(json) {
57
+ return AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(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': AuditLogOnCallNotificationPauseMetadataV2ToJSON(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
+ }
@@ -0,0 +1,47 @@
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 { IncidentTeamV1 } from './IncidentTeamV1.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentTeamMembershipV1
17
+ */
18
+ export interface IncidentTeamMembershipV1 {
19
+ /**
20
+ * When the team membership was created
21
+ */
22
+ created_at: Date;
23
+ /**
24
+ * Unique identifier of this incident team membership
25
+ */
26
+ id: string;
27
+ /**
28
+ * Unique identifier of the incident
29
+ */
30
+ incident_id: string;
31
+ /**
32
+ *
33
+ */
34
+ team: IncidentTeamV1;
35
+ /**
36
+ * When the team membership was last updated
37
+ */
38
+ updated_at: Date;
39
+ }
40
+ /**
41
+ * Check if a given object implements the IncidentTeamMembershipV1 interface.
42
+ */
43
+ export declare function instanceOfIncidentTeamMembershipV1(value: object): value is IncidentTeamMembershipV1;
44
+ export declare function IncidentTeamMembershipV1FromJSON(json: any): IncidentTeamMembershipV1;
45
+ export declare function IncidentTeamMembershipV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipV1;
46
+ export declare function IncidentTeamMembershipV1ToJSON(json: any): IncidentTeamMembershipV1;
47
+ export declare function IncidentTeamMembershipV1ToJSONTyped(value?: IncidentTeamMembershipV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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 { IncidentTeamV1FromJSON, IncidentTeamV1ToJSON, } from './IncidentTeamV1.js';
16
+ /**
17
+ * Check if a given object implements the IncidentTeamMembershipV1 interface.
18
+ */
19
+ export function instanceOfIncidentTeamMembershipV1(value) {
20
+ if (!('created_at' in value) || value['created_at'] === undefined)
21
+ return false;
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
25
+ return false;
26
+ if (!('team' in value) || value['team'] === undefined)
27
+ return false;
28
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function IncidentTeamMembershipV1FromJSON(json) {
33
+ return IncidentTeamMembershipV1FromJSONTyped(json, false);
34
+ }
35
+ export function IncidentTeamMembershipV1FromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
41
+ 'id': json['id'],
42
+ 'incident_id': json['incident_id'],
43
+ 'team': IncidentTeamV1FromJSON(json['team']),
44
+ 'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
45
+ };
46
+ }
47
+ export function IncidentTeamMembershipV1ToJSON(json) {
48
+ return IncidentTeamMembershipV1ToJSONTyped(json, false);
49
+ }
50
+ export function IncidentTeamMembershipV1ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
56
+ 'id': value['id'],
57
+ 'incident_id': value['incident_id'],
58
+ 'team': IncidentTeamV1ToJSON(value['team']),
59
+ 'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
60
+ };
61
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamMembershipsCreatePayloadV1
16
+ */
17
+ export interface IncidentTeamMembershipsCreatePayloadV1 {
18
+ /**
19
+ *
20
+ */
21
+ incident_id: string;
22
+ /**
23
+ *
24
+ */
25
+ team_id: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamMembershipsCreatePayloadV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamMembershipsCreatePayloadV1(value: object): value is IncidentTeamMembershipsCreatePayloadV1;
31
+ export declare function IncidentTeamMembershipsCreatePayloadV1FromJSON(json: any): IncidentTeamMembershipsCreatePayloadV1;
32
+ export declare function IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsCreatePayloadV1;
33
+ export declare function IncidentTeamMembershipsCreatePayloadV1ToJSON(json: any): IncidentTeamMembershipsCreatePayloadV1;
34
+ export declare function IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(value?: IncidentTeamMembershipsCreatePayloadV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 IncidentTeamMembershipsCreatePayloadV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamMembershipsCreatePayloadV1(value) {
18
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
19
+ return false;
20
+ if (!('team_id' in value) || value['team_id'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamMembershipsCreatePayloadV1FromJSON(json) {
25
+ return IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'incident_id': json['incident_id'],
33
+ 'team_id': json['team_id'],
34
+ };
35
+ }
36
+ export function IncidentTeamMembershipsCreatePayloadV1ToJSON(json) {
37
+ return IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'incident_id': value['incident_id'],
45
+ 'team_id': value['team_id'],
46
+ };
47
+ }
@@ -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 { IncidentTeamMembershipV1 } from './IncidentTeamMembershipV1.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentTeamMembershipsCreateResultV1
17
+ */
18
+ export interface IncidentTeamMembershipsCreateResultV1 {
19
+ /**
20
+ *
21
+ */
22
+ incident_team_membership: IncidentTeamMembershipV1;
23
+ }
24
+ /**
25
+ * Check if a given object implements the IncidentTeamMembershipsCreateResultV1 interface.
26
+ */
27
+ export declare function instanceOfIncidentTeamMembershipsCreateResultV1(value: object): value is IncidentTeamMembershipsCreateResultV1;
28
+ export declare function IncidentTeamMembershipsCreateResultV1FromJSON(json: any): IncidentTeamMembershipsCreateResultV1;
29
+ export declare function IncidentTeamMembershipsCreateResultV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsCreateResultV1;
30
+ export declare function IncidentTeamMembershipsCreateResultV1ToJSON(json: any): IncidentTeamMembershipsCreateResultV1;
31
+ export declare function IncidentTeamMembershipsCreateResultV1ToJSONTyped(value?: IncidentTeamMembershipsCreateResultV1 | 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 { IncidentTeamMembershipV1FromJSON, IncidentTeamMembershipV1ToJSON, } from './IncidentTeamMembershipV1.js';
15
+ /**
16
+ * Check if a given object implements the IncidentTeamMembershipsCreateResultV1 interface.
17
+ */
18
+ export function instanceOfIncidentTeamMembershipsCreateResultV1(value) {
19
+ if (!('incident_team_membership' in value) || value['incident_team_membership'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function IncidentTeamMembershipsCreateResultV1FromJSON(json) {
24
+ return IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, false);
25
+ }
26
+ export function IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'incident_team_membership': IncidentTeamMembershipV1FromJSON(json['incident_team_membership']),
32
+ };
33
+ }
34
+ export function IncidentTeamMembershipsCreateResultV1ToJSON(json) {
35
+ return IncidentTeamMembershipsCreateResultV1ToJSONTyped(json, false);
36
+ }
37
+ export function IncidentTeamMembershipsCreateResultV1ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'incident_team_membership': IncidentTeamMembershipV1ToJSON(value['incident_team_membership']),
43
+ };
44
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamMembershipsRevokePayloadV1
16
+ */
17
+ export interface IncidentTeamMembershipsRevokePayloadV1 {
18
+ /**
19
+ * Revoke team access to this incident
20
+ */
21
+ incident_id: string;
22
+ /**
23
+ *
24
+ */
25
+ team_id: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamMembershipsRevokePayloadV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamMembershipsRevokePayloadV1(value: object): value is IncidentTeamMembershipsRevokePayloadV1;
31
+ export declare function IncidentTeamMembershipsRevokePayloadV1FromJSON(json: any): IncidentTeamMembershipsRevokePayloadV1;
32
+ export declare function IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsRevokePayloadV1;
33
+ export declare function IncidentTeamMembershipsRevokePayloadV1ToJSON(json: any): IncidentTeamMembershipsRevokePayloadV1;
34
+ export declare function IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(value?: IncidentTeamMembershipsRevokePayloadV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 IncidentTeamMembershipsRevokePayloadV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamMembershipsRevokePayloadV1(value) {
18
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
19
+ return false;
20
+ if (!('team_id' in value) || value['team_id'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamMembershipsRevokePayloadV1FromJSON(json) {
25
+ return IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'incident_id': json['incident_id'],
33
+ 'team_id': json['team_id'],
34
+ };
35
+ }
36
+ export function IncidentTeamMembershipsRevokePayloadV1ToJSON(json) {
37
+ return IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'incident_id': value['incident_id'],
45
+ 'team_id': value['team_id'],
46
+ };
47
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamV1
16
+ */
17
+ export interface IncidentTeamV1 {
18
+ /**
19
+ * Unique identifier of the team
20
+ */
21
+ id: string;
22
+ /**
23
+ * Human readable name of the team
24
+ */
25
+ name: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamV1(value: object): value is IncidentTeamV1;
31
+ export declare function IncidentTeamV1FromJSON(json: any): IncidentTeamV1;
32
+ export declare function IncidentTeamV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamV1;
33
+ export declare function IncidentTeamV1ToJSON(json: any): IncidentTeamV1;
34
+ export declare function IncidentTeamV1ToJSONTyped(value?: IncidentTeamV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 IncidentTeamV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamV1(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamV1FromJSON(json) {
25
+ return IncidentTeamV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function IncidentTeamV1ToJSON(json) {
37
+ return IncidentTeamV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -12,11 +12,10 @@
12
12
  import type { UserV2 } from './UserV2.js';
13
13
  /**
14
14
  * A single shift on a schedule, representing who is on-call between a start
15
- * and end time. When present, `rotation_id` and `layer_id` tell you which
16
- * rotation and which layer within that rotation the entry belongs to. A
17
- * schedule may have multiple rotations (for example, a primary and a secondary
18
- * rotation) and each rotation can be made up of several layers — entries are
19
- * returned for every rotation and layer on the schedule.
15
+ * and end time. When present, `rotation_id` tells you which rotation the
16
+ * entry belongs to. A schedule may have multiple rotations (for example, a
17
+ * primary and a secondary rotation) and each rotation can be made up of several
18
+ * layers — entries are returned for every rotation and layer on the schedule.
20
19
  *
21
20
  * Entries come from two places: they are either generated from a schedule's
22
21
  * rotation configuration (the regular pattern of who is on-call) or created by
@@ -46,10 +45,6 @@ export interface ScheduleEntryV2 {
46
45
  * A unique identifier for this entry, used to determine a unique shift
47
46
  */
48
47
  fingerprint?: string;
49
- /**
50
- * If present, the layer this entry applies to on the rotation
51
- */
52
- layer_id?: string;
53
48
  /**
54
49
  * If present, the rotation this entry applies to on the schedule
55
50
  */
@@ -34,7 +34,6 @@ export function ScheduleEntryV2FromJSONTyped(json, ignoreDiscriminator) {
34
34
  'end_at': (json['end_at'] == null ? json['end_at'] : parseDateTime(json['end_at'])),
35
35
  'entry_id': json['entry_id'] == null ? undefined : json['entry_id'],
36
36
  'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
37
- 'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
38
37
  'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
39
38
  'start_at': (json['start_at'] == null ? json['start_at'] : parseDateTime(json['start_at'])),
40
39
  'user': json['user'] == null ? undefined : UserV2FromJSON(json['user']),
@@ -51,7 +50,6 @@ export function ScheduleEntryV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
50
  'end_at': value['end_at'] == null ? value['end_at'] : serializeDateTime(value['end_at']),
52
51
  'entry_id': value['entry_id'],
53
52
  'fingerprint': value['fingerprint'],
54
- 'layer_id': value['layer_id'],
55
53
  'rotation_id': value['rotation_id'],
56
54
  'start_at': value['start_at'] == null ? value['start_at'] : serializeDateTime(value['start_at']),
57
55
  'user': UserV2ToJSON(value['user']),
@@ -351,6 +351,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
351
351
  export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
352
352
  export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
353
353
  export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
354
+ export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
354
355
  export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
355
356
  export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
356
357
  export * from './AuditLogsOnCallUpsellRequestedV1.js';
@@ -790,6 +791,11 @@ export * from './IncidentStatusesListResultV1.js';
790
791
  export * from './IncidentStatusesShowResultV1.js';
791
792
  export * from './IncidentStatusesUpdatePayloadV1.js';
792
793
  export * from './IncidentStatusesUpdateResultV1.js';
794
+ export * from './IncidentTeamMembershipV1.js';
795
+ export * from './IncidentTeamMembershipsCreatePayloadV1.js';
796
+ export * from './IncidentTeamMembershipsCreateResultV1.js';
797
+ export * from './IncidentTeamMembershipsRevokePayloadV1.js';
798
+ export * from './IncidentTeamV1.js';
793
799
  export * from './IncidentTemplateAutoGeneratedBindingPayloadV1.js';
794
800
  export * from './IncidentTemplateAutoGeneratedBindingV1.js';
795
801
  export * from './IncidentTemplateBindingPayloadV1.js';
@@ -353,6 +353,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
353
353
  export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
354
354
  export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
355
355
  export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
356
+ export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
356
357
  export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
357
358
  export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
358
359
  export * from './AuditLogsOnCallUpsellRequestedV1.js';
@@ -792,6 +793,11 @@ export * from './IncidentStatusesListResultV1.js';
792
793
  export * from './IncidentStatusesShowResultV1.js';
793
794
  export * from './IncidentStatusesUpdatePayloadV1.js';
794
795
  export * from './IncidentStatusesUpdateResultV1.js';
796
+ export * from './IncidentTeamMembershipV1.js';
797
+ export * from './IncidentTeamMembershipsCreatePayloadV1.js';
798
+ export * from './IncidentTeamMembershipsCreateResultV1.js';
799
+ export * from './IncidentTeamMembershipsRevokePayloadV1.js';
800
+ export * from './IncidentTeamV1.js';
795
801
  export * from './IncidentTemplateAutoGeneratedBindingPayloadV1.js';
796
802
  export * from './IncidentTemplateAutoGeneratedBindingV1.js';
797
803
  export * from './IncidentTemplateBindingPayloadV1.js';
@@ -1 +1 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "2.1.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "1.2.0";
2
+ export const VERSION = "2.1.0";