@onkernel/sdk 0.154.0 → 0.155.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 +8 -0
- package/package.json +1 -1
- package/resources/api-keys.d.mts +27 -3
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +27 -3
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/auth/context.d.mts +9 -1
- package/resources/auth/context.d.mts.map +1 -1
- package/resources/auth/context.d.ts +9 -1
- package/resources/auth/context.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +42 -18
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +42 -18
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +12 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +12 -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/deployments.d.mts +82 -0
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +82 -0
- package/resources/deployments.d.ts.map +1 -1
- package/resources/report-types/report-types.d.mts +7 -0
- package/resources/report-types/report-types.d.mts.map +1 -1
- package/resources/report-types/report-types.d.ts +7 -0
- package/resources/report-types/report-types.d.ts.map +1 -1
- package/resources/report-types/report-types.js.map +1 -1
- package/resources/report-types/report-types.mjs.map +1 -1
- package/resources/vaults/items.d.mts +96 -53
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +96 -53
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/workload-identity-federation-rules.d.mts +9 -1
- package/resources/workload-identity-federation-rules.d.mts.map +1 -1
- package/resources/workload-identity-federation-rules.d.ts +9 -1
- package/resources/workload-identity-federation-rules.d.ts.map +1 -1
- package/src/resources/api-keys.ts +27 -3
- package/src/resources/auth/context.ts +9 -1
- package/src/resources/browser-pools.ts +45 -18
- package/src/resources/browsers/browsers.ts +13 -1
- package/src/resources/deployments.ts +90 -0
- package/src/resources/report-types/report-types.ts +8 -0
- package/src/resources/vaults/items.ts +96 -53
- package/src/resources/workload-identity-federation-rules.ts +9 -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
|
@@ -289,8 +289,13 @@ export namespace BrowserPool {
|
|
|
289
289
|
profile?: BrowserPoolConfig.Profile;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
293
|
-
|
|
292
|
+
* Resolved proxy configuration for browsers in this pool.
|
|
293
|
+
*/
|
|
294
|
+
proxy?: BrowsersAPI.BrowserProxy;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @deprecated ID of the proxy associated with browsers in this pool, if any.
|
|
298
|
+
* Deprecated in favor of proxy.
|
|
294
299
|
*/
|
|
295
300
|
proxy_id?: string;
|
|
296
301
|
|
|
@@ -317,9 +322,9 @@ export namespace BrowserPool {
|
|
|
317
322
|
|
|
318
323
|
/**
|
|
319
324
|
* @deprecated Whether browsers in this pool use stealth mode, which is CAPTCHA
|
|
320
|
-
* solving with Kernel's default stealth proxy unless
|
|
325
|
+
* solving with Kernel's default stealth proxy unless a proxy is set. A pool with
|
|
321
326
|
* only captcha_solver enabled reports false. Deprecated in favor of captcha_solver
|
|
322
|
-
* and
|
|
327
|
+
* and proxy.
|
|
323
328
|
*/
|
|
324
329
|
stealth?: boolean;
|
|
325
330
|
|
|
@@ -634,8 +639,9 @@ export interface BrowserPoolCreateParams {
|
|
|
634
639
|
|
|
635
640
|
/**
|
|
636
641
|
* Automatic CAPTCHA solving for browsers in this pool. Disabled by default.
|
|
637
|
-
* Enabling it does not select a proxy: when proxy_id
|
|
638
|
-
* direct egress unless stealth=true.
|
|
642
|
+
* Enabling it does not select a proxy: when proxy and proxy_id are omitted,
|
|
643
|
+
* browsers use direct egress unless stealth=true. Set proxy.mode=default for
|
|
644
|
+
* Kernel's default stealth proxy.
|
|
639
645
|
*/
|
|
640
646
|
captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
|
|
641
647
|
|
|
@@ -699,8 +705,19 @@ export interface BrowserPoolCreateParams {
|
|
|
699
705
|
profile?: BrowserPoolCreateParams.Profile;
|
|
700
706
|
|
|
701
707
|
/**
|
|
702
|
-
*
|
|
703
|
-
*
|
|
708
|
+
* Proxy configuration for browsers in this pool. Cannot be combined with proxy_id.
|
|
709
|
+
* Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.
|
|
710
|
+
* Set mode to direct to force direct egress. Set mode to default to use Kernel's
|
|
711
|
+
* default stealth proxy when captcha_solver.enabled=true, or direct egress
|
|
712
|
+
* otherwise. Select id or name to use that proxy. Proxy selection does not change
|
|
713
|
+
* CAPTCHA solver behavior.
|
|
714
|
+
*/
|
|
715
|
+
proxy?: BrowsersAPI.BrowserProxyConfig;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @deprecated Optional proxy to associate to browsers in this pool. Must reference
|
|
719
|
+
* a proxy in the same project as the pool. Cannot be combined with proxy.
|
|
720
|
+
* Deprecated in favor of proxy.
|
|
704
721
|
*/
|
|
705
722
|
proxy_id?: string;
|
|
706
723
|
|
|
@@ -733,10 +750,10 @@ export interface BrowserPoolCreateParams {
|
|
|
733
750
|
start_url?: string;
|
|
734
751
|
|
|
735
752
|
/**
|
|
736
|
-
* @deprecated If true, enables the CAPTCHA solver and, when proxy_id
|
|
737
|
-
* uses Kernel's default stealth proxy. Defaults to false. Cannot be
|
|
738
|
-
* captcha_solver.enabled=false. Deprecated in favor of
|
|
739
|
-
*
|
|
753
|
+
* @deprecated If true, enables the CAPTCHA solver and, when proxy and proxy_id are
|
|
754
|
+
* omitted, uses Kernel's default stealth proxy. Defaults to false. Cannot be
|
|
755
|
+
* combined with captcha_solver.enabled=false. Deprecated in favor of
|
|
756
|
+
* captcha_solver and proxy.
|
|
740
757
|
*/
|
|
741
758
|
stealth?: boolean;
|
|
742
759
|
|
|
@@ -908,7 +925,7 @@ export interface BrowserPoolUpdateParams {
|
|
|
908
925
|
/**
|
|
909
926
|
* If provided, replaces whether browsers in this pool automatically solve
|
|
910
927
|
* CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless
|
|
911
|
-
* proxy_id or stealth=true is also set.
|
|
928
|
+
* proxy, proxy_id, or stealth=true is also set.
|
|
912
929
|
*/
|
|
913
930
|
captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
|
|
914
931
|
|
|
@@ -1005,8 +1022,18 @@ export interface BrowserPoolUpdateParams {
|
|
|
1005
1022
|
profile?: BrowserPoolUpdateParams.Profile;
|
|
1006
1023
|
|
|
1007
1024
|
/**
|
|
1008
|
-
*
|
|
1009
|
-
*
|
|
1025
|
+
* Proxy configuration to apply to browsers warmed after the update. Omit to leave
|
|
1026
|
+
* the current configuration unchanged. Cannot be combined with proxy_id. Set mode
|
|
1027
|
+
* to direct to switch to direct egress. Set mode to default to use Kernel's
|
|
1028
|
+
* default stealth proxy for a pool with CAPTCHA solving enabled, or direct egress
|
|
1029
|
+
* otherwise. Updating proxy does not change CAPTCHA solver behavior.
|
|
1030
|
+
*/
|
|
1031
|
+
proxy?: BrowsersAPI.BrowserProxyConfig;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* @deprecated Empty string clears the previously-selected proxy. Omit this field
|
|
1035
|
+
* to leave the proxy unchanged. Cannot be combined with proxy. Deprecated in favor
|
|
1036
|
+
* of proxy.
|
|
1010
1037
|
*/
|
|
1011
1038
|
proxy_id?: string;
|
|
1012
1039
|
|
|
@@ -1041,9 +1068,9 @@ export interface BrowserPoolUpdateParams {
|
|
|
1041
1068
|
|
|
1042
1069
|
/**
|
|
1043
1070
|
* @deprecated If provided, replaces whether browsers launch in stealth mode.
|
|
1044
|
-
* stealth=true without proxy_id moves a pool on direct egress to Kernel's
|
|
1045
|
-
* stealth proxy. Cannot be combined with captcha_solver.enabled=false.
|
|
1046
|
-
* in favor of captcha_solver and
|
|
1071
|
+
* stealth=true without proxy or proxy_id moves a pool on direct egress to Kernel's
|
|
1072
|
+
* default stealth proxy. Cannot be combined with captcha_solver.enabled=false.
|
|
1073
|
+
* Deprecated in favor of captcha_solver and proxy.
|
|
1047
1074
|
*/
|
|
1048
1075
|
stealth?: boolean;
|
|
1049
1076
|
|
|
@@ -2298,6 +2298,13 @@ export interface BrowserRetrieveParams {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
|
|
2300
2300
|
export interface BrowserUpdateParams {
|
|
2301
|
+
/**
|
|
2302
|
+
* Enable or disable the stealth browser's CAPTCHA solver immediately, without
|
|
2303
|
+
* restarting the browser or interrupting the current page. Omit to leave the
|
|
2304
|
+
* solver unchanged. Only available for stealth browsers.
|
|
2305
|
+
*/
|
|
2306
|
+
captcha_solver_enabled?: boolean;
|
|
2307
|
+
|
|
2301
2308
|
/**
|
|
2302
2309
|
* @deprecated If true, stealth browsers connect directly instead of using the
|
|
2303
2310
|
* default stealth proxy. Deprecated in favor of proxy.mode.
|
|
@@ -2510,6 +2517,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
|
|
|
2510
2517
|
|
|
2511
2518
|
/**
|
|
2512
2519
|
* Search browsers by name, session ID, profile name or ID, proxy ID, or pool name.
|
|
2520
|
+
* With `status=deleted` or `status=all`, only browsers created in the last 24
|
|
2521
|
+
* hours are searched, including active ones; use `status=active` to search all
|
|
2522
|
+
* active browsers.
|
|
2513
2523
|
*/
|
|
2514
2524
|
query?: string;
|
|
2515
2525
|
|
|
@@ -2527,7 +2537,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
|
|
|
2527
2537
|
/**
|
|
2528
2538
|
* Filter sessions by tag key-value pairs using deepObject style, e.g.
|
|
2529
2539
|
* ?tags[team]=backend&tags[env]=staging. Multiple pairs are ANDed: a session must
|
|
2530
|
-
* match every supplied pair exactly.
|
|
2540
|
+
* match every supplied pair exactly. With `status=deleted` or `status=all`, only
|
|
2541
|
+
* browsers created in the last 24 hours are matched; use `status=active` to match
|
|
2542
|
+
* all active browsers.
|
|
2531
2543
|
*/
|
|
2532
2544
|
tags?: { [key: string]: string };
|
|
2533
2545
|
}
|
|
@@ -535,6 +535,21 @@ export interface DeploymentCreateParams {
|
|
|
535
535
|
*/
|
|
536
536
|
region?: 'aws.us-east-1a';
|
|
537
537
|
|
|
538
|
+
/**
|
|
539
|
+
* Permissions for each invocation's injected API key. Send this multipart field as
|
|
540
|
+
* JSON. Requires scoped deployment enablement. The policy must stay within the
|
|
541
|
+
* deployment's project, be a subset of the caller's permissions when the caller
|
|
542
|
+
* has a policy, and grant container-wide invocations:write for runtime callbacks.
|
|
543
|
+
* It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
|
|
544
|
+
* The policy outlives the deploying credential; each invocation gets a fresh key
|
|
545
|
+
* valid for 65 minutes from issuance. When the caller has a policy, omission
|
|
546
|
+
* grants only project-wide invocations:write for runtime callbacks. A supplied
|
|
547
|
+
* policy must explicitly include that permission; it is never added automatically.
|
|
548
|
+
* Callers without a policy keep an unrestricted runtime key when this field is
|
|
549
|
+
* omitted. Scoped invokers must cover the runtime policy.
|
|
550
|
+
*/
|
|
551
|
+
runtime_policy?: DeploymentCreateParams.RuntimePolicy;
|
|
552
|
+
|
|
538
553
|
/**
|
|
539
554
|
* Source from which to fetch application code.
|
|
540
555
|
*/
|
|
@@ -547,6 +562,81 @@ export interface DeploymentCreateParams {
|
|
|
547
562
|
}
|
|
548
563
|
|
|
549
564
|
export namespace DeploymentCreateParams {
|
|
565
|
+
/**
|
|
566
|
+
* Permissions for each invocation's injected API key. Send this multipart field as
|
|
567
|
+
* JSON. Requires scoped deployment enablement. The policy must stay within the
|
|
568
|
+
* deployment's project, be a subset of the caller's permissions when the caller
|
|
569
|
+
* has a policy, and grant container-wide invocations:write for runtime callbacks.
|
|
570
|
+
* It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
|
|
571
|
+
* The policy outlives the deploying credential; each invocation gets a fresh key
|
|
572
|
+
* valid for 65 minutes from issuance. When the caller has a policy, omission
|
|
573
|
+
* grants only project-wide invocations:write for runtime callbacks. A supplied
|
|
574
|
+
* policy must explicitly include that permission; it is never added automatically.
|
|
575
|
+
* Callers without a policy keep an unrestricted runtime key when this field is
|
|
576
|
+
* omitted. Scoped invokers must cover the runtime policy.
|
|
577
|
+
*/
|
|
578
|
+
export interface RuntimePolicy {
|
|
579
|
+
/**
|
|
580
|
+
* Allow statements. Every action and resource not listed is denied.
|
|
581
|
+
*/
|
|
582
|
+
statements: Array<RuntimePolicy.Statement>;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export namespace RuntimePolicy {
|
|
586
|
+
export interface Statement {
|
|
587
|
+
/**
|
|
588
|
+
* Permitted action, such as browsers:use or vaults:read. When creating an API key
|
|
589
|
+
* or replacing its policy, `*` may replace whole components as shorthand:
|
|
590
|
+
* browsers:_ names every browsers action, _:delete every delete action the
|
|
591
|
+
* resource can carry, and _:_ every action the resource can carry. The stored
|
|
592
|
+
* policy lists the concrete actions, so actions added later are not granted, and
|
|
593
|
+
* api_keys:issue_beyond_expiry must always be listed explicitly. Partial
|
|
594
|
+
* components such as brow*:use and a bare * are rejected. Other policies, such as
|
|
595
|
+
* workload identity rules and deployment runtime policies, accept only exact
|
|
596
|
+
* actions.
|
|
597
|
+
*/
|
|
598
|
+
action: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.
|
|
602
|
+
* Wildcards are supported.
|
|
603
|
+
*/
|
|
604
|
+
resource: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
608
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
609
|
+
*/
|
|
610
|
+
condition?: Statement.Condition;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export namespace Statement {
|
|
614
|
+
/**
|
|
615
|
+
* A condition narrows a policy statement to requests matching its constraint: the
|
|
616
|
+
* request attribute, a comparison operator, and that operator's values.
|
|
617
|
+
*/
|
|
618
|
+
export interface Condition {
|
|
619
|
+
/**
|
|
620
|
+
* Request attribute the condition constrains. `source_ip` restricts the statement
|
|
621
|
+
* to requests whose client address falls inside one of `values`.
|
|
622
|
+
*/
|
|
623
|
+
key: 'source_ip';
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Comparison the condition applies between the request attribute and values.
|
|
627
|
+
*/
|
|
628
|
+
operator: 'in';
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Values the request attribute must match. For `source_ip`, CIDR networks: a bare
|
|
632
|
+
* address without a mask is rejected, and so are an entry with host bits set and
|
|
633
|
+
* an IPv4 network written in IPv6 notation.
|
|
634
|
+
*/
|
|
635
|
+
values: Array<string>;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
550
640
|
/**
|
|
551
641
|
* Source from which to fetch application code.
|
|
552
642
|
*/
|
|
@@ -116,6 +116,14 @@ export interface ReportTypeListParams extends OffsetPaginationParams {
|
|
|
116
116
|
* Task the agent is finding a report type for.
|
|
117
117
|
*/
|
|
118
118
|
task_id: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* What the agent wants to report, in its own words. Types are ranked by how
|
|
122
|
+
* closely their meaning matches, most relevant first; they need not share any
|
|
123
|
+
* words. Only this text affects the ranking, not the task. Without it, or if
|
|
124
|
+
* ranking is unavailable, types are listed by name.
|
|
125
|
+
*/
|
|
126
|
+
query?: string;
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
ReportTypes.Versions = Versions;
|
|
@@ -869,12 +869,12 @@ export interface CollectVaultItemOperationRequest {
|
|
|
869
869
|
}
|
|
870
870
|
|
|
871
871
|
/**
|
|
872
|
-
* Report a real merchant transaction outcome for an issued Kernel
|
|
873
|
-
* credential.
|
|
874
|
-
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
* report.
|
|
872
|
+
* Report a real merchant transaction outcome for an issued Kernel card or Shop Pay
|
|
873
|
+
* credential. Kernel alias cards record the outcome without contacting the issuer.
|
|
874
|
+
* Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer success from
|
|
875
|
+
* filling checkout or receiving a credential. Supply the observed status,
|
|
876
|
+
* transaction type, actual amount, currency and timestamp. Unknown outcomes
|
|
877
|
+
* require manual reconciliation, not retry. Each purchase accepts one report.
|
|
878
878
|
*/
|
|
879
879
|
export interface ConfirmTransactionVaultItemOperationRequest {
|
|
880
880
|
/**
|
|
@@ -909,20 +909,20 @@ export interface ConfirmTransactionVaultItemOperationRequest {
|
|
|
909
909
|
/**
|
|
910
910
|
* Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,
|
|
911
911
|
* captcha, login_required, timeout or site_error. payment_declined goes only with
|
|
912
|
-
* DECLINED, which takes no other code. Shop Pay reports it
|
|
913
|
-
* it.
|
|
912
|
+
* DECLINED, which takes no other code. Shop Pay reports it to Shop Pay; Kernel
|
|
913
|
+
* cards store it with the purchase without reporting it.
|
|
914
914
|
*/
|
|
915
915
|
failure_code?: string;
|
|
916
916
|
|
|
917
917
|
/**
|
|
918
|
-
* The merchant's order number, for an APPROVED outcome. Shop Pay reports it
|
|
919
|
-
*
|
|
918
|
+
* The merchant's order number, for an APPROVED outcome. Shop Pay reports it to
|
|
919
|
+
* Shop Pay; Kernel cards store it with the purchase without reporting it.
|
|
920
920
|
*/
|
|
921
921
|
order_id?: string;
|
|
922
922
|
|
|
923
923
|
/**
|
|
924
|
-
* The merchant's https order page, for an APPROVED outcome. Shop Pay reports it
|
|
925
|
-
*
|
|
924
|
+
* The merchant's https order page, for an APPROVED outcome. Shop Pay reports it to
|
|
925
|
+
* Shop Pay; Kernel cards store it with the purchase without reporting it.
|
|
926
926
|
*/
|
|
927
927
|
order_url?: string;
|
|
928
928
|
}
|
|
@@ -1948,18 +1948,18 @@ export interface KernelWalletState {
|
|
|
1948
1948
|
provider: 'kernel';
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
1951
|
-
* connected means the wallet is usable.
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1954
|
-
*
|
|
1955
|
-
* wallet
|
|
1956
|
-
*
|
|
1957
|
-
*
|
|
1958
|
-
* card_enrollment action
|
|
1959
|
-
*
|
|
1960
|
-
* reconnect_required
|
|
1961
|
-
* methods and not yet upgraded. Reads preserve its stored state until
|
|
1962
|
-
* upgrade; payment and deletion requests are refused until then.
|
|
1951
|
+
* connected means the wallet is usable. New wallets are created connected and
|
|
1952
|
+
* empty. A wallet holds zero or more cards as payment methods, added with
|
|
1953
|
+
* add_payment_method, removed with remove_payment_method and listed by the
|
|
1954
|
+
* payment_methods expansion; each can pay once it reports
|
|
1955
|
+
* capabilities.single_use_card.eligible. A wallet with no cards, before its first
|
|
1956
|
+
* card or after its last is removed, is still connected. A wallet created before
|
|
1957
|
+
* cards were added with add_payment_method holds a default card, ID card; while
|
|
1958
|
+
* that card's enrollment is pending, its card_enrollment action is on the card in
|
|
1959
|
+
* the payment_methods expansion, not on the wallet. pending_authorization,
|
|
1960
|
+
* degraded and reconnect_required appear only on a wallet created before cards
|
|
1961
|
+
* were payment methods and not yet upgraded. Reads preserve its stored state until
|
|
1962
|
+
* the operator upgrade; payment and deletion requests are refused until then.
|
|
1963
1963
|
*/
|
|
1964
1964
|
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
|
|
1965
1965
|
|
|
@@ -1968,20 +1968,18 @@ export interface KernelWalletState {
|
|
|
1968
1968
|
|
|
1969
1969
|
/**
|
|
1970
1970
|
* Cards stored with Kernel-managed credentials, each a payment method of the
|
|
1971
|
-
* wallet.
|
|
1972
|
-
*
|
|
1973
|
-
*
|
|
1974
|
-
* each card
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
*
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
1981
|
-
*
|
|
1982
|
-
*
|
|
1983
|
-
* cardholder to complete a spend_approval action before Kernel issues a one-time
|
|
1984
|
-
* code; Mastercard purchases need no hosted approval.
|
|
1971
|
+
* wallet. Creation returns a connected wallet with no cards and no action. Add
|
|
1972
|
+
* each card with the add*payment_method operation, which returns a card_enrollment
|
|
1973
|
+
* action: the cardholder enters the card and their email on a Kernel-hosted page.
|
|
1974
|
+
* Kernel then enrolls each card for an agentic network token when the issuer
|
|
1975
|
+
* supports it. The card number never reaches Kernel. The connected wallet's
|
|
1976
|
+
* payment_methods expansion lists the cards; capabilities.single_use_card.eligible
|
|
1977
|
+
* is false, with a network_token*\* reason, until the card has a network token,
|
|
1978
|
+
* and authorize returns 400 for such a card unless Kernel supports checkout
|
|
1979
|
+
* delivery without a network token for that card. In that case, fill types the
|
|
1980
|
+
* checkout details. Visa purchases require the cardholder to complete a
|
|
1981
|
+
* spend_approval action before Kernel issues a one-time code; Mastercard purchases
|
|
1982
|
+
* need no hosted approval.
|
|
1985
1983
|
*/
|
|
1986
1984
|
export interface KernelWalletVaultItemSpec {
|
|
1987
1985
|
provider: 'kernel';
|
|
@@ -2729,22 +2727,65 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
2729
2727
|
export interface OnePasswordFillVaultItemOperationResult {
|
|
2730
2728
|
/**
|
|
2731
2729
|
* Kernel's outcome of the extension call. fill_submitted means the extension
|
|
2732
|
-
* reported submission, not website authentication
|
|
2733
|
-
*
|
|
2734
|
-
* may have been filled or submitted
|
|
2735
|
-
*
|
|
2730
|
+
* reported submission, not website authentication; check the page. fill_failed
|
|
2731
|
+
* means 1Password reported a failure, named by error_code; with fillFailed the
|
|
2732
|
+
* form may already have been filled or submitted, so check the page. fill_unknown
|
|
2733
|
+
* means the form may have been filled or submitted without a conclusive result;
|
|
2734
|
+
* inspect the page to see the result of the fill.
|
|
2736
2735
|
*/
|
|
2737
2736
|
status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
|
|
2738
2737
|
|
|
2739
2738
|
type: '1pw_fill';
|
|
2740
2739
|
|
|
2741
2740
|
/**
|
|
2742
|
-
*
|
|
2743
|
-
*
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2741
|
+
* The 1Password extension's error code, passed through unchanged. Present for
|
|
2742
|
+
* fill_failed, and for fill_unknown when the extension reported one. Codes
|
|
2743
|
+
* 1Password adds later are returned with fill_unknown, because the form may have
|
|
2744
|
+
* been filled or submitted. Codes are short identifiers, never raw errors,
|
|
2745
|
+
* secrets, or page content.
|
|
2746
|
+
*
|
|
2747
|
+
* autosubmitFailed (fill_unknown): 1Password filled the form, saw no new page and
|
|
2748
|
+
* no removed fields for 10 seconds, and cleared what it filled. If the login has a
|
|
2749
|
+
* one-time password the site didn't ask for, the sign-in may still have worked.
|
|
2750
|
+
* The approval is still valid: do not request access again. Check the page:
|
|
2751
|
+
* continue if signed in or on a verification step; if the form is still showing,
|
|
2752
|
+
* 1Password cannot sign in to this site, so ask the user or use another sign-in
|
|
2753
|
+
* method rather than filling again.
|
|
2754
|
+
*
|
|
2755
|
+
* internal (fill_unknown): an unexpected 1Password error that may have happened
|
|
2756
|
+
* after the fill. Inspect the page.
|
|
2757
|
+
*
|
|
2758
|
+
* noActiveGrant, credentialNotFound: the approval expired or was revoked, or the
|
|
2759
|
+
* login was deleted or moved. Kernel returns the credential to
|
|
2760
|
+
* pending_authorization and drops its approval; create a new access request with
|
|
2761
|
+
* 1pw_create_access_request.
|
|
2762
|
+
*
|
|
2763
|
+
* fillFailed: 1Password couldn't complete the fill, and the form may already have
|
|
2764
|
+
* been filled or submitted. Check the page before filling again.
|
|
2765
|
+
*
|
|
2766
|
+
* websiteMismatch: the page isn't on the login's website. Navigate to the login
|
|
2767
|
+
* page and fill again.
|
|
2768
|
+
*
|
|
2769
|
+
* rateLimitExceeded: wait at least a minute before filling again.
|
|
2770
|
+
* serviceUnavailable and networkError: fill again with backoff.
|
|
2771
|
+
*
|
|
2772
|
+
* extensionUnavailable: the 1Password extension failed to start in this browser.
|
|
2773
|
+
* Create a new browser with the vault attached and fill there.
|
|
2774
|
+
*
|
|
2775
|
+
* invalidToken: 1Password rejected the access token. For a credential linked to a
|
|
2776
|
+
* 1Password account, Kernel has already refreshed the token and filled once more;
|
|
2777
|
+
* if that refresh failed, the account is now reconnect_required, so link it again
|
|
2778
|
+
* with PUT. For a credential with a stored token, replace the token with
|
|
2779
|
+
* 1pw_update_access_token, then fill again.
|
|
2780
|
+
*
|
|
2781
|
+
* integrationKeyInvalid: the 1Password connection was removed or is out of date.
|
|
2782
|
+
* Invoke 1pw_disconnect on the credential_account item, then link it again with
|
|
2783
|
+
* PUT.
|
|
2784
|
+
*
|
|
2785
|
+
* insufficientScope, permissionDenied, featureEntitlementMissing: the 1Password
|
|
2786
|
+
* account or plan doesn't allow this. Tell the user; filling again won't help.
|
|
2746
2787
|
*/
|
|
2747
|
-
error_code?:
|
|
2788
|
+
error_code?: string;
|
|
2748
2789
|
}
|
|
2749
2790
|
|
|
2750
2791
|
export interface OnePasswordOAuthAction {
|
|
@@ -4046,8 +4087,8 @@ export interface VaultPaymentMethod {
|
|
|
4046
4087
|
|
|
4047
4088
|
/**
|
|
4048
4089
|
* For Kernel wallets, true for the default card, ID card, which a Kernel card item
|
|
4049
|
-
* that omits payment_method_id selects.
|
|
4050
|
-
*
|
|
4090
|
+
* that omits payment_method_id selects. Only wallets created before cards were
|
|
4091
|
+
* added with add_payment_method have a default card.
|
|
4051
4092
|
*/
|
|
4052
4093
|
is_default: boolean;
|
|
4053
4094
|
|
|
@@ -4857,20 +4898,22 @@ export declare namespace ItemPerformOperationParams {
|
|
|
4857
4898
|
/**
|
|
4858
4899
|
* Body param: Why the purchase did not succeed, for any other outcome, such as
|
|
4859
4900
|
* 3ds_challenge, captcha, login_required, timeout or site_error. payment_declined
|
|
4860
|
-
* goes only with DECLINED, which takes no other code. Shop Pay reports it
|
|
4861
|
-
*
|
|
4901
|
+
* goes only with DECLINED, which takes no other code. Shop Pay reports it to Shop
|
|
4902
|
+
* Pay; Kernel cards store it with the purchase without reporting it.
|
|
4862
4903
|
*/
|
|
4863
4904
|
failure_code?: string;
|
|
4864
4905
|
|
|
4865
4906
|
/**
|
|
4866
4907
|
* Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
|
|
4867
|
-
* reports it;
|
|
4908
|
+
* reports it to Shop Pay; Kernel cards store it with the purchase without
|
|
4909
|
+
* reporting it.
|
|
4868
4910
|
*/
|
|
4869
4911
|
order_id?: string;
|
|
4870
4912
|
|
|
4871
4913
|
/**
|
|
4872
4914
|
* Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
|
|
4873
|
-
* reports it;
|
|
4915
|
+
* reports it to Shop Pay; Kernel cards store it with the purchase without
|
|
4916
|
+
* reporting it.
|
|
4874
4917
|
*/
|
|
4875
4918
|
order_url?: string;
|
|
4876
4919
|
}
|
|
@@ -98,7 +98,15 @@ export namespace WorkloadIdentityAuthorization {
|
|
|
98
98
|
export namespace Policy {
|
|
99
99
|
export interface Statement {
|
|
100
100
|
/**
|
|
101
|
-
* Permitted action, such as browsers:use or vaults:read.
|
|
101
|
+
* Permitted action, such as browsers:use or vaults:read. When creating an API key
|
|
102
|
+
* or replacing its policy, `*` may replace whole components as shorthand:
|
|
103
|
+
* browsers:_ names every browsers action, _:delete every delete action the
|
|
104
|
+
* resource can carry, and _:_ every action the resource can carry. The stored
|
|
105
|
+
* policy lists the concrete actions, so actions added later are not granted, and
|
|
106
|
+
* api_keys:issue_beyond_expiry must always be listed explicitly. Partial
|
|
107
|
+
* components such as brow*:use and a bare * are rejected. Other policies, such as
|
|
108
|
+
* workload identity rules and deployment runtime policies, accept only exact
|
|
109
|
+
* actions.
|
|
102
110
|
*/
|
|
103
111
|
action: string;
|
|
104
112
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.155.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.155.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.155.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.155.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|