@cosmoner/sdk 1.7.0 → 1.7.1
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/README.md +3 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/services/secrets.d.ts +3 -3
- package/dist/version.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,8 +170,9 @@ Two API behaviours are worth knowing before you debug them:
|
|
|
170
170
|
- **Writes need an owner or admin.** The API checks the member's role
|
|
171
171
|
independently of the key's scopes, so a plain member's key is refused with a
|
|
172
172
|
403 even when it carries `secrets:write`.
|
|
173
|
-
- **Creating is rate-limited** to
|
|
174
|
-
|
|
173
|
+
- **Creating is rate-limited** to 100 per project every 10 minutes, shared by
|
|
174
|
+
every key and machine working on the project, and a project at its secret
|
|
175
|
+
limit answers 402.
|
|
175
176
|
|
|
176
177
|
## Variables
|
|
177
178
|
|
package/dist/index.js
CHANGED
|
@@ -299,9 +299,9 @@ var SecretsService = class {
|
|
|
299
299
|
/**
|
|
300
300
|
* Stores a new secret, and returns its plaintext value once.
|
|
301
301
|
*
|
|
302
|
-
* Creation is rate-limited to
|
|
303
|
-
*
|
|
304
|
-
* answers 402 — see `usage()`.
|
|
302
|
+
* Creation is rate-limited to 100 per project every 10 minutes, shared by
|
|
303
|
+
* every key and machine working on the project; past it, a `RateLimitError`.
|
|
304
|
+
* A project at its secret limit answers 402 — see `usage()`.
|
|
305
305
|
*/
|
|
306
306
|
async create(params) {
|
|
307
307
|
requireEntryName(params.name);
|
|
@@ -796,7 +796,7 @@ function sleep(ms) {
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
// src/version.ts
|
|
799
|
-
var VERSION = "1.7.
|
|
799
|
+
var VERSION = "1.7.1";
|
|
800
800
|
var USER_AGENT = `cosmoner-node/${VERSION}`;
|
|
801
801
|
|
|
802
802
|
// src/transport.ts
|
package/dist/index.mjs
CHANGED
|
@@ -235,9 +235,9 @@ var SecretsService = class {
|
|
|
235
235
|
/**
|
|
236
236
|
* Stores a new secret, and returns its plaintext value once.
|
|
237
237
|
*
|
|
238
|
-
* Creation is rate-limited to
|
|
239
|
-
*
|
|
240
|
-
* answers 402 — see `usage()`.
|
|
238
|
+
* Creation is rate-limited to 100 per project every 10 minutes, shared by
|
|
239
|
+
* every key and machine working on the project; past it, a `RateLimitError`.
|
|
240
|
+
* A project at its secret limit answers 402 — see `usage()`.
|
|
241
241
|
*/
|
|
242
242
|
async create(params) {
|
|
243
243
|
requireEntryName(params.name);
|
|
@@ -732,7 +732,7 @@ function sleep(ms) {
|
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
// src/version.ts
|
|
735
|
-
var VERSION = "1.7.
|
|
735
|
+
var VERSION = "1.7.1";
|
|
736
736
|
var USER_AGENT = `cosmoner-node/${VERSION}`;
|
|
737
737
|
|
|
738
738
|
// src/transport.ts
|
|
@@ -130,9 +130,9 @@ export declare class SecretsService {
|
|
|
130
130
|
/**
|
|
131
131
|
* Stores a new secret, and returns its plaintext value once.
|
|
132
132
|
*
|
|
133
|
-
* Creation is rate-limited to
|
|
134
|
-
*
|
|
135
|
-
* answers 402 — see `usage()`.
|
|
133
|
+
* Creation is rate-limited to 100 per project every 10 minutes, shared by
|
|
134
|
+
* every key and machine working on the project; past it, a `RateLimitError`.
|
|
135
|
+
* A project at its secret limit answers 402 — see `usage()`.
|
|
136
136
|
*/
|
|
137
137
|
create(params: CreateSecretParams): Promise<SetSecretResponse>;
|
|
138
138
|
/** Replaces a secret's value, bumps its version, and returns the new value once. */
|
package/dist/version.d.ts
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* the release workflow runs that straight after `npm version`, and
|
|
9
9
|
* `version.test.ts` fails the build if the two ever disagree.
|
|
10
10
|
*/
|
|
11
|
-
export declare const VERSION = "1.7.
|
|
12
|
-
export declare const USER_AGENT = "cosmoner-node/1.7.
|
|
11
|
+
export declare const VERSION = "1.7.1";
|
|
12
|
+
export declare const USER_AGENT = "cosmoner-node/1.7.1";
|