@onkernel/sdk 0.141.0 → 0.143.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 +14 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/config-registry/config-registry.d.mts +12 -1
- package/resources/config-registry/config-registry.d.mts.map +1 -1
- package/resources/config-registry/config-registry.d.ts +12 -1
- package/resources/config-registry/config-registry.d.ts.map +1 -1
- package/resources/config-registry/config-registry.js.map +1 -1
- package/resources/config-registry/config-registry.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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/proxies.d.mts +106 -12
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +106 -12
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +8 -5
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +8 -5
- package/resources/proxies.mjs.map +1 -1
- package/resources/proxy-ips.d.mts +100 -0
- package/resources/proxy-ips.d.mts.map +1 -0
- package/resources/proxy-ips.d.ts +100 -0
- package/resources/proxy-ips.d.ts.map +1 -0
- package/resources/proxy-ips.js +38 -0
- package/resources/proxy-ips.js.map +1 -0
- package/resources/proxy-ips.mjs +34 -0
- package/resources/proxy-ips.mjs.map +1 -0
- package/resources/shared.d.mts +4 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/vaults/items.d.mts +49 -21
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +49 -21
- package/resources/vaults/items.d.ts.map +1 -1
- package/src/client.ts +20 -0
- package/src/resources/config-registry/config-registry.ts +13 -1
- package/src/resources/index.ts +7 -0
- package/src/resources/proxies.ts +115 -12
- package/src/resources/proxy-ips.ts +130 -0
- package/src/resources/shared.ts +4 -2
- package/src/resources/vaults/items.ts +50 -21
- 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
|
@@ -337,9 +337,21 @@ export namespace Proxy {
|
|
|
337
337
|
export interface IspProxyConfig {
|
|
338
338
|
/**
|
|
339
339
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
340
|
-
* Defaults to US if not provided
|
|
340
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
341
|
+
* set.
|
|
341
342
|
*/
|
|
342
343
|
country?: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
347
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
348
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
349
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
350
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
351
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
352
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
353
|
+
*/
|
|
354
|
+
ip_address?: string;
|
|
343
355
|
}
|
|
344
356
|
|
|
345
357
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -195,6 +195,13 @@ export {
|
|
|
195
195
|
type ProxyCheckParams,
|
|
196
196
|
type ProxyListResponsesOffsetPagination,
|
|
197
197
|
} from './proxies';
|
|
198
|
+
export {
|
|
199
|
+
ProxyIPs,
|
|
200
|
+
type ProxyIP,
|
|
201
|
+
type ProxyIPDetail,
|
|
202
|
+
type ProxyIPListParams,
|
|
203
|
+
type ProxyIPsOffsetPagination,
|
|
204
|
+
} from './proxy-ips';
|
|
198
205
|
export {
|
|
199
206
|
SearchResource,
|
|
200
207
|
type Attempt,
|
package/src/resources/proxies.ts
CHANGED
|
@@ -39,14 +39,17 @@ export class Proxies extends APIResource {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Update a proxy's name
|
|
43
|
-
* allowed.
|
|
42
|
+
* Update a proxy's name, or move an ISP proxy to another reserved exit IP. Proxy
|
|
43
|
+
* names are not unique and duplicate names are allowed. Moving requires a reserved
|
|
44
|
+
* ISP allocation and is accepted only for proxies of type isp: the new endpoint is
|
|
45
|
+
* probed first and nothing changes if the probe fails. An IP outside the
|
|
46
|
+
* allocation is a 400 with code ip_not_reserved. A 409 means the IP cannot
|
|
47
|
+
* currently be assigned or the proxy was changed concurrently; read it back and
|
|
48
|
+
* retry.
|
|
44
49
|
*
|
|
45
50
|
* @example
|
|
46
51
|
* ```ts
|
|
47
|
-
* const proxy = await client.proxies.update('id_or_name'
|
|
48
|
-
* name: 'my-renamed-proxy',
|
|
49
|
-
* });
|
|
52
|
+
* const proxy = await client.proxies.update('id_or_name');
|
|
50
53
|
* ```
|
|
51
54
|
*/
|
|
52
55
|
update(
|
|
@@ -172,9 +175,21 @@ export namespace ProxyCreateResponse {
|
|
|
172
175
|
export interface IspProxyConfig {
|
|
173
176
|
/**
|
|
174
177
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
175
|
-
* Defaults to US if not provided
|
|
178
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
179
|
+
* set.
|
|
176
180
|
*/
|
|
177
181
|
country?: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
185
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
186
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
187
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
188
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
189
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
190
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
191
|
+
*/
|
|
192
|
+
ip_address?: string;
|
|
178
193
|
}
|
|
179
194
|
|
|
180
195
|
/**
|
|
@@ -321,9 +336,21 @@ export namespace ProxyRetrieveResponse {
|
|
|
321
336
|
export interface IspProxyConfig {
|
|
322
337
|
/**
|
|
323
338
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
324
|
-
* Defaults to US if not provided
|
|
339
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
340
|
+
* set.
|
|
325
341
|
*/
|
|
326
342
|
country?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
346
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
347
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
348
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
349
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
350
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
351
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
352
|
+
*/
|
|
353
|
+
ip_address?: string;
|
|
327
354
|
}
|
|
328
355
|
|
|
329
356
|
/**
|
|
@@ -470,9 +497,21 @@ export namespace ProxyUpdateResponse {
|
|
|
470
497
|
export interface IspProxyConfig {
|
|
471
498
|
/**
|
|
472
499
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
473
|
-
* Defaults to US if not provided
|
|
500
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
501
|
+
* set.
|
|
474
502
|
*/
|
|
475
503
|
country?: string;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
507
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
508
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
509
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
510
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
511
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
512
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
513
|
+
*/
|
|
514
|
+
ip_address?: string;
|
|
476
515
|
}
|
|
477
516
|
|
|
478
517
|
/**
|
|
@@ -619,9 +658,21 @@ export namespace ProxyListResponse {
|
|
|
619
658
|
export interface IspProxyConfig {
|
|
620
659
|
/**
|
|
621
660
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
622
|
-
* Defaults to US if not provided
|
|
661
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
662
|
+
* set.
|
|
623
663
|
*/
|
|
624
664
|
country?: string;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
668
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
669
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
670
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
671
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
672
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
673
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
674
|
+
*/
|
|
675
|
+
ip_address?: string;
|
|
625
676
|
}
|
|
626
677
|
|
|
627
678
|
/**
|
|
@@ -768,9 +819,21 @@ export namespace ProxyCheckResponse {
|
|
|
768
819
|
export interface IspProxyConfig {
|
|
769
820
|
/**
|
|
770
821
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
771
|
-
* Defaults to US if not provided
|
|
822
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
823
|
+
* set.
|
|
772
824
|
*/
|
|
773
825
|
country?: string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
829
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
830
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
831
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
832
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
833
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
834
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
835
|
+
*/
|
|
836
|
+
ip_address?: string;
|
|
774
837
|
}
|
|
775
838
|
|
|
776
839
|
/**
|
|
@@ -897,9 +960,21 @@ export namespace ProxyCreateParams {
|
|
|
897
960
|
export interface IspProxyConfig {
|
|
898
961
|
/**
|
|
899
962
|
* ISO 3166 country code. Supported countries are US, GB, FR, DE, SG, and KR.
|
|
900
|
-
* Defaults to US if not provided
|
|
963
|
+
* Defaults to US if not provided, or to the country of ip_address when that is
|
|
964
|
+
* set.
|
|
901
965
|
*/
|
|
902
966
|
country?: string;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Reserved exit IP to pin the proxy to. Available only to organizations with a
|
|
970
|
+
* reserved ISP allocation; the IP must be active in it (see GET /proxy_ips) and,
|
|
971
|
+
* when country is also set, in that country. Omit to let Kernel choose an IP. A
|
|
972
|
+
* proxy read includes it only when the proxy's primary exit IP is one of the
|
|
973
|
+
* organization's reserved IPs; every ISP proxy's exit IP is on the top-level
|
|
974
|
+
* ip_address. An IP outside the allocation is rejected with code ip_not_reserved;
|
|
975
|
+
* one that cannot currently be assigned, with 409 ip_unavailable.
|
|
976
|
+
*/
|
|
977
|
+
ip_address?: string;
|
|
903
978
|
}
|
|
904
979
|
|
|
905
980
|
/**
|
|
@@ -994,14 +1069,42 @@ export namespace ProxyCreateParams {
|
|
|
994
1069
|
}
|
|
995
1070
|
|
|
996
1071
|
export interface ProxyUpdateParams {
|
|
1072
|
+
/**
|
|
1073
|
+
* Changes to an ISP proxy's exit IP. Accepted only for proxies of type `isp`.
|
|
1074
|
+
*/
|
|
1075
|
+
config?: ProxyUpdateParams.Config;
|
|
1076
|
+
|
|
997
1077
|
/**
|
|
998
1078
|
* New proxy name. Proxy names are trimmed and length-checked only; duplicates are
|
|
999
1079
|
* allowed because proxies are updated by ID, not by name.
|
|
1000
1080
|
*/
|
|
1001
|
-
name
|
|
1081
|
+
name?: string;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
export namespace ProxyUpdateParams {
|
|
1085
|
+
/**
|
|
1086
|
+
* Changes to an ISP proxy's exit IP. Accepted only for proxies of type `isp`.
|
|
1087
|
+
*/
|
|
1088
|
+
export interface Config {
|
|
1089
|
+
/**
|
|
1090
|
+
* Reserved exit IP to move the proxy to. The IP must be active in the
|
|
1091
|
+
* organization's allocation and in the proxy's country. The proxy keeps its ID.
|
|
1092
|
+
* The new endpoint is probed before anything changes; a failed probe leaves the
|
|
1093
|
+
* proxy as it was. Live browsers open new connections on the new IP within a few
|
|
1094
|
+
* seconds; established connections drain on the old one.
|
|
1095
|
+
*/
|
|
1096
|
+
ip_address: string;
|
|
1097
|
+
}
|
|
1002
1098
|
}
|
|
1003
1099
|
|
|
1004
1100
|
export interface ProxyListParams extends OffsetPaginationParams {
|
|
1101
|
+
/**
|
|
1102
|
+
* Exact match on the primary exit IP of ISP proxies. Must be an IPv4 address. Only
|
|
1103
|
+
* ISP proxies are matched: the ip_address shown on other proxy types is a one-time
|
|
1104
|
+
* observation, not a stable identity.
|
|
1105
|
+
*/
|
|
1106
|
+
ip_address?: string;
|
|
1107
|
+
|
|
1005
1108
|
/**
|
|
1006
1109
|
* Exact-match filter on proxy name using the database collation. In production,
|
|
1007
1110
|
* matching is case- and accent-insensitive. Names are not required to be unique,
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Create and manage proxy configurations for routing browser traffic.
|
|
11
|
+
*/
|
|
12
|
+
export class ProxyIPs extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve one reserved IP with the ISP proxies using it as their primary exit.
|
|
15
|
+
* proxy_count spans the organization; proxies lists only those in the current
|
|
16
|
+
* project. Returns 404 when the IP is not in the organization's allocation and 403
|
|
17
|
+
* with code reserved_isp_not_enabled when the organization has none. Scoped API
|
|
18
|
+
* keys require proxies:read on the whole project or organization, not on
|
|
19
|
+
* individual proxies; otherwise the operation returns 403 with code
|
|
20
|
+
* insufficient_scope.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(ipAddress: string, options?: RequestOptions): APIPromise<ProxyIPDetail> {
|
|
23
|
+
return this._client.get(path`/proxy_ips/${ipAddress}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List the IP addresses reserved for the organization's ISP proxies, with each
|
|
28
|
+
* IP's country and whether it can currently be assigned. Available only to
|
|
29
|
+
* organizations with a reserved ISP allocation; others receive a 403 with code
|
|
30
|
+
* reserved_isp_not_enabled. Served from the allocation itself, so IPs appear
|
|
31
|
+
* whether or not a proxy uses them. Scoped API keys require proxies:read on the
|
|
32
|
+
* whole project or organization, not on individual proxies; otherwise the
|
|
33
|
+
* operation returns 403 with code insufficient_scope.
|
|
34
|
+
*/
|
|
35
|
+
list(
|
|
36
|
+
query: ProxyIPListParams | null | undefined = {},
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): PagePromise<ProxyIPsOffsetPagination, ProxyIP> {
|
|
39
|
+
return this._client.getAPIList('/proxy_ips', OffsetPagination<ProxyIP>, { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type ProxyIPsOffsetPagination = OffsetPagination<ProxyIP>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* One IP address reserved for the organization's ISP proxies.
|
|
47
|
+
*/
|
|
48
|
+
export interface ProxyIP {
|
|
49
|
+
/**
|
|
50
|
+
* ISO 3166 country code of the IP.
|
|
51
|
+
*/
|
|
52
|
+
country: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Reserved exit IP address.
|
|
56
|
+
*/
|
|
57
|
+
ip_address: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Whether the IP can currently be assigned. An excluded IP is listed but cannot be
|
|
61
|
+
* pinned or moved to; proxies already on it keep working.
|
|
62
|
+
*/
|
|
63
|
+
status: 'active' | 'excluded';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* A reserved IP with the ISP proxies using it as their primary exit. Reservations
|
|
68
|
+
* are organization-wide, so proxy_count covers every project while proxies lists
|
|
69
|
+
* only those in the current project.
|
|
70
|
+
*/
|
|
71
|
+
export interface ProxyIPDetail {
|
|
72
|
+
/**
|
|
73
|
+
* ISO 3166 country code of the IP.
|
|
74
|
+
*/
|
|
75
|
+
country: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Reserved exit IP address.
|
|
79
|
+
*/
|
|
80
|
+
ip_address: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* ISP proxies in the current project whose primary exit IP is this address.
|
|
84
|
+
*/
|
|
85
|
+
proxies: Array<ProxyIPDetail.Proxy>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Number of ISP proxies across the organization whose primary exit IP is this
|
|
89
|
+
* address.
|
|
90
|
+
*/
|
|
91
|
+
proxy_count: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Whether the IP can currently be assigned. An excluded IP is listed but cannot be
|
|
95
|
+
* pinned or moved to; proxies already on it keep working.
|
|
96
|
+
*/
|
|
97
|
+
status: 'active' | 'excluded';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace ProxyIPDetail {
|
|
101
|
+
/**
|
|
102
|
+
* An ISP proxy whose primary exit is the reserved IP.
|
|
103
|
+
*/
|
|
104
|
+
export interface Proxy {
|
|
105
|
+
id: string;
|
|
106
|
+
|
|
107
|
+
name?: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface ProxyIPListParams extends OffsetPaginationParams {
|
|
112
|
+
/**
|
|
113
|
+
* ISO 3166 country code to filter by. Must be a country ISP proxies support.
|
|
114
|
+
*/
|
|
115
|
+
country?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Filter by whether the IP can currently be assigned.
|
|
119
|
+
*/
|
|
120
|
+
status?: 'active' | 'excluded';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare namespace ProxyIPs {
|
|
124
|
+
export {
|
|
125
|
+
type ProxyIP as ProxyIP,
|
|
126
|
+
type ProxyIPDetail as ProxyIPDetail,
|
|
127
|
+
type ProxyIPsOffsetPagination as ProxyIPsOffsetPagination,
|
|
128
|
+
type ProxyIPListParams as ProxyIPListParams,
|
|
129
|
+
};
|
|
130
|
+
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -79,12 +79,14 @@ export interface BrowserProfile {
|
|
|
79
79
|
*/
|
|
80
80
|
export interface BrowserViewport {
|
|
81
81
|
/**
|
|
82
|
-
* Browser window height in pixels. Any positive integer is accepted
|
|
82
|
+
* Browser window height in pixels. Any positive integer is accepted; headful
|
|
83
|
+
* browsers require at least 64.
|
|
83
84
|
*/
|
|
84
85
|
height: number;
|
|
85
86
|
|
|
86
87
|
/**
|
|
87
|
-
* Browser window width in pixels. Any positive integer is accepted
|
|
88
|
+
* Browser window width in pixels. Any positive integer is accepted; headful
|
|
89
|
+
* browsers require at least 64.
|
|
88
90
|
*/
|
|
89
91
|
width: number;
|
|
90
92
|
|
|
@@ -3918,30 +3918,43 @@ export interface VaultWebmcpBinding {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
3920
|
/**
|
|
3921
|
-
* The card
|
|
3922
|
-
*
|
|
3923
|
-
*
|
|
3921
|
+
* The card supplied to a purchase, as aliases in the customer's VGS vault. With
|
|
3922
|
+
* card_mode full it is a whole card: a persistent alias of its number, a freshly
|
|
3923
|
+
* collected volatile alias of its security code, its expiry and its last four
|
|
3924
|
+
* digits. With card_mode cvc_only it is a CVC alias alone, because the merchant
|
|
3925
|
+
* holds the rest on file. pan_alias, exp_month, exp_year and last4 are required
|
|
3926
|
+
* with card_mode full and rejected with card_mode cvc_only. Write-only: stored
|
|
3927
|
+
* encrypted and never returned in the item, its events or logs. A repeated PUT
|
|
3928
|
+
* with the same key must send the same card.
|
|
3924
3929
|
*/
|
|
3925
3930
|
export interface VgsCardInput {
|
|
3926
3931
|
/**
|
|
3927
3932
|
* A volatile alias of a freshly collected security code in the customer's vault.
|
|
3928
|
-
* It must still exist when authorize runs.
|
|
3933
|
+
* It must still exist when authorize runs. Required in both modes.
|
|
3929
3934
|
*/
|
|
3930
3935
|
cvc_alias: string;
|
|
3931
3936
|
|
|
3932
|
-
|
|
3937
|
+
/**
|
|
3938
|
+
* Required with card_mode full, rejected with card_mode cvc_only.
|
|
3939
|
+
*/
|
|
3940
|
+
exp_month?: number;
|
|
3933
3941
|
|
|
3934
|
-
|
|
3942
|
+
/**
|
|
3943
|
+
* Required with card_mode full, rejected with card_mode cvc_only.
|
|
3944
|
+
*/
|
|
3945
|
+
exp_year?: number;
|
|
3935
3946
|
|
|
3936
3947
|
/**
|
|
3937
|
-
* The card number's last four digits, checked against the revealed alias.
|
|
3948
|
+
* The card number's last four digits, checked against the revealed alias. Required
|
|
3949
|
+
* with card_mode full, rejected with card_mode cvc_only.
|
|
3938
3950
|
*/
|
|
3939
|
-
last4
|
|
3951
|
+
last4?: string;
|
|
3940
3952
|
|
|
3941
3953
|
/**
|
|
3942
|
-
* A persistent alias of the card number in the customer's vault.
|
|
3954
|
+
* A persistent alias of the card number in the customer's vault. Required with
|
|
3955
|
+
* card_mode full, rejected with card_mode cvc_only.
|
|
3943
3956
|
*/
|
|
3944
|
-
pan_alias
|
|
3957
|
+
pan_alias?: string;
|
|
3945
3958
|
}
|
|
3946
3959
|
|
|
3947
3960
|
/**
|
|
@@ -3991,17 +4004,24 @@ export namespace VgsCardState {
|
|
|
3991
4004
|
}
|
|
3992
4005
|
|
|
3993
4006
|
/**
|
|
3994
|
-
* One live purchase with a card in the customer's VGS vault.
|
|
3995
|
-
* card.pan_alias and card.cvc_alias through Kernel's VGS
|
|
3996
|
-
*
|
|
3997
|
-
*
|
|
3998
|
-
*
|
|
3999
|
-
*
|
|
4000
|
-
*
|
|
4001
|
-
*
|
|
4002
|
-
*
|
|
4003
|
-
* the browser
|
|
4004
|
-
*
|
|
4007
|
+
* One live purchase with a card in the customer's VGS vault. With card_mode full,
|
|
4008
|
+
* authorize reveals card.pan_alias and card.cvc_alias through Kernel's VGS
|
|
4009
|
+
* outbound proxy; with card_mode cvc_only, for a card the merchant already holds
|
|
4010
|
+
* on file whose checkout page asks only for the security code, it reveals
|
|
4011
|
+
* card.cvc_alias alone. The proxy replaces each revealed value with an alias in
|
|
4012
|
+
* Kernel's vault before it reaches Kernel; Kernel never receives the card number
|
|
4013
|
+
* or security code. The card is then ready with no further approval, until
|
|
4014
|
+
* expires_at, by default five minutes after authorize. fill types Kernel's aliases
|
|
4015
|
+
* on merchant_url's origin, and Kernel's VGS proxy replaces them with the card's
|
|
4016
|
+
* details when the browser submits checkout; a cvc_only card fills only the cvc
|
|
4017
|
+
* field, and reports no masks because it has no last4 to verify. A cvc_only card's
|
|
4018
|
+
* payment window routes all of the browser's egress through Kernel's VGS outbound
|
|
4019
|
+
* proxy, exactly as widely as a full card's: while it is open the proxy reveals
|
|
4020
|
+
* the card's aliases to any destination the browser sends them to, not only the
|
|
4021
|
+
* security code. An expired card requires a new purchase with a freshly collected
|
|
4022
|
+
* CVC alias. The amount and merchant are recorded but do not restrict payment
|
|
4023
|
+
* requests sent by the browser. Card updates are not supported; delete and create
|
|
4024
|
+
* a new item instead.
|
|
4005
4025
|
*/
|
|
4006
4026
|
export interface VgsCardVaultItemSpec {
|
|
4007
4027
|
/**
|
|
@@ -4033,6 +4053,15 @@ export interface VgsCardVaultItemSpec {
|
|
|
4033
4053
|
* Required when creating the card. Never returned.
|
|
4034
4054
|
*/
|
|
4035
4055
|
card?: VgsCardInput;
|
|
4056
|
+
|
|
4057
|
+
/**
|
|
4058
|
+
* Which card this purchase supplies, and the only part of it a read returns. full
|
|
4059
|
+
* is a whole card from the customer's vault. cvc_only is a card the merchant
|
|
4060
|
+
* already holds on file, whose checkout page asks for nothing but the security
|
|
4061
|
+
* code. It must match spec.card: a full card that is missing pan_alias is rejected
|
|
4062
|
+
* rather than treated as cvc_only. Omit it for full, which a read also omits.
|
|
4063
|
+
*/
|
|
4064
|
+
card_mode?: 'full' | 'cvc_only';
|
|
4036
4065
|
}
|
|
4037
4066
|
|
|
4038
4067
|
export interface VgsWalletState {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.143.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.143.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.143.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.143.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|