@boatdev/sdk 1.7.0 → 1.9.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 (91) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/dist/apis/BoatApi.d.ts +102 -4
  3. package/dist/apis/BoatApi.js +233 -4
  4. package/dist/esm/apis/BoatApi.d.ts +102 -4
  5. package/dist/esm/apis/BoatApi.js +233 -4
  6. package/dist/esm/http2-fetch.d.ts +1 -0
  7. package/dist/esm/http2-fetch.js +203 -0
  8. package/dist/esm/models/CreateSandboxRequest.d.ts +4 -3
  9. package/dist/esm/models/CreateSandboxRequest.js +2 -1
  10. package/dist/esm/models/ForkRequest.d.ts +2 -1
  11. package/dist/esm/models/ForkRequest.js +2 -1
  12. package/dist/esm/models/NamedSnapshotShare.d.ts +76 -0
  13. package/dist/esm/models/NamedSnapshotShare.js +74 -0
  14. package/dist/esm/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  15. package/dist/esm/models/NamedSnapshotShareCreatedResponse.js +66 -0
  16. package/dist/esm/models/NamedSnapshotShareListResponse.d.ts +58 -0
  17. package/dist/esm/models/NamedSnapshotShareListResponse.js +62 -0
  18. package/dist/esm/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  19. package/dist/esm/models/NamedSnapshotShareRevokedResponse.js +62 -0
  20. package/dist/esm/models/Recover200Response.d.ts +57 -0
  21. package/dist/esm/models/Recover200Response.js +53 -0
  22. package/dist/esm/models/ResumeRequest.d.ts +2 -1
  23. package/dist/esm/models/ResumeRequest.js +2 -1
  24. package/dist/esm/models/Sandbox.d.ts +2 -1
  25. package/dist/esm/models/Sandbox.js +2 -1
  26. package/dist/esm/models/SandboxUsageResponse.d.ts +2 -1
  27. package/dist/esm/models/SandboxUsageResponse.js +2 -1
  28. package/dist/esm/models/StopOperation.d.ts +1 -1
  29. package/dist/esm/models/StopOperationResponse.d.ts +58 -0
  30. package/dist/esm/models/StopOperationResponse.js +62 -0
  31. package/dist/esm/models/StopRequest.d.ts +1 -1
  32. package/dist/esm/models/UpdateSandboxRequest.d.ts +1 -1
  33. package/dist/esm/models/index.d.ts +6 -0
  34. package/dist/esm/models/index.js +6 -0
  35. package/dist/esm/runtime.js +2 -1
  36. package/dist/http2-fetch.d.ts +1 -0
  37. package/dist/http2-fetch.js +239 -0
  38. package/dist/models/CreateSandboxRequest.d.ts +4 -3
  39. package/dist/models/CreateSandboxRequest.js +2 -1
  40. package/dist/models/ForkRequest.d.ts +2 -1
  41. package/dist/models/ForkRequest.js +2 -1
  42. package/dist/models/NamedSnapshotShare.d.ts +76 -0
  43. package/dist/models/NamedSnapshotShare.js +82 -0
  44. package/dist/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
  45. package/dist/models/NamedSnapshotShareCreatedResponse.js +74 -0
  46. package/dist/models/NamedSnapshotShareListResponse.d.ts +58 -0
  47. package/dist/models/NamedSnapshotShareListResponse.js +70 -0
  48. package/dist/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
  49. package/dist/models/NamedSnapshotShareRevokedResponse.js +70 -0
  50. package/dist/models/Recover200Response.d.ts +57 -0
  51. package/dist/models/Recover200Response.js +61 -0
  52. package/dist/models/ResumeRequest.d.ts +2 -1
  53. package/dist/models/ResumeRequest.js +2 -1
  54. package/dist/models/Sandbox.d.ts +2 -1
  55. package/dist/models/Sandbox.js +2 -1
  56. package/dist/models/SandboxUsageResponse.d.ts +2 -1
  57. package/dist/models/SandboxUsageResponse.js +2 -1
  58. package/dist/models/StopOperation.d.ts +1 -1
  59. package/dist/models/StopOperationResponse.d.ts +58 -0
  60. package/dist/models/StopOperationResponse.js +70 -0
  61. package/dist/models/StopRequest.d.ts +1 -1
  62. package/dist/models/UpdateSandboxRequest.d.ts +1 -1
  63. package/dist/models/index.d.ts +6 -0
  64. package/dist/models/index.js +6 -0
  65. package/dist/runtime.js +9 -8
  66. package/docs/BoatApi.md +385 -2
  67. package/docs/NamedSnapshotShare.md +45 -0
  68. package/docs/NamedSnapshotShareCreatedResponse.md +40 -0
  69. package/docs/NamedSnapshotShareListResponse.md +38 -0
  70. package/docs/NamedSnapshotShareRevokedResponse.md +38 -0
  71. package/docs/Recover200Response.md +38 -0
  72. package/docs/StopOperationResponse.md +38 -0
  73. package/package.json +1 -1
  74. package/src/apis/BoatApi.ts +348 -4
  75. package/src/http2-fetch.ts +179 -0
  76. package/src/models/CreateSandboxRequest.ts +5 -4
  77. package/src/models/ForkRequest.ts +3 -2
  78. package/src/models/NamedSnapshotShare.ts +131 -0
  79. package/src/models/NamedSnapshotShareCreatedResponse.ts +120 -0
  80. package/src/models/NamedSnapshotShareListResponse.ts +111 -0
  81. package/src/models/NamedSnapshotShareRevokedResponse.ts +111 -0
  82. package/src/models/Recover200Response.ts +99 -0
  83. package/src/models/ResumeRequest.ts +3 -2
  84. package/src/models/Sandbox.ts +3 -2
  85. package/src/models/SandboxUsageResponse.ts +3 -2
  86. package/src/models/StopOperation.ts +1 -1
  87. package/src/models/StopOperationResponse.ts +111 -0
  88. package/src/models/StopRequest.ts +1 -1
  89. package/src/models/UpdateSandboxRequest.ts +1 -1
  90. package/src/models/index.ts +6 -0
  91. package/src/runtime.ts +2 -1
@@ -0,0 +1,111 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
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
+ import { mapValues } from '../runtime';
16
+ import type { NamedSnapshotShare } from './NamedSnapshotShare';
17
+ import {
18
+ NamedSnapshotShareFromJSON,
19
+ NamedSnapshotShareFromJSONTyped,
20
+ NamedSnapshotShareToJSON,
21
+ NamedSnapshotShareToJSONTyped,
22
+ } from './NamedSnapshotShare';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NamedSnapshotShareRevokedResponse
28
+ */
29
+ export interface NamedSnapshotShareRevokedResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof NamedSnapshotShareRevokedResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {NamedSnapshotShareRevokedResponseTypeEnum}
39
+ * @memberof NamedSnapshotShareRevokedResponse
40
+ */
41
+ type: NamedSnapshotShareRevokedResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof NamedSnapshotShareRevokedResponse
46
+ */
47
+ name: string;
48
+ /**
49
+ *
50
+ * @type {NamedSnapshotShare}
51
+ * @memberof NamedSnapshotShareRevokedResponse
52
+ */
53
+ share: NamedSnapshotShare;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const NamedSnapshotShareRevokedResponseTypeEnum = {
61
+ SnapshotShareRevoked: 'snapshot.share.revoked'
62
+ } as const;
63
+ export type NamedSnapshotShareRevokedResponseTypeEnum = typeof NamedSnapshotShareRevokedResponseTypeEnum[keyof typeof NamedSnapshotShareRevokedResponseTypeEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
68
+ */
69
+ export function instanceOfNamedSnapshotShareRevokedResponse(value: object): value is NamedSnapshotShareRevokedResponse {
70
+ if (!('ok' in value) || value['ok'] === undefined) return false;
71
+ if (!('type' in value) || value['type'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
73
+ if (!('share' in value) || value['share'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function NamedSnapshotShareRevokedResponseFromJSON(json: any): NamedSnapshotShareRevokedResponse {
78
+ return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function NamedSnapshotShareRevokedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareRevokedResponse {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'ok': json['ok'],
88
+ 'type': json['type'],
89
+ 'name': json['name'],
90
+ 'share': NamedSnapshotShareFromJSON(json['share']),
91
+ };
92
+ }
93
+
94
+ export function NamedSnapshotShareRevokedResponseToJSON(json: any): NamedSnapshotShareRevokedResponse {
95
+ return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function NamedSnapshotShareRevokedResponseToJSONTyped(value?: NamedSnapshotShareRevokedResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'ok': value['ok'],
106
+ 'type': value['type'],
107
+ 'name': value['name'],
108
+ 'share': NamedSnapshotShareToJSON(value['share']),
109
+ };
110
+ }
111
+
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Recover200Response
20
+ */
21
+ export interface Recover200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof Recover200Response
26
+ */
27
+ ok?: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Recover200Response
32
+ */
33
+ type?: string;
34
+ /**
35
+ *
36
+ * @type {Recover200ResponseStatusEnum}
37
+ * @memberof Recover200Response
38
+ */
39
+ status?: Recover200ResponseStatusEnum;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Recover200Response
44
+ */
45
+ message?: string;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const Recover200ResponseStatusEnum = {
53
+ Recovering: 'recovering'
54
+ } as const;
55
+ export type Recover200ResponseStatusEnum = typeof Recover200ResponseStatusEnum[keyof typeof Recover200ResponseStatusEnum];
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the Recover200Response interface.
60
+ */
61
+ export function instanceOfRecover200Response(value: object): value is Recover200Response {
62
+ return true;
63
+ }
64
+
65
+ export function Recover200ResponseFromJSON(json: any): Recover200Response {
66
+ return Recover200ResponseFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function Recover200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Recover200Response {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'ok': json['ok'] == null ? undefined : json['ok'],
76
+ 'type': json['type'] == null ? undefined : json['type'],
77
+ 'status': json['status'] == null ? undefined : json['status'],
78
+ 'message': json['message'] == null ? undefined : json['message'],
79
+ };
80
+ }
81
+
82
+ export function Recover200ResponseToJSON(json: any): Recover200Response {
83
+ return Recover200ResponseToJSONTyped(json, false);
84
+ }
85
+
86
+ export function Recover200ResponseToJSONTyped(value?: Recover200Response | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'ok': value['ok'],
94
+ 'type': value['type'],
95
+ 'status': value['status'],
96
+ 'message': value['message'],
97
+ };
98
+ }
99
+
@@ -26,7 +26,7 @@ export interface ResumeRequest {
26
26
  */
27
27
  failFast?: boolean;
28
28
  /**
29
- * Resume onto a different machine size. Omit to keep the sandbox's current type. A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
29
+ * Resume onto a different machine size. Omit to keep the sandbox's current type. `xlarge` needs the $100/month plan or higher (403 `machine_class_plan_required`). A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
30
30
  * @type {ResumeRequestTypeEnum}
31
31
  * @memberof ResumeRequest
32
32
  */
@@ -64,7 +64,8 @@ export interface ResumeRequest {
64
64
  export const ResumeRequestTypeEnum = {
65
65
  Small: 'small',
66
66
  Default: 'default',
67
- Large: 'large'
67
+ Large: 'large',
68
+ Xlarge: 'xlarge'
68
69
  } as const;
69
70
  export type ResumeRequestTypeEnum = typeof ResumeRequestTypeEnum[keyof typeof ResumeRequestTypeEnum];
70
71
 
@@ -107,7 +107,7 @@ export interface Sandbox {
107
107
  */
108
108
  memoryGB?: number;
109
109
  /**
110
- * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and 2 for `large`.
110
+ * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
111
111
  * @type {number}
112
112
  * @memberof Sandbox
113
113
  */
@@ -310,7 +310,8 @@ export type SandboxHealthEnum = typeof SandboxHealthEnum[keyof typeof SandboxHea
310
310
  export const SandboxTypeEnum = {
311
311
  Small: 'small',
312
312
  Default: 'default',
313
- Large: 'large'
313
+ Large: 'large',
314
+ Xlarge: 'xlarge'
314
315
  } as const;
315
316
  export type SandboxTypeEnum = typeof SandboxTypeEnum[keyof typeof SandboxTypeEnum];
316
317
 
@@ -44,7 +44,7 @@ export interface SandboxUsageResponse {
44
44
  */
45
45
  sandboxType: SandboxUsageResponseSandboxTypeEnum;
46
46
  /**
47
- * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and 2 for `large`.
47
+ * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
48
48
  * @type {number}
49
49
  * @memberof SandboxUsageResponse
50
50
  */
@@ -94,7 +94,8 @@ export interface SandboxUsageResponse {
94
94
  export const SandboxUsageResponseSandboxTypeEnum = {
95
95
  Small: 'small',
96
96
  Default: 'default',
97
- Large: 'large'
97
+ Large: 'large',
98
+ Xlarge: 'xlarge'
98
99
  } as const;
99
100
  export type SandboxUsageResponseSandboxTypeEnum = typeof SandboxUsageResponseSandboxTypeEnum[keyof typeof SandboxUsageResponseSandboxTypeEnum];
100
101
 
@@ -32,7 +32,7 @@ export interface StopOperation {
32
32
  */
33
33
  status: StopOperationStatusEnum;
34
34
  /**
35
- * When the stop was accepted. Null once it has ended.
35
+ * When the stop was accepted. On the sandbox, null once it has ended. Read by id (`GET /sandboxes/{sandboxId}/stops/{stopId}`), it is kept.
36
36
  * @type {Date}
37
37
  * @memberof StopOperation
38
38
  */
@@ -0,0 +1,111 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
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
+ import { mapValues } from '../runtime';
16
+ import type { StopOperation } from './StopOperation';
17
+ import {
18
+ StopOperationFromJSON,
19
+ StopOperationFromJSONTyped,
20
+ StopOperationToJSON,
21
+ StopOperationToJSONTyped,
22
+ } from './StopOperation';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface StopOperationResponse
28
+ */
29
+ export interface StopOperationResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof StopOperationResponse
34
+ */
35
+ ok: boolean;
36
+ /**
37
+ *
38
+ * @type {StopOperationResponseTypeEnum}
39
+ * @memberof StopOperationResponse
40
+ */
41
+ type: StopOperationResponseTypeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof StopOperationResponse
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ * @type {StopOperation}
51
+ * @memberof StopOperationResponse
52
+ */
53
+ stop: StopOperation;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const StopOperationResponseTypeEnum = {
61
+ StopStatus: 'stop.status'
62
+ } as const;
63
+ export type StopOperationResponseTypeEnum = typeof StopOperationResponseTypeEnum[keyof typeof StopOperationResponseTypeEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the StopOperationResponse interface.
68
+ */
69
+ export function instanceOfStopOperationResponse(value: object): value is StopOperationResponse {
70
+ if (!('ok' in value) || value['ok'] === undefined) return false;
71
+ if (!('type' in value) || value['type'] === undefined) return false;
72
+ if (!('id' in value) || value['id'] === undefined) return false;
73
+ if (!('stop' in value) || value['stop'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function StopOperationResponseFromJSON(json: any): StopOperationResponse {
78
+ return StopOperationResponseFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function StopOperationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopOperationResponse {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'ok': json['ok'],
88
+ 'type': json['type'],
89
+ 'id': json['id'],
90
+ 'stop': StopOperationFromJSON(json['stop']),
91
+ };
92
+ }
93
+
94
+ export function StopOperationResponseToJSON(json: any): StopOperationResponse {
95
+ return StopOperationResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function StopOperationResponseToJSONTyped(value?: StopOperationResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'ok': value['ok'],
106
+ 'type': value['type'],
107
+ 'id': value['id'],
108
+ 'stop': StopOperationToJSON(value['stop']),
109
+ };
110
+ }
111
+
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface StopRequest {
22
22
  /**
23
- * Stop the sandbox even if its disk cannot be snapshotted. Everything written since the last successful snapshot is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused.
23
+ * Stop the sandbox even if its disk cannot be snapshotted. It keeps its last successful snapshot and everything written since then is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused.
24
24
  * @type {boolean}
25
25
  * @memberof StopRequest
26
26
  */
@@ -26,7 +26,7 @@ export interface UpdateSandboxRequest {
26
26
  */
27
27
  name?: string;
28
28
  /**
29
- * New archival TTL. `null` disables auto-stop.
29
+ * New auto-stop TTL. The deadline becomes now + `ttlSeconds`, so calling this again extends a running sandbox's life. `null` disables auto-stop.
30
30
  * @type {number}
31
31
  * @memberof UpdateSandboxRequest
32
32
  */
@@ -65,6 +65,10 @@ export * from './NamedSnapshotInfoResponse';
65
65
  export * from './NamedSnapshotListResponse';
66
66
  export * from './NamedSnapshotSaveRequest';
67
67
  export * from './NamedSnapshotSavingResponse';
68
+ export * from './NamedSnapshotShare';
69
+ export * from './NamedSnapshotShareCreatedResponse';
70
+ export * from './NamedSnapshotShareListResponse';
71
+ export * from './NamedSnapshotShareRevokedResponse';
68
72
  export * from './Org';
69
73
  export * from './OrgListResponse';
70
74
  export * from './PageInfo';
@@ -76,6 +80,7 @@ export * from './PromptRequest';
76
80
  export * from './PromptResponse';
77
81
  export * from './PromptRun';
78
82
  export * from './PromptRunResponse';
83
+ export * from './Recover200Response';
79
84
  export * from './RepoSelectionRequest';
80
85
  export * from './RepoSelectionResponse';
81
86
  export * from './ReposResponse';
@@ -119,6 +124,7 @@ export * from './SteerEventData';
119
124
  export * from './SteerRequest';
120
125
  export * from './SteerResponse';
121
126
  export * from './StopOperation';
127
+ export * from './StopOperationResponse';
122
128
  export * from './StopRequest';
123
129
  export * from './SuccessBase';
124
130
  export * from './UnknownEvent';
package/src/runtime.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { defaultFetch } from './http2-fetch';
1
2
  /* tslint:disable */
2
3
  /* eslint-disable */
3
4
  /**
@@ -202,7 +203,7 @@ export class BaseAPI {
202
203
  }
203
204
  let response: Response | undefined = undefined;
204
205
  try {
205
- response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
206
+ response = await (this.configuration.fetchApi || defaultFetch)(fetchParams.url, fetchParams.init);
206
207
  } catch (e) {
207
208
  for (const middleware of this.middleware) {
208
209
  if (middleware.onError) {