@workos/openapi-spec 0.7.0 → 0.8.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/policy.mjs CHANGED
@@ -281,6 +281,7 @@ const operationHints = {
281
281
  * target unless overridden per-operation in {@link operationHints}.
282
282
  */
283
283
  const mountRules = {
284
+ Client: "ClientApi",
284
285
  MultiFactorAuthChallenges: "MultiFactorAuth",
285
286
  Permissions: "Authorization",
286
287
  WorkosConnect: "Connect",
@@ -413,6 +414,11 @@ function transformSpec(spec) {
413
414
  }
414
415
  }
415
416
  }
417
+ if (schemas["ListMetadata"]) {
418
+ const groupRoleList = schemas["GroupRoleAssignmentList"];
419
+ const listMetadata = groupRoleList?.properties?.list_metadata;
420
+ if (listMetadata && !listMetadata.$ref && listMetadata.properties) groupRoleList.properties.list_metadata = { $ref: "#/components/schemas/ListMetadata" };
421
+ }
416
422
  return spec;
417
423
  }
418
424
  //#endregion