@onkernel/sdk 0.1.0-alpha.11 → 0.1.0-alpha.13

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 (95) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -0
  3. package/client.d.mts +2 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +2 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/core/app-framework.d.mts +1 -1
  10. package/core/app-framework.d.mts.map +1 -1
  11. package/core/app-framework.d.ts +1 -1
  12. package/core/app-framework.d.ts.map +1 -1
  13. package/core/streaming.d.mts +31 -0
  14. package/core/streaming.d.mts.map +1 -0
  15. package/core/streaming.d.ts +31 -0
  16. package/core/streaming.d.ts.map +1 -0
  17. package/core/streaming.js +257 -0
  18. package/core/streaming.js.map +1 -0
  19. package/core/streaming.mjs +252 -0
  20. package/core/streaming.mjs.map +1 -0
  21. package/internal/decoders/line.d.mts +17 -0
  22. package/internal/decoders/line.d.mts.map +1 -0
  23. package/internal/decoders/line.d.ts +17 -0
  24. package/internal/decoders/line.d.ts.map +1 -0
  25. package/internal/decoders/line.js +113 -0
  26. package/internal/decoders/line.js.map +1 -0
  27. package/internal/decoders/line.mjs +108 -0
  28. package/internal/decoders/line.mjs.map +1 -0
  29. package/internal/parse.d.mts.map +1 -1
  30. package/internal/parse.d.ts.map +1 -1
  31. package/internal/parse.js +10 -0
  32. package/internal/parse.js.map +1 -1
  33. package/internal/parse.mjs +10 -0
  34. package/internal/parse.mjs.map +1 -1
  35. package/internal/request-options.d.mts +2 -0
  36. package/internal/request-options.d.mts.map +1 -1
  37. package/internal/request-options.d.ts +2 -0
  38. package/internal/request-options.d.ts.map +1 -1
  39. package/internal/request-options.js.map +1 -1
  40. package/internal/request-options.mjs.map +1 -1
  41. package/internal/tslib.js +17 -17
  42. package/package.json +11 -1
  43. package/resources/apps/apps.d.mts +53 -2
  44. package/resources/apps/apps.d.mts.map +1 -1
  45. package/resources/apps/apps.d.ts +53 -2
  46. package/resources/apps/apps.d.ts.map +1 -1
  47. package/resources/apps/apps.js +12 -0
  48. package/resources/apps/apps.js.map +1 -1
  49. package/resources/apps/apps.mjs +13 -1
  50. package/resources/apps/apps.mjs.map +1 -1
  51. package/resources/apps/deployments.d.mts +75 -1
  52. package/resources/apps/deployments.d.mts.map +1 -1
  53. package/resources/apps/deployments.d.ts +75 -1
  54. package/resources/apps/deployments.d.ts.map +1 -1
  55. package/resources/apps/deployments.js +19 -0
  56. package/resources/apps/deployments.js.map +1 -1
  57. package/resources/apps/deployments.mjs +19 -0
  58. package/resources/apps/deployments.mjs.map +1 -1
  59. package/resources/apps/index.d.mts +2 -2
  60. package/resources/apps/index.d.mts.map +1 -1
  61. package/resources/apps/index.d.ts +2 -2
  62. package/resources/apps/index.d.ts.map +1 -1
  63. package/resources/apps/index.js.map +1 -1
  64. package/resources/apps/index.mjs +1 -1
  65. package/resources/apps/index.mjs.map +1 -1
  66. package/resources/index.d.mts +1 -1
  67. package/resources/index.d.mts.map +1 -1
  68. package/resources/index.d.ts +1 -1
  69. package/resources/index.d.ts.map +1 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs.map +1 -1
  72. package/src/client.ts +2 -2
  73. package/src/core/app-framework.ts +1 -1
  74. package/src/core/streaming.ts +301 -0
  75. package/src/internal/decoders/line.ts +135 -0
  76. package/src/internal/parse.ts +14 -0
  77. package/src/internal/request-options.ts +2 -0
  78. package/src/resources/apps/apps.ts +70 -1
  79. package/src/resources/apps/deployments.ts +99 -0
  80. package/src/resources/apps/index.ts +7 -2
  81. package/src/resources/index.ts +1 -1
  82. package/src/streaming.ts +2 -0
  83. package/src/version.ts +1 -1
  84. package/streaming.d.mts +2 -0
  85. package/streaming.d.mts.map +1 -0
  86. package/streaming.d.ts +2 -0
  87. package/streaming.d.ts.map +1 -0
  88. package/streaming.js +6 -0
  89. package/streaming.js.map +1 -0
  90. package/streaming.mjs +2 -0
  91. package/streaming.mjs.map +1 -0
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DeploymentsAPI from "./deployments.mjs";
4
- import { Deployments } from "./deployments.mjs";
4
+ import { Deployments, } from "./deployments.mjs";
5
5
  import * as InvocationsAPI from "./invocations.mjs";
6
6
  import { Invocations, } from "./invocations.mjs";
7
7
  export class Apps extends APIResource {
@@ -10,6 +10,18 @@ export class Apps extends APIResource {
10
10
  this.deployments = new DeploymentsAPI.Deployments(this._client);
11
11
  this.invocations = new InvocationsAPI.Invocations(this._client);
12
12
  }
13
+ /**
14
+ * List application versions for the authenticated user. Optionally filter by app
15
+ * name and/or version label.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const apps = await client.apps.list();
20
+ * ```
21
+ */
22
+ list(query = {}, options) {
23
+ return this._client.get('/apps', { query, ...options });
24
+ }
13
25
  }
14
26
  Apps.Deployments = Deployments;
15
27
  Apps.Invocations = Invocations;
@@ -1 +1 @@
1
- {"version":3,"file":"apps.mjs","sourceRoot":"","sources":["../../src/resources/apps/apps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAoD,WAAW,EAAE;OACjE,KAAK,cAAc;OACnB,EAIL,WAAW,GACZ;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"apps.mjs","sourceRoot":"","sources":["../../src/resources/apps/apps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAIL,WAAW,GACZ;OACM,KAAK,cAAc;OACnB,EAIL,WAAW,GACZ;AAID,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAczF,CAAC;IAZC;;;;;;;;OAQG;IACH,IAAI,CAAC,QAA0C,EAAE,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AAgDD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { Stream } from "../../core/streaming.mjs";
3
4
  import { type Uploadable } from "../../core/uploads.mjs";
4
5
  import { RequestOptions } from "../../internal/request-options.mjs";
5
6
  export declare class Deployments extends APIResource {
@@ -15,6 +16,17 @@ export declare class Deployments extends APIResource {
15
16
  * ```
16
17
  */
17
18
  create(body: DeploymentCreateParams, options?: RequestOptions): APIPromise<DeploymentCreateResponse>;
19
+ /**
20
+ * Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
21
+ * status updates for a deployed application. The stream terminates automatically
22
+ * once the application reaches a terminal state.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response = await client.apps.deployments.follow('id');
27
+ * ```
28
+ */
29
+ follow(id: string, options?: RequestOptions): APIPromise<Stream<DeploymentFollowResponse>>;
18
30
  }
19
31
  export interface DeploymentCreateResponse {
20
32
  /**
@@ -54,6 +66,63 @@ export declare namespace DeploymentCreateResponse {
54
66
  }
55
67
  }
56
68
  }
69
+ /**
70
+ * A stream of application events (state updates and logs) in SSE format.
71
+ */
72
+ export type DeploymentFollowResponse = Array<DeploymentFollowResponse.StateEvent | DeploymentFollowResponse.StateUpdateEvent | DeploymentFollowResponse.LogEvent>;
73
+ export declare namespace DeploymentFollowResponse {
74
+ /**
75
+ * Initial state of the application, emitted once when subscribing.
76
+ */
77
+ interface StateEvent {
78
+ /**
79
+ * Event type identifier (always "state").
80
+ */
81
+ event: 'state';
82
+ /**
83
+ * Current application state (e.g., "deploying", "running", "succeeded", "failed").
84
+ */
85
+ state: string;
86
+ /**
87
+ * Time the state was reported.
88
+ */
89
+ timestamp?: string;
90
+ }
91
+ /**
92
+ * An update emitted when the application's state changes.
93
+ */
94
+ interface StateUpdateEvent {
95
+ /**
96
+ * Event type identifier (always "state_update").
97
+ */
98
+ event: 'state_update';
99
+ /**
100
+ * New application state (e.g., "running", "succeeded", "failed").
101
+ */
102
+ state: string;
103
+ /**
104
+ * Time the state change occurred.
105
+ */
106
+ timestamp?: string;
107
+ }
108
+ /**
109
+ * A log entry from the application.
110
+ */
111
+ interface LogEvent {
112
+ /**
113
+ * Event type identifier (always "log").
114
+ */
115
+ event: 'log';
116
+ /**
117
+ * Log message text.
118
+ */
119
+ message: string;
120
+ /**
121
+ * Time the log entry was produced.
122
+ */
123
+ timestamp?: string;
124
+ }
125
+ }
57
126
  export interface DeploymentCreateParams {
58
127
  /**
59
128
  * Relative path to the entrypoint of the application
@@ -63,6 +132,11 @@ export interface DeploymentCreateParams {
63
132
  * ZIP file containing the application source directory
64
133
  */
65
134
  file: Uploadable;
135
+ /**
136
+ * Map of environment variables to set for the deployed application. Each key-value
137
+ * pair represents an environment variable.
138
+ */
139
+ env_vars?: Record<string, string>;
66
140
  /**
67
141
  * Allow overwriting an existing app version
68
142
  */
@@ -77,6 +151,6 @@ export interface DeploymentCreateParams {
77
151
  version?: string;
78
152
  }
79
153
  export declare namespace Deployments {
80
- export { type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentCreateParams as DeploymentCreateParams, };
154
+ export { type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentFollowResponse as DeploymentFollowResponse, type DeploymentCreateParams as DeploymentCreateParams, };
81
155
  }
82
156
  //# sourceMappingURL=deployments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.d.mts","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAE1C;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;IAExD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,GAAG;QAClB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAE3B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,GAAG,CAAC;QACnB,UAAiB,MAAM;YACrB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;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;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import { APIPromise } from "../../core/api-promise.js";
3
+ import { Stream } from "../../core/streaming.js";
3
4
  import { type Uploadable } from "../../core/uploads.js";
4
5
  import { RequestOptions } from "../../internal/request-options.js";
5
6
  export declare class Deployments extends APIResource {
@@ -15,6 +16,17 @@ export declare class Deployments extends APIResource {
15
16
  * ```
16
17
  */
17
18
  create(body: DeploymentCreateParams, options?: RequestOptions): APIPromise<DeploymentCreateResponse>;
19
+ /**
20
+ * Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
21
+ * status updates for a deployed application. The stream terminates automatically
22
+ * once the application reaches a terminal state.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response = await client.apps.deployments.follow('id');
27
+ * ```
28
+ */
29
+ follow(id: string, options?: RequestOptions): APIPromise<Stream<DeploymentFollowResponse>>;
18
30
  }
19
31
  export interface DeploymentCreateResponse {
20
32
  /**
@@ -54,6 +66,63 @@ export declare namespace DeploymentCreateResponse {
54
66
  }
55
67
  }
56
68
  }
69
+ /**
70
+ * A stream of application events (state updates and logs) in SSE format.
71
+ */
72
+ export type DeploymentFollowResponse = Array<DeploymentFollowResponse.StateEvent | DeploymentFollowResponse.StateUpdateEvent | DeploymentFollowResponse.LogEvent>;
73
+ export declare namespace DeploymentFollowResponse {
74
+ /**
75
+ * Initial state of the application, emitted once when subscribing.
76
+ */
77
+ interface StateEvent {
78
+ /**
79
+ * Event type identifier (always "state").
80
+ */
81
+ event: 'state';
82
+ /**
83
+ * Current application state (e.g., "deploying", "running", "succeeded", "failed").
84
+ */
85
+ state: string;
86
+ /**
87
+ * Time the state was reported.
88
+ */
89
+ timestamp?: string;
90
+ }
91
+ /**
92
+ * An update emitted when the application's state changes.
93
+ */
94
+ interface StateUpdateEvent {
95
+ /**
96
+ * Event type identifier (always "state_update").
97
+ */
98
+ event: 'state_update';
99
+ /**
100
+ * New application state (e.g., "running", "succeeded", "failed").
101
+ */
102
+ state: string;
103
+ /**
104
+ * Time the state change occurred.
105
+ */
106
+ timestamp?: string;
107
+ }
108
+ /**
109
+ * A log entry from the application.
110
+ */
111
+ interface LogEvent {
112
+ /**
113
+ * Event type identifier (always "log").
114
+ */
115
+ event: 'log';
116
+ /**
117
+ * Log message text.
118
+ */
119
+ message: string;
120
+ /**
121
+ * Time the log entry was produced.
122
+ */
123
+ timestamp?: string;
124
+ }
125
+ }
57
126
  export interface DeploymentCreateParams {
58
127
  /**
59
128
  * Relative path to the entrypoint of the application
@@ -63,6 +132,11 @@ export interface DeploymentCreateParams {
63
132
  * ZIP file containing the application source directory
64
133
  */
65
134
  file: Uploadable;
135
+ /**
136
+ * Map of environment variables to set for the deployed application. Each key-value
137
+ * pair represents an environment variable.
138
+ */
139
+ env_vars?: Record<string, string>;
66
140
  /**
67
141
  * Allow overwriting an existing app version
68
142
  */
@@ -77,6 +151,6 @@ export interface DeploymentCreateParams {
77
151
  version?: string;
78
152
  }
79
153
  export declare namespace Deployments {
80
- export { type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentCreateParams as DeploymentCreateParams, };
154
+ export { type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentFollowResponse as DeploymentFollowResponse, type DeploymentCreateParams as DeploymentCreateParams, };
81
155
  }
82
156
  //# sourceMappingURL=deployments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAE1C;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;IAExD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,GAAG;QAClB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAE3B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,GAAG,CAAC;QACnB,UAAiB,MAAM;YACrB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
1
+ {"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE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;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IAED;;OAEG;IACH,UAAiB,gBAAgB;QAC/B;;WAEG;QACH,KAAK,EAAE,cAAc,CAAC;QAEtB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IAED;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC;QAEb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -3,7 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Deployments = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
6
7
  const uploads_1 = require("../../internal/uploads.js");
8
+ const path_1 = require("../../internal/utils/path.js");
7
9
  class Deployments extends resource_1.APIResource {
8
10
  /**
9
11
  * Deploy a new application
@@ -19,6 +21,23 @@ class Deployments extends resource_1.APIResource {
19
21
  create(body, options) {
20
22
  return this._client.post('/deploy', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
21
23
  }
24
+ /**
25
+ * Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
26
+ * status updates for a deployed application. The stream terminates automatically
27
+ * once the application reaches a terminal state.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.apps.deployments.follow('id');
32
+ * ```
33
+ */
34
+ follow(id, options) {
35
+ return this._client.get((0, path_1.path) `/apps/${id}/events`, {
36
+ ...options,
37
+ headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
38
+ stream: true,
39
+ });
40
+ }
22
41
  }
23
42
  exports.Deployments = Deployments;
24
43
  //# sourceMappingURL=deployments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AAErE,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;CACF;AAfD,kCAeC"}
1
+ {"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAsD;AAEtD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,SAAS,EAAE,SAAS,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAiD,CAAC;IACrD,CAAC;CACF;AAjCD,kCAiCC"}
@@ -1,6 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
3
4
  import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
4
6
  export class Deployments extends APIResource {
5
7
  /**
6
8
  * Deploy a new application
@@ -16,5 +18,22 @@ export class Deployments extends APIResource {
16
18
  create(body, options) {
17
19
  return this._client.post('/deploy', multipartFormRequestOptions({ body, ...options }, this._client));
18
20
  }
21
+ /**
22
+ * Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
23
+ * status updates for a deployed application. The stream terminates automatically
24
+ * once the application reaches a terminal state.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response = await client.apps.deployments.follow('id');
29
+ * ```
30
+ */
31
+ follow(id, options) {
32
+ return this._client.get(path `/apps/${id}/events`, {
33
+ ...options,
34
+ headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
35
+ stream: true,
36
+ });
37
+ }
19
38
  }
20
39
  //# sourceMappingURL=deployments.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;AAEtC,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;CACF"}
1
+ {"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/apps/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,SAAS,EAAE,SAAS,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAiD,CAAC;IACrD,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- export { Apps } from "./apps.mjs";
2
- export { Deployments, type DeploymentCreateResponse, type DeploymentCreateParams } from "./deployments.mjs";
1
+ export { Apps, type AppListResponse, type AppListParams } from "./apps.mjs";
2
+ export { Deployments, type DeploymentCreateResponse, type DeploymentFollowResponse, type DeploymentCreateParams, } from "./deployments.mjs";
3
3
  export { Invocations, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationCreateParams, } from "./invocations.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC3E,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B"}
@@ -1,4 +1,4 @@
1
- export { Apps } from "./apps.js";
2
- export { Deployments, type DeploymentCreateResponse, type DeploymentCreateParams } from "./deployments.js";
1
+ export { Apps, type AppListResponse, type AppListParams } from "./apps.js";
2
+ export { Deployments, type DeploymentCreateResponse, type DeploymentFollowResponse, type DeploymentCreateParams, } from "./deployments.js";
3
3
  export { Invocations, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationCreateParams, } from "./invocations.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,WAAW,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC3E,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,gDAAwG;AAA/F,0GAAA,WAAW,OAAA;AACpB,gDAKuB;AAJrB,0GAAA,WAAW,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,gDAKuB;AAJrB,0GAAA,WAAW,OAAA"}
@@ -1,5 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Apps } from "./apps.mjs";
3
- export { Deployments } from "./deployments.mjs";
3
+ export { Deployments, } from "./deployments.mjs";
4
4
  export { Invocations, } from "./invocations.mjs";
5
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,WAAW,EAA8D;OAC3E,EACL,WAAW,GAIZ"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/apps/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAA4C;OAClD,EACL,WAAW,GAIZ;OACM,EACL,WAAW,GAIZ"}
@@ -1,3 +1,3 @@
1
- export { Apps } from "./apps/apps.mjs";
1
+ export { Apps, type AppListResponse, type AppListParams } from "./apps/apps.mjs";
2
2
  export { Browsers, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserCreateParams, } from "./browsers.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB"}
@@ -1,3 +1,3 @@
1
- export { Apps } from "./apps/apps.js";
1
+ export { Apps, type AppListResponse, type AppListParams } from "./apps/apps.js";
2
2
  export { Browsers, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserCreateParams, } from "./browsers.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAA6E;AAApE,4FAAA,IAAI,OAAA;AACb,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,QAAQ,GAIT"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAA4C;OAClD,EACL,QAAQ,GAIT"}
package/src/client.ts CHANGED
@@ -30,7 +30,7 @@ import { readEnv } from './internal/utils/env';
30
30
  import { formatRequestDetails, loggerFor } from './internal/utils/log';
31
31
  import { isEmptyObj } from './internal/utils/values';
32
32
  import { KernelApp } from './core/app-framework';
33
- import { Apps } from './resources/apps/apps';
33
+ import { AppListParams, AppListResponse, Apps } from './resources/apps/apps';
34
34
 
35
35
  const environments = {
36
36
  production: 'https://api.onkernel.com/',
@@ -740,7 +740,7 @@ Kernel.Browsers = Browsers;
740
740
  export declare namespace Kernel {
741
741
  export type RequestOptions = Opts.RequestOptions;
742
742
 
743
- export { Apps as Apps };
743
+ export { Apps as Apps, type AppListResponse as AppListResponse, type AppListParams as AppListParams };
744
744
 
745
745
  export {
746
746
  Browsers as Browsers,
@@ -1,5 +1,5 @@
1
1
  export interface KernelContext {
2
- invocationId: string;
2
+ invocation_id: string;
3
3
  }
4
4
 
5
5
  export interface KernelAction {