@onkernel/sdk 0.97.0 → 0.99.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 (188) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/browser-pools.d.mts +9 -0
  12. package/resources/browser-pools.d.mts.map +1 -1
  13. package/resources/browser-pools.d.ts +9 -0
  14. package/resources/browser-pools.d.ts.map +1 -1
  15. package/resources/browsers/browsers.d.mts +70 -14
  16. package/resources/browsers/browsers.d.mts.map +1 -1
  17. package/resources/browsers/browsers.d.ts +70 -14
  18. package/resources/browsers/browsers.d.ts.map +1 -1
  19. package/resources/browsers/browsers.js +23 -15
  20. package/resources/browsers/browsers.js.map +1 -1
  21. package/resources/browsers/browsers.mjs +23 -15
  22. package/resources/browsers/browsers.mjs.map +1 -1
  23. package/resources/browsers/computer.d.mts +62 -45
  24. package/resources/browsers/computer.d.mts.map +1 -1
  25. package/resources/browsers/computer.d.ts +62 -45
  26. package/resources/browsers/computer.d.ts.map +1 -1
  27. package/resources/browsers/computer.js +74 -57
  28. package/resources/browsers/computer.js.map +1 -1
  29. package/resources/browsers/computer.mjs +74 -57
  30. package/resources/browsers/computer.mjs.map +1 -1
  31. package/resources/browsers/fs/fs.d.mts +61 -47
  32. package/resources/browsers/fs/fs.d.mts.map +1 -1
  33. package/resources/browsers/fs/fs.d.ts +61 -47
  34. package/resources/browsers/fs/fs.d.ts.map +1 -1
  35. package/resources/browsers/fs/fs.js +73 -59
  36. package/resources/browsers/fs/fs.js.map +1 -1
  37. package/resources/browsers/fs/fs.mjs +73 -59
  38. package/resources/browsers/fs/fs.mjs.map +1 -1
  39. package/resources/browsers/fs/watch.d.mts +8 -8
  40. package/resources/browsers/fs/watch.d.mts.map +1 -1
  41. package/resources/browsers/fs/watch.d.ts +8 -8
  42. package/resources/browsers/fs/watch.d.ts.map +1 -1
  43. package/resources/browsers/fs/watch.js +9 -9
  44. package/resources/browsers/fs/watch.js.map +1 -1
  45. package/resources/browsers/fs/watch.mjs +9 -9
  46. package/resources/browsers/fs/watch.mjs.map +1 -1
  47. package/resources/browsers/index.d.mts +2 -1
  48. package/resources/browsers/index.d.mts.map +1 -1
  49. package/resources/browsers/index.d.ts +2 -1
  50. package/resources/browsers/index.d.ts.map +1 -1
  51. package/resources/browsers/index.js +3 -1
  52. package/resources/browsers/index.js.map +1 -1
  53. package/resources/browsers/index.mjs +1 -0
  54. package/resources/browsers/index.mjs.map +1 -1
  55. package/resources/browsers/logs.d.mts +5 -4
  56. package/resources/browsers/logs.d.mts.map +1 -1
  57. package/resources/browsers/logs.d.ts +5 -4
  58. package/resources/browsers/logs.d.ts.map +1 -1
  59. package/resources/browsers/logs.js +6 -5
  60. package/resources/browsers/logs.js.map +1 -1
  61. package/resources/browsers/logs.mjs +6 -5
  62. package/resources/browsers/logs.mjs.map +1 -1
  63. package/resources/browsers/playwright.d.mts +7 -4
  64. package/resources/browsers/playwright.d.mts.map +1 -1
  65. package/resources/browsers/playwright.d.ts +7 -4
  66. package/resources/browsers/playwright.d.ts.map +1 -1
  67. package/resources/browsers/playwright.js +8 -5
  68. package/resources/browsers/playwright.js.map +1 -1
  69. package/resources/browsers/playwright.mjs +8 -5
  70. package/resources/browsers/playwright.mjs.map +1 -1
  71. package/resources/browsers/process.d.mts +31 -23
  72. package/resources/browsers/process.d.mts.map +1 -1
  73. package/resources/browsers/process.d.ts +31 -23
  74. package/resources/browsers/process.d.ts.map +1 -1
  75. package/resources/browsers/process.js +33 -25
  76. package/resources/browsers/process.js.map +1 -1
  77. package/resources/browsers/process.mjs +33 -25
  78. package/resources/browsers/process.mjs.map +1 -1
  79. package/resources/browsers/replays.d.mts +14 -10
  80. package/resources/browsers/replays.d.mts.map +1 -1
  81. package/resources/browsers/replays.d.ts +14 -10
  82. package/resources/browsers/replays.d.ts.map +1 -1
  83. package/resources/browsers/replays.js +16 -12
  84. package/resources/browsers/replays.js.map +1 -1
  85. package/resources/browsers/replays.mjs +16 -12
  86. package/resources/browsers/replays.mjs.map +1 -1
  87. package/resources/browsers/telemetry.d.mts +4 -4
  88. package/resources/browsers/telemetry.d.mts.map +1 -1
  89. package/resources/browsers/telemetry.d.ts +4 -4
  90. package/resources/browsers/telemetry.d.ts.map +1 -1
  91. package/resources/browsers/telemetry.js +6 -6
  92. package/resources/browsers/telemetry.js.map +1 -1
  93. package/resources/browsers/telemetry.mjs +6 -6
  94. package/resources/browsers/telemetry.mjs.map +1 -1
  95. package/resources/browsers/webmcp.d.mts +148 -0
  96. package/resources/browsers/webmcp.d.mts.map +1 -0
  97. package/resources/browsers/webmcp.d.ts +148 -0
  98. package/resources/browsers/webmcp.d.ts.map +1 -0
  99. package/resources/browsers/webmcp.js +51 -0
  100. package/resources/browsers/webmcp.js.map +1 -0
  101. package/resources/browsers/webmcp.mjs +47 -0
  102. package/resources/browsers/webmcp.mjs.map +1 -0
  103. package/resources/config-registry/config-registry.d.mts +14 -11
  104. package/resources/config-registry/config-registry.d.mts.map +1 -1
  105. package/resources/config-registry/config-registry.d.ts +14 -11
  106. package/resources/config-registry/config-registry.d.ts.map +1 -1
  107. package/resources/config-registry/config-registry.js +2 -2
  108. package/resources/config-registry/config-registry.js.map +1 -1
  109. package/resources/config-registry/config-registry.mjs +2 -2
  110. package/resources/config-registry/config-registry.mjs.map +1 -1
  111. package/resources/index.d.mts +2 -1
  112. package/resources/index.d.mts.map +1 -1
  113. package/resources/index.d.ts +2 -1
  114. package/resources/index.d.ts.map +1 -1
  115. package/resources/index.js +3 -1
  116. package/resources/index.js.map +1 -1
  117. package/resources/index.mjs +1 -0
  118. package/resources/index.mjs.map +1 -1
  119. package/resources/invocations.d.mts +9 -0
  120. package/resources/invocations.d.mts.map +1 -1
  121. package/resources/invocations.d.ts +9 -0
  122. package/resources/invocations.d.ts.map +1 -1
  123. package/resources/telemetry/destinations.d.mts +46 -12
  124. package/resources/telemetry/destinations.d.mts.map +1 -1
  125. package/resources/telemetry/destinations.d.ts +46 -12
  126. package/resources/telemetry/destinations.d.ts.map +1 -1
  127. package/resources/telemetry/destinations.js +18 -8
  128. package/resources/telemetry/destinations.js.map +1 -1
  129. package/resources/telemetry/destinations.mjs +18 -8
  130. package/resources/telemetry/destinations.mjs.map +1 -1
  131. package/resources/vaults/index.d.mts +3 -0
  132. package/resources/vaults/index.d.mts.map +1 -0
  133. package/resources/vaults/index.d.ts +3 -0
  134. package/resources/vaults/index.d.ts.map +1 -0
  135. package/resources/vaults/index.js +9 -0
  136. package/resources/vaults/index.js.map +1 -0
  137. package/resources/vaults/index.mjs +4 -0
  138. package/resources/vaults/index.mjs.map +1 -0
  139. package/resources/vaults/items.d.mts +534 -0
  140. package/resources/vaults/items.d.mts.map +1 -0
  141. package/resources/vaults/items.d.ts +534 -0
  142. package/resources/vaults/items.d.ts.map +1 -0
  143. package/resources/vaults/items.js +68 -0
  144. package/resources/vaults/items.js.map +1 -0
  145. package/resources/vaults/items.mjs +64 -0
  146. package/resources/vaults/items.mjs.map +1 -0
  147. package/resources/vaults/vaults.d.mts +48 -0
  148. package/resources/vaults/vaults.d.mts.map +1 -0
  149. package/resources/vaults/vaults.d.ts +48 -0
  150. package/resources/vaults/vaults.d.ts.map +1 -0
  151. package/resources/vaults/vaults.js +47 -0
  152. package/resources/vaults/vaults.js.map +1 -0
  153. package/resources/vaults/vaults.mjs +42 -0
  154. package/resources/vaults/vaults.mjs.map +1 -0
  155. package/resources/vaults.d.mts +2 -0
  156. package/resources/vaults.d.mts.map +1 -0
  157. package/resources/vaults.d.ts +2 -0
  158. package/resources/vaults.d.ts.map +1 -0
  159. package/resources/vaults.js +6 -0
  160. package/resources/vaults.js.map +1 -0
  161. package/resources/vaults.mjs +3 -0
  162. package/resources/vaults.mjs.map +1 -0
  163. package/src/client.ts +19 -0
  164. package/src/resources/browser-pools.ts +11 -0
  165. package/src/resources/browsers/browsers.ts +111 -15
  166. package/src/resources/browsers/computer.ts +78 -57
  167. package/src/resources/browsers/fs/fs.ts +93 -59
  168. package/src/resources/browsers/fs/watch.ts +13 -13
  169. package/src/resources/browsers/index.ts +13 -0
  170. package/src/resources/browsers/logs.ts +10 -5
  171. package/src/resources/browsers/playwright.ts +8 -5
  172. package/src/resources/browsers/process.ts +47 -35
  173. package/src/resources/browsers/replays.ts +20 -16
  174. package/src/resources/browsers/telemetry.ts +6 -6
  175. package/src/resources/browsers/webmcp.ts +196 -0
  176. package/src/resources/config-registry/config-registry.ts +14 -11
  177. package/src/resources/index.ts +8 -0
  178. package/src/resources/invocations.ts +11 -0
  179. package/src/resources/telemetry/destinations.ts +50 -12
  180. package/src/resources/vaults/index.ts +30 -0
  181. package/src/resources/vaults/items.ts +780 -0
  182. package/src/resources/vaults/vaults.ts +125 -0
  183. package/src/resources/vaults.ts +3 -0
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -12,15 +12,19 @@ import { path } from '../../internal/utils/path';
12
12
  */
13
13
  export class Destinations extends APIResource {
14
14
  /**
15
- * Create an OTLP export destination in the resolved project. Names must be unique
16
- * within the project.
15
+ * Create an OTLP export destination in the authenticated organization. Names must
16
+ * be unique within the organization. Requires an organization-scoped credential or
17
+ * dashboard authentication; project-scoped credentials receive a 403.
17
18
  */
18
19
  create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<OtlpDestination> {
19
20
  return this._client.post('/telemetry/destinations', { body, ...options });
20
21
  }
21
22
 
22
23
  /**
23
- * Retrieve a single OTLP destination in the resolved project by its ID or name.
24
+ * Retrieve a customer-visible OTLP destination in the authenticated organization
25
+ * by its ID or name. Project-scoped credentials can retrieve these destinations
26
+ * for selection by workloads in their project. Non-dashboard reads return header
27
+ * values redacted.
24
28
  */
25
29
  retrieve(idOrName: string, options?: RequestOptions): APIPromise<OtlpDestination> {
26
30
  return this._client.get(path`/telemetry/destinations/${idOrName}`, options);
@@ -31,10 +35,11 @@ export class Destinations extends APIResource {
31
35
  * values without restarting, which makes this the way to rotate credentials
32
36
  * without interrupting export.
33
37
  *
34
- * Names must be unique within the project. Renaming is refused with a 409 while a
35
- * managed auth connection selects this destination by name, since that connection
36
- * resolves the name on every login. Every other field, including `headers`, stays
37
- * editable.
38
+ * Names must be unique within the organization. Renaming is refused with a 409
39
+ * while a managed auth connection selects this destination by name, since that
40
+ * connection resolves the name on every login. Every other field, including
41
+ * `headers`, stays editable. Requires an organization-scoped credential or
42
+ * dashboard authentication; project-scoped credentials receive a 403.
38
43
  */
39
44
  update(
40
45
  idOrName: string,
@@ -45,7 +50,10 @@ export class Destinations extends APIResource {
45
50
  }
46
51
 
47
52
  /**
48
- * List OTLP export destinations in the resolved project.
53
+ * List customer-visible OTLP export destinations in the authenticated
54
+ * organization. Project-scoped credentials can list these destinations for
55
+ * selection by workloads in their project. Non-dashboard reads return header
56
+ * values redacted.
49
57
  */
50
58
  list(
51
59
  query: DestinationListParams | null | undefined = {},
@@ -63,6 +71,8 @@ export class Destinations extends APIResource {
63
71
  * end or delete them first. It is refused the same way while a managed auth
64
72
  * connection still selects it, because that connection re-resolves the destination
65
73
  * on every login, and while a managed auth login using it is still in progress.
74
+ * Requires an organization-scoped credential or dashboard authentication;
75
+ * project-scoped credentials receive a 403.
66
76
  */
67
77
  delete(idOrName: string, options?: RequestOptions): APIPromise<void> {
68
78
  return this._client.delete(path`/telemetry/destinations/${idOrName}`, {
@@ -82,6 +92,13 @@ export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>
82
92
  export interface OtlpDestination {
83
93
  id: string;
84
94
 
95
+ /**
96
+ * Failed deliveries since the last success, as observed by the relay process that
97
+ * wrote the latest outcome. Zero means the most recently recorded outcome
98
+ * succeeded.
99
+ */
100
+ consecutive_failures: number;
101
+
85
102
  created_at: string;
86
103
 
87
104
  /**
@@ -91,13 +108,14 @@ export interface OtlpDestination {
91
108
 
92
109
  /**
93
110
  * Headers sent with each export request. Names are returned in canonical form
94
- * (`Authorization`, not `authorization`). Values are returned redacted as empty
95
- * strings, so the keys are visible but the credentials are not.
111
+ * (`Authorization`, not `authorization`). Non-dashboard reads return values
112
+ * redacted as empty strings, so the keys are visible but the credentials are not.
113
+ * Dashboard reads return the stored values.
96
114
  */
97
115
  headers: { [key: string]: string };
98
116
 
99
117
  /**
100
- * Unique within the project. Usable in place of the ID when selecting a
118
+ * Unique within the organization. Usable in place of the ID when selecting a
101
119
  * destination, so it cannot be shaped like an ID.
102
120
  */
103
121
  name: string;
@@ -105,6 +123,26 @@ export interface OtlpDestination {
105
123
  updated_at: string;
106
124
 
107
125
  description?: string;
126
+
127
+ /**
128
+ * Sanitized class of the delivery failure recorded at `last_error_at`. It is
129
+ * retained after a later success, so its presence does not mean the destination is
130
+ * currently failing. Response bodies, endpoint URLs, credentials, and raw
131
+ * transport errors are never returned.
132
+ */
133
+ last_error?: string;
134
+
135
+ /**
136
+ * Timestamp of the most recent failed delivery. It is retained after a later
137
+ * success, so it can predate `last_export_at`. Read `consecutive_failures` to tell
138
+ * whether the destination is currently failing.
139
+ */
140
+ last_error_at?: string;
141
+
142
+ /**
143
+ * Timestamp of the most recent successful delivery. Moves only on success.
144
+ */
145
+ last_export_at?: string;
108
146
  }
109
147
 
110
148
  export interface DestinationCreateParams {
@@ -124,7 +162,7 @@ export interface DestinationCreateParams {
124
162
  endpoint: string;
125
163
 
126
164
  /**
127
- * Unique within the project.
165
+ * Unique within the organization.
128
166
  */
129
167
  name: string;
130
168
 
@@ -0,0 +1,30 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Items,
5
+ type AgentcardCheckoutAuthorization,
6
+ type CardVaultItemSpec,
7
+ type CardVaultItemState,
8
+ type VaultCardAliases,
9
+ type VaultItem,
10
+ type VaultItemAction,
11
+ type VaultItemEvent,
12
+ type VaultPaymentMethod,
13
+ type WalletVaultItemSpec,
14
+ type WalletVaultItemState,
15
+ type ItemListResponse,
16
+ type ItemEventsResponse,
17
+ type ItemRetrieveParams,
18
+ type ItemUpdateParams,
19
+ type ItemDeleteParams,
20
+ type ItemEventsParams,
21
+ type ItemPerformOperationParams,
22
+ type ItemUpsertParams,
23
+ } from './items';
24
+ export {
25
+ Vaults,
26
+ type Vault,
27
+ type VaultListParams,
28
+ type VaultUpsertParams,
29
+ type VaultsOffsetPagination,
30
+ } from './vaults';