@onkernel/sdk 0.98.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 (99) hide show
  1. package/CHANGELOG.md +8 -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 +49 -1
  16. package/resources/browsers/browsers.d.mts.map +1 -1
  17. package/resources/browsers/browsers.d.ts +49 -1
  18. package/resources/browsers/browsers.d.ts.map +1 -1
  19. package/resources/browsers/browsers.js.map +1 -1
  20. package/resources/browsers/browsers.mjs.map +1 -1
  21. package/resources/browsers/index.d.mts +1 -1
  22. package/resources/browsers/index.d.mts.map +1 -1
  23. package/resources/browsers/index.d.ts +1 -1
  24. package/resources/browsers/index.d.ts.map +1 -1
  25. package/resources/browsers/index.js.map +1 -1
  26. package/resources/browsers/index.mjs.map +1 -1
  27. package/resources/config-registry/config-registry.d.mts +14 -11
  28. package/resources/config-registry/config-registry.d.mts.map +1 -1
  29. package/resources/config-registry/config-registry.d.ts +14 -11
  30. package/resources/config-registry/config-registry.d.ts.map +1 -1
  31. package/resources/config-registry/config-registry.js +2 -2
  32. package/resources/config-registry/config-registry.js.map +1 -1
  33. package/resources/config-registry/config-registry.mjs +2 -2
  34. package/resources/config-registry/config-registry.mjs.map +1 -1
  35. package/resources/index.d.mts +2 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +2 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +3 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +1 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/invocations.d.mts +9 -0
  44. package/resources/invocations.d.mts.map +1 -1
  45. package/resources/invocations.d.ts +9 -0
  46. package/resources/invocations.d.ts.map +1 -1
  47. package/resources/telemetry/destinations.d.mts +23 -0
  48. package/resources/telemetry/destinations.d.mts.map +1 -1
  49. package/resources/telemetry/destinations.d.ts +23 -0
  50. package/resources/telemetry/destinations.d.ts.map +1 -1
  51. package/resources/vaults/index.d.mts +3 -0
  52. package/resources/vaults/index.d.mts.map +1 -0
  53. package/resources/vaults/index.d.ts +3 -0
  54. package/resources/vaults/index.d.ts.map +1 -0
  55. package/resources/vaults/index.js +9 -0
  56. package/resources/vaults/index.js.map +1 -0
  57. package/resources/vaults/index.mjs +4 -0
  58. package/resources/vaults/index.mjs.map +1 -0
  59. package/resources/vaults/items.d.mts +534 -0
  60. package/resources/vaults/items.d.mts.map +1 -0
  61. package/resources/vaults/items.d.ts +534 -0
  62. package/resources/vaults/items.d.ts.map +1 -0
  63. package/resources/vaults/items.js +68 -0
  64. package/resources/vaults/items.js.map +1 -0
  65. package/resources/vaults/items.mjs +64 -0
  66. package/resources/vaults/items.mjs.map +1 -0
  67. package/resources/vaults/vaults.d.mts +48 -0
  68. package/resources/vaults/vaults.d.mts.map +1 -0
  69. package/resources/vaults/vaults.d.ts +48 -0
  70. package/resources/vaults/vaults.d.ts.map +1 -0
  71. package/resources/vaults/vaults.js +47 -0
  72. package/resources/vaults/vaults.js.map +1 -0
  73. package/resources/vaults/vaults.mjs +42 -0
  74. package/resources/vaults/vaults.mjs.map +1 -0
  75. package/resources/vaults.d.mts +2 -0
  76. package/resources/vaults.d.mts.map +1 -0
  77. package/resources/vaults.d.ts +2 -0
  78. package/resources/vaults.d.ts.map +1 -0
  79. package/resources/vaults.js +6 -0
  80. package/resources/vaults.js.map +1 -0
  81. package/resources/vaults.mjs +3 -0
  82. package/resources/vaults.mjs.map +1 -0
  83. package/src/client.ts +19 -0
  84. package/src/resources/browser-pools.ts +11 -0
  85. package/src/resources/browsers/browsers.ts +60 -0
  86. package/src/resources/browsers/index.ts +1 -0
  87. package/src/resources/config-registry/config-registry.ts +14 -11
  88. package/src/resources/index.ts +8 -0
  89. package/src/resources/invocations.ts +11 -0
  90. package/src/resources/telemetry/destinations.ts +27 -0
  91. package/src/resources/vaults/index.ts +30 -0
  92. package/src/resources/vaults/items.ts +780 -0
  93. package/src/resources/vaults/vaults.ts +125 -0
  94. package/src/resources/vaults.ts +3 -0
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +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
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './vaults/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.98.0'; // x-release-please-version
1
+ export const VERSION = '0.99.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.98.0";
1
+ export declare const VERSION = "0.99.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.98.0";
1
+ export declare const VERSION = "0.99.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.98.0'; // x-release-please-version
4
+ exports.VERSION = '0.99.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.98.0'; // x-release-please-version
1
+ export const VERSION = '0.99.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map