You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @description The type of resource request as a string. This field defines which other fields are allowed in the request object. */
type: "quote";
/** @description The types of actions the client instance will take at the RS as an array of strings. */
actions: ("create"|"read"|"read-all")[];
};
As is they do not play nicely with each other.
One possible solution is to ditch the string enums in favor of the generated types.
In the future it may be possible to at least generate the actions as enums:
auth
andbackend
have been handling grant access types and actions as string enums:rafiki/packages/auth/src/access/types.ts
Lines 1 to 13 in cbbc416
rafiki/packages/backend/src/open_payments/auth/grant.ts
Lines 14 to 27 in cbbc416
open-payments
's generated types define distinct access typescript types for individual access types (incoming/outgoing payment, quote):rafiki/packages/open-payments/src/generated/auth-server-types.ts
Lines 245 to 287 in cbbc416
As is they do not play nicely with each other.
One possible solution is to ditch the string enums in favor of the generated types.
In the future it may be possible to at least generate the actions as enums:
The text was updated successfully, but these errors were encountered: