sandbox0 0.7.4 → 0.7.6

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 (108) hide show
  1. package/dist/apispec/src/apis/AuditApi.d.ts +40 -0
  2. package/dist/apispec/src/apis/AuditApi.d.ts.map +1 -0
  3. package/dist/apispec/src/apis/AuditApi.js +79 -0
  4. package/dist/apispec/src/apis/ContextsApi.d.ts +1 -13
  5. package/dist/apispec/src/apis/ContextsApi.d.ts.map +1 -1
  6. package/dist/apispec/src/apis/ContextsApi.js +1 -38
  7. package/dist/apispec/src/apis/ObservabilityApi.d.ts +81 -0
  8. package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -0
  9. package/dist/apispec/src/apis/ObservabilityApi.js +194 -0
  10. package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +2 -2
  11. package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
  12. package/dist/apispec/src/apis/SandboxRootfsApi.js +2 -2
  13. package/dist/apispec/src/apis/SandboxesApi.d.ts +0 -20
  14. package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
  15. package/dist/apispec/src/apis/SandboxesApi.js +0 -61
  16. package/dist/apispec/src/apis/index.d.ts +2 -0
  17. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  18. package/dist/apispec/src/apis/index.js +2 -0
  19. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +14 -0
  20. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
  21. package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +6 -0
  22. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts +84 -0
  23. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts.map +1 -0
  24. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.js +65 -0
  25. package/dist/apispec/src/models/ForkSandboxConfig.d.ts +39 -0
  26. package/dist/apispec/src/models/ForkSandboxConfig.d.ts.map +1 -0
  27. package/dist/apispec/src/models/ForkSandboxConfig.js +43 -0
  28. package/dist/apispec/src/models/ForkSandboxRequest.d.ts +35 -0
  29. package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -0
  30. package/dist/apispec/src/models/ForkSandboxRequest.js +42 -0
  31. package/dist/apispec/src/models/ObservabilityEventSource.d.ts +27 -0
  32. package/dist/apispec/src/models/ObservabilityEventSource.d.ts.map +1 -0
  33. package/dist/apispec/src/models/ObservabilityEventSource.js +44 -0
  34. package/dist/apispec/src/models/SandboxObservabilityEvent.d.ts +104 -0
  35. package/dist/apispec/src/models/SandboxObservabilityEvent.d.ts.map +1 -0
  36. package/dist/apispec/src/models/SandboxObservabilityEvent.js +86 -0
  37. package/dist/apispec/src/models/SandboxObservabilityEventType.d.ts +27 -0
  38. package/dist/apispec/src/models/SandboxObservabilityEventType.d.ts.map +1 -0
  39. package/dist/apispec/src/models/SandboxObservabilityEventType.js +44 -0
  40. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.d.ts +46 -0
  41. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.d.ts.map +1 -0
  42. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.js +48 -0
  43. package/dist/apispec/src/models/SandboxObservabilityLogEntry.d.ts +102 -0
  44. package/dist/apispec/src/models/SandboxObservabilityLogEntry.d.ts.map +1 -0
  45. package/dist/apispec/src/models/SandboxObservabilityLogEntry.js +80 -0
  46. package/dist/apispec/src/models/SandboxObservabilityLogStream.d.ts +27 -0
  47. package/dist/apispec/src/models/SandboxObservabilityLogStream.d.ts.map +1 -0
  48. package/dist/apispec/src/models/SandboxObservabilityLogStream.js +44 -0
  49. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.d.ts +46 -0
  50. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.d.ts.map +1 -0
  51. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.js +48 -0
  52. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +101 -0
  53. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +1 -0
  54. package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +81 -0
  55. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +46 -0
  56. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +1 -0
  57. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +48 -0
  58. package/dist/apispec/src/models/SandboxObservabilityOutcome.d.ts +29 -0
  59. package/dist/apispec/src/models/SandboxObservabilityOutcome.d.ts.map +1 -0
  60. package/dist/apispec/src/models/SandboxObservabilityOutcome.js +46 -0
  61. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +76 -0
  62. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -0
  63. package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +65 -0
  64. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +25 -0
  65. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -0
  66. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +58 -0
  67. package/dist/apispec/src/models/SandboxVolume.d.ts +14 -0
  68. package/dist/apispec/src/models/SandboxVolume.d.ts.map +1 -1
  69. package/dist/apispec/src/models/SandboxVolume.js +8 -0
  70. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts +66 -0
  71. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts.map +1 -0
  72. package/dist/apispec/src/models/SandboxVolumeS3Config.js +61 -0
  73. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.d.ts +40 -0
  74. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.d.ts.map +1 -0
  75. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.js +46 -0
  76. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.d.ts +40 -0
  77. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.d.ts.map +1 -0
  78. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.js +46 -0
  79. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +40 -0
  80. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +1 -0
  81. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +46 -0
  82. package/dist/apispec/src/models/VolumeBackend.d.ts +26 -0
  83. package/dist/apispec/src/models/VolumeBackend.d.ts.map +1 -0
  84. package/dist/apispec/src/models/VolumeBackend.js +43 -0
  85. package/dist/apispec/src/models/index.d.ts +20 -2
  86. package/dist/apispec/src/models/index.d.ts.map +1 -1
  87. package/dist/apispec/src/models/index.js +20 -2
  88. package/dist/client.d.ts +12 -3
  89. package/dist/client.d.ts.map +1 -1
  90. package/dist/client.js +132 -53
  91. package/dist/index.d.ts +1 -1
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/models.d.ts +38 -19
  95. package/dist/models.d.ts.map +1 -1
  96. package/dist/resources/sandboxes.d.ts +2 -2
  97. package/dist/resources/sandboxes.d.ts.map +1 -1
  98. package/dist/resources/sandboxes.js +1 -1
  99. package/dist/sandbox_contexts.d.ts +1 -2
  100. package/dist/sandbox_contexts.d.ts.map +1 -1
  101. package/dist/sandbox_contexts.js +0 -8
  102. package/dist/sandbox_observability.d.ts +14 -0
  103. package/dist/sandbox_observability.d.ts.map +1 -0
  104. package/dist/sandbox_observability.js +28 -0
  105. package/package.json +1 -1
  106. package/dist/sandbox_logs.d.ts +0 -8
  107. package/dist/sandbox_logs.d.ts.map +0 -1
  108. package/dist/sandbox_logs.js +0 -10
@@ -129,67 +129,6 @@ export class SandboxesApi extends runtime.BaseAPI {
129
129
  const response = await this.apiV1SandboxesIdGetRaw(requestParameters, initOverrides);
130
130
  return await response.value();
131
131
  }
132
- /**
133
- * Returns sandbox process output mirrored through the sandbox main container. Procd service logs are filtered out and remain available through Kubernetes pod logs. When `follow=false`, the response is a bounded text/plain snapshot. When `follow=true`, the response is a text/plain stream until the client disconnects. Kubernetes log selection parameters such as `tail_lines` and `limit_bytes` are applied before procd service log filtering.
134
- * Get sandbox process logs
135
- */
136
- async apiV1SandboxesIdLogsGetRaw(requestParameters, initOverrides) {
137
- if (requestParameters['id'] == null) {
138
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdLogsGet().');
139
- }
140
- const queryParameters = {};
141
- if (requestParameters['container'] != null) {
142
- queryParameters['container'] = requestParameters['container'];
143
- }
144
- if (requestParameters['tailLines'] != null) {
145
- queryParameters['tail_lines'] = requestParameters['tailLines'];
146
- }
147
- if (requestParameters['limitBytes'] != null) {
148
- queryParameters['limit_bytes'] = requestParameters['limitBytes'];
149
- }
150
- if (requestParameters['follow'] != null) {
151
- queryParameters['follow'] = requestParameters['follow'];
152
- }
153
- if (requestParameters['previous'] != null) {
154
- queryParameters['previous'] = requestParameters['previous'];
155
- }
156
- if (requestParameters['timestamps'] != null) {
157
- queryParameters['timestamps'] = requestParameters['timestamps'];
158
- }
159
- if (requestParameters['sinceSeconds'] != null) {
160
- queryParameters['since_seconds'] = requestParameters['sinceSeconds'];
161
- }
162
- const headerParameters = {};
163
- if (this.configuration && this.configuration.accessToken) {
164
- const token = this.configuration.accessToken;
165
- const tokenString = await token("bearerAuth", []);
166
- if (tokenString) {
167
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
168
- }
169
- }
170
- let urlPath = `/api/v1/sandboxes/{id}/logs`;
171
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
172
- const response = await this.request({
173
- path: urlPath,
174
- method: 'GET',
175
- headers: headerParameters,
176
- query: queryParameters,
177
- }, initOverrides);
178
- if (this.isJsonMime(response.headers.get('content-type'))) {
179
- return new runtime.JSONApiResponse(response);
180
- }
181
- else {
182
- return new runtime.TextApiResponse(response);
183
- }
184
- }
185
- /**
186
- * Returns sandbox process output mirrored through the sandbox main container. Procd service logs are filtered out and remain available through Kubernetes pod logs. When `follow=false`, the response is a bounded text/plain snapshot. When `follow=true`, the response is a text/plain stream until the client disconnects. Kubernetes log selection parameters such as `tail_lines` and `limit_bytes` are applied before procd service log filtering.
187
- * Get sandbox process logs
188
- */
189
- async apiV1SandboxesIdLogsGet(requestParameters, initOverrides) {
190
- const response = await this.apiV1SandboxesIdLogsGetRaw(requestParameters, initOverrides);
191
- return await response.value();
192
- }
193
132
  /**
194
133
  * Get sandbox network policy
195
134
  */
@@ -1,9 +1,11 @@
1
1
  export * from './ApiKeysApi.js';
2
+ export * from './AuditApi.js';
2
3
  export * from './AuthApi.js';
3
4
  export * from './ContextsApi.js';
4
5
  export * from './CredentialSourcesApi.js';
5
6
  export * from './FilesApi.js';
6
7
  export * from './HealthApi.js';
8
+ export * from './ObservabilityApi.js';
7
9
  export * from './QuotasApi.js';
8
10
  export * from './RegionsApi.js';
9
11
  export * from './RegistryApi.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
@@ -1,11 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiKeysApi.js';
4
+ export * from './AuditApi.js';
4
5
  export * from './AuthApi.js';
5
6
  export * from './ContextsApi.js';
6
7
  export * from './CredentialSourcesApi.js';
7
8
  export * from './FilesApi.js';
8
9
  export * from './HealthApi.js';
10
+ export * from './ObservabilityApi.js';
9
11
  export * from './QuotasApi.js';
10
12
  export * from './RegionsApi.js';
11
13
  export * from './RegistryApi.js';
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VolumeAccessMode } from './VolumeAccessMode.js';
13
+ import type { CreateSandboxVolumeS3Config } from './CreateSandboxVolumeS3Config.js';
14
+ import type { VolumeBackend } from './VolumeBackend.js';
13
15
  /**
14
16
  *
15
17
  * @export
@@ -22,6 +24,18 @@ export interface CreateSandboxVolumeRequest {
22
24
  * @memberof CreateSandboxVolumeRequest
23
25
  */
24
26
  snapshotId?: string;
27
+ /**
28
+ *
29
+ * @type {VolumeBackend}
30
+ * @memberof CreateSandboxVolumeRequest
31
+ */
32
+ backend?: VolumeBackend;
33
+ /**
34
+ *
35
+ * @type {CreateSandboxVolumeS3Config}
36
+ * @memberof CreateSandboxVolumeRequest
37
+ */
38
+ s3?: CreateSandboxVolumeS3Config;
25
39
  /**
26
40
  * Default POSIX UID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
27
41
  * @type {number}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAW3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1I"}
1
+ {"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAOjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,EAAE,CAAC,EAAE,2BAA2B,CAAC;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAa3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc1I"}
@@ -12,6 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { VolumeAccessModeFromJSON, VolumeAccessModeToJSON, } from './VolumeAccessMode.js';
15
+ import { CreateSandboxVolumeS3ConfigFromJSON, CreateSandboxVolumeS3ConfigToJSON, } from './CreateSandboxVolumeS3Config.js';
16
+ import { VolumeBackendFromJSON, VolumeBackendToJSON, } from './VolumeBackend.js';
15
17
  /**
16
18
  * Check if a given object implements the CreateSandboxVolumeRequest interface.
17
19
  */
@@ -27,6 +29,8 @@ export function CreateSandboxVolumeRequestFromJSONTyped(json, ignoreDiscriminato
27
29
  }
28
30
  return {
29
31
  'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
32
+ 'backend': json['backend'] == null ? undefined : VolumeBackendFromJSON(json['backend']),
33
+ 's3': json['s3'] == null ? undefined : CreateSandboxVolumeS3ConfigFromJSON(json['s3']),
30
34
  'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
31
35
  'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
32
36
  'accessMode': json['access_mode'] == null ? undefined : VolumeAccessModeFromJSON(json['access_mode']),
@@ -41,6 +45,8 @@ export function CreateSandboxVolumeRequestToJSONTyped(value, ignoreDiscriminator
41
45
  }
42
46
  return {
43
47
  'snapshot_id': value['snapshotId'],
48
+ 'backend': VolumeBackendToJSON(value['backend']),
49
+ 's3': CreateSandboxVolumeS3ConfigToJSON(value['s3']),
44
50
  'default_posix_uid': value['defaultPosixUid'],
45
51
  'default_posix_gid': value['defaultPosixGid'],
46
52
  'access_mode': VolumeAccessModeToJSON(value['accessMode']),
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 CreateSandboxVolumeS3Config
16
+ */
17
+ export interface CreateSandboxVolumeS3Config {
18
+ /**
19
+ * S3-compatible provider. ali is Aliyun OSS; r2 is Cloudflare R2.
20
+ * @type {string}
21
+ * @memberof CreateSandboxVolumeS3Config
22
+ */
23
+ provider?: CreateSandboxVolumeS3ConfigProviderEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateSandboxVolumeS3Config
28
+ */
29
+ bucket: string;
30
+ /**
31
+ * Optional object key prefix to expose as the volume root.
32
+ * @type {string}
33
+ * @memberof CreateSandboxVolumeS3Config
34
+ */
35
+ prefix?: string;
36
+ /**
37
+ * Optional region override. Defaults to the storage-proxy S3 region when omitted.
38
+ * @type {string}
39
+ * @memberof CreateSandboxVolumeS3Config
40
+ */
41
+ region?: string;
42
+ /**
43
+ * Optional endpoint override. Required for ali and r2.
44
+ * @type {string}
45
+ * @memberof CreateSandboxVolumeS3Config
46
+ */
47
+ endpointUrl?: string;
48
+ /**
49
+ * Optional access key override. Must be provided together with secret_key.
50
+ * @type {string}
51
+ * @memberof CreateSandboxVolumeS3Config
52
+ */
53
+ accessKey?: string;
54
+ /**
55
+ * Optional secret key override. Must be provided together with access_key.
56
+ * @type {string}
57
+ * @memberof CreateSandboxVolumeS3Config
58
+ */
59
+ secretKey?: string;
60
+ /**
61
+ * Optional temporary credential session token.
62
+ * @type {string}
63
+ * @memberof CreateSandboxVolumeS3Config
64
+ */
65
+ sessionToken?: string;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const CreateSandboxVolumeS3ConfigProviderEnum: {
71
+ readonly Aws: "aws";
72
+ readonly Ali: "ali";
73
+ readonly R2: "r2";
74
+ };
75
+ export type CreateSandboxVolumeS3ConfigProviderEnum = typeof CreateSandboxVolumeS3ConfigProviderEnum[keyof typeof CreateSandboxVolumeS3ConfigProviderEnum];
76
+ /**
77
+ * Check if a given object implements the CreateSandboxVolumeS3Config interface.
78
+ */
79
+ export declare function instanceOfCreateSandboxVolumeS3Config(value: object): value is CreateSandboxVolumeS3Config;
80
+ export declare function CreateSandboxVolumeS3ConfigFromJSON(json: any): CreateSandboxVolumeS3Config;
81
+ export declare function CreateSandboxVolumeS3ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSandboxVolumeS3Config;
82
+ export declare function CreateSandboxVolumeS3ConfigToJSON(json: any): CreateSandboxVolumeS3Config;
83
+ export declare function CreateSandboxVolumeS3ConfigToJSONTyped(value?: CreateSandboxVolumeS3Config | null, ignoreDiscriminator?: boolean): any;
84
+ //# sourceMappingURL=CreateSandboxVolumeS3Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSandboxVolumeS3Config.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeS3Config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,OAAO,uCAAuC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAG3J;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAe7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB5I"}
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 CreateSandboxVolumeS3ConfigProviderEnum = {
18
+ Aws: 'aws',
19
+ Ali: 'ali',
20
+ R2: 'r2'
21
+ };
22
+ /**
23
+ * Check if a given object implements the CreateSandboxVolumeS3Config interface.
24
+ */
25
+ export function instanceOfCreateSandboxVolumeS3Config(value) {
26
+ if (!('bucket' in value) || value['bucket'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function CreateSandboxVolumeS3ConfigFromJSON(json) {
31
+ return CreateSandboxVolumeS3ConfigFromJSONTyped(json, false);
32
+ }
33
+ export function CreateSandboxVolumeS3ConfigFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'provider': json['provider'] == null ? undefined : json['provider'],
39
+ 'bucket': json['bucket'],
40
+ 'prefix': json['prefix'] == null ? undefined : json['prefix'],
41
+ 'region': json['region'] == null ? undefined : json['region'],
42
+ 'endpointUrl': json['endpoint_url'] == null ? undefined : json['endpoint_url'],
43
+ 'accessKey': json['access_key'] == null ? undefined : json['access_key'],
44
+ 'secretKey': json['secret_key'] == null ? undefined : json['secret_key'],
45
+ 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
46
+ };
47
+ }
48
+ export function CreateSandboxVolumeS3ConfigToJSON(json) {
49
+ return CreateSandboxVolumeS3ConfigToJSONTyped(json, false);
50
+ }
51
+ export function CreateSandboxVolumeS3ConfigToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'provider': value['provider'],
57
+ 'bucket': value['bucket'],
58
+ 'prefix': value['prefix'],
59
+ 'region': value['region'],
60
+ 'endpoint_url': value['endpointUrl'],
61
+ 'access_key': value['accessKey'],
62
+ 'secret_key': value['secretKey'],
63
+ 'session_token': value['sessionToken'],
64
+ };
65
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 ForkSandboxConfig
16
+ */
17
+ export interface ForkSandboxConfig {
18
+ /**
19
+ * Runtime soft time-to-live in seconds for the forked sandbox. Omit to inherit the source setting. Set 0 to disable soft expiration.
20
+ * @type {number}
21
+ * @memberof ForkSandboxConfig
22
+ */
23
+ ttl?: number;
24
+ /**
25
+ * Sandbox hard time-to-live in seconds for the forked sandbox. Omit to inherit the source setting. Set 0 to disable hard expiration.
26
+ * @type {number}
27
+ * @memberof ForkSandboxConfig
28
+ */
29
+ hardTtl?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ForkSandboxConfig interface.
33
+ */
34
+ export declare function instanceOfForkSandboxConfig(value: object): value is ForkSandboxConfig;
35
+ export declare function ForkSandboxConfigFromJSON(json: any): ForkSandboxConfig;
36
+ export declare function ForkSandboxConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForkSandboxConfig;
37
+ export declare function ForkSandboxConfigToJSON(json: any): ForkSandboxConfig;
38
+ export declare function ForkSandboxConfigToJSONTyped(value?: ForkSandboxConfig | null, ignoreDiscriminator?: boolean): any;
39
+ //# sourceMappingURL=ForkSandboxConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForkSandboxConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"}
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 ForkSandboxConfig interface.
16
+ */
17
+ export function instanceOfForkSandboxConfig(value) {
18
+ return true;
19
+ }
20
+ export function ForkSandboxConfigFromJSON(json) {
21
+ return ForkSandboxConfigFromJSONTyped(json, false);
22
+ }
23
+ export function ForkSandboxConfigFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'ttl': json['ttl'] == null ? undefined : json['ttl'],
29
+ 'hardTtl': json['hard_ttl'] == null ? undefined : json['hard_ttl'],
30
+ };
31
+ }
32
+ export function ForkSandboxConfigToJSON(json) {
33
+ return ForkSandboxConfigToJSONTyped(json, false);
34
+ }
35
+ export function ForkSandboxConfigToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'ttl': value['ttl'],
41
+ 'hard_ttl': value['hardTtl'],
42
+ };
43
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { ForkSandboxConfig } from './ForkSandboxConfig.js';
13
+ /**
14
+ * Optional fork overrides. Omit config to inherit the source sandbox configuration.
15
+ *
16
+ * @export
17
+ * @interface ForkSandboxRequest
18
+ */
19
+ export interface ForkSandboxRequest {
20
+ /**
21
+ *
22
+ * @type {ForkSandboxConfig}
23
+ * @memberof ForkSandboxRequest
24
+ */
25
+ config?: ForkSandboxConfig;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ForkSandboxRequest interface.
29
+ */
30
+ export declare function instanceOfForkSandboxRequest(value: object): value is ForkSandboxRequest;
31
+ export declare function ForkSandboxRequestFromJSON(json: any): ForkSandboxRequest;
32
+ export declare function ForkSandboxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForkSandboxRequest;
33
+ export declare function ForkSandboxRequestToJSON(json: any): ForkSandboxRequest;
34
+ export declare function ForkSandboxRequestToJSONTyped(value?: ForkSandboxRequest | null, ignoreDiscriminator?: boolean): any;
35
+ //# sourceMappingURL=ForkSandboxRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForkSandboxRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"}
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 { ForkSandboxConfigFromJSON, ForkSandboxConfigToJSON, } from './ForkSandboxConfig.js';
15
+ /**
16
+ * Check if a given object implements the ForkSandboxRequest interface.
17
+ */
18
+ export function instanceOfForkSandboxRequest(value) {
19
+ return true;
20
+ }
21
+ export function ForkSandboxRequestFromJSON(json) {
22
+ return ForkSandboxRequestFromJSONTyped(json, false);
23
+ }
24
+ export function ForkSandboxRequestFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'config': json['config'] == null ? undefined : ForkSandboxConfigFromJSON(json['config']),
30
+ };
31
+ }
32
+ export function ForkSandboxRequestToJSON(json) {
33
+ return ForkSandboxRequestToJSONTyped(json, false);
34
+ }
35
+ export function ForkSandboxRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'config': ForkSandboxConfigToJSON(value['config']),
41
+ };
42
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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
+ */
16
+ export declare const ObservabilityEventSource: {
17
+ readonly Manager: "manager";
18
+ readonly Netd: "netd";
19
+ readonly Procd: "procd";
20
+ };
21
+ export type ObservabilityEventSource = typeof ObservabilityEventSource[keyof typeof ObservabilityEventSource];
22
+ export declare function instanceOfObservabilityEventSource(value: any): boolean;
23
+ export declare function ObservabilityEventSourceFromJSON(json: any): ObservabilityEventSource;
24
+ export declare function ObservabilityEventSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObservabilityEventSource;
25
+ export declare function ObservabilityEventSourceToJSON(value?: ObservabilityEventSource | null): any;
26
+ export declare function ObservabilityEventSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): ObservabilityEventSource;
27
+ //# sourceMappingURL=ObservabilityEventSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObservabilityEventSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ObservabilityEventSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAStE;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEvH;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,GAAG,GAAG,CAE3F;AAED,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEtH"}
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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
+ *
16
+ * @export
17
+ */
18
+ export const ObservabilityEventSource = {
19
+ Manager: 'manager',
20
+ Netd: 'netd',
21
+ Procd: 'procd'
22
+ };
23
+ export function instanceOfObservabilityEventSource(value) {
24
+ for (const key in ObservabilityEventSource) {
25
+ if (Object.prototype.hasOwnProperty.call(ObservabilityEventSource, key)) {
26
+ if (ObservabilityEventSource[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function ObservabilityEventSourceFromJSON(json) {
34
+ return ObservabilityEventSourceFromJSONTyped(json, false);
35
+ }
36
+ export function ObservabilityEventSourceFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function ObservabilityEventSourceToJSON(value) {
40
+ return value;
41
+ }
42
+ export function ObservabilityEventSourceToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }