authhero 0.222.0 → 0.224.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.
@@ -16198,12 +16198,12 @@ export declare function init(config: AuthHeroConfig): {
16198
16198
  };
16199
16199
  } & {
16200
16200
  json: {
16201
- users: string[];
16201
+ members: string[];
16202
16202
  };
16203
16203
  };
16204
16204
  output: {};
16205
16205
  outputFormat: string;
16206
- status: 201;
16206
+ status: 204;
16207
16207
  };
16208
16208
  };
16209
16209
  } & {
@@ -16219,7 +16219,7 @@ export declare function init(config: AuthHeroConfig): {
16219
16219
  };
16220
16220
  } & {
16221
16221
  json: {
16222
- users: string[];
16222
+ members: string[];
16223
16223
  };
16224
16224
  };
16225
16225
  output: {};
package/dist/authhero.mjs CHANGED
@@ -20648,11 +20648,11 @@ const cx = qt.extend({
20648
20648
  description: "Array of organization members"
20649
20649
  })
20650
20650
  }), vx = o.object({
20651
- users: o.array(o.string()).openapi({
20651
+ members: o.array(o.string()).openapi({
20652
20652
  description: "Array of user IDs to add to the organization"
20653
20653
  })
20654
20654
  }), bx = o.object({
20655
- users: o.array(o.string()).openapi({
20655
+ members: o.array(o.string()).openapi({
20656
20656
  description: "Array of user IDs to remove from the organization"
20657
20657
  })
20658
20658
  }), $x = new be().openapi(
@@ -20945,13 +20945,13 @@ const cx = qt.extend({
20945
20945
  }
20946
20946
  ],
20947
20947
  responses: {
20948
- 201: {
20948
+ 204: {
20949
20949
  description: "Members added successfully"
20950
20950
  }
20951
20951
  }
20952
20952
  }),
20953
20953
  async (t) => {
20954
- const { "tenant-id": e } = t.req.valid("header"), { id: n } = t.req.valid("param"), { users: r } = t.req.valid("json");
20954
+ const { "tenant-id": e } = t.req.valid("header"), { id: n } = t.req.valid("param"), { members: r } = t.req.valid("json");
20955
20955
  if (!await t.env.data.organizations.get(
20956
20956
  e,
20957
20957
  n
@@ -20967,10 +20967,7 @@ const cx = qt.extend({
20967
20967
  user_id: s,
20968
20968
  organization_id: n
20969
20969
  });
20970
- return t.json(
20971
- { message: "Members added successfully" },
20972
- { status: 201 }
20973
- );
20970
+ return new Response(null, { status: 204 });
20974
20971
  }
20975
20972
  ).openapi(
20976
20973
  U({
@@ -21004,7 +21001,7 @@ const cx = qt.extend({
21004
21001
  }
21005
21002
  }),
21006
21003
  async (t) => {
21007
- const { "tenant-id": e } = t.req.valid("header"), { id: n } = t.req.valid("param"), { users: r } = t.req.valid("json");
21004
+ const { "tenant-id": e } = t.req.valid("header"), { id: n } = t.req.valid("param"), { members: r } = t.req.valid("json");
21008
21005
  for (const i of r) {
21009
21006
  const a = (await t.env.data.userOrganizations.list(e, {
21010
21007
  q: `user_id:${i}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authhero",
3
- "version": "0.222.0",
3
+ "version": "0.224.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],