@onkernel/sdk 0.148.0 → 0.149.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 +11 -0
- package/client.d.mts +18 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -0
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/report-types/index.d.mts +3 -0
- package/resources/report-types/index.d.mts.map +1 -0
- package/resources/report-types/index.d.ts +3 -0
- package/resources/report-types/index.d.ts.map +1 -0
- package/resources/report-types/index.js +9 -0
- package/resources/report-types/index.js.map +1 -0
- package/resources/report-types/index.mjs +4 -0
- package/resources/report-types/index.mjs.map +1 -0
- package/resources/report-types/report-types.d.mts +98 -0
- package/resources/report-types/report-types.d.mts.map +1 -0
- package/resources/report-types/report-types.d.ts +98 -0
- package/resources/report-types/report-types.d.ts.map +1 -0
- package/resources/report-types/report-types.js +38 -0
- package/resources/report-types/report-types.js.map +1 -0
- package/resources/report-types/report-types.mjs +33 -0
- package/resources/report-types/report-types.mjs.map +1 -0
- package/resources/report-types/versions.d.mts +47 -0
- package/resources/report-types/versions.d.mts.map +1 -0
- package/resources/report-types/versions.d.ts +47 -0
- package/resources/report-types/versions.d.ts.map +1 -0
- package/resources/report-types/versions.js +20 -0
- package/resources/report-types/versions.js.map +1 -0
- package/resources/report-types/versions.mjs +16 -0
- package/resources/report-types/versions.mjs.map +1 -0
- package/resources/report-types.d.mts +2 -0
- package/resources/report-types.d.mts.map +1 -0
- package/resources/report-types.d.ts +2 -0
- package/resources/report-types.d.ts.map +1 -0
- package/resources/report-types.js +6 -0
- package/resources/report-types.js.map +1 -0
- package/resources/report-types.mjs +3 -0
- package/resources/report-types.mjs.map +1 -0
- package/resources/reports.d.mts +136 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +136 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +58 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +54 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/tasks.d.mts +144 -0
- package/resources/tasks.d.mts.map +1 -0
- package/resources/tasks.d.ts +144 -0
- package/resources/tasks.d.ts.map +1 -0
- package/resources/tasks.js +67 -0
- package/resources/tasks.js.map +1 -0
- package/resources/tasks.mjs +63 -0
- package/resources/tasks.mjs.map +1 -0
- package/resources/vaults/items.d.mts +61 -10
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +61 -10
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/items.js +4 -0
- package/resources/vaults/items.js.map +1 -1
- package/resources/vaults/items.mjs +4 -0
- package/resources/vaults/items.mjs.map +1 -1
- package/resources/vaults/vaults.d.mts +4 -1
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +4 -1
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js +4 -1
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs +4 -1
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/client.ts +66 -0
- package/src/resources/index.ts +24 -0
- package/src/resources/report-types/index.ts +11 -0
- package/src/resources/report-types/report-types.ts +137 -0
- package/src/resources/report-types/versions.ts +61 -0
- package/src/resources/report-types.ts +3 -0
- package/src/resources/reports.ts +166 -0
- package/src/resources/tasks.ts +183 -0
- package/src/resources/vaults/items.ts +64 -2
- package/src/resources/vaults/vaults.ts +4 -1
- 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
|
@@ -98,6 +98,10 @@ export class Items extends APIResource {
|
|
|
98
98
|
* or vault remains blocked until the card is deleted. Deleting or recreating an
|
|
99
99
|
* item is not proof that a payment did not occur. Deleting a managed auth
|
|
100
100
|
* credential item leaves the connection and its saved credential unchanged.
|
|
101
|
+
* Deleting a 1Password credential_account stops its fills at once and, when no
|
|
102
|
+
* other vault uses the person's connection, revokes it at 1Password; until
|
|
103
|
+
* 1Password confirms, this returns 409 provider_revocation_pending and Kernel
|
|
104
|
+
* keeps retrying.
|
|
101
105
|
*
|
|
102
106
|
* @example
|
|
103
107
|
* ```ts
|
|
@@ -276,8 +280,19 @@ export interface AgentcardCheckoutAuthorization {
|
|
|
276
280
|
*/
|
|
277
281
|
amount?: string;
|
|
278
282
|
|
|
279
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Source of the approved amount. `processor` is read from the processor request or
|
|
285
|
+
* payment; `agent` is the item's declared amount; `page` is the checkout page
|
|
286
|
+
* total; `none` means no amount was named. `display_only` appears only on
|
|
287
|
+
* authorizations recovered without a provider read. `agent` and `display_only`
|
|
288
|
+
* don't prove what the processor charged.
|
|
289
|
+
*/
|
|
290
|
+
amount_authority?: 'processor' | 'agent' | 'page' | 'none' | 'display_only';
|
|
280
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Whether the processor charged the approved amount. Absent when there was no
|
|
294
|
+
* charge to compare, including tokenization checkouts.
|
|
295
|
+
*/
|
|
281
296
|
amount_verified?: boolean;
|
|
282
297
|
|
|
283
298
|
approval_url?: string;
|
|
@@ -287,10 +302,24 @@ export interface AgentcardCheckoutAuthorization {
|
|
|
287
302
|
*/
|
|
288
303
|
browser_id?: string;
|
|
289
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Amount the processor reported collecting. Absent when the provider didn't
|
|
307
|
+
* observe a charge.
|
|
308
|
+
*/
|
|
290
309
|
charged_amount_cents?: number;
|
|
291
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Currency of `charged_amount_cents`. Absent when the provider didn't observe a
|
|
313
|
+
* charge.
|
|
314
|
+
*/
|
|
292
315
|
charged_currency?: string;
|
|
293
316
|
|
|
317
|
+
/**
|
|
318
|
+
* What the processor collected. `none` means the checkout produced a token or
|
|
319
|
+
* payment method that the merchant charges later. Absent when the provider
|
|
320
|
+
* reported nothing, which is common for tokenization checkouts; use item events
|
|
321
|
+
* and the merchant's order record instead.
|
|
322
|
+
*/
|
|
294
323
|
charged_kind?: 'captured' | 'authorized' | 'none';
|
|
295
324
|
|
|
296
325
|
expected_cents?: number;
|
|
@@ -884,6 +913,7 @@ export namespace CredentialAccountVaultItem {
|
|
|
884
913
|
| '1pw_access_request_status'
|
|
885
914
|
| '1pw_fill'
|
|
886
915
|
| '1pw_recover'
|
|
916
|
+
| '1pw_disconnect'
|
|
887
917
|
| '1pw_update_access_token'
|
|
888
918
|
| 'update_access_token'
|
|
889
919
|
| 'webmcp_invoke'
|
|
@@ -1266,6 +1296,7 @@ export namespace CredentialVaultItem {
|
|
|
1266
1296
|
| '1pw_access_request_status'
|
|
1267
1297
|
| '1pw_fill'
|
|
1268
1298
|
| '1pw_recover'
|
|
1299
|
+
| '1pw_disconnect'
|
|
1269
1300
|
| '1pw_update_access_token'
|
|
1270
1301
|
| 'update_access_token'
|
|
1271
1302
|
| 'webmcp_invoke'
|
|
@@ -2182,7 +2213,11 @@ export namespace OnePasswordCredentialAccountSpec {
|
|
|
2182
2213
|
export interface OnePasswordCredentialAccountState {
|
|
2183
2214
|
provider: '1password';
|
|
2184
2215
|
|
|
2185
|
-
|
|
2216
|
+
/**
|
|
2217
|
+
* revoking means the account was deleted or disconnected and Kernel is waiting for
|
|
2218
|
+
* 1Password to confirm the revoke; it cannot be used and Kernel keeps retrying.
|
|
2219
|
+
*/
|
|
2220
|
+
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'declined' | 'revoking';
|
|
2186
2221
|
|
|
2187
2222
|
status_reason?: string;
|
|
2188
2223
|
}
|
|
@@ -2714,6 +2749,7 @@ export namespace PaymentRequestVaultItem {
|
|
|
2714
2749
|
| '1pw_access_request_status'
|
|
2715
2750
|
| '1pw_fill'
|
|
2716
2751
|
| '1pw_recover'
|
|
2752
|
+
| '1pw_disconnect'
|
|
2717
2753
|
| '1pw_update_access_token'
|
|
2718
2754
|
| 'update_access_token'
|
|
2719
2755
|
| 'webmcp_invoke'
|
|
@@ -3449,6 +3485,7 @@ export namespace VaultItem {
|
|
|
3449
3485
|
| '1pw_access_request_status'
|
|
3450
3486
|
| '1pw_fill'
|
|
3451
3487
|
| '1pw_recover'
|
|
3488
|
+
| '1pw_disconnect'
|
|
3452
3489
|
| '1pw_update_access_token'
|
|
3453
3490
|
| 'update_access_token'
|
|
3454
3491
|
| 'webmcp_invoke'
|
|
@@ -3549,6 +3586,7 @@ export namespace VaultItem {
|
|
|
3549
3586
|
| '1pw_access_request_status'
|
|
3550
3587
|
| '1pw_fill'
|
|
3551
3588
|
| '1pw_recover'
|
|
3589
|
+
| '1pw_disconnect'
|
|
3552
3590
|
| '1pw_update_access_token'
|
|
3553
3591
|
| 'update_access_token'
|
|
3554
3592
|
| 'webmcp_invoke'
|
|
@@ -3741,6 +3779,7 @@ export namespace VaultItemOperationResponse {
|
|
|
3741
3779
|
| '1pw_access_request_status'
|
|
3742
3780
|
| '1pw_fill'
|
|
3743
3781
|
| '1pw_recover'
|
|
3782
|
+
| '1pw_disconnect'
|
|
3744
3783
|
| '1pw_update_access_token'
|
|
3745
3784
|
| 'update_access_token'
|
|
3746
3785
|
| 'webmcp_invoke'
|
|
@@ -3841,6 +3880,7 @@ export namespace VaultItemOperationResponse {
|
|
|
3841
3880
|
| '1pw_access_request_status'
|
|
3842
3881
|
| '1pw_fill'
|
|
3843
3882
|
| '1pw_recover'
|
|
3883
|
+
| '1pw_disconnect'
|
|
3844
3884
|
| '1pw_update_access_token'
|
|
3845
3885
|
| 'update_access_token'
|
|
3846
3886
|
| 'webmcp_invoke'
|
|
@@ -4522,6 +4562,15 @@ export interface ItemEventsParams {
|
|
|
4522
4562
|
*/
|
|
4523
4563
|
after?: string;
|
|
4524
4564
|
|
|
4565
|
+
/**
|
|
4566
|
+
* Query param: When true, also finds deleted items, and deleted vaults by ID only.
|
|
4567
|
+
* `key` then also accepts an item ID, which takes precedence over a key with the
|
|
4568
|
+
* same value; the lookup order is the item ID, then the live item with that key,
|
|
4569
|
+
* then the most recently deleted one. `wait` is ignored for a deleted item or
|
|
4570
|
+
* vault.
|
|
4571
|
+
*/
|
|
4572
|
+
include_deleted?: boolean;
|
|
4573
|
+
|
|
4525
4574
|
/**
|
|
4526
4575
|
* Query param: Long-poll for new events for up to this many seconds.
|
|
4527
4576
|
*/
|
|
@@ -4542,6 +4591,7 @@ export type ItemPerformOperationParams =
|
|
|
4542
4591
|
| ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest
|
|
4543
4592
|
| ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
|
|
4544
4593
|
| ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
|
|
4594
|
+
| ItemPerformOperationParams.OnePasswordDisconnectVaultItemOperationRequest
|
|
4545
4595
|
| ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest
|
|
4546
4596
|
| ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest
|
|
4547
4597
|
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
@@ -4896,6 +4946,18 @@ export declare namespace ItemPerformOperationParams {
|
|
|
4896
4946
|
type: '1pw_recover';
|
|
4897
4947
|
}
|
|
4898
4948
|
|
|
4949
|
+
export interface OnePasswordDisconnectVaultItemOperationRequest {
|
|
4950
|
+
/**
|
|
4951
|
+
* Path param
|
|
4952
|
+
*/
|
|
4953
|
+
id_or_name: string;
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* Body param
|
|
4957
|
+
*/
|
|
4958
|
+
type: '1pw_disconnect';
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4899
4961
|
export interface OnePasswordUpdateAccessTokenVaultItemOperationRequest {
|
|
4900
4962
|
/**
|
|
4901
4963
|
* Path param
|
|
@@ -146,7 +146,10 @@ export class Vaults extends APIResource {
|
|
|
146
146
|
* first blocks new payments on it, then removes its enrolled card. If that fails,
|
|
147
147
|
* the wallet is kept and keeps refusing payments; retry the deletion. Reconcile
|
|
148
148
|
* the original attempt with the provider or support first; deleting or recreating
|
|
149
|
-
* an item is not proof that a payment did not occur.
|
|
149
|
+
* an item is not proof that a payment did not occur. Each 1Password
|
|
150
|
+
* credential_account in the vault is ended the same way as deleting it; the vault
|
|
151
|
+
* is kept and this returns 409 provider_revocation_pending while 1Password has not
|
|
152
|
+
* confirmed a revoke.
|
|
150
153
|
*
|
|
151
154
|
* @example
|
|
152
155
|
* ```ts
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.149.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.149.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.149.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.149.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|