@incident-io/sdk 2.21.0 → 2.23.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/IncidentsV2Api.d.ts +25 -0
  2. package/dist/cjs/apis/IncidentsV2Api.js +47 -0
  3. package/dist/cjs/apis/ManagedResourcesV2Api.d.ts +39 -0
  4. package/dist/cjs/apis/ManagedResourcesV2Api.js +101 -0
  5. package/dist/cjs/apis/index.d.ts +1 -0
  6. package/dist/cjs/apis/index.js +1 -0
  7. package/dist/cjs/models/IncidentsConnectExternalIssuePayloadV2.d.ts +61 -0
  8. package/dist/cjs/models/IncidentsConnectExternalIssuePayloadV2.js +79 -0
  9. package/dist/cjs/models/ManagedResourceV2.d.ts +79 -0
  10. package/dist/cjs/models/ManagedResourceV2.js +94 -0
  11. package/dist/cjs/models/ManagedResourcesCreateManagedResourcePayloadV2.d.ts +62 -0
  12. package/dist/cjs/models/ManagedResourcesCreateManagedResourcePayloadV2.js +80 -0
  13. package/dist/cjs/models/ManagedResourcesCreateManagedResourceResultV2.d.ts +31 -0
  14. package/dist/cjs/models/ManagedResourcesCreateManagedResourceResultV2.js +51 -0
  15. package/dist/cjs/models/index.d.ts +4 -0
  16. package/dist/cjs/models/index.js +4 -0
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/apis/IncidentsV2Api.d.ts +25 -0
  20. package/dist/esm/apis/IncidentsV2Api.js +47 -0
  21. package/dist/esm/apis/ManagedResourcesV2Api.d.ts +39 -0
  22. package/dist/esm/apis/ManagedResourcesV2Api.js +64 -0
  23. package/dist/esm/apis/index.d.ts +1 -0
  24. package/dist/esm/apis/index.js +1 -0
  25. package/dist/esm/models/IncidentsConnectExternalIssuePayloadV2.d.ts +61 -0
  26. package/dist/esm/models/IncidentsConnectExternalIssuePayloadV2.js +71 -0
  27. package/dist/esm/models/ManagedResourceV2.d.ts +79 -0
  28. package/dist/esm/models/ManagedResourceV2.js +86 -0
  29. package/dist/esm/models/ManagedResourcesCreateManagedResourcePayloadV2.d.ts +62 -0
  30. package/dist/esm/models/ManagedResourcesCreateManagedResourcePayloadV2.js +72 -0
  31. package/dist/esm/models/ManagedResourcesCreateManagedResourceResultV2.d.ts +31 -0
  32. package/dist/esm/models/ManagedResourcesCreateManagedResourceResultV2.js +44 -0
  33. package/dist/esm/models/index.d.ts +4 -0
  34. package/dist/esm/models/index.js +4 -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,79 @@
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 ManagedResourceV2
16
+ */
17
+ export interface ManagedResourceV2 {
18
+ /**
19
+ * Annotations that track metadata about this resource
20
+ */
21
+ annotations: {
22
+ [key: string]: string;
23
+ };
24
+ /**
25
+ * How is this resource managed
26
+ */
27
+ managed_by: ManagedResourceV2ManagedByEnum;
28
+ /**
29
+ * The ID of the resource that this relates to
30
+ */
31
+ resource_id: string;
32
+ /**
33
+ *
34
+ */
35
+ resource_type: ManagedResourceV2ResourceTypeEnum;
36
+ /**
37
+ * The url of the external repository where this resource is managed (if there is one)
38
+ */
39
+ source_url?: string;
40
+ }
41
+ /**
42
+ * @export
43
+ */
44
+ export declare const ManagedResourceV2ManagedByEnum: {
45
+ readonly Dashboard: "dashboard";
46
+ readonly Terraform: "terraform";
47
+ readonly External: "external";
48
+ };
49
+ export type ManagedResourceV2ManagedByEnum = typeof ManagedResourceV2ManagedByEnum[keyof typeof ManagedResourceV2ManagedByEnum];
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const ManagedResourceV2ResourceTypeEnum: {
54
+ readonly AlertRoute: "alert_route";
55
+ readonly AlertSource: "alert_source";
56
+ readonly ApiKey: "api_key";
57
+ readonly IncidentForm: "incident_form";
58
+ readonly IncidentTemplate: "incident_template";
59
+ readonly EscalationPath: "escalation_path";
60
+ readonly EscalationPathTemplate: "escalation_path_template";
61
+ readonly Policy: "policy";
62
+ readonly Schedule: "schedule";
63
+ readonly ScheduleSyncTarget: "schedule_sync_target";
64
+ readonly ScheduleSyncRule: "schedule_sync_rule";
65
+ readonly Secret: "secret";
66
+ readonly StatusPageComponent: "status_page_component";
67
+ readonly StatusPageStructure: "status_page_structure";
68
+ readonly TeamGroupingPreference: "team_grouping_preference";
69
+ readonly Workflow: "workflow";
70
+ };
71
+ export type ManagedResourceV2ResourceTypeEnum = typeof ManagedResourceV2ResourceTypeEnum[keyof typeof ManagedResourceV2ResourceTypeEnum];
72
+ /**
73
+ * Check if a given object implements the ManagedResourceV2 interface.
74
+ */
75
+ export declare function instanceOfManagedResourceV2(value: object): value is ManagedResourceV2;
76
+ export declare function ManagedResourceV2FromJSON(json: any): ManagedResourceV2;
77
+ export declare function ManagedResourceV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedResourceV2;
78
+ export declare function ManagedResourceV2ToJSON(json: any): ManagedResourceV2;
79
+ export declare function ManagedResourceV2ToJSONTyped(value?: ManagedResourceV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
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
+ * @export
16
+ */
17
+ export const ManagedResourceV2ManagedByEnum = {
18
+ Dashboard: 'dashboard',
19
+ Terraform: 'terraform',
20
+ External: 'external',
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const ManagedResourceV2ResourceTypeEnum = {
26
+ AlertRoute: 'alert_route',
27
+ AlertSource: 'alert_source',
28
+ ApiKey: 'api_key',
29
+ IncidentForm: 'incident_form',
30
+ IncidentTemplate: 'incident_template',
31
+ EscalationPath: 'escalation_path',
32
+ EscalationPathTemplate: 'escalation_path_template',
33
+ Policy: 'policy',
34
+ Schedule: 'schedule',
35
+ ScheduleSyncTarget: 'schedule_sync_target',
36
+ ScheduleSyncRule: 'schedule_sync_rule',
37
+ Secret: 'secret',
38
+ StatusPageComponent: 'status_page_component',
39
+ StatusPageStructure: 'status_page_structure',
40
+ TeamGroupingPreference: 'team_grouping_preference',
41
+ Workflow: 'workflow',
42
+ };
43
+ /**
44
+ * Check if a given object implements the ManagedResourceV2 interface.
45
+ */
46
+ export function instanceOfManagedResourceV2(value) {
47
+ if (!('annotations' in value) || value['annotations'] === undefined)
48
+ return false;
49
+ if (!('managed_by' in value) || value['managed_by'] === undefined)
50
+ return false;
51
+ if (!('resource_id' in value) || value['resource_id'] === undefined)
52
+ return false;
53
+ if (!('resource_type' in value) || value['resource_type'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ export function ManagedResourceV2FromJSON(json) {
58
+ return ManagedResourceV2FromJSONTyped(json, false);
59
+ }
60
+ export function ManagedResourceV2FromJSONTyped(json, ignoreDiscriminator) {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+ 'annotations': json['annotations'],
66
+ 'managed_by': json['managed_by'],
67
+ 'resource_id': json['resource_id'],
68
+ 'resource_type': json['resource_type'],
69
+ 'source_url': json['source_url'] == null ? undefined : json['source_url'],
70
+ };
71
+ }
72
+ export function ManagedResourceV2ToJSON(json) {
73
+ return ManagedResourceV2ToJSONTyped(json, false);
74
+ }
75
+ export function ManagedResourceV2ToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'annotations': value['annotations'],
81
+ 'managed_by': value['managed_by'],
82
+ 'resource_id': value['resource_id'],
83
+ 'resource_type': value['resource_type'],
84
+ 'source_url': value['source_url'],
85
+ };
86
+ }
@@ -0,0 +1,62 @@
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 ManagedResourcesCreateManagedResourcePayloadV2
16
+ */
17
+ export interface ManagedResourcesCreateManagedResourcePayloadV2 {
18
+ /**
19
+ * Annotations that track metadata about this resource
20
+ */
21
+ annotations: {
22
+ [key: string]: string;
23
+ };
24
+ /**
25
+ * The ID of the resource that this relates to
26
+ */
27
+ resource_id: string;
28
+ /**
29
+ * The type of the related resource
30
+ */
31
+ resource_type: ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum;
32
+ }
33
+ /**
34
+ * @export
35
+ */
36
+ export declare const ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum: {
37
+ readonly AlertRoute: "alert_route";
38
+ readonly AlertSource: "alert_source";
39
+ readonly ApiKey: "api_key";
40
+ readonly IncidentForm: "incident_form";
41
+ readonly IncidentTemplate: "incident_template";
42
+ readonly EscalationPath: "escalation_path";
43
+ readonly EscalationPathTemplate: "escalation_path_template";
44
+ readonly Policy: "policy";
45
+ readonly Schedule: "schedule";
46
+ readonly ScheduleSyncTarget: "schedule_sync_target";
47
+ readonly ScheduleSyncRule: "schedule_sync_rule";
48
+ readonly Secret: "secret";
49
+ readonly StatusPageComponent: "status_page_component";
50
+ readonly StatusPageStructure: "status_page_structure";
51
+ readonly TeamGroupingPreference: "team_grouping_preference";
52
+ readonly Workflow: "workflow";
53
+ };
54
+ export type ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum = typeof ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum[keyof typeof ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum];
55
+ /**
56
+ * Check if a given object implements the ManagedResourcesCreateManagedResourcePayloadV2 interface.
57
+ */
58
+ export declare function instanceOfManagedResourcesCreateManagedResourcePayloadV2(value: object): value is ManagedResourcesCreateManagedResourcePayloadV2;
59
+ export declare function ManagedResourcesCreateManagedResourcePayloadV2FromJSON(json: any): ManagedResourcesCreateManagedResourcePayloadV2;
60
+ export declare function ManagedResourcesCreateManagedResourcePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedResourcesCreateManagedResourcePayloadV2;
61
+ export declare function ManagedResourcesCreateManagedResourcePayloadV2ToJSON(json: any): ManagedResourcesCreateManagedResourcePayloadV2;
62
+ export declare function ManagedResourcesCreateManagedResourcePayloadV2ToJSONTyped(value?: ManagedResourcesCreateManagedResourcePayloadV2 | 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
+ /**
15
+ * @export
16
+ */
17
+ export const ManagedResourcesCreateManagedResourcePayloadV2ResourceTypeEnum = {
18
+ AlertRoute: 'alert_route',
19
+ AlertSource: 'alert_source',
20
+ ApiKey: 'api_key',
21
+ IncidentForm: 'incident_form',
22
+ IncidentTemplate: 'incident_template',
23
+ EscalationPath: 'escalation_path',
24
+ EscalationPathTemplate: 'escalation_path_template',
25
+ Policy: 'policy',
26
+ Schedule: 'schedule',
27
+ ScheduleSyncTarget: 'schedule_sync_target',
28
+ ScheduleSyncRule: 'schedule_sync_rule',
29
+ Secret: 'secret',
30
+ StatusPageComponent: 'status_page_component',
31
+ StatusPageStructure: 'status_page_structure',
32
+ TeamGroupingPreference: 'team_grouping_preference',
33
+ Workflow: 'workflow',
34
+ };
35
+ /**
36
+ * Check if a given object implements the ManagedResourcesCreateManagedResourcePayloadV2 interface.
37
+ */
38
+ export function instanceOfManagedResourcesCreateManagedResourcePayloadV2(value) {
39
+ if (!('annotations' in value) || value['annotations'] === undefined)
40
+ return false;
41
+ if (!('resource_id' in value) || value['resource_id'] === undefined)
42
+ return false;
43
+ if (!('resource_type' in value) || value['resource_type'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ export function ManagedResourcesCreateManagedResourcePayloadV2FromJSON(json) {
48
+ return ManagedResourcesCreateManagedResourcePayloadV2FromJSONTyped(json, false);
49
+ }
50
+ export function ManagedResourcesCreateManagedResourcePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'annotations': json['annotations'],
56
+ 'resource_id': json['resource_id'],
57
+ 'resource_type': json['resource_type'],
58
+ };
59
+ }
60
+ export function ManagedResourcesCreateManagedResourcePayloadV2ToJSON(json) {
61
+ return ManagedResourcesCreateManagedResourcePayloadV2ToJSONTyped(json, false);
62
+ }
63
+ export function ManagedResourcesCreateManagedResourcePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'annotations': value['annotations'],
69
+ 'resource_id': value['resource_id'],
70
+ 'resource_type': value['resource_type'],
71
+ };
72
+ }
@@ -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 { ManagedResourceV2 } from './ManagedResourceV2.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ManagedResourcesCreateManagedResourceResultV2
17
+ */
18
+ export interface ManagedResourcesCreateManagedResourceResultV2 {
19
+ /**
20
+ *
21
+ */
22
+ managed_resource: ManagedResourceV2;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ManagedResourcesCreateManagedResourceResultV2 interface.
26
+ */
27
+ export declare function instanceOfManagedResourcesCreateManagedResourceResultV2(value: object): value is ManagedResourcesCreateManagedResourceResultV2;
28
+ export declare function ManagedResourcesCreateManagedResourceResultV2FromJSON(json: any): ManagedResourcesCreateManagedResourceResultV2;
29
+ export declare function ManagedResourcesCreateManagedResourceResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedResourcesCreateManagedResourceResultV2;
30
+ export declare function ManagedResourcesCreateManagedResourceResultV2ToJSON(json: any): ManagedResourcesCreateManagedResourceResultV2;
31
+ export declare function ManagedResourcesCreateManagedResourceResultV2ToJSONTyped(value?: ManagedResourcesCreateManagedResourceResultV2 | 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 { ManagedResourceV2FromJSON, ManagedResourceV2ToJSON, } from './ManagedResourceV2.js';
15
+ /**
16
+ * Check if a given object implements the ManagedResourcesCreateManagedResourceResultV2 interface.
17
+ */
18
+ export function instanceOfManagedResourcesCreateManagedResourceResultV2(value) {
19
+ if (!('managed_resource' in value) || value['managed_resource'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ManagedResourcesCreateManagedResourceResultV2FromJSON(json) {
24
+ return ManagedResourcesCreateManagedResourceResultV2FromJSONTyped(json, false);
25
+ }
26
+ export function ManagedResourcesCreateManagedResourceResultV2FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'managed_resource': ManagedResourceV2FromJSON(json['managed_resource']),
32
+ };
33
+ }
34
+ export function ManagedResourcesCreateManagedResourceResultV2ToJSON(json) {
35
+ return ManagedResourcesCreateManagedResourceResultV2ToJSONTyped(json, false);
36
+ }
37
+ export function ManagedResourcesCreateManagedResourceResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'managed_resource': ManagedResourceV2ToJSON(value['managed_resource']),
43
+ };
44
+ }
@@ -868,6 +868,7 @@ export * from './IncidentUpdatesListResultV2.js';
868
868
  export * from './IncidentV1.js';
869
869
  export * from './IncidentV2.js';
870
870
  export * from './IncidentWithStatusChangeV2.js';
871
+ export * from './IncidentsConnectExternalIssuePayloadV2.js';
871
872
  export * from './IncidentsCreatePayloadV1.js';
872
873
  export * from './IncidentsCreatePayloadV2.js';
873
874
  export * from './IncidentsCreateResultV1.js';
@@ -892,6 +893,9 @@ export * from './MaintenanceWindowsListResultV1.js';
892
893
  export * from './MaintenanceWindowsShowResultV1.js';
893
894
  export * from './MaintenanceWindowsUpdatePayloadV1.js';
894
895
  export * from './MaintenanceWindowsUpdateResultV1.js';
896
+ export * from './ManagedResourceV2.js';
897
+ export * from './ManagedResourcesCreateManagedResourcePayloadV2.js';
898
+ export * from './ManagedResourcesCreateManagedResourceResultV2.js';
895
899
  export * from './ManagementMetaV2.js';
896
900
  export * from './NewSlackUserGroupPayloadV2.js';
897
901
  export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
@@ -870,6 +870,7 @@ export * from './IncidentUpdatesListResultV2.js';
870
870
  export * from './IncidentV1.js';
871
871
  export * from './IncidentV2.js';
872
872
  export * from './IncidentWithStatusChangeV2.js';
873
+ export * from './IncidentsConnectExternalIssuePayloadV2.js';
873
874
  export * from './IncidentsCreatePayloadV1.js';
874
875
  export * from './IncidentsCreatePayloadV2.js';
875
876
  export * from './IncidentsCreateResultV1.js';
@@ -894,6 +895,9 @@ export * from './MaintenanceWindowsListResultV1.js';
894
895
  export * from './MaintenanceWindowsShowResultV1.js';
895
896
  export * from './MaintenanceWindowsUpdatePayloadV1.js';
896
897
  export * from './MaintenanceWindowsUpdateResultV1.js';
898
+ export * from './ManagedResourceV2.js';
899
+ export * from './ManagedResourcesCreateManagedResourcePayloadV2.js';
900
+ export * from './ManagedResourcesCreateManagedResourceResultV2.js';
897
901
  export * from './ManagementMetaV2.js';
898
902
  export * from './NewSlackUserGroupPayloadV2.js';
899
903
  export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.21.0";
1
+ export declare const VERSION = "2.23.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.21.0";
2
+ export const VERSION = "2.23.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",