Something went wrong. Try again.
Mirrored from GitHub github.com/roostorg/coop
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import { gql } from '@apollo/client';
export const API_AUTH_QUERY = gql` query ApiAuth { apiKey myOrg { id publicSigningKey } me { id permissions } }`;
export const ROTATE_API_KEY_MUTATION = gql` mutation RotateApiKey($input: RotateApiKeyInput!) { rotateApiKey(input: $input) { ... on RotateApiKeySuccessResponse { apiKey record { id name description isActive createdAt lastUsedAt createdBy } } ... on RotateApiKeyError { title status type detail pointer requestId } } }`;
export const ROTATE_WEBHOOK_SIGNING_KEY_MUTATION = gql` mutation RotateWebhookSigningKey { rotateWebhookSigningKey { ... on RotateWebhookSigningKeySuccessResponse { publicSigningKey } ... on RotateWebhookSigningKeyError { title status type detail pointer requestId } } }`;