@cubist-labs/cubesigner-sdk 0.3.28 → 0.3.29
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 +1 -6
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/api.d.ts +2 -1
- package/dist/cjs/src/api.js +4 -2
- package/dist/cjs/src/client.d.ts +16 -11
- package/dist/cjs/src/client.js +4 -3
- package/dist/cjs/src/key.d.ts +3 -0
- package/dist/cjs/src/key.js +10 -1
- package/dist/cjs/src/org.d.ts +3 -3
- package/dist/cjs/src/schema.d.ts +970 -46
- package/dist/cjs/src/schema.js +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/api.d.ts +2 -1
- package/dist/esm/src/api.js +4 -2
- package/dist/esm/src/client.d.ts +16 -11
- package/dist/esm/src/client.js +4 -3
- package/dist/esm/src/key.d.ts +3 -0
- package/dist/esm/src/key.js +10 -1
- package/dist/esm/src/org.d.ts +3 -3
- package/dist/esm/src/schema.d.ts +970 -46
- package/dist/esm/src/schema.js +1 -1
- package/package.json +1 -1
- package/src/api.ts +7 -1
- package/src/client.ts +3 -2
- package/src/key.ts +9 -0
- package/src/schema.ts +1008 -44
- package/dist/cjs/src/org_event_processor.d.ts +0 -57
- package/dist/cjs/src/org_event_processor.js +0 -137
- package/dist/esm/src/org_event_processor.d.ts +0 -57
- package/dist/esm/src/org_event_processor.js +0 -133
- package/dist/package.json +0 -36
- package/dist/spec/env/beta.json +0 -9
- package/dist/spec/env/gamma.json +0 -9
- package/dist/spec/env/prod.json +0 -9
- package/dist/src/api.d.ts +0 -634
- package/dist/src/api.js +0 -1309
- package/dist/src/client.d.ts +0 -575
- package/dist/src/client.js +0 -381
- package/dist/src/env.d.ts +0 -15
- package/dist/src/env.js +0 -35
- package/dist/src/error.d.ts +0 -29
- package/dist/src/error.js +0 -36
- package/dist/src/events.d.ts +0 -84
- package/dist/src/events.js +0 -195
- package/dist/src/index.d.ts +0 -207
- package/dist/src/index.js +0 -308
- package/dist/src/key.d.ts +0 -152
- package/dist/src/key.js +0 -242
- package/dist/src/mfa.d.ts +0 -94
- package/dist/src/mfa.js +0 -169
- package/dist/src/org.d.ts +0 -99
- package/dist/src/org.js +0 -95
- package/dist/src/paginator.d.ts +0 -76
- package/dist/src/paginator.js +0 -99
- package/dist/src/response.d.ts +0 -101
- package/dist/src/response.js +0 -164
- package/dist/src/role.d.ts +0 -283
- package/dist/src/role.js +0 -253
- package/dist/src/schema.d.ts +0 -6209
- package/dist/src/schema.js +0 -7
- package/dist/src/schema_types.d.ts +0 -113
- package/dist/src/schema_types.js +0 -3
- package/dist/src/session/session_storage.d.ts +0 -47
- package/dist/src/session/session_storage.js +0 -76
- package/dist/src/session/signer_session_manager.d.ts +0 -125
- package/dist/src/session/signer_session_manager.js +0 -239
- package/dist/src/signer_session.d.ts +0 -41
- package/dist/src/signer_session.js +0 -77
- package/dist/src/user_export.d.ts +0 -52
- package/dist/src/user_export.js +0 -129
- package/dist/src/util.d.ts +0 -61
- package/dist/src/util.js +0 -97
package/README.md
CHANGED
|
@@ -360,7 +360,7 @@ assert(oidcToken);
|
|
|
360
360
|
Before we can use the OIDC token for authentication, we must add an org policy
|
|
361
361
|
to allow the particular issuer/audience pair from the token.
|
|
362
362
|
|
|
363
|
-
```
|
|
363
|
+
```ts
|
|
364
364
|
const oldOrgPolicy = await org.policy();
|
|
365
365
|
const oidcPayload = JSON.parse(atob(oidcToken.split(".")[1].replace(/-/g, "+").replace(/_/g, "/")));
|
|
366
366
|
const oidcAuthSourcesPolicy = {
|
|
@@ -512,11 +512,6 @@ we created.
|
|
|
512
512
|
console.log("Cleaning up");
|
|
513
513
|
await session.sessionMgr.revoke();
|
|
514
514
|
await role.delete();
|
|
515
|
-
|
|
516
|
-
// restore the old policy for the sake of repeatability of this example
|
|
517
|
-
// (normally you'd set your org policies once and leave them be)
|
|
518
|
-
console.log("Restoring org policy", oldOrgPolicy);
|
|
519
|
-
await org.setPolicy(oldOrgPolicy);
|
|
520
515
|
```
|
|
521
516
|
|
|
522
517
|
As of now, deleting keys is not supported.
|
package/dist/cjs/package.json
CHANGED
package/dist/cjs/src/api.d.ts
CHANGED
|
@@ -332,9 +332,10 @@ export declare class CubeSignerApi {
|
|
|
332
332
|
* List all keys in the org.
|
|
333
333
|
* @param {KeyType?} type Optional key type to filter list for.
|
|
334
334
|
* @param {PageOpts?} page Pagination options. Defaults to fetching the entire result set.
|
|
335
|
+
* @param {string?} owner Optional key owner to filter list for.
|
|
335
336
|
* @return {Paginator<ListKeysResponse, KeyInfoApi>} Paginator for iterating over keys.
|
|
336
337
|
*/
|
|
337
|
-
keysList(type?: KeyType, page?: PageOpts): Paginator<ListKeysResponse, KeyInfoApi>;
|
|
338
|
+
keysList(type?: KeyType, page?: PageOpts, owner?: string): Paginator<ListKeysResponse, KeyInfoApi>;
|
|
338
339
|
/**
|
|
339
340
|
* Create a new role.
|
|
340
341
|
*
|