@onkernel/sdk 0.11.0 → 0.11.1
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 +20 -0
- package/README.md +31 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +8 -0
- package/client.js.map +1 -1
- package/client.mjs +8 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +53 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +53 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +110 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +104 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/deployments.d.mts +45 -43
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +45 -43
- package/resources/deployments.d.ts.map +1 -1
- package/resources/deployments.js +9 -2
- package/resources/deployments.js.map +1 -1
- package/resources/deployments.mjs +9 -2
- 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/src/client.ts +29 -0
- package/src/core/pagination.ts +167 -0
- package/src/index.ts +1 -0
- package/src/internal/utils/values.ts +3 -3
- package/src/pagination.ts +2 -0
- package/src/resources/deployments.ts +48 -42
- package/src/resources/index.ts +1 -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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as Shared from './shared';
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
|
|
6
7
|
import { Stream } from '../core/streaming';
|
|
7
8
|
import { type Uploadable } from '../core/uploads';
|
|
8
9
|
import { buildHeaders } from '../internal/headers';
|
|
@@ -43,14 +44,20 @@ export class Deployments extends APIResource {
|
|
|
43
44
|
*
|
|
44
45
|
* @example
|
|
45
46
|
* ```ts
|
|
46
|
-
*
|
|
47
|
+
* // Automatically fetches more pages as needed.
|
|
48
|
+
* for await (const deploymentListResponse of client.deployments.list()) {
|
|
49
|
+
* // ...
|
|
50
|
+
* }
|
|
47
51
|
* ```
|
|
48
52
|
*/
|
|
49
53
|
list(
|
|
50
54
|
query: DeploymentListParams | null | undefined = {},
|
|
51
55
|
options?: RequestOptions,
|
|
52
|
-
):
|
|
53
|
-
return this._client.
|
|
56
|
+
): PagePromise<DeploymentListResponsesOffsetPagination, DeploymentListResponse> {
|
|
57
|
+
return this._client.getAPIList('/deployments', OffsetPagination<DeploymentListResponse>, {
|
|
58
|
+
query,
|
|
59
|
+
...options,
|
|
60
|
+
});
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
/**
|
|
@@ -77,6 +84,8 @@ export class Deployments extends APIResource {
|
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
|
|
87
|
+
export type DeploymentListResponsesOffsetPagination = OffsetPagination<DeploymentListResponse>;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* An event representing the current state of a deployment.
|
|
82
91
|
*/
|
|
@@ -234,53 +243,49 @@ export interface DeploymentRetrieveResponse {
|
|
|
234
243
|
updated_at?: string | null;
|
|
235
244
|
}
|
|
236
245
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Deployment record information.
|
|
248
|
+
*/
|
|
249
|
+
export interface DeploymentListResponse {
|
|
240
250
|
/**
|
|
241
|
-
*
|
|
251
|
+
* Unique identifier for the deployment
|
|
242
252
|
*/
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Unique identifier for the deployment
|
|
246
|
-
*/
|
|
247
|
-
id: string;
|
|
253
|
+
id: string;
|
|
248
254
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Timestamp when the deployment was created
|
|
257
|
+
*/
|
|
258
|
+
created_at: string;
|
|
253
259
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
260
|
+
/**
|
|
261
|
+
* Deployment region code
|
|
262
|
+
*/
|
|
263
|
+
region: 'aws.us-east-1a';
|
|
258
264
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Current status of the deployment
|
|
267
|
+
*/
|
|
268
|
+
status: 'queued' | 'in_progress' | 'running' | 'failed' | 'stopped';
|
|
263
269
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
/**
|
|
271
|
+
* Relative path to the application entrypoint
|
|
272
|
+
*/
|
|
273
|
+
entrypoint_rel_path?: string;
|
|
268
274
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
275
|
+
/**
|
|
276
|
+
* Environment variables configured for this deployment
|
|
277
|
+
*/
|
|
278
|
+
env_vars?: { [key: string]: string };
|
|
273
279
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Status reason
|
|
282
|
+
*/
|
|
283
|
+
status_reason?: string;
|
|
278
284
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
285
|
+
/**
|
|
286
|
+
* Timestamp when the deployment was last updated
|
|
287
|
+
*/
|
|
288
|
+
updated_at?: string | null;
|
|
284
289
|
}
|
|
285
290
|
|
|
286
291
|
/**
|
|
@@ -373,7 +378,7 @@ export interface DeploymentCreateParams {
|
|
|
373
378
|
version?: string;
|
|
374
379
|
}
|
|
375
380
|
|
|
376
|
-
export interface DeploymentListParams {
|
|
381
|
+
export interface DeploymentListParams extends OffsetPaginationParams {
|
|
377
382
|
/**
|
|
378
383
|
* Filter results by application name.
|
|
379
384
|
*/
|
|
@@ -394,6 +399,7 @@ export declare namespace Deployments {
|
|
|
394
399
|
type DeploymentRetrieveResponse as DeploymentRetrieveResponse,
|
|
395
400
|
type DeploymentListResponse as DeploymentListResponse,
|
|
396
401
|
type DeploymentFollowResponse as DeploymentFollowResponse,
|
|
402
|
+
type DeploymentListResponsesOffsetPagination as DeploymentListResponsesOffsetPagination,
|
|
397
403
|
type DeploymentCreateParams as DeploymentCreateParams,
|
|
398
404
|
type DeploymentListParams as DeploymentListParams,
|
|
399
405
|
type DeploymentFollowParams as DeploymentFollowParams,
|
package/src/resources/index.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.11.
|
|
1
|
+
export const VERSION = '0.11.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.11.
|
|
1
|
+
export declare const VERSION = "0.11.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.11.
|
|
1
|
+
export declare const VERSION = "0.11.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.11.
|
|
1
|
+
export const VERSION = '0.11.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|