@cookiemunch/sdk 0.37.0 → 0.38.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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rights.cjs +16 -0
- package/dist/rights.cjs.map +1 -1
- package/dist/rights.d.ts +19 -1
- package/dist/rights.js +14 -0
- package/dist/rights.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { ConformanceReport } from './executor-conformance.js';
|
|
|
20
20
|
* This package's version, sent in the default User-Agent. Cloudflare answers a request with
|
|
21
21
|
* no recognisable User-Agent with `403 error code: 1010`; a test pins this to package.json.
|
|
22
22
|
*/
|
|
23
|
-
export declare const SDK_VERSION = "0.
|
|
23
|
+
export declare const SDK_VERSION = "0.38.0";
|
|
24
24
|
export interface CookieMunchOptions {
|
|
25
25
|
apiKey: string;
|
|
26
26
|
/** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
|
|
@@ -3780,15 +3780,15 @@ export interface CookieMunchClient {
|
|
|
3780
3780
|
issue(input?: ApiKeyIssueInput): Promise<ApiKeyIssued>;
|
|
3781
3781
|
/** Revoke a key by its prefix. Immediate. */
|
|
3782
3782
|
revoke(prefix: string): Promise<void>;
|
|
3783
|
-
/**
|
|
3783
|
+
/** Full-access or account key (`orgs:keys`): list another org's key prefixes. Same answer as `list()`. */
|
|
3784
3784
|
listInOrg(orgId: string): Promise<ApiKeyPrefix[]>;
|
|
3785
|
-
/**
|
|
3785
|
+
/** Full-access or account key (`orgs:keys`): mint a key in another org of the same account. `scopes` is required with an account key. */
|
|
3786
3786
|
createInOrg(orgId: string, input: ApiKeyIssueInput): Promise<ApiKeyIssued>;
|
|
3787
|
-
/**
|
|
3787
|
+
/** Full-access or account key (`orgs:keys`): update a key in another org. Same body and answer as `update()`. */
|
|
3788
3788
|
updateInOrg(orgId: string, prefix: string, patch: ApiKeyUpdate): Promise<{
|
|
3789
3789
|
ok: true;
|
|
3790
3790
|
}>;
|
|
3791
|
-
/**
|
|
3791
|
+
/** Full-access or account key (`orgs:keys`): revoke a key in another org. Immediate. */
|
|
3792
3792
|
revokeInOrg(orgId: string, prefix: string): Promise<void>;
|
|
3793
3793
|
/** Rotate a key: a new secret, returned once, with the same scopes, lock and expiry. The old one stops working. */
|
|
3794
3794
|
roll(prefix: string): Promise<ApiKeyIssued>;
|
package/dist/index.js
CHANGED