@rixl/sdk 0.29.0 → 0.29.2
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.d.ts +5 -6
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14856,12 +14856,11 @@ export declare const publicRespondToInvitation: (token: string, state: Membershi
|
|
|
14856
14856
|
/**
|
|
14857
14857
|
* Switches the caller's active organization.
|
|
14858
14858
|
*
|
|
14859
|
-
* Identified by org id, not by `Membership.id
|
|
14860
|
-
*
|
|
14861
|
-
*
|
|
14862
|
-
*
|
|
14863
|
-
*
|
|
14864
|
-
* backend takes user_id from the bearer token.
|
|
14859
|
+
* Identified by org id, not by `Membership.id`, which is a `user_id:org_id`
|
|
14860
|
+
* concatenation that no endpoint accepts. The target org goes in the top-level
|
|
14861
|
+
* `org_id`: the backend reads `user.org_id` as the caller's current org, so a
|
|
14862
|
+
* target sent there is ignored and the call fails with "org_id is required".
|
|
14863
|
+
* The backend fills `user.user_id` from the bearer token.
|
|
14865
14864
|
*/
|
|
14866
14865
|
export declare const updateActiveMembership: (orgId: string) => Promise<void>;
|
|
14867
14866
|
export declare const updateMemberRole: (orgId: string, userId: string, role: AssignableRole) => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -4192,8 +4192,8 @@ const resendMemberInvite = async (orgId, userId) => {
|
|
|
4192
4192
|
const respondToInvitation = async (orgId, state) => {
|
|
4193
4193
|
return apiCall(async () => {
|
|
4194
4194
|
const validated = validateInput(AcceptDeclineMembershipSchema, { state });
|
|
4195
|
-
await
|
|
4196
|
-
path: {
|
|
4195
|
+
await authV1MembershipServiceRespondToMembershipApplication({
|
|
4196
|
+
path: { org_id: orgId },
|
|
4197
4197
|
body: { state: STATE_TO_PROTO[validated.state] },
|
|
4198
4198
|
throwOnError: true
|
|
4199
4199
|
});
|
|
@@ -4225,17 +4225,16 @@ const ROLE_TO_PROTO = {
|
|
|
4225
4225
|
/**
|
|
4226
4226
|
* Switches the caller's active organization.
|
|
4227
4227
|
*
|
|
4228
|
-
* Identified by org id, not by `Membership.id
|
|
4229
|
-
*
|
|
4230
|
-
*
|
|
4231
|
-
*
|
|
4232
|
-
*
|
|
4233
|
-
* backend takes user_id from the bearer token.
|
|
4228
|
+
* Identified by org id, not by `Membership.id`, which is a `user_id:org_id`
|
|
4229
|
+
* concatenation that no endpoint accepts. The target org goes in the top-level
|
|
4230
|
+
* `org_id`: the backend reads `user.org_id` as the caller's current org, so a
|
|
4231
|
+
* target sent there is ignored and the call fails with "org_id is required".
|
|
4232
|
+
* The backend fills `user.user_id` from the bearer token.
|
|
4234
4233
|
*/
|
|
4235
4234
|
const updateActiveMembership = async (orgId) => {
|
|
4236
4235
|
return apiCall(async () => {
|
|
4237
4236
|
await authV1MembershipServiceUpdateActiveMembership({
|
|
4238
|
-
body: {
|
|
4237
|
+
body: { org_id: orgId },
|
|
4239
4238
|
throwOnError: true
|
|
4240
4239
|
});
|
|
4241
4240
|
accessToken.set(void 0);
|