@onkernel/sdk 0.6.3 → 0.6.4
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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/apps/apps.d.mts +11 -6
- package/resources/apps/apps.d.mts.map +1 -1
- package/resources/apps/apps.d.ts +11 -6
- package/resources/apps/apps.d.ts.map +1 -1
- package/resources/apps/apps.js.map +1 -1
- package/resources/apps/apps.mjs.map +1 -1
- package/resources/apps/deployments.d.mts +1 -9
- package/resources/apps/deployments.d.mts.map +1 -1
- package/resources/apps/deployments.d.ts +1 -9
- package/resources/apps/deployments.d.ts.map +1 -1
- package/resources/deployments.d.mts +59 -13
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +59 -13
- package/resources/deployments.d.ts.map +1 -1
- package/resources/deployments.js +11 -0
- package/resources/deployments.js.map +1 -1
- package/resources/deployments.mjs +11 -0
- package/resources/deployments.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +9 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +9 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +5 -0
- package/src/internal/types.ts +9 -6
- package/src/resources/apps/apps.ts +11 -5
- package/src/resources/apps/deployments.ts +1 -10
- package/src/resources/deployments.ts +74 -13
- package/src/resources/index.ts +2 -0
- package/src/resources/shared.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -38,6 +38,21 @@ export class Deployments extends APIResource {
|
|
|
38
38
|
return this._client.get(path`/deployments/${id}`, options);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* List deployments. Optionally filter by application name.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const deployments = await client.deployments.list();
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
list(
|
|
50
|
+
query: DeploymentListParams | null | undefined = {},
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<DeploymentListResponse> {
|
|
53
|
+
return this._client.get('/deployments', { query, ...options });
|
|
54
|
+
}
|
|
55
|
+
|
|
41
56
|
/**
|
|
42
57
|
* Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
|
|
43
58
|
* status updates for a deployment. The stream terminates automatically once the
|
|
@@ -219,6 +234,55 @@ export interface DeploymentRetrieveResponse {
|
|
|
219
234
|
updated_at?: string | null;
|
|
220
235
|
}
|
|
221
236
|
|
|
237
|
+
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
238
|
+
|
|
239
|
+
export namespace DeploymentListResponse {
|
|
240
|
+
/**
|
|
241
|
+
* Deployment record information.
|
|
242
|
+
*/
|
|
243
|
+
export interface DeploymentListResponseItem {
|
|
244
|
+
/**
|
|
245
|
+
* Unique identifier for the deployment
|
|
246
|
+
*/
|
|
247
|
+
id: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Timestamp when the deployment was created
|
|
251
|
+
*/
|
|
252
|
+
created_at: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Deployment region code
|
|
256
|
+
*/
|
|
257
|
+
region: 'aws.us-east-1a';
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Current status of the deployment
|
|
261
|
+
*/
|
|
262
|
+
status: 'queued' | 'in_progress' | 'running' | 'failed' | 'stopped';
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Relative path to the application entrypoint
|
|
266
|
+
*/
|
|
267
|
+
entrypoint_rel_path?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Environment variables configured for this deployment
|
|
271
|
+
*/
|
|
272
|
+
env_vars?: { [key: string]: string };
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Status reason
|
|
276
|
+
*/
|
|
277
|
+
status_reason?: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Timestamp when the deployment was last updated
|
|
281
|
+
*/
|
|
282
|
+
updated_at?: string | null;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
222
286
|
/**
|
|
223
287
|
* Union type representing any deployment event.
|
|
224
288
|
*/
|
|
@@ -242,7 +306,7 @@ export namespace DeploymentFollowResponse {
|
|
|
242
306
|
/**
|
|
243
307
|
* List of actions available on the app
|
|
244
308
|
*/
|
|
245
|
-
actions: Array<
|
|
309
|
+
actions: Array<Shared.AppAction>;
|
|
246
310
|
|
|
247
311
|
/**
|
|
248
312
|
* Name of the application
|
|
@@ -274,18 +338,6 @@ export namespace DeploymentFollowResponse {
|
|
|
274
338
|
*/
|
|
275
339
|
env_vars?: { [key: string]: string };
|
|
276
340
|
}
|
|
277
|
-
|
|
278
|
-
export namespace AppVersionSummaryEvent {
|
|
279
|
-
/**
|
|
280
|
-
* An action available on the app
|
|
281
|
-
*/
|
|
282
|
-
export interface Action {
|
|
283
|
-
/**
|
|
284
|
-
* Name of the action
|
|
285
|
-
*/
|
|
286
|
-
name: string;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
341
|
}
|
|
290
342
|
|
|
291
343
|
export interface DeploymentCreateParams {
|
|
@@ -321,6 +373,13 @@ export interface DeploymentCreateParams {
|
|
|
321
373
|
version?: string;
|
|
322
374
|
}
|
|
323
375
|
|
|
376
|
+
export interface DeploymentListParams {
|
|
377
|
+
/**
|
|
378
|
+
* Filter results by application name.
|
|
379
|
+
*/
|
|
380
|
+
app_name?: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
324
383
|
export interface DeploymentFollowParams {
|
|
325
384
|
/**
|
|
326
385
|
* Show logs since the given time (RFC timestamps or durations like 5m).
|
|
@@ -333,8 +392,10 @@ export declare namespace Deployments {
|
|
|
333
392
|
type DeploymentStateEvent as DeploymentStateEvent,
|
|
334
393
|
type DeploymentCreateResponse as DeploymentCreateResponse,
|
|
335
394
|
type DeploymentRetrieveResponse as DeploymentRetrieveResponse,
|
|
395
|
+
type DeploymentListResponse as DeploymentListResponse,
|
|
336
396
|
type DeploymentFollowResponse as DeploymentFollowResponse,
|
|
337
397
|
type DeploymentCreateParams as DeploymentCreateParams,
|
|
398
|
+
type DeploymentListParams as DeploymentListParams,
|
|
338
399
|
type DeploymentFollowParams as DeploymentFollowParams,
|
|
339
400
|
};
|
|
340
401
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -16,8 +16,10 @@ export {
|
|
|
16
16
|
type DeploymentStateEvent,
|
|
17
17
|
type DeploymentCreateResponse,
|
|
18
18
|
type DeploymentRetrieveResponse,
|
|
19
|
+
type DeploymentListResponse,
|
|
19
20
|
type DeploymentFollowResponse,
|
|
20
21
|
type DeploymentCreateParams,
|
|
22
|
+
type DeploymentListParams,
|
|
21
23
|
type DeploymentFollowParams,
|
|
22
24
|
} from './deployments';
|
|
23
25
|
export {
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* An action available on the app
|
|
5
|
+
*/
|
|
6
|
+
export interface AppAction {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the action
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
3
13
|
export interface ErrorDetail {
|
|
4
14
|
/**
|
|
5
15
|
* Lower-level error code providing more specific detail
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.6.
|
|
1
|
+
export const VERSION = '0.6.4'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.6.
|
|
1
|
+
export declare const VERSION = "0.6.4";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.6.
|
|
1
|
+
export declare const VERSION = "0.6.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.6.
|
|
1
|
+
export const VERSION = '0.6.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|