@browserbasehq/sdk 2.21.0 → 2.23.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 +19 -0
- package/package.json +1 -1
- package/resources/fetch-api.d.ts +4 -0
- package/resources/fetch-api.d.ts.map +1 -1
- package/resources/search.d.ts +54 -9
- package/resources/search.d.ts.map +1 -1
- package/resources/secrets.d.ts +17 -17
- package/resources/secrets.js +4 -4
- package/resources/secrets.mjs +4 -4
- package/src/resources/fetch-api.ts +5 -0
- package/src/resources/search.ts +63 -9
- package/src/resources/secrets.ts +17 -17
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.23.0](https://github.com/browserbase/sdk-node/compare/v2.22.0...v2.23.0) (2026-10-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add contextId to fetch and Exa deep search modes ([257c819](https://github.com/browserbase/sdk-node/commit/257c8192e1db3ca77fe35967fba2afc4a438e9d8))
|
|
9
|
+
|
|
10
|
+
## [2.22.0](https://github.com/browserbase/sdk-node/compare/v2.21.0...v2.22.0) (2026-10-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add search provider and mode options ([99e788c](https://github.com/browserbase/sdk-node/commit/99e788c3d8cee22d3b5dca9767d838c8bd7666a8))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* preserve required search parameters in SDKs ([56022b3](https://github.com/browserbase/sdk-node/commit/56022b3415b7b9f2c6eaf1bcecb30551aea83d08))
|
|
21
|
+
|
|
3
22
|
## [2.21.0](https://github.com/browserbase/sdk-node/compare/v2.20.0...v2.21.0) (2026-09-24)
|
|
4
23
|
|
|
5
24
|
|
package/package.json
CHANGED
package/resources/fetch-api.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export interface FetchAPICreateParams {
|
|
|
50
50
|
* Whether to follow HTTP redirects
|
|
51
51
|
*/
|
|
52
52
|
allowRedirects?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* ID of a context whose persisted cookies are sent with the request.
|
|
55
|
+
*/
|
|
56
|
+
contextId?: string;
|
|
53
57
|
/**
|
|
54
58
|
* Output format for the response content. `raw` (default) returns the response
|
|
55
59
|
* body unchanged; `json` returns structured data (requires `schema`); `markdown`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-api.d.ts","sourceRoot":"","sources":["../src/resources/fetch-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAG3G;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAE7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG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AoB;IACnC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/search.d.ts
CHANGED
|
@@ -52,15 +52,60 @@ export declare namespace SearchWebResponse {
|
|
|
52
52
|
publishedDate?: string;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
export type SearchWebParams = SearchWebParams.Variant0 | SearchWebParams.Variant1 | SearchWebParams.Variant2;
|
|
56
|
+
export declare namespace SearchWebParams {
|
|
57
|
+
interface Variant0 {
|
|
58
|
+
/**
|
|
59
|
+
* Search provider to serve this request. Omit to use the default provider for your
|
|
60
|
+
* project.
|
|
61
|
+
*/
|
|
62
|
+
provider: 'parallel';
|
|
63
|
+
/**
|
|
64
|
+
* The search query string
|
|
65
|
+
*/
|
|
66
|
+
query: string;
|
|
67
|
+
/**
|
|
68
|
+
* The search mode used by the underlying provider.
|
|
69
|
+
* [Search docs](https://docs.browserbase.com/platform/search/overview) for the
|
|
70
|
+
* available modes and defaults.
|
|
71
|
+
*/
|
|
72
|
+
mode?: 'fast' | 'advanced';
|
|
73
|
+
/**
|
|
74
|
+
* Number of results to return (1-25)
|
|
75
|
+
*/
|
|
76
|
+
numResults?: number;
|
|
77
|
+
}
|
|
78
|
+
interface Variant1 {
|
|
79
|
+
/**
|
|
80
|
+
* Search provider to serve this request. Omit to use the default provider for your
|
|
81
|
+
* project.
|
|
82
|
+
*/
|
|
83
|
+
provider: 'exa';
|
|
84
|
+
/**
|
|
85
|
+
* The search query string
|
|
86
|
+
*/
|
|
87
|
+
query: string;
|
|
88
|
+
/**
|
|
89
|
+
* The search mode used by the underlying provider.
|
|
90
|
+
* [Search docs](https://docs.browserbase.com/platform/search/overview) for the
|
|
91
|
+
* available modes and defaults.
|
|
92
|
+
*/
|
|
93
|
+
mode?: 'fast' | 'deep-lite' | 'deep';
|
|
94
|
+
/**
|
|
95
|
+
* Number of results to return (1-25)
|
|
96
|
+
*/
|
|
97
|
+
numResults?: number;
|
|
98
|
+
}
|
|
99
|
+
interface Variant2 {
|
|
100
|
+
/**
|
|
101
|
+
* The search query string
|
|
102
|
+
*/
|
|
103
|
+
query: string;
|
|
104
|
+
/**
|
|
105
|
+
* Number of results to return (1-25)
|
|
106
|
+
*/
|
|
107
|
+
numResults?: number;
|
|
108
|
+
}
|
|
64
109
|
}
|
|
65
110
|
export declare namespace Search {
|
|
66
111
|
export { type SearchWebResponse as SearchWebResponse, type SearchWebParams as SearchWebParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/resources/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAA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ource.js";
|
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class Secrets extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Create Secret
|
|
5
|
+
* Create a Secret
|
|
6
6
|
*/
|
|
7
7
|
create(body: SecretCreateParams, options?: Core.RequestOptions): Core.APIPromise<Secret>;
|
|
8
8
|
/**
|
|
9
|
-
* Get Secret
|
|
9
|
+
* Get a Secret
|
|
10
10
|
*/
|
|
11
11
|
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<Secret>;
|
|
12
12
|
/**
|
|
@@ -20,11 +20,11 @@ export declare class Secrets extends APIResource {
|
|
|
20
20
|
list(query?: SecretListParams, options?: Core.RequestOptions): Core.APIPromise<SecretListResponse>;
|
|
21
21
|
list(options?: Core.RequestOptions): Core.APIPromise<SecretListResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Delete Secret
|
|
23
|
+
* Delete a Secret
|
|
24
24
|
*/
|
|
25
25
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
26
26
|
/**
|
|
27
|
-
* Get
|
|
27
|
+
* Get a Keypair
|
|
28
28
|
*/
|
|
29
29
|
getPublicKey(options?: Core.RequestOptions): Core.APIPromise<SecretsKeypair>;
|
|
30
30
|
}
|
|
@@ -77,9 +77,9 @@ export interface SecretCreateParams {
|
|
|
77
77
|
*/
|
|
78
78
|
keypairId: string;
|
|
79
79
|
/**
|
|
80
|
-
* The secret value encrypted with HPKE.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* The secret value encrypted with HPKE. To seal the secret value before sending,
|
|
81
|
+
* get the project's public key from GET /v1/secrets/keypair. Decode the publicKey
|
|
82
|
+
* using base64 into the raw 32-byte public key. Then, use HPKE Base mode
|
|
83
83
|
* (RFC 9180) with the following algorithm suite: DHKEM(X25519, HKDF-SHA256),
|
|
84
84
|
* HKDF-SHA256, and AES-256-GCM. Set both info and additional authenticated data
|
|
85
85
|
* (AAD) to an empty byte string. Then, create a new sender context using the
|
|
@@ -102,16 +102,16 @@ export interface SecretUpdateParams {
|
|
|
102
102
|
*/
|
|
103
103
|
keypairId: string;
|
|
104
104
|
/**
|
|
105
|
-
* The new secret value encrypted with HPKE.
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* HKDF-SHA256
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
105
|
+
* The new secret value encrypted with HPKE. To seal the secret value before
|
|
106
|
+
* sending, get the project's public key from GET /v1/secrets/keypair. Decode the
|
|
107
|
+
* publicKey using base64 into the raw 32-byte public key. Then, use HPKE Base mode
|
|
108
|
+
* (RFC 9180) with the following algorithm suite: DHKEM(X25519, HKDF-SHA256),
|
|
109
|
+
* HKDF-SHA256, and AES-256-GCM. Set both info and additional authenticated data
|
|
110
|
+
* (AAD) to an empty byte string. Then, create a new sender context using the
|
|
111
|
+
* public key and these settings, and encrypt the secret value as one message. Put
|
|
112
|
+
* the 32-byte encapsulated key before the ciphertext and keep the authentication
|
|
113
|
+
* tag at the end of the ciphertext. Encode the combined bytes with standard
|
|
114
|
+
* base64. Send the result as sealedSecretValue: base64(enc || ciphertext)
|
|
115
115
|
*/
|
|
116
116
|
sealedSecretValue: string;
|
|
117
117
|
}
|
package/resources/secrets.js
CHANGED
|
@@ -6,13 +6,13 @@ const resource_1 = require("../resource.js");
|
|
|
6
6
|
const core_1 = require("../core.js");
|
|
7
7
|
class Secrets extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Create Secret
|
|
9
|
+
* Create a Secret
|
|
10
10
|
*/
|
|
11
11
|
create(body, options) {
|
|
12
12
|
return this._client.post('/v1/secrets', { body, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Get Secret
|
|
15
|
+
* Get a Secret
|
|
16
16
|
*/
|
|
17
17
|
retrieve(id, options) {
|
|
18
18
|
return this._client.get(`/v1/secrets/${id}`, options);
|
|
@@ -31,7 +31,7 @@ class Secrets extends resource_1.APIResource {
|
|
|
31
31
|
return this._client.get('/v1/secrets', { query, ...options });
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Delete Secret
|
|
34
|
+
* Delete a Secret
|
|
35
35
|
*/
|
|
36
36
|
delete(id, options) {
|
|
37
37
|
return this._client.delete(`/v1/secrets/${id}`, {
|
|
@@ -40,7 +40,7 @@ class Secrets extends resource_1.APIResource {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* Get
|
|
43
|
+
* Get a Keypair
|
|
44
44
|
*/
|
|
45
45
|
getPublicKey(options) {
|
|
46
46
|
return this._client.get('/v1/secrets/keypair', options);
|
package/resources/secrets.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import { APIResource } from "../resource.mjs";
|
|
|
3
3
|
import { isRequestOptions } from "../core.mjs";
|
|
4
4
|
export class Secrets extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create Secret
|
|
6
|
+
* Create a Secret
|
|
7
7
|
*/
|
|
8
8
|
create(body, options) {
|
|
9
9
|
return this._client.post('/v1/secrets', { body, ...options });
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Get Secret
|
|
12
|
+
* Get a Secret
|
|
13
13
|
*/
|
|
14
14
|
retrieve(id, options) {
|
|
15
15
|
return this._client.get(`/v1/secrets/${id}`, options);
|
|
@@ -28,7 +28,7 @@ export class Secrets extends APIResource {
|
|
|
28
28
|
return this._client.get('/v1/secrets', { query, ...options });
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Delete Secret
|
|
31
|
+
* Delete a Secret
|
|
32
32
|
*/
|
|
33
33
|
delete(id, options) {
|
|
34
34
|
return this._client.delete(`/v1/secrets/${id}`, {
|
|
@@ -37,7 +37,7 @@ export class Secrets extends APIResource {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Get
|
|
40
|
+
* Get a Keypair
|
|
41
41
|
*/
|
|
42
42
|
getPublicKey(options) {
|
|
43
43
|
return this._client.get('/v1/secrets/keypair', options);
|
|
@@ -61,6 +61,11 @@ export interface FetchAPICreateParams {
|
|
|
61
61
|
*/
|
|
62
62
|
allowRedirects?: boolean;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* ID of a context whose persisted cookies are sent with the request.
|
|
66
|
+
*/
|
|
67
|
+
contextId?: string;
|
|
68
|
+
|
|
64
69
|
/**
|
|
65
70
|
* Output format for the response content. `raw` (default) returns the response
|
|
66
71
|
* body unchanged; `json` returns structured data (requires `schema`); `markdown`
|
package/src/resources/search.ts
CHANGED
|
@@ -68,16 +68,70 @@ export namespace SearchWebResponse {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export
|
|
72
|
-
/**
|
|
73
|
-
* The search query string
|
|
74
|
-
*/
|
|
75
|
-
query: string;
|
|
71
|
+
export type SearchWebParams = SearchWebParams.Variant0 | SearchWebParams.Variant1 | SearchWebParams.Variant2;
|
|
76
72
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
export declare namespace SearchWebParams {
|
|
74
|
+
export interface Variant0 {
|
|
75
|
+
/**
|
|
76
|
+
* Search provider to serve this request. Omit to use the default provider for your
|
|
77
|
+
* project.
|
|
78
|
+
*/
|
|
79
|
+
provider: 'parallel';
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The search query string
|
|
83
|
+
*/
|
|
84
|
+
query: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The search mode used by the underlying provider.
|
|
88
|
+
* [Search docs](https://docs.browserbase.com/platform/search/overview) for the
|
|
89
|
+
* available modes and defaults.
|
|
90
|
+
*/
|
|
91
|
+
mode?: 'fast' | 'advanced';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Number of results to return (1-25)
|
|
95
|
+
*/
|
|
96
|
+
numResults?: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface Variant1 {
|
|
100
|
+
/**
|
|
101
|
+
* Search provider to serve this request. Omit to use the default provider for your
|
|
102
|
+
* project.
|
|
103
|
+
*/
|
|
104
|
+
provider: 'exa';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The search query string
|
|
108
|
+
*/
|
|
109
|
+
query: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The search mode used by the underlying provider.
|
|
113
|
+
* [Search docs](https://docs.browserbase.com/platform/search/overview) for the
|
|
114
|
+
* available modes and defaults.
|
|
115
|
+
*/
|
|
116
|
+
mode?: 'fast' | 'deep-lite' | 'deep';
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Number of results to return (1-25)
|
|
120
|
+
*/
|
|
121
|
+
numResults?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface Variant2 {
|
|
125
|
+
/**
|
|
126
|
+
* The search query string
|
|
127
|
+
*/
|
|
128
|
+
query: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Number of results to return (1-25)
|
|
132
|
+
*/
|
|
133
|
+
numResults?: number;
|
|
134
|
+
}
|
|
81
135
|
}
|
|
82
136
|
|
|
83
137
|
export declare namespace Search {
|
package/src/resources/secrets.ts
CHANGED
|
@@ -6,14 +6,14 @@ import * as Core from '../core';
|
|
|
6
6
|
|
|
7
7
|
export class Secrets extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Create Secret
|
|
9
|
+
* Create a Secret
|
|
10
10
|
*/
|
|
11
11
|
create(body: SecretCreateParams, options?: Core.RequestOptions): Core.APIPromise<Secret> {
|
|
12
12
|
return this._client.post('/v1/secrets', { body, ...options });
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Get Secret
|
|
16
|
+
* Get a Secret
|
|
17
17
|
*/
|
|
18
18
|
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<Secret> {
|
|
19
19
|
return this._client.get(`/v1/secrets/${id}`, options);
|
|
@@ -43,7 +43,7 @@ export class Secrets extends APIResource {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Delete Secret
|
|
46
|
+
* Delete a Secret
|
|
47
47
|
*/
|
|
48
48
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
49
49
|
return this._client.delete(`/v1/secrets/${id}`, {
|
|
@@ -53,7 +53,7 @@ export class Secrets extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Get
|
|
56
|
+
* Get a Keypair
|
|
57
57
|
*/
|
|
58
58
|
getPublicKey(options?: Core.RequestOptions): Core.APIPromise<SecretsKeypair> {
|
|
59
59
|
return this._client.get('/v1/secrets/keypair', options);
|
|
@@ -117,9 +117,9 @@ export interface SecretCreateParams {
|
|
|
117
117
|
keypairId: string;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* The secret value encrypted with HPKE.
|
|
121
|
-
*
|
|
122
|
-
*
|
|
120
|
+
* The secret value encrypted with HPKE. To seal the secret value before sending,
|
|
121
|
+
* get the project's public key from GET /v1/secrets/keypair. Decode the publicKey
|
|
122
|
+
* using base64 into the raw 32-byte public key. Then, use HPKE Base mode
|
|
123
123
|
* (RFC 9180) with the following algorithm suite: DHKEM(X25519, HKDF-SHA256),
|
|
124
124
|
* HKDF-SHA256, and AES-256-GCM. Set both info and additional authenticated data
|
|
125
125
|
* (AAD) to an empty byte string. Then, create a new sender context using the
|
|
@@ -145,16 +145,16 @@ export interface SecretUpdateParams {
|
|
|
145
145
|
keypairId: string;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* The new secret value encrypted with HPKE.
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* HKDF-SHA256
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
148
|
+
* The new secret value encrypted with HPKE. To seal the secret value before
|
|
149
|
+
* sending, get the project's public key from GET /v1/secrets/keypair. Decode the
|
|
150
|
+
* publicKey using base64 into the raw 32-byte public key. Then, use HPKE Base mode
|
|
151
|
+
* (RFC 9180) with the following algorithm suite: DHKEM(X25519, HKDF-SHA256),
|
|
152
|
+
* HKDF-SHA256, and AES-256-GCM. Set both info and additional authenticated data
|
|
153
|
+
* (AAD) to an empty byte string. Then, create a new sender context using the
|
|
154
|
+
* public key and these settings, and encrypt the secret value as one message. Put
|
|
155
|
+
* the 32-byte encapsulated key before the ciphertext and keep the authentication
|
|
156
|
+
* tag at the end of the ciphertext. Encode the combined bytes with standard
|
|
157
|
+
* base64. Send the result as sealedSecretValue: base64(enc || ciphertext)
|
|
158
158
|
*/
|
|
159
159
|
sealedSecretValue: string;
|
|
160
160
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.23.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|