@onkernel/sdk 0.98.0 → 0.100.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 +49 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +49 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- 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 +23 -0
- package/resources/telemetry/destinations.d.mts.map +1 -1
- package/resources/telemetry/destinations.d.ts +23 -0
- package/resources/telemetry/destinations.d.ts.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 +529 -0
- package/resources/vaults/items.d.mts.map +1 -0
- package/resources/vaults/items.d.ts +529 -0
- package/resources/vaults/items.d.ts.map +1 -0
- package/resources/vaults/items.js +70 -0
- package/resources/vaults/items.js.map +1 -0
- package/resources/vaults/items.mjs +66 -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 +60 -0
- package/src/resources/browsers/index.ts +1 -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 +27 -0
- package/src/resources/vaults/index.ts +30 -0
- package/src/resources/vaults/items.ts +774 -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.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ItemsAPI from './items';
|
|
5
|
+
import {
|
|
6
|
+
AgentcardCheckoutAuthorization,
|
|
7
|
+
CardVaultItemSpec,
|
|
8
|
+
CardVaultItemState,
|
|
9
|
+
ItemDeleteParams,
|
|
10
|
+
ItemEventsParams,
|
|
11
|
+
ItemEventsResponse,
|
|
12
|
+
ItemListResponse,
|
|
13
|
+
ItemPerformOperationParams,
|
|
14
|
+
ItemRetrieveParams,
|
|
15
|
+
ItemUpdateParams,
|
|
16
|
+
ItemUpsertParams,
|
|
17
|
+
Items,
|
|
18
|
+
VaultCardAliases,
|
|
19
|
+
VaultItem,
|
|
20
|
+
VaultItemAction,
|
|
21
|
+
VaultItemEvent,
|
|
22
|
+
VaultPaymentMethod,
|
|
23
|
+
WalletVaultItemSpec,
|
|
24
|
+
WalletVaultItemState,
|
|
25
|
+
} from './items';
|
|
26
|
+
import { APIPromise } from '../../core/api-promise';
|
|
27
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../../core/pagination';
|
|
28
|
+
import { buildHeaders } from '../../internal/headers';
|
|
29
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
30
|
+
import { path } from '../../internal/utils/path';
|
|
31
|
+
|
|
32
|
+
export class Vaults extends APIResource {
|
|
33
|
+
items: ItemsAPI.Items = new ItemsAPI.Items(this._client);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get a vault
|
|
37
|
+
*/
|
|
38
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<Vault> {
|
|
39
|
+
return this._client.get(path`/vaults/${idOrName}`, options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* List vaults in the current project
|
|
44
|
+
*/
|
|
45
|
+
list(
|
|
46
|
+
query: VaultListParams | null | undefined = {},
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): PagePromise<VaultsOffsetPagination, Vault> {
|
|
49
|
+
return this._client.getAPIList('/vaults', OffsetPagination<Vault>, { query, ...options });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Delete a vault and invalidate its items
|
|
54
|
+
*/
|
|
55
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void> {
|
|
56
|
+
return this._client.delete(path`/vaults/${idOrName}`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Create or retrieve a vault by immutable name
|
|
64
|
+
*/
|
|
65
|
+
upsert(body: VaultUpsertParams, options?: RequestOptions): APIPromise<Vault> {
|
|
66
|
+
return this._client.post('/vaults', { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type VaultsOffsetPagination = OffsetPagination<Vault>;
|
|
71
|
+
|
|
72
|
+
export interface Vault {
|
|
73
|
+
id: string;
|
|
74
|
+
|
|
75
|
+
created_at: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Immutable name assigned when the vault is created.
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
|
|
82
|
+
updated_at: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface VaultListParams extends OffsetPaginationParams {}
|
|
86
|
+
|
|
87
|
+
export interface VaultUpsertParams {
|
|
88
|
+
/**
|
|
89
|
+
* Immutable name used to create or retrieve the vault.
|
|
90
|
+
*/
|
|
91
|
+
name: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Vaults.Items = Items;
|
|
95
|
+
|
|
96
|
+
export declare namespace Vaults {
|
|
97
|
+
export {
|
|
98
|
+
type Vault as Vault,
|
|
99
|
+
type VaultsOffsetPagination as VaultsOffsetPagination,
|
|
100
|
+
type VaultListParams as VaultListParams,
|
|
101
|
+
type VaultUpsertParams as VaultUpsertParams,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
Items as Items,
|
|
106
|
+
type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
|
|
107
|
+
type CardVaultItemSpec as CardVaultItemSpec,
|
|
108
|
+
type CardVaultItemState as CardVaultItemState,
|
|
109
|
+
type VaultCardAliases as VaultCardAliases,
|
|
110
|
+
type VaultItem as VaultItem,
|
|
111
|
+
type VaultItemAction as VaultItemAction,
|
|
112
|
+
type VaultItemEvent as VaultItemEvent,
|
|
113
|
+
type VaultPaymentMethod as VaultPaymentMethod,
|
|
114
|
+
type WalletVaultItemSpec as WalletVaultItemSpec,
|
|
115
|
+
type WalletVaultItemState as WalletVaultItemState,
|
|
116
|
+
type ItemListResponse as ItemListResponse,
|
|
117
|
+
type ItemEventsResponse as ItemEventsResponse,
|
|
118
|
+
type ItemRetrieveParams as ItemRetrieveParams,
|
|
119
|
+
type ItemUpdateParams as ItemUpdateParams,
|
|
120
|
+
type ItemDeleteParams as ItemDeleteParams,
|
|
121
|
+
type ItemEventsParams as ItemEventsParams,
|
|
122
|
+
type ItemPerformOperationParams as ItemPerformOperationParams,
|
|
123
|
+
type ItemUpsertParams as ItemUpsertParams,
|
|
124
|
+
};
|
|
125
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.100.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.100.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.100.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.100.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
|