@witnium/witniumchain 0.25.0 → 0.26.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/README.md +13 -2
- package/dist/index.d.mts +177 -4
- package/dist/index.d.ts +177 -4
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -133,6 +133,8 @@ var WitniumchainClient = class {
|
|
|
133
133
|
recovery;
|
|
134
134
|
/** The signed-in user's sign-in methods, behind step-up. `client.security.*`. */
|
|
135
135
|
security;
|
|
136
|
+
/** The signed-in member's org: rename it (org admins). `client.organization.*`. */
|
|
137
|
+
organization;
|
|
136
138
|
/** Session-cookie team management (org-admin only). `client.orgUsers.*`. */
|
|
137
139
|
orgUsers;
|
|
138
140
|
/** The home org's API keys (session; org admins create and revoke). `client.apiKeys.*`. */
|
|
@@ -167,6 +169,7 @@ var WitniumchainClient = class {
|
|
|
167
169
|
this.enrollment = new Enrollment(this);
|
|
168
170
|
this.recovery = new Recovery(this);
|
|
169
171
|
this.security = new AccountSecurity(this);
|
|
172
|
+
this.organization = new Organization(this);
|
|
170
173
|
this.orgUsers = new OrgMembers(this);
|
|
171
174
|
this.apiKeys = new OrgApiKeys(this);
|
|
172
175
|
this.dashboardKey = new DashboardKey(this);
|
|
@@ -249,6 +252,9 @@ var WitniumchainClient = class {
|
|
|
249
252
|
expectNoContent: true
|
|
250
253
|
});
|
|
251
254
|
}
|
|
255
|
+
renameOrg(body) {
|
|
256
|
+
return this.req("PATCH", "/v1/orgs/me", { auth: "SessionCookie", body });
|
|
257
|
+
}
|
|
252
258
|
listMembers() {
|
|
253
259
|
return this.req("GET", "/v1/orgs/me/members", { auth: "SessionCookie" });
|
|
254
260
|
}
|
|
@@ -1706,6 +1712,21 @@ var OrgApiKeys = class {
|
|
|
1706
1712
|
return this.client.revokeApiKey(id);
|
|
1707
1713
|
}
|
|
1708
1714
|
};
|
|
1715
|
+
var Organization = class {
|
|
1716
|
+
constructor(client) {
|
|
1717
|
+
this.client = client;
|
|
1718
|
+
}
|
|
1719
|
+
client;
|
|
1720
|
+
/**
|
|
1721
|
+
* Rename the org (org admins). This is the display name the dashboard and
|
|
1722
|
+
* invitations show; the billing name on invoices is separate and edited in
|
|
1723
|
+
* the billing portal. Surrounding spaces are dropped; the current name
|
|
1724
|
+
* again is a no-op.
|
|
1725
|
+
*/
|
|
1726
|
+
rename(name) {
|
|
1727
|
+
return this.client.renameOrg({ name });
|
|
1728
|
+
}
|
|
1729
|
+
};
|
|
1709
1730
|
var OrgMembers = class {
|
|
1710
1731
|
constructor(client) {
|
|
1711
1732
|
this.client = client;
|
|
@@ -2053,6 +2074,6 @@ var ownerKeyFile = {
|
|
|
2053
2074
|
sign: signWithOwnerKeyFile
|
|
2054
2075
|
};
|
|
2055
2076
|
|
|
2056
|
-
export { AccountSecurity, DashboardKey, DelegatedKeys, Enrollment, OWNER_KEY_FILE_FORMAT, OWNER_OP, OauthNamespace, OauthSessions, OrgApiKeys, OrgContract, OrgMembers, Recovery, SigningKeys, Subscriptions, WitniumchainApiError, WitniumchainApiKeyClient, WitniumchainChainAdminClient, WitniumchainClient, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage, generateOwnerKeyFile, ownerKeyFile, ownerKeyFileName, parseOwnerKeyFile, serializeOwnerKeyFile, signWithOwnerKeyFile };
|
|
2077
|
+
export { AccountSecurity, DashboardKey, DelegatedKeys, Enrollment, OWNER_KEY_FILE_FORMAT, OWNER_OP, OauthNamespace, OauthSessions, OrgApiKeys, OrgContract, OrgMembers, Organization, Recovery, SigningKeys, Subscriptions, WitniumchainApiError, WitniumchainApiKeyClient, WitniumchainChainAdminClient, WitniumchainClient, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage, generateOwnerKeyFile, ownerKeyFile, ownerKeyFileName, parseOwnerKeyFile, serializeOwnerKeyFile, signWithOwnerKeyFile };
|
|
2057
2078
|
//# sourceMappingURL=index.mjs.map
|
|
2058
2079
|
//# sourceMappingURL=index.mjs.map
|