Skip to content

feat!: adopt standard-user/shopper-roles in custom-api-role-policies#92

Open
ellanan wants to merge 1 commit into
mainfrom
feat/adopt-standard-roles-in-custom-api-role-policies
Open

feat!: adopt standard-user/shopper-roles in custom-api-role-policies#92
ellanan wants to merge 1 commit into
mainfrom
feat/adopt-standard-roles-in-custom-api-role-policies

Conversation

@ellanan
Copy link
Copy Markdown
Collaborator

@ellanan ellanan commented May 12, 2026

BREAKING CHANGE: removes GetBuiltInRoles and BuiltInRolePolicy. Replace with GetStandardUserRoles + GetStandardShopperRoles. CustomApiRolePolicy now uses standard_user_role / standard_shopper_role on relationships.role.data.type (was built_in_role).
GetCustomApiRolePolicies accepts an include: 'role' argument and its return type changes from Promise<Resource<Array>> to Promise, which adds optional included.role inline. Runtime shape is compatible, but downstream typings referencing the old return type will need updating.

Type

  • Feature

    Implements a new feature
  • Fix

    Fixes a bug
  • Docs

    Documentation only changes
  • Style

    Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • Refactor

    A code change that neither fixes a bug nor adds a feature
  • Performance

    A code change that improves performance
  • Test

    Adding missing or correcting existing tests
  • Chore

    Changes to the build process or auxiliary tools and libraries such as documentation generation

Description

A brief description of the goals of the pull request.

Dependencies

Other PRs or builds that this PR depends on.

Issues

A list of issues closed by this PR.

  • Fixes #

Notes

Any additional notes.

BREAKING CHANGE: removes GetBuiltInRoles and BuiltInRolePolicy. Replace
with GetStandardUserRoles + GetStandardShopperRoles. CustomApiRolePolicy
now uses standard_user_role / standard_shopper_role on
relationships.role.data.type (was built_in_role).
GetCustomApiRolePolicies accepts an `include: 'role'` argument and its
return type changes from Promise<Resource<Array<CustomApiRolePolicy>>>
to Promise<CustomApiRolePoliciesResponse>, which adds optional
`included.role` inline. Runtime shape is compatible, but downstream
typings referencing the old return type will need updating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant