sandbox0 0.7.4 → 0.7.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.
Files changed (93) 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/ForkSandboxConfig.d.ts +39 -0
  20. package/dist/apispec/src/models/ForkSandboxConfig.d.ts.map +1 -0
  21. package/dist/apispec/src/models/ForkSandboxConfig.js +43 -0
  22. package/dist/apispec/src/models/ForkSandboxRequest.d.ts +35 -0
  23. package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -0
  24. package/dist/apispec/src/models/ForkSandboxRequest.js +42 -0
  25. package/dist/apispec/src/models/ObservabilityEventSource.d.ts +27 -0
  26. package/dist/apispec/src/models/ObservabilityEventSource.d.ts.map +1 -0
  27. package/dist/apispec/src/models/ObservabilityEventSource.js +44 -0
  28. package/dist/apispec/src/models/SandboxObservabilityEvent.d.ts +104 -0
  29. package/dist/apispec/src/models/SandboxObservabilityEvent.d.ts.map +1 -0
  30. package/dist/apispec/src/models/SandboxObservabilityEvent.js +86 -0
  31. package/dist/apispec/src/models/SandboxObservabilityEventType.d.ts +27 -0
  32. package/dist/apispec/src/models/SandboxObservabilityEventType.d.ts.map +1 -0
  33. package/dist/apispec/src/models/SandboxObservabilityEventType.js +44 -0
  34. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.d.ts +46 -0
  35. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.d.ts.map +1 -0
  36. package/dist/apispec/src/models/SandboxObservabilityEventsResponse.js +48 -0
  37. package/dist/apispec/src/models/SandboxObservabilityLogEntry.d.ts +102 -0
  38. package/dist/apispec/src/models/SandboxObservabilityLogEntry.d.ts.map +1 -0
  39. package/dist/apispec/src/models/SandboxObservabilityLogEntry.js +80 -0
  40. package/dist/apispec/src/models/SandboxObservabilityLogStream.d.ts +27 -0
  41. package/dist/apispec/src/models/SandboxObservabilityLogStream.d.ts.map +1 -0
  42. package/dist/apispec/src/models/SandboxObservabilityLogStream.js +44 -0
  43. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.d.ts +46 -0
  44. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.d.ts.map +1 -0
  45. package/dist/apispec/src/models/SandboxObservabilityLogsResponse.js +48 -0
  46. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +101 -0
  47. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +1 -0
  48. package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +81 -0
  49. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +46 -0
  50. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +1 -0
  51. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +48 -0
  52. package/dist/apispec/src/models/SandboxObservabilityOutcome.d.ts +29 -0
  53. package/dist/apispec/src/models/SandboxObservabilityOutcome.d.ts.map +1 -0
  54. package/dist/apispec/src/models/SandboxObservabilityOutcome.js +46 -0
  55. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +76 -0
  56. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -0
  57. package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +65 -0
  58. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +25 -0
  59. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -0
  60. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +58 -0
  61. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.d.ts +40 -0
  62. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.d.ts.map +1 -0
  63. package/dist/apispec/src/models/SuccessSandboxObservabilityEventsResponse.js +46 -0
  64. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.d.ts +40 -0
  65. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.d.ts.map +1 -0
  66. package/dist/apispec/src/models/SuccessSandboxObservabilityLogsResponse.js +46 -0
  67. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +40 -0
  68. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +1 -0
  69. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +46 -0
  70. package/dist/apispec/src/models/index.d.ts +17 -2
  71. package/dist/apispec/src/models/index.d.ts.map +1 -1
  72. package/dist/apispec/src/models/index.js +17 -2
  73. package/dist/client.d.ts +12 -3
  74. package/dist/client.d.ts.map +1 -1
  75. package/dist/client.js +132 -53
  76. package/dist/index.d.ts +1 -1
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/models.d.ts +38 -19
  80. package/dist/models.d.ts.map +1 -1
  81. package/dist/resources/sandboxes.d.ts +2 -2
  82. package/dist/resources/sandboxes.d.ts.map +1 -1
  83. package/dist/resources/sandboxes.js +1 -1
  84. package/dist/sandbox_contexts.d.ts +1 -2
  85. package/dist/sandbox_contexts.d.ts.map +1 -1
  86. package/dist/sandbox_contexts.js +0 -8
  87. package/dist/sandbox_observability.d.ts +14 -0
  88. package/dist/sandbox_observability.d.ts.map +1 -0
  89. package/dist/sandbox_observability.js +28 -0
  90. package/package.json +1 -1
  91. package/dist/sandbox_logs.d.ts +0 -8
  92. package/dist/sandbox_logs.d.ts.map +0 -1
  93. 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';
@@ -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
+ }
@@ -0,0 +1,104 @@
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 { ObservabilityEventSource } from './ObservabilityEventSource.js';
13
+ import type { SandboxObservabilityEventType } from './SandboxObservabilityEventType.js';
14
+ import type { SandboxObservabilityOutcome } from './SandboxObservabilityOutcome.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SandboxObservabilityEvent
19
+ */
20
+ export interface SandboxObservabilityEvent {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof SandboxObservabilityEvent
25
+ */
26
+ teamId: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof SandboxObservabilityEvent
31
+ */
32
+ sandboxId: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof SandboxObservabilityEvent
37
+ */
38
+ regionId: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof SandboxObservabilityEvent
43
+ */
44
+ clusterId: string;
45
+ /**
46
+ *
47
+ * @type {Date}
48
+ * @memberof SandboxObservabilityEvent
49
+ */
50
+ occurredAt: Date;
51
+ /**
52
+ *
53
+ * @type {Date}
54
+ * @memberof SandboxObservabilityEvent
55
+ */
56
+ ingestedAt: Date;
57
+ /**
58
+ *
59
+ * @type {ObservabilityEventSource}
60
+ * @memberof SandboxObservabilityEvent
61
+ */
62
+ source: ObservabilityEventSource;
63
+ /**
64
+ *
65
+ * @type {SandboxObservabilityEventType}
66
+ * @memberof SandboxObservabilityEvent
67
+ */
68
+ eventType: SandboxObservabilityEventType;
69
+ /**
70
+ *
71
+ * @type {SandboxObservabilityOutcome}
72
+ * @memberof SandboxObservabilityEvent
73
+ */
74
+ outcome?: SandboxObservabilityOutcome;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof SandboxObservabilityEvent
79
+ */
80
+ cursor: string;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof SandboxObservabilityEvent
85
+ */
86
+ watermark: string;
87
+ /**
88
+ *
89
+ * @type {{ [key: string]: any; }}
90
+ * @memberof SandboxObservabilityEvent
91
+ */
92
+ attributes?: {
93
+ [key: string]: any;
94
+ };
95
+ }
96
+ /**
97
+ * Check if a given object implements the SandboxObservabilityEvent interface.
98
+ */
99
+ export declare function instanceOfSandboxObservabilityEvent(value: object): value is SandboxObservabilityEvent;
100
+ export declare function SandboxObservabilityEventFromJSON(json: any): SandboxObservabilityEvent;
101
+ export declare function SandboxObservabilityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxObservabilityEvent;
102
+ export declare function SandboxObservabilityEventToJSON(json: any): SandboxObservabilityEvent;
103
+ export declare function SandboxObservabilityEventToJSONTyped(value?: SandboxObservabilityEvent | null, ignoreDiscriminator?: boolean): any;
104
+ //# sourceMappingURL=SandboxObservabilityEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxObservabilityEvent.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAOrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAQjF;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,SAAS,EAAE,6BAA6B,CAAC;IACzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;CACxC;AAID;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAYrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAmBzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBxI"}
@@ -0,0 +1,86 @@
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 { ObservabilityEventSourceFromJSON, ObservabilityEventSourceToJSON, } from './ObservabilityEventSource.js';
15
+ import { SandboxObservabilityEventTypeFromJSON, SandboxObservabilityEventTypeToJSON, } from './SandboxObservabilityEventType.js';
16
+ import { SandboxObservabilityOutcomeFromJSON, SandboxObservabilityOutcomeToJSON, } from './SandboxObservabilityOutcome.js';
17
+ /**
18
+ * Check if a given object implements the SandboxObservabilityEvent interface.
19
+ */
20
+ export function instanceOfSandboxObservabilityEvent(value) {
21
+ if (!('teamId' in value) || value['teamId'] === undefined)
22
+ return false;
23
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
24
+ return false;
25
+ if (!('regionId' in value) || value['regionId'] === undefined)
26
+ return false;
27
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
28
+ return false;
29
+ if (!('occurredAt' in value) || value['occurredAt'] === undefined)
30
+ return false;
31
+ if (!('ingestedAt' in value) || value['ingestedAt'] === undefined)
32
+ return false;
33
+ if (!('source' in value) || value['source'] === undefined)
34
+ return false;
35
+ if (!('eventType' in value) || value['eventType'] === undefined)
36
+ return false;
37
+ if (!('cursor' in value) || value['cursor'] === undefined)
38
+ return false;
39
+ if (!('watermark' in value) || value['watermark'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function SandboxObservabilityEventFromJSON(json) {
44
+ return SandboxObservabilityEventFromJSONTyped(json, false);
45
+ }
46
+ export function SandboxObservabilityEventFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'teamId': json['team_id'],
52
+ 'sandboxId': json['sandbox_id'],
53
+ 'regionId': json['region_id'],
54
+ 'clusterId': json['cluster_id'],
55
+ 'occurredAt': (new Date(json['occurred_at'])),
56
+ 'ingestedAt': (new Date(json['ingested_at'])),
57
+ 'source': ObservabilityEventSourceFromJSON(json['source']),
58
+ 'eventType': SandboxObservabilityEventTypeFromJSON(json['event_type']),
59
+ 'outcome': json['outcome'] == null ? undefined : SandboxObservabilityOutcomeFromJSON(json['outcome']),
60
+ 'cursor': json['cursor'],
61
+ 'watermark': json['watermark'],
62
+ 'attributes': json['attributes'] == null ? undefined : json['attributes'],
63
+ };
64
+ }
65
+ export function SandboxObservabilityEventToJSON(json) {
66
+ return SandboxObservabilityEventToJSONTyped(json, false);
67
+ }
68
+ export function SandboxObservabilityEventToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'team_id': value['teamId'],
74
+ 'sandbox_id': value['sandboxId'],
75
+ 'region_id': value['regionId'],
76
+ 'cluster_id': value['clusterId'],
77
+ 'occurred_at': value['occurredAt'].toISOString(),
78
+ 'ingested_at': value['ingestedAt'].toISOString(),
79
+ 'source': ObservabilityEventSourceToJSON(value['source']),
80
+ 'event_type': SandboxObservabilityEventTypeToJSON(value['eventType']),
81
+ 'outcome': SandboxObservabilityOutcomeToJSON(value['outcome']),
82
+ 'cursor': value['cursor'],
83
+ 'watermark': value['watermark'],
84
+ 'attributes': value['attributes'],
85
+ };
86
+ }
@@ -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 SandboxObservabilityEventType: {
17
+ readonly Lifecycle: "lifecycle";
18
+ readonly NetworkAudit: "network_audit";
19
+ readonly RuntimeStats: "runtime_stats";
20
+ };
21
+ export type SandboxObservabilityEventType = typeof SandboxObservabilityEventType[keyof typeof SandboxObservabilityEventType];
22
+ export declare function instanceOfSandboxObservabilityEventType(value: any): boolean;
23
+ export declare function SandboxObservabilityEventTypeFromJSON(json: any): SandboxObservabilityEventType;
24
+ export declare function SandboxObservabilityEventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxObservabilityEventType;
25
+ export declare function SandboxObservabilityEventTypeToJSON(value?: SandboxObservabilityEventType | null): any;
26
+ export declare function SandboxObservabilityEventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SandboxObservabilityEventType;
27
+ //# sourceMappingURL=SandboxObservabilityEventType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxObservabilityEventType.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityEventType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS3E;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAEjI;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,GAAG,CAErG;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAEhI"}
@@ -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 SandboxObservabilityEventType = {
19
+ Lifecycle: 'lifecycle',
20
+ NetworkAudit: 'network_audit',
21
+ RuntimeStats: 'runtime_stats'
22
+ };
23
+ export function instanceOfSandboxObservabilityEventType(value) {
24
+ for (const key in SandboxObservabilityEventType) {
25
+ if (Object.prototype.hasOwnProperty.call(SandboxObservabilityEventType, key)) {
26
+ if (SandboxObservabilityEventType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SandboxObservabilityEventTypeFromJSON(json) {
34
+ return SandboxObservabilityEventTypeFromJSONTyped(json, false);
35
+ }
36
+ export function SandboxObservabilityEventTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SandboxObservabilityEventTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SandboxObservabilityEventTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }