rbac.graphql 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # The permission required to access a Shopify Admin API or Storefront API resource for a shop.
  2. # Merchants grant access scopes that are requested by applications.
  3. type AccessScope {
  4. # A description of the actions that the access scope allows an app to perform.
  5. description: String!
  6. # A readable string that represents the access scope. The string usually follows the format {action}_{resource}.
  7. # {action} is read or write, and {resource} is the resource that the action can be performed on.
  8. # {action} and {resource} are separated by an underscore. For example, read_orders or write_products.
  9. handle: String!
  10. }
  11. # An auto-generated type for paginating through multiple StorefrontAccessTokens.
  12. type StorefrontAccessTokenConnection {
  13. # A list of edges.
  14. edges: [StorefrontAccessTokenEdge!]!
  15. # A list of the nodes contained in StorefrontAccessTokenEdge.
  16. nodes: [StorefrontAccessToken!]!
  17. # Information to aid in pagination.
  18. pageInfo: PageInfo!
  19. }
  20. # An auto-generated type which holds one StorefrontAccessToken and a cursor during pagination.
  21. type StorefrontAccessTokenEdge {
  22. # A cursor for use in pagination.
  23. cursor: String!
  24. # The item at the end of StorefrontAccessTokenEdge.
  25. node: StorefrontAccessToken!
  26. }
  27. # A token that's used to delegate unauthenticated access scopes to clients that need to access
  28. # the unauthenticated Storefront API. An app can have a maximum of 100 active storefront access
  29. # tokens for each shop.
  30. type StorefrontAccessToken implements Node {
  31. # List of permissions associated with the token.
  32. accessScopes: [AccessScope!]!
  33. # The issued public access token.
  34. accessToken: String!
  35. # The date and time when the public access token was created.
  36. createdAt: DateTime!
  37. # A globally-unique identifier.
  38. id: ID!
  39. # An arbitrary title for each token determined by the developer, used for reference purposes.
  40. title: String!
  41. # The date and time when the storefront access token was updated.
  42. updatedAt: DateTime!
  43. }