@onkernel/sdk 0.88.0 → 0.90.0

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 (79) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +6 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/connections.d.mts +42 -0
  12. package/resources/auth/connections.d.mts.map +1 -1
  13. package/resources/auth/connections.d.ts +42 -0
  14. package/resources/auth/connections.d.ts.map +1 -1
  15. package/resources/browser-pools.d.mts +40 -0
  16. package/resources/browser-pools.d.mts.map +1 -1
  17. package/resources/browser-pools.d.ts +40 -0
  18. package/resources/browser-pools.d.ts.map +1 -1
  19. package/resources/browsers/browsers.d.mts +81 -1
  20. package/resources/browsers/browsers.d.mts.map +1 -1
  21. package/resources/browsers/browsers.d.ts +81 -1
  22. package/resources/browsers/browsers.d.ts.map +1 -1
  23. package/resources/browsers/browsers.js.map +1 -1
  24. package/resources/browsers/browsers.mjs.map +1 -1
  25. package/resources/browsers/index.d.mts +1 -1
  26. package/resources/browsers/index.d.mts.map +1 -1
  27. package/resources/browsers/index.d.ts +1 -1
  28. package/resources/browsers/index.d.ts.map +1 -1
  29. package/resources/browsers/index.js.map +1 -1
  30. package/resources/browsers/index.mjs.map +1 -1
  31. package/resources/index.d.mts +1 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +1 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js.map +1 -1
  36. package/resources/index.mjs.map +1 -1
  37. package/resources/invocations.d.mts +9 -0
  38. package/resources/invocations.d.mts.map +1 -1
  39. package/resources/invocations.d.ts +9 -0
  40. package/resources/invocations.d.ts.map +1 -1
  41. package/resources/organization/limits.d.mts +18 -3
  42. package/resources/organization/limits.d.mts.map +1 -1
  43. package/resources/organization/limits.d.ts +18 -3
  44. package/resources/organization/limits.d.ts.map +1 -1
  45. package/resources/organization/limits.js +1 -3
  46. package/resources/organization/limits.js.map +1 -1
  47. package/resources/organization/limits.mjs +1 -3
  48. package/resources/organization/limits.mjs.map +1 -1
  49. package/resources/projects/limits.d.mts +4 -4
  50. package/resources/projects/limits.d.mts.map +1 -1
  51. package/resources/projects/limits.d.ts +4 -4
  52. package/resources/projects/limits.d.ts.map +1 -1
  53. package/resources/projects/limits.js +6 -6
  54. package/resources/projects/limits.js.map +1 -1
  55. package/resources/projects/limits.mjs +6 -6
  56. package/resources/projects/limits.mjs.map +1 -1
  57. package/resources/projects/projects.d.mts +12 -10
  58. package/resources/projects/projects.d.mts.map +1 -1
  59. package/resources/projects/projects.d.ts +12 -10
  60. package/resources/projects/projects.d.ts.map +1 -1
  61. package/resources/projects/projects.js +11 -9
  62. package/resources/projects/projects.js.map +1 -1
  63. package/resources/projects/projects.mjs +11 -9
  64. package/resources/projects/projects.mjs.map +1 -1
  65. package/src/client.ts +11 -0
  66. package/src/resources/auth/connections.ts +72 -0
  67. package/src/resources/browser-pools.ts +48 -0
  68. package/src/resources/browsers/browsers.ts +93 -0
  69. package/src/resources/browsers/index.ts +1 -0
  70. package/src/resources/index.ts +1 -0
  71. package/src/resources/invocations.ts +11 -0
  72. package/src/resources/organization/limits.ts +21 -3
  73. package/src/resources/projects/limits.ts +6 -6
  74. package/src/resources/projects/projects.ts +15 -13
  75. package/src/version.ts +1 -1
  76. package/version.d.mts +1 -1
  77. package/version.d.ts +1 -1
  78. package/version.js +1 -1
  79. package/version.mjs +1 -1
@@ -18,12 +18,12 @@ export class Limits extends APIResource {
18
18
  * @example
19
19
  * ```ts
20
20
  * const projectLimits = await client.projects.limits.retrieve(
21
- * 'id',
21
+ * 'id_or_name',
22
22
  * );
23
23
  * ```
24
24
  */
25
- retrieve(id: string, options?: RequestOptions): APIPromise<ProjectLimits> {
26
- return this._client.get(path`/org/projects/${id}/limits`, options);
25
+ retrieve(idOrName: string, options?: RequestOptions): APIPromise<ProjectLimits> {
26
+ return this._client.get(path`/org/projects/${idOrName}/limits`, options);
27
27
  }
28
28
 
29
29
  /**
@@ -34,12 +34,12 @@ export class Limits extends APIResource {
34
34
  * @example
35
35
  * ```ts
36
36
  * const projectLimits = await client.projects.limits.update(
37
- * 'id',
37
+ * 'id_or_name',
38
38
  * );
39
39
  * ```
40
40
  */
41
- update(id: string, body: LimitUpdateParams, options?: RequestOptions): APIPromise<ProjectLimits> {
42
- return this._client.patch(path`/org/projects/${id}/limits`, { body, ...options });
41
+ update(idOrName: string, body: LimitUpdateParams, options?: RequestOptions): APIPromise<ProjectLimits> {
42
+ return this._client.patch(path`/org/projects/${idOrName}/limits`, { body, ...options });
43
43
  }
44
44
  }
45
45
 
@@ -36,11 +36,13 @@ export class Projects extends APIResource {
36
36
  *
37
37
  * @example
38
38
  * ```ts
39
- * const project = await client.projects.retrieve('id');
39
+ * const project = await client.projects.retrieve(
40
+ * 'id_or_name',
41
+ * );
40
42
  * ```
41
43
  */
42
- retrieve(id: string, options?: RequestOptions): APIPromise<Project> {
43
- return this._client.get(path`/org/projects/${id}`, options);
44
+ retrieve(idOrName: string, options?: RequestOptions): APIPromise<Project> {
45
+ return this._client.get(path`/org/projects/${idOrName}`, options);
44
46
  }
45
47
 
46
48
  /**
@@ -48,11 +50,11 @@ export class Projects extends APIResource {
48
50
  *
49
51
  * @example
50
52
  * ```ts
51
- * const project = await client.projects.update('id');
53
+ * const project = await client.projects.update('id_or_name');
52
54
  * ```
53
55
  */
54
- update(id: string, body: ProjectUpdateParams, options?: RequestOptions): APIPromise<Project> {
55
- return this._client.patch(path`/org/projects/${id}`, { body, ...options });
56
+ update(idOrName: string, body: ProjectUpdateParams, options?: RequestOptions): APIPromise<Project> {
57
+ return this._client.patch(path`/org/projects/${idOrName}`, { body, ...options });
56
58
  }
57
59
 
58
60
  /**
@@ -78,11 +80,11 @@ export class Projects extends APIResource {
78
80
  *
79
81
  * @example
80
82
  * ```ts
81
- * await client.projects.delete('id');
83
+ * await client.projects.delete('id_or_name');
82
84
  * ```
83
85
  */
84
- delete(id: string, options?: RequestOptions): APIPromise<void> {
85
- return this._client.delete(path`/org/projects/${id}`, {
86
+ delete(idOrName: string, options?: RequestOptions): APIPromise<void> {
87
+ return this._client.delete(path`/org/projects/${idOrName}`, {
86
88
  ...options,
87
89
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
88
90
  });
@@ -93,7 +95,7 @@ export type ProjectsOffsetPagination = OffsetPagination<Project>;
93
95
 
94
96
  export interface CreateProjectRequest {
95
97
  /**
96
- * Project name (1-255 Unicode code points)
98
+ * Project name (1-255 Unicode code points; cannot contain `/` or `%`)
97
99
  */
98
100
  name: string;
99
101
  }
@@ -127,7 +129,7 @@ export interface Project {
127
129
 
128
130
  export interface UpdateProjectRequest {
129
131
  /**
130
- * New project name (1-255 Unicode code points)
132
+ * New project name (1-255 Unicode code points; cannot contain `/` or `%`)
131
133
  */
132
134
  name?: string;
133
135
 
@@ -139,14 +141,14 @@ export interface UpdateProjectRequest {
139
141
 
140
142
  export interface ProjectCreateParams {
141
143
  /**
142
- * Project name (1-255 Unicode code points)
144
+ * Project name (1-255 Unicode code points; cannot contain `/` or `%`)
143
145
  */
144
146
  name: string;
145
147
  }
146
148
 
147
149
  export interface ProjectUpdateParams {
148
150
  /**
149
- * New project name (1-255 Unicode code points)
151
+ * New project name (1-255 Unicode code points; cannot contain `/` or `%`)
150
152
  */
151
153
  name?: string;
152
154
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.88.0'; // x-release-please-version
1
+ export const VERSION = '0.90.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.88.0";
1
+ export declare const VERSION = "0.90.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.88.0";
1
+ export declare const VERSION = "0.90.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.88.0'; // x-release-please-version
4
+ exports.VERSION = '0.90.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.88.0'; // x-release-please-version
1
+ export const VERSION = '0.90.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map