@boatdev/sdk 1.9.4 → 1.9.5

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.
@@ -0,0 +1,131 @@
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 FileUrlResponse
20
+ */
21
+ export interface FileUrlResponse {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof FileUrlResponse
26
+ */
27
+ ok: boolean;
28
+ /**
29
+ *
30
+ * @type {FileUrlResponseTypeEnum}
31
+ * @memberof FileUrlResponse
32
+ */
33
+ type: FileUrlResponseTypeEnum;
34
+ /**
35
+ * The signed URL. Send the request straight to it; it needs no Authorization header.
36
+ * @type {string}
37
+ * @memberof FileUrlResponse
38
+ */
39
+ url: string;
40
+ /**
41
+ * GET downloads the file. PUT uploads the request body as the file.
42
+ * @type {FileUrlResponseMethodEnum}
43
+ * @memberof FileUrlResponse
44
+ */
45
+ method: FileUrlResponseMethodEnum;
46
+ /**
47
+ * The canonical path the URL is bound to.
48
+ * @type {string}
49
+ * @memberof FileUrlResponse
50
+ */
51
+ path: string;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof FileUrlResponse
56
+ */
57
+ expiresAt: Date;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const FileUrlResponseTypeEnum = {
65
+ FileDownloadUrl: 'file.download_url',
66
+ FileUploadUrl: 'file.upload_url'
67
+ } as const;
68
+ export type FileUrlResponseTypeEnum = typeof FileUrlResponseTypeEnum[keyof typeof FileUrlResponseTypeEnum];
69
+
70
+ /**
71
+ * @export
72
+ */
73
+ export const FileUrlResponseMethodEnum = {
74
+ Get: 'GET',
75
+ Put: 'PUT'
76
+ } as const;
77
+ export type FileUrlResponseMethodEnum = typeof FileUrlResponseMethodEnum[keyof typeof FileUrlResponseMethodEnum];
78
+
79
+
80
+ /**
81
+ * Check if a given object implements the FileUrlResponse interface.
82
+ */
83
+ export function instanceOfFileUrlResponse(value: object): value is FileUrlResponse {
84
+ if (!('ok' in value) || value['ok'] === undefined) return false;
85
+ if (!('type' in value) || value['type'] === undefined) return false;
86
+ if (!('url' in value) || value['url'] === undefined) return false;
87
+ if (!('method' in value) || value['method'] === undefined) return false;
88
+ if (!('path' in value) || value['path'] === undefined) return false;
89
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function FileUrlResponseFromJSON(json: any): FileUrlResponse {
94
+ return FileUrlResponseFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function FileUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUrlResponse {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'ok': json['ok'],
104
+ 'type': json['type'],
105
+ 'url': json['url'],
106
+ 'method': json['method'],
107
+ 'path': json['path'],
108
+ 'expiresAt': (new Date(json['expiresAt'])),
109
+ };
110
+ }
111
+
112
+ export function FileUrlResponseToJSON(json: any): FileUrlResponse {
113
+ return FileUrlResponseToJSONTyped(json, false);
114
+ }
115
+
116
+ export function FileUrlResponseToJSONTyped(value?: FileUrlResponse | null, ignoreDiscriminator: boolean = false): any {
117
+ if (value == null) {
118
+ return value;
119
+ }
120
+
121
+ return {
122
+
123
+ 'ok': value['ok'],
124
+ 'type': value['type'],
125
+ 'url': value['url'],
126
+ 'method': value['method'],
127
+ 'path': value['path'],
128
+ 'expiresAt': value['expiresAt'].toISOString(),
129
+ };
130
+ }
131
+
@@ -91,6 +91,12 @@ export interface SnapshotSummary {
91
91
  * @memberof SnapshotSummary
92
92
  */
93
93
  contentFileCount?: number | null;
94
+ /**
95
+ * `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template, named snapshot or Sandbox it was created from. `captured` = this Sandbox has snapshots on: its own captures, plus the copies Boat makes when the Sandbox is created from a source, forked or resumed.
96
+ * @type {SnapshotSummaryOriginEnum}
97
+ * @memberof SnapshotSummary
98
+ */
99
+ origin?: SnapshotSummaryOriginEnum;
94
100
  }
95
101
 
96
102
 
@@ -111,6 +117,15 @@ export const SnapshotSummaryKindEnum = {
111
117
  } as const;
112
118
  export type SnapshotSummaryKindEnum = typeof SnapshotSummaryKindEnum[keyof typeof SnapshotSummaryKindEnum];
113
119
 
120
+ /**
121
+ * @export
122
+ */
123
+ export const SnapshotSummaryOriginEnum = {
124
+ Captured: 'captured',
125
+ Template: 'template'
126
+ } as const;
127
+ export type SnapshotSummaryOriginEnum = typeof SnapshotSummaryOriginEnum[keyof typeof SnapshotSummaryOriginEnum];
128
+
114
129
 
115
130
  /**
116
131
  * Check if a given object implements the SnapshotSummary interface.
@@ -148,6 +163,7 @@ export function SnapshotSummaryFromJSONTyped(json: any, ignoreDiscriminator: boo
148
163
  'fileCount': json['fileCount'],
149
164
  'contentSizeBytes': json['contentSizeBytes'] == null ? undefined : json['contentSizeBytes'],
150
165
  'contentFileCount': json['contentFileCount'] == null ? undefined : json['contentFileCount'],
166
+ 'origin': json['origin'] == null ? undefined : json['origin'],
151
167
  };
152
168
  }
153
169
 
@@ -174,6 +190,7 @@ export function SnapshotSummaryToJSONTyped(value?: SnapshotSummary | null, ignor
174
190
  'fileCount': value['fileCount'],
175
191
  'contentSizeBytes': value['contentSizeBytes'],
176
192
  'contentFileCount': value['contentFileCount'],
193
+ 'origin': value['origin'],
177
194
  };
178
195
  }
179
196
 
@@ -50,6 +50,8 @@ export * from './ErrorEnvelopeError';
50
50
  export * from './ErrorEvent';
51
51
  export * from './EventsResponse';
52
52
  export * from './FileReadResponse';
53
+ export * from './FileUrlRequest';
54
+ export * from './FileUrlResponse';
53
55
  export * from './FileWriteRequest';
54
56
  export * from './FileWriteResponse';
55
57
  export * from './ForkRequest';