@onkernel/sdk 0.100.0 → 0.102.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 (110) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  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/lib/browser-routing.d.mts.map +1 -1
  11. package/lib/browser-routing.d.ts.map +1 -1
  12. package/lib/browser-routing.js +23 -6
  13. package/lib/browser-routing.js.map +1 -1
  14. package/lib/browser-routing.mjs +23 -6
  15. package/lib/browser-routing.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/auth/connections.d.mts +6 -0
  18. package/resources/auth/connections.d.mts.map +1 -1
  19. package/resources/auth/connections.d.ts +6 -0
  20. package/resources/auth/connections.d.ts.map +1 -1
  21. package/resources/browsers/computer.d.mts +6 -2
  22. package/resources/browsers/computer.d.mts.map +1 -1
  23. package/resources/browsers/computer.d.ts +6 -2
  24. package/resources/browsers/computer.d.ts.map +1 -1
  25. package/resources/browsers/telemetry.d.mts +4 -3
  26. package/resources/browsers/telemetry.d.mts.map +1 -1
  27. package/resources/browsers/telemetry.d.ts +4 -3
  28. package/resources/browsers/telemetry.d.ts.map +1 -1
  29. package/resources/config-registry/config-registry.d.mts +58 -8
  30. package/resources/config-registry/config-registry.d.mts.map +1 -1
  31. package/resources/config-registry/config-registry.d.ts +58 -8
  32. package/resources/config-registry/config-registry.d.ts.map +1 -1
  33. package/resources/config-registry/config-registry.js.map +1 -1
  34. package/resources/config-registry/config-registry.mjs.map +1 -1
  35. package/resources/index.d.mts +1 -0
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +1 -0
  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 +44 -15
  44. package/resources/invocations.d.mts.map +1 -1
  45. package/resources/invocations.d.ts +44 -15
  46. package/resources/invocations.d.ts.map +1 -1
  47. package/resources/organization/entitlements.d.mts +20 -0
  48. package/resources/organization/entitlements.d.mts.map +1 -1
  49. package/resources/organization/entitlements.d.ts +20 -0
  50. package/resources/organization/entitlements.d.ts.map +1 -1
  51. package/resources/organization/limits.d.mts +10 -1
  52. package/resources/organization/limits.d.mts.map +1 -1
  53. package/resources/organization/limits.d.ts +10 -1
  54. package/resources/organization/limits.d.ts.map +1 -1
  55. package/resources/organization/limits.js +1 -1
  56. package/resources/organization/limits.mjs +1 -1
  57. package/resources/proxies.d.mts +36 -18
  58. package/resources/proxies.d.mts.map +1 -1
  59. package/resources/proxies.d.ts +36 -18
  60. package/resources/proxies.d.ts.map +1 -1
  61. package/resources/vault-provider-configs.d.mts +179 -0
  62. package/resources/vault-provider-configs.d.mts.map +1 -0
  63. package/resources/vault-provider-configs.d.ts +179 -0
  64. package/resources/vault-provider-configs.d.ts.map +1 -0
  65. package/resources/vault-provider-configs.js +99 -0
  66. package/resources/vault-provider-configs.js.map +1 -0
  67. package/resources/vault-provider-configs.mjs +95 -0
  68. package/resources/vault-provider-configs.mjs.map +1 -0
  69. package/resources/vaults/index.d.mts +1 -1
  70. package/resources/vaults/index.d.mts.map +1 -1
  71. package/resources/vaults/index.d.ts +1 -1
  72. package/resources/vaults/index.d.ts.map +1 -1
  73. package/resources/vaults/index.js.map +1 -1
  74. package/resources/vaults/index.mjs.map +1 -1
  75. package/resources/vaults/items.d.mts +662 -36
  76. package/resources/vaults/items.d.mts.map +1 -1
  77. package/resources/vaults/items.d.ts +662 -36
  78. package/resources/vaults/items.d.ts.map +1 -1
  79. package/resources/vaults/items.js +99 -6
  80. package/resources/vaults/items.js.map +1 -1
  81. package/resources/vaults/items.mjs +99 -6
  82. package/resources/vaults/items.mjs.map +1 -1
  83. package/resources/vaults/vaults.d.mts +33 -4
  84. package/resources/vaults/vaults.d.mts.map +1 -1
  85. package/resources/vaults/vaults.d.ts +33 -4
  86. package/resources/vaults/vaults.d.ts.map +1 -1
  87. package/resources/vaults/vaults.js +31 -2
  88. package/resources/vaults/vaults.js.map +1 -1
  89. package/resources/vaults/vaults.mjs +31 -2
  90. package/resources/vaults/vaults.mjs.map +1 -1
  91. package/src/client.ts +19 -0
  92. package/src/lib/browser-routing.ts +27 -6
  93. package/src/resources/auth/connections.ts +7 -0
  94. package/src/resources/browsers/computer.ts +6 -2
  95. package/src/resources/browsers/telemetry.ts +5 -2
  96. package/src/resources/config-registry/config-registry.ts +71 -8
  97. package/src/resources/index.ts +8 -0
  98. package/src/resources/invocations.ts +44 -15
  99. package/src/resources/organization/entitlements.ts +23 -0
  100. package/src/resources/organization/limits.ts +12 -1
  101. package/src/resources/proxies.ts +36 -18
  102. package/src/resources/vault-provider-configs.ts +250 -0
  103. package/src/resources/vaults/index.ts +9 -0
  104. package/src/resources/vaults/items.ts +818 -35
  105. package/src/resources/vaults/vaults.ts +49 -2
  106. package/src/version.ts +1 -1
  107. package/version.d.mts +1 -1
  108. package/version.d.ts +1 -1
  109. package/version.js +1 -1
  110. package/version.mjs +1 -1
@@ -4,8 +4,12 @@ import { APIResource } from '../../core/resource';
4
4
  import * as ItemsAPI from './items';
5
5
  import {
6
6
  AgentcardCheckoutAuthorization,
7
+ AgentcardCheckoutPreparation,
8
+ AuthorizeVaultItemOperationRequest,
7
9
  CardVaultItemSpec,
8
10
  CardVaultItemState,
11
+ FillVaultItemOperationRequest,
12
+ FillVaultItemOperationResult,
9
13
  ItemDeleteParams,
10
14
  ItemEventsParams,
11
15
  ItemEventsResponse,
@@ -15,10 +19,15 @@ import {
15
19
  ItemUpdateParams,
16
20
  ItemUpsertParams,
17
21
  Items,
22
+ PrepareCheckoutVaultItemOperationRequest,
18
23
  VaultCardAliases,
24
+ VaultCardFillField,
25
+ VaultCheckoutContext,
26
+ VaultFillFieldResult,
19
27
  VaultItem,
20
28
  VaultItemAction,
21
29
  VaultItemEvent,
30
+ VaultItemOperationResponse,
22
31
  VaultPaymentMethod,
23
32
  WalletVaultItemSpec,
24
33
  WalletVaultItemState,
@@ -34,6 +43,11 @@ export class Vaults extends APIResource {
34
43
 
35
44
  /**
36
45
  * Get a vault
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const vault = await client.vaults.retrieve('id_or_name');
50
+ * ```
37
51
  */
38
52
  retrieve(idOrName: string, options?: RequestOptions): APIPromise<Vault> {
39
53
  return this._client.get(path`/vaults/${idOrName}`, options);
@@ -41,6 +55,14 @@ export class Vaults extends APIResource {
41
55
 
42
56
  /**
43
57
  * List vaults in the current project
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * // Automatically fetches more pages as needed.
62
+ * for await (const vault of client.vaults.list()) {
63
+ * // ...
64
+ * }
65
+ * ```
44
66
  */
45
67
  list(
46
68
  query: VaultListParams | null | undefined = {},
@@ -50,7 +72,14 @@ export class Vaults extends APIResource {
50
72
  }
51
73
 
52
74
  /**
53
- * Delete a vault and invalidate its items
75
+ * Unresolved payment operations block deletion. Reconcile the original attempt
76
+ * with the provider or support first; deleting or recreating an item is not proof
77
+ * that a payment did not occur.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * await client.vaults.delete('id_or_name');
82
+ * ```
54
83
  */
55
84
  delete(idOrName: string, options?: RequestOptions): APIPromise<void> {
56
85
  return this._client.delete(path`/vaults/${idOrName}`, {
@@ -60,7 +89,16 @@ export class Vaults extends APIResource {
60
89
  }
61
90
 
62
91
  /**
63
- * Create or retrieve a vault by immutable name
92
+ * Free organizations can store up to 3 non-deleted vaults across all projects.
93
+ * Paid plans and active trials have no vault cap. Retrieving an existing vault by
94
+ * name succeeds even at the limit.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const vault = await client.vaults.upsert({
99
+ * name: 'checkout',
100
+ * });
101
+ * ```
64
102
  */
65
103
  upsert(body: VaultUpsertParams, options?: RequestOptions): APIPromise<Vault> {
66
104
  return this._client.post('/vaults', { body, ...options });
@@ -104,12 +142,21 @@ export declare namespace Vaults {
104
142
  export {
105
143
  Items as Items,
106
144
  type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
145
+ type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
146
+ type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest,
107
147
  type CardVaultItemSpec as CardVaultItemSpec,
108
148
  type CardVaultItemState as CardVaultItemState,
149
+ type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
150
+ type FillVaultItemOperationResult as FillVaultItemOperationResult,
151
+ type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest,
109
152
  type VaultCardAliases as VaultCardAliases,
153
+ type VaultCardFillField as VaultCardFillField,
154
+ type VaultCheckoutContext as VaultCheckoutContext,
155
+ type VaultFillFieldResult as VaultFillFieldResult,
110
156
  type VaultItem as VaultItem,
111
157
  type VaultItemAction as VaultItemAction,
112
158
  type VaultItemEvent as VaultItemEvent,
159
+ type VaultItemOperationResponse as VaultItemOperationResponse,
113
160
  type VaultPaymentMethod as VaultPaymentMethod,
114
161
  type WalletVaultItemSpec as WalletVaultItemSpec,
115
162
  type WalletVaultItemState as WalletVaultItemState,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.100.0'; // x-release-please-version
1
+ export const VERSION = '0.102.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.100.0";
1
+ export declare const VERSION = "0.102.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.100.0";
1
+ export declare const VERSION = "0.102.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.100.0'; // x-release-please-version
4
+ exports.VERSION = '0.102.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.100.0'; // x-release-please-version
1
+ export const VERSION = '0.102.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map