@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.
- package/CHANGELOG.md +15 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +9 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +9 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +70 -14
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +70 -14
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +23 -15
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +23 -15
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/computer.d.mts +62 -45
- package/resources/browsers/computer.d.mts.map +1 -1
- package/resources/browsers/computer.d.ts +62 -45
- package/resources/browsers/computer.d.ts.map +1 -1
- package/resources/browsers/computer.js +74 -57
- package/resources/browsers/computer.js.map +1 -1
- package/resources/browsers/computer.mjs +74 -57
- package/resources/browsers/computer.mjs.map +1 -1
- package/resources/browsers/fs/fs.d.mts +61 -47
- package/resources/browsers/fs/fs.d.mts.map +1 -1
- package/resources/browsers/fs/fs.d.ts +61 -47
- package/resources/browsers/fs/fs.d.ts.map +1 -1
- package/resources/browsers/fs/fs.js +73 -59
- package/resources/browsers/fs/fs.js.map +1 -1
- package/resources/browsers/fs/fs.mjs +73 -59
- package/resources/browsers/fs/fs.mjs.map +1 -1
- package/resources/browsers/fs/watch.d.mts +8 -8
- package/resources/browsers/fs/watch.d.mts.map +1 -1
- package/resources/browsers/fs/watch.d.ts +8 -8
- package/resources/browsers/fs/watch.d.ts.map +1 -1
- package/resources/browsers/fs/watch.js +9 -9
- package/resources/browsers/fs/watch.js.map +1 -1
- package/resources/browsers/fs/watch.mjs +9 -9
- package/resources/browsers/fs/watch.mjs.map +1 -1
- package/resources/browsers/index.d.mts +2 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +2 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js +3 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs +1 -0
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/logs.d.mts +5 -4
- package/resources/browsers/logs.d.mts.map +1 -1
- package/resources/browsers/logs.d.ts +5 -4
- package/resources/browsers/logs.d.ts.map +1 -1
- package/resources/browsers/logs.js +6 -5
- package/resources/browsers/logs.js.map +1 -1
- package/resources/browsers/logs.mjs +6 -5
- package/resources/browsers/logs.mjs.map +1 -1
- package/resources/browsers/playwright.d.mts +7 -4
- package/resources/browsers/playwright.d.mts.map +1 -1
- package/resources/browsers/playwright.d.ts +7 -4
- package/resources/browsers/playwright.d.ts.map +1 -1
- package/resources/browsers/playwright.js +8 -5
- package/resources/browsers/playwright.js.map +1 -1
- package/resources/browsers/playwright.mjs +8 -5
- package/resources/browsers/playwright.mjs.map +1 -1
- package/resources/browsers/process.d.mts +31 -23
- package/resources/browsers/process.d.mts.map +1 -1
- package/resources/browsers/process.d.ts +31 -23
- package/resources/browsers/process.d.ts.map +1 -1
- package/resources/browsers/process.js +33 -25
- package/resources/browsers/process.js.map +1 -1
- package/resources/browsers/process.mjs +33 -25
- package/resources/browsers/process.mjs.map +1 -1
- package/resources/browsers/replays.d.mts +14 -10
- package/resources/browsers/replays.d.mts.map +1 -1
- package/resources/browsers/replays.d.ts +14 -10
- package/resources/browsers/replays.d.ts.map +1 -1
- package/resources/browsers/replays.js +16 -12
- package/resources/browsers/replays.js.map +1 -1
- package/resources/browsers/replays.mjs +16 -12
- package/resources/browsers/replays.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +4 -4
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +4 -4
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/browsers/telemetry.js +6 -6
- package/resources/browsers/telemetry.js.map +1 -1
- package/resources/browsers/telemetry.mjs +6 -6
- package/resources/browsers/telemetry.mjs.map +1 -1
- package/resources/browsers/webmcp.d.mts +148 -0
- package/resources/browsers/webmcp.d.mts.map +1 -0
- package/resources/browsers/webmcp.d.ts +148 -0
- package/resources/browsers/webmcp.d.ts.map +1 -0
- package/resources/browsers/webmcp.js +51 -0
- package/resources/browsers/webmcp.js.map +1 -0
- package/resources/browsers/webmcp.mjs +47 -0
- package/resources/browsers/webmcp.mjs.map +1 -0
- package/resources/config-registry/config-registry.d.mts +14 -11
- package/resources/config-registry/config-registry.d.mts.map +1 -1
- package/resources/config-registry/config-registry.d.ts +14 -11
- package/resources/config-registry/config-registry.d.ts.map +1 -1
- package/resources/config-registry/config-registry.js +2 -2
- package/resources/config-registry/config-registry.js.map +1 -1
- package/resources/config-registry/config-registry.mjs +2 -2
- package/resources/config-registry/config-registry.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +9 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +9 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/telemetry/destinations.d.mts +46 -12
- package/resources/telemetry/destinations.d.mts.map +1 -1
- package/resources/telemetry/destinations.d.ts +46 -12
- package/resources/telemetry/destinations.d.ts.map +1 -1
- package/resources/telemetry/destinations.js +18 -8
- package/resources/telemetry/destinations.js.map +1 -1
- package/resources/telemetry/destinations.mjs +18 -8
- package/resources/telemetry/destinations.mjs.map +1 -1
- package/resources/vaults/index.d.mts +3 -0
- package/resources/vaults/index.d.mts.map +1 -0
- package/resources/vaults/index.d.ts +3 -0
- package/resources/vaults/index.d.ts.map +1 -0
- package/resources/vaults/index.js +9 -0
- package/resources/vaults/index.js.map +1 -0
- package/resources/vaults/index.mjs +4 -0
- package/resources/vaults/index.mjs.map +1 -0
- package/resources/vaults/items.d.mts +534 -0
- package/resources/vaults/items.d.mts.map +1 -0
- package/resources/vaults/items.d.ts +534 -0
- package/resources/vaults/items.d.ts.map +1 -0
- package/resources/vaults/items.js +68 -0
- package/resources/vaults/items.js.map +1 -0
- package/resources/vaults/items.mjs +64 -0
- package/resources/vaults/items.mjs.map +1 -0
- package/resources/vaults/vaults.d.mts +48 -0
- package/resources/vaults/vaults.d.mts.map +1 -0
- package/resources/vaults/vaults.d.ts +48 -0
- package/resources/vaults/vaults.d.ts.map +1 -0
- package/resources/vaults/vaults.js +47 -0
- package/resources/vaults/vaults.js.map +1 -0
- package/resources/vaults/vaults.mjs +42 -0
- package/resources/vaults/vaults.mjs.map +1 -0
- package/resources/vaults.d.mts +2 -0
- package/resources/vaults.d.mts.map +1 -0
- package/resources/vaults.d.ts +2 -0
- package/resources/vaults.d.ts.map +1 -0
- package/resources/vaults.js +6 -0
- package/resources/vaults.js.map +1 -0
- package/resources/vaults.mjs +3 -0
- package/resources/vaults.mjs.map +1 -0
- package/src/client.ts +19 -0
- package/src/resources/browser-pools.ts +11 -0
- package/src/resources/browsers/browsers.ts +111 -15
- package/src/resources/browsers/computer.ts +78 -57
- package/src/resources/browsers/fs/fs.ts +93 -59
- package/src/resources/browsers/fs/watch.ts +13 -13
- package/src/resources/browsers/index.ts +13 -0
- package/src/resources/browsers/logs.ts +10 -5
- package/src/resources/browsers/playwright.ts +8 -5
- package/src/resources/browsers/process.ts +47 -35
- package/src/resources/browsers/replays.ts +20 -16
- package/src/resources/browsers/telemetry.ts +6 -6
- package/src/resources/browsers/webmcp.ts +196 -0
- package/src/resources/config-registry/config-registry.ts +14 -11
- package/src/resources/index.ts +8 -0
- package/src/resources/invocations.ts +11 -0
- package/src/resources/telemetry/destinations.ts +50 -12
- package/src/resources/vaults/index.ts +30 -0
- package/src/resources/vaults/items.ts +780 -0
- package/src/resources/vaults/vaults.ts +125 -0
- package/src/resources/vaults.ts +3 -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
|
@@ -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
|
|
16
|
-
* within the
|
|
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
|
|
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
|
|
35
|
-
* managed auth connection selects this destination by name, since that
|
|
36
|
-
* resolves the name on every login. Every other field, including
|
|
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
|
|
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`).
|
|
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
|
|
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
|
|
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';
|