@grantjs/schema 1.0.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/LICENSE +21 -0
- package/README.md +117 -0
- package/package.json +35 -0
- package/src/generated/graphql.ts +9969 -0
- package/src/generated/resolvers.ts +5468 -0
- package/src/index.ts +30 -0
- package/src/operations/api-keys/create-api-key.graphql +11 -0
- package/src/operations/api-keys/delete-api-key.graphql +17 -0
- package/src/operations/api-keys/exchange-api-key.graphql +6 -0
- package/src/operations/api-keys/get-api-keys.graphql +42 -0
- package/src/operations/api-keys/revoke-api-key.graphql +17 -0
- package/src/operations/auth/login.graphql +19 -0
- package/src/operations/auth/refreshSession.graphql +7 -0
- package/src/operations/auth/register.graphql +19 -0
- package/src/operations/auth/requestPasswordReset.graphql +7 -0
- package/src/operations/auth/resendVerification.graphql +6 -0
- package/src/operations/auth/resetPassword.graphql +7 -0
- package/src/operations/auth/verifyEmail.graphql +6 -0
- package/src/operations/groups/createGroup.graphql +10 -0
- package/src/operations/groups/deleteGroup.graphql +9 -0
- package/src/operations/groups/getGroups.graphql +47 -0
- package/src/operations/groups/updateGroup.graphql +10 -0
- package/src/operations/me/change-my-password.graphql +6 -0
- package/src/operations/me/create-my-secondary-account.graphql +30 -0
- package/src/operations/me/create-my-user-authentication-method.graphql +13 -0
- package/src/operations/me/delete-my-accounts.graphql +9 -0
- package/src/operations/me/delete-my-user-authentication-method.graphql +13 -0
- package/src/operations/me/logout-my-user.graphql +5 -0
- package/src/operations/me/me.graphql +22 -0
- package/src/operations/me/my-user-authentication-methods.graphql +13 -0
- package/src/operations/me/my-user-data-export.graphql +45 -0
- package/src/operations/me/my-user-sessions.graphql +21 -0
- package/src/operations/me/revoke-my-user-session.graphql +6 -0
- package/src/operations/me/set-my-primary-authentication-method.graphql +13 -0
- package/src/operations/me/update-my-users.graphql +9 -0
- package/src/operations/me/upload-my-user-picture.graphql +6 -0
- package/src/operations/organization-invitations/acceptInvitation.graphql +20 -0
- package/src/operations/organization-invitations/getInvitation.graphql +27 -0
- package/src/operations/organization-invitations/getOrganizationInvitations.graphql +17 -0
- package/src/operations/organization-invitations/inviteMember.graphql +13 -0
- package/src/operations/organization-invitations/renewInvitation.graphql +13 -0
- package/src/operations/organization-invitations/resendInvitationEmail.graphql +13 -0
- package/src/operations/organization-invitations/revokeInvitation.graphql +8 -0
- package/src/operations/organization-members/getOrganizationMembers.graphql +50 -0
- package/src/operations/organization-members/removeOrganizationMember.graphql +24 -0
- package/src/operations/organization-members/updateOrganizationMember.graphql +24 -0
- package/src/operations/organizations/createOrganization.graphql +9 -0
- package/src/operations/organizations/deleteOrganization.graphql +9 -0
- package/src/operations/organizations/getOrganizations.graphql +33 -0
- package/src/operations/organizations/updateOrganization.graphql +9 -0
- package/src/operations/permissions/createPermission.graphql +17 -0
- package/src/operations/permissions/deletePermission.graphql +12 -0
- package/src/operations/permissions/getPermissions.graphql +43 -0
- package/src/operations/permissions/updatePermission.graphql +17 -0
- package/src/operations/project-apps/create-project-app.graphql +13 -0
- package/src/operations/project-apps/delete-project-app.graphql +11 -0
- package/src/operations/project-apps/get-project-apps.graphql +50 -0
- package/src/operations/project-apps/update-project-app.graphql +20 -0
- package/src/operations/projects/createProject.graphql +10 -0
- package/src/operations/projects/deleteProject.graphql +10 -0
- package/src/operations/projects/getProjectAppFormData.graphql +21 -0
- package/src/operations/projects/getProjects.graphql +48 -0
- package/src/operations/projects/updateProject.graphql +10 -0
- package/src/operations/resources/createResource.graphql +12 -0
- package/src/operations/resources/deleteResource.graphql +12 -0
- package/src/operations/resources/getResources.graphql +40 -0
- package/src/operations/resources/updateResource.graphql +12 -0
- package/src/operations/roles/createRole.graphql +10 -0
- package/src/operations/roles/deleteRole.graphql +9 -0
- package/src/operations/roles/getRoles.graphql +46 -0
- package/src/operations/roles/updateRole.graphql +10 -0
- package/src/operations/signing-keys/get-signing-keys.graphql +11 -0
- package/src/operations/signing-keys/rotate-signing-key.graphql +10 -0
- package/src/operations/tags/createTag.graphql +9 -0
- package/src/operations/tags/deleteTag.graphql +9 -0
- package/src/operations/tags/getTags.graphql +20 -0
- package/src/operations/tags/updateTag.graphql +9 -0
- package/src/operations/users/createUser.graphql +9 -0
- package/src/operations/users/deleteUser.graphql +8 -0
- package/src/operations/users/getUsers.graphql +50 -0
- package/src/operations/users/updateUser.graphql +9 -0
- package/src/operations/users/uploadUserPicture.graphql +6 -0
- package/src/project-oauth.types.ts +37 -0
- package/src/schema/account-project-api-keys/inputs/add-account-project-api-key.graphql +6 -0
- package/src/schema/account-project-api-keys/inputs/query-account-project-api-keys.graphql +5 -0
- package/src/schema/account-project-api-keys/inputs/remove-account-project-api-key.graphql +5 -0
- package/src/schema/account-project-api-keys/types/account-project-api-key.graphql +14 -0
- package/src/schema/account-project-tags/inputs/add-account-project-tag.graphql +6 -0
- package/src/schema/account-project-tags/inputs/query-account-project-tag.graphql +5 -0
- package/src/schema/account-project-tags/inputs/remove-account-project-tag.graphql +5 -0
- package/src/schema/account-project-tags/inputs/update-account-project-tag.graphql +6 -0
- package/src/schema/account-project-tags/types/account-project-tag.graphql +13 -0
- package/src/schema/account-projects/inputs/add-account-project.graphql +4 -0
- package/src/schema/account-projects/inputs/query-account-project.graphql +3 -0
- package/src/schema/account-projects/inputs/query-account-projects.graphql +3 -0
- package/src/schema/account-projects/inputs/remove-account-project.graphql +4 -0
- package/src/schema/account-projects/types/account-project.graphql +10 -0
- package/src/schema/account-roles/inputs/add-account-role.graphql +4 -0
- package/src/schema/account-roles/inputs/query-account-roles.graphql +3 -0
- package/src/schema/account-roles/inputs/remove-account-role.graphql +4 -0
- package/src/schema/account-roles/types/account-role.graphql +10 -0
- package/src/schema/account-tags/inputs/add-account-tag.graphql +5 -0
- package/src/schema/account-tags/inputs/query-account-tags.graphql +3 -0
- package/src/schema/account-tags/inputs/remove-account-tag.graphql +4 -0
- package/src/schema/account-tags/inputs/update-account-tag.graphql +5 -0
- package/src/schema/account-tags/types/account-tag.graphql +11 -0
- package/src/schema/accounts/inputs/account-sort.graphql +4 -0
- package/src/schema/accounts/inputs/create-account.graphql +7 -0
- package/src/schema/accounts/inputs/query-accounts.graphql +7 -0
- package/src/schema/accounts/types/account-page.graphql +5 -0
- package/src/schema/accounts/types/account-searchable-field.graphql +3 -0
- package/src/schema/accounts/types/account-sortable-field.graphql +5 -0
- package/src/schema/accounts/types/account-type.graphql +4 -0
- package/src/schema/accounts/types/account.graphql +11 -0
- package/src/schema/accounts/types/create-account-result.graphql +8 -0
- package/src/schema/api-keys/inputs/api-key-sort.graphql +4 -0
- package/src/schema/api-keys/inputs/create-api-key.graphql +10 -0
- package/src/schema/api-keys/inputs/delete-api-key.graphql +5 -0
- package/src/schema/api-keys/inputs/exchange-api-key.graphql +5 -0
- package/src/schema/api-keys/inputs/revoke-api-key.graphql +4 -0
- package/src/schema/api-keys/mutations/create-api-key.graphql +3 -0
- package/src/schema/api-keys/mutations/delete-api-key.graphql +3 -0
- package/src/schema/api-keys/mutations/exchange-api-key.graphql +3 -0
- package/src/schema/api-keys/mutations/revoke-api-key.graphql +3 -0
- package/src/schema/api-keys/queries/get-api-keys.graphql +10 -0
- package/src/schema/api-keys/types/api-key-page.graphql +5 -0
- package/src/schema/api-keys/types/api-key-searchable-field.graphql +5 -0
- package/src/schema/api-keys/types/api-key-sortable-field.graphql +6 -0
- package/src/schema/api-keys/types/api-key.graphql +21 -0
- package/src/schema/api-keys/types/create-api-key-result.graphql +9 -0
- package/src/schema/api-keys/types/exchange-api-key-result.graphql +4 -0
- package/src/schema/auth/inputs/is-authorized.graphql +13 -0
- package/src/schema/auth/inputs/login.graphql +5 -0
- package/src/schema/auth/inputs/register.graphql +6 -0
- package/src/schema/auth/inputs/request-password-reset.graphql +3 -0
- package/src/schema/auth/inputs/resend-verification.graphql +3 -0
- package/src/schema/auth/inputs/reset-password.graphql +4 -0
- package/src/schema/auth/inputs/verify-email.graphql +3 -0
- package/src/schema/auth/mutations/login.graphql +3 -0
- package/src/schema/auth/mutations/refresh-session.graphql +4 -0
- package/src/schema/auth/mutations/register.graphql +3 -0
- package/src/schema/auth/mutations/request-password-reset.graphql +3 -0
- package/src/schema/auth/mutations/resend-verification.graphql +3 -0
- package/src/schema/auth/mutations/reset-password.graphql +3 -0
- package/src/schema/auth/mutations/verify-email.graphql +3 -0
- package/src/schema/auth/queries/is-authorized.graphql +3 -0
- package/src/schema/auth/types/authorization-reason.graphql +10 -0
- package/src/schema/auth/types/authorization-result.graphql +7 -0
- package/src/schema/auth/types/login-response.graphql +8 -0
- package/src/schema/auth/types/refresh-session-response.graphql +4 -0
- package/src/schema/auth/types/request-password-reset-response.graphql +5 -0
- package/src/schema/auth/types/resend-verification-response.graphql +5 -0
- package/src/schema/auth/types/reset-password-response.graphql +5 -0
- package/src/schema/auth/types/token-type.graphql +6 -0
- package/src/schema/auth/types/verify-email-response.graphql +5 -0
- package/src/schema/base.graphql +47 -0
- package/src/schema/group-permissions/inputs/add-group-permission.graphql +4 -0
- package/src/schema/group-permissions/inputs/query-group-permissions.graphql +4 -0
- package/src/schema/group-permissions/inputs/remove-group-permission.graphql +4 -0
- package/src/schema/group-permissions/types/group-permission.graphql +10 -0
- package/src/schema/group-tags/inputs/add-group-tag.graphql +5 -0
- package/src/schema/group-tags/inputs/query-group-tags.graphql +4 -0
- package/src/schema/group-tags/inputs/remove-group-tag.graphql +4 -0
- package/src/schema/group-tags/inputs/update-group-tag.graphql +5 -0
- package/src/schema/group-tags/types/group-tag.graphql +11 -0
- package/src/schema/groups/inputs/create-group.graphql +9 -0
- package/src/schema/groups/inputs/group-sort.graphql +4 -0
- package/src/schema/groups/inputs/update-group.graphql +9 -0
- package/src/schema/groups/mutations/create-group.graphql +3 -0
- package/src/schema/groups/mutations/delete-group.graphql +3 -0
- package/src/schema/groups/mutations/update-group.graphql +3 -0
- package/src/schema/groups/queries/get-groups.graphql +11 -0
- package/src/schema/groups/types/group-page.graphql +5 -0
- package/src/schema/groups/types/group-searchable-field.graphql +4 -0
- package/src/schema/groups/types/group-sortable-field.graphql +3 -0
- package/src/schema/groups/types/group.graphql +11 -0
- package/src/schema/me/input/change-my-password.graphql +5 -0
- package/src/schema/me/input/create-my-user-authentication-method.graphql +7 -0
- package/src/schema/me/input/delete-my-accounts.graphql +3 -0
- package/src/schema/me/input/my-user-sessions.graphql +6 -0
- package/src/schema/me/input/update-my-user-authentication-method.graphql +7 -0
- package/src/schema/me/input/update-my-user.graphql +4 -0
- package/src/schema/me/input/upload-my-user-picture.graphql +5 -0
- package/src/schema/me/mutations/change-my-password.graphql +3 -0
- package/src/schema/me/mutations/create-my-secondary-account.graphql +3 -0
- package/src/schema/me/mutations/create-my-user-authentication-method.graphql +5 -0
- package/src/schema/me/mutations/delete-my-accounts.graphql +3 -0
- package/src/schema/me/mutations/delete-my-user-authentication-method.graphql +3 -0
- package/src/schema/me/mutations/logout-my-user.graphql +3 -0
- package/src/schema/me/mutations/revoke-my-user-session.graphql +3 -0
- package/src/schema/me/mutations/set-my-primary-authentication-method.graphql +3 -0
- package/src/schema/me/mutations/update-my-user.graphql +3 -0
- package/src/schema/me/mutations/upload-my-user-picture.graphql +3 -0
- package/src/schema/me/queries/me.graphql +3 -0
- package/src/schema/me/queries/my-user-authentication-methods.graphql +3 -0
- package/src/schema/me/queries/my-user-data-export.graphql +3 -0
- package/src/schema/me/queries/my-user-sessions.graphql +3 -0
- package/src/schema/me/types/change-my-password-result.graphql +4 -0
- package/src/schema/me/types/create-my-secondary-account-result.graphql +4 -0
- package/src/schema/me/types/logout-my-user-response.graphql +3 -0
- package/src/schema/me/types/me-response.graphql +6 -0
- package/src/schema/me/types/revoke-my-user-session-result.graphql +4 -0
- package/src/schema/organization-groups/inputs/add-organization-group.graphql +4 -0
- package/src/schema/organization-groups/inputs/query-organization-groups.graphql +3 -0
- package/src/schema/organization-groups/inputs/remove-organization-group.graphql +4 -0
- package/src/schema/organization-groups/types/organization-group.graphql +10 -0
- package/src/schema/organization-invitations/inputs/accept-invitation.graphql +4 -0
- package/src/schema/organization-invitations/inputs/create-organization-invitation.graphql +10 -0
- package/src/schema/organization-invitations/inputs/invite-member.graphql +5 -0
- package/src/schema/organization-invitations/inputs/organization-invitation-sort.graphql +4 -0
- package/src/schema/organization-invitations/inputs/update-organization-invitation.graphql +7 -0
- package/src/schema/organization-invitations/inputs/user-registration-data.graphql +5 -0
- package/src/schema/organization-invitations/mutations/accept-invitation.graphql +3 -0
- package/src/schema/organization-invitations/mutations/invite-member.graphql +3 -0
- package/src/schema/organization-invitations/mutations/renew-invitation.graphql +3 -0
- package/src/schema/organization-invitations/mutations/resend-invitation-email.graphql +3 -0
- package/src/schema/organization-invitations/mutations/revoke-invitation.graphql +3 -0
- package/src/schema/organization-invitations/queries/get-invitation.graphql +3 -0
- package/src/schema/organization-invitations/queries/get-organization-invitations.graphql +11 -0
- package/src/schema/organization-invitations/types/accept-invitation-result.graphql +7 -0
- package/src/schema/organization-invitations/types/organization-invitation-page.graphql +5 -0
- package/src/schema/organization-invitations/types/organization-invitation-searchable-field.graphql +3 -0
- package/src/schema/organization-invitations/types/organization-invitation-sortable-field.graphql +6 -0
- package/src/schema/organization-invitations/types/organization-invitation-status.graphql +6 -0
- package/src/schema/organization-invitations/types/organization-invitation.graphql +18 -0
- package/src/schema/organization-members/inputs/organization-member-sort.graphql +4 -0
- package/src/schema/organization-members/inputs/remove-organization-member.graphql +3 -0
- package/src/schema/organization-members/inputs/update-organization-member.graphql +4 -0
- package/src/schema/organization-members/mutations/remove-organization-member.graphql +3 -0
- package/src/schema/organization-members/mutations/update-organization-member.graphql +3 -0
- package/src/schema/organization-members/queries/get-organization-members.graphql +10 -0
- package/src/schema/organization-members/types/member-type.graphql +4 -0
- package/src/schema/organization-members/types/organization-member-page.graphql +5 -0
- package/src/schema/organization-members/types/organization-member-searchable-field.graphql +4 -0
- package/src/schema/organization-members/types/organization-member-sortable-field.graphql +6 -0
- package/src/schema/organization-members/types/organization-member.graphql +11 -0
- package/src/schema/organization-permissions/inputs/add-organization-permission.graphql +4 -0
- package/src/schema/organization-permissions/inputs/query-organization-permissions.graphql +4 -0
- package/src/schema/organization-permissions/inputs/remove-organization-permission.graphql +4 -0
- package/src/schema/organization-permissions/types/organization-permission.graphql +10 -0
- package/src/schema/organization-project-api-keys/inputs/add-organization-project-api-key.graphql +6 -0
- package/src/schema/organization-project-api-keys/inputs/query-organization-project-api-keys.graphql +5 -0
- package/src/schema/organization-project-api-keys/inputs/remove-organization-project-api-key.graphql +5 -0
- package/src/schema/organization-project-api-keys/types/organization-project-api-key.graphql +14 -0
- package/src/schema/organization-project-tags/inputs/add-organization-project-tag.graphql +6 -0
- package/src/schema/organization-project-tags/inputs/query-organization-project-tag.graphql +5 -0
- package/src/schema/organization-project-tags/inputs/remove-organization-project-tag.graphql +5 -0
- package/src/schema/organization-project-tags/inputs/update-organization-project-tag.graphql +6 -0
- package/src/schema/organization-project-tags/types/organization-project-tag.graphql +13 -0
- package/src/schema/organization-projects/inputs/add-organization-project.graphql +4 -0
- package/src/schema/organization-projects/inputs/query-organization-projects.graphql +4 -0
- package/src/schema/organization-projects/inputs/remove-organization-project.graphql +4 -0
- package/src/schema/organization-projects/types/organization-project.graphql +10 -0
- package/src/schema/organization-roles/inputs/add-organization-role.graphql +4 -0
- package/src/schema/organization-roles/inputs/query-organization-roles.graphql +3 -0
- package/src/schema/organization-roles/inputs/remove-organization-role.graphql +4 -0
- package/src/schema/organization-roles/types/organization-role.graphql +10 -0
- package/src/schema/organization-tags/inputs/add-organization-tag.graphql +5 -0
- package/src/schema/organization-tags/inputs/query-organization-tags.graphql +3 -0
- package/src/schema/organization-tags/inputs/remove-organization-tag.graphql +4 -0
- package/src/schema/organization-tags/inputs/update-organization-tag.graphql +5 -0
- package/src/schema/organization-tags/types/organization-tag.graphql +11 -0
- package/src/schema/organization-users/inputs/add-organization-user.graphql +4 -0
- package/src/schema/organization-users/inputs/query-organization-users.graphql +4 -0
- package/src/schema/organization-users/inputs/remove-organization-user.graphql +4 -0
- package/src/schema/organization-users/types/organization-user.graphql +10 -0
- package/src/schema/organizations/inputs/create-organization.graphql +4 -0
- package/src/schema/organizations/inputs/organization-sort.graphql +4 -0
- package/src/schema/organizations/inputs/update-organization.graphql +4 -0
- package/src/schema/organizations/mutations/create-organization.graphql +3 -0
- package/src/schema/organizations/mutations/delete-organization.graphql +3 -0
- package/src/schema/organizations/mutations/update-organization.graphql +3 -0
- package/src/schema/organizations/queries/get-organizations.graphql +10 -0
- package/src/schema/organizations/types/organization-page.graphql +5 -0
- package/src/schema/organizations/types/organization-searchable-field.graphql +4 -0
- package/src/schema/organizations/types/organization-sortable-field.graphql +5 -0
- package/src/schema/organizations/types/organization.graphql +14 -0
- package/src/schema/permission-tags/inputs/add-permission-tag.graphql +5 -0
- package/src/schema/permission-tags/inputs/query-permission-tags.graphql +4 -0
- package/src/schema/permission-tags/inputs/remove-permission-tag.graphql +4 -0
- package/src/schema/permission-tags/inputs/update-permission-tag.graphql +5 -0
- package/src/schema/permission-tags/types/permission-tag.graphql +11 -0
- package/src/schema/permissions/inputs/create-permission.graphql +10 -0
- package/src/schema/permissions/inputs/permission-sort.graphql +4 -0
- package/src/schema/permissions/inputs/update-permission.graphql +10 -0
- package/src/schema/permissions/mutations/create-permission.graphql +3 -0
- package/src/schema/permissions/mutations/delete-permission.graphql +3 -0
- package/src/schema/permissions/mutations/update-permission.graphql +3 -0
- package/src/schema/permissions/queries/get-permissions.graphql +11 -0
- package/src/schema/permissions/types/permission-page.graphql +5 -0
- package/src/schema/permissions/types/permission-searchable-field.graphql +5 -0
- package/src/schema/permissions/types/permission-sortable-field.graphql +4 -0
- package/src/schema/permissions/types/permission.graphql +13 -0
- package/src/schema/project-app-tags/inputs/add-project-app-tag.graphql +5 -0
- package/src/schema/project-app-tags/inputs/query-project-app-tags.graphql +4 -0
- package/src/schema/project-app-tags/inputs/remove-project-app-tag.graphql +4 -0
- package/src/schema/project-app-tags/inputs/update-project-app-tag.graphql +5 -0
- package/src/schema/project-app-tags/types/project-app-tag.graphql +9 -0
- package/src/schema/project-apps/inputs/create-project-app.graphql +26 -0
- package/src/schema/project-apps/inputs/project-app-sort.graphql +4 -0
- package/src/schema/project-apps/inputs/update-project-app.graphql +29 -0
- package/src/schema/project-apps/mutations/create-project-app.graphql +6 -0
- package/src/schema/project-apps/mutations/delete-project-app.graphql +3 -0
- package/src/schema/project-apps/mutations/update-project-app.graphql +6 -0
- package/src/schema/project-apps/queries/get-project-apps.graphql +14 -0
- package/src/schema/project-apps/types/create-project-app-result.graphql +23 -0
- package/src/schema/project-apps/types/project-app-page.graphql +5 -0
- package/src/schema/project-apps/types/project-app-searchable-field.graphql +3 -0
- package/src/schema/project-apps/types/project-app-sortable-field.graphql +4 -0
- package/src/schema/project-apps/types/project-app.graphql +29 -0
- package/src/schema/project-groups/inputs/add-project-group.graphql +4 -0
- package/src/schema/project-groups/inputs/query-project-groups.graphql +3 -0
- package/src/schema/project-groups/inputs/remove-project-group.graphql +4 -0
- package/src/schema/project-groups/types/project-group.graphql +10 -0
- package/src/schema/project-permissions/inputs/add-project-permission.graphql +4 -0
- package/src/schema/project-permissions/inputs/query-group-permissions.graphql +4 -0
- package/src/schema/project-permissions/inputs/remove-project-permission.graphql +4 -0
- package/src/schema/project-permissions/types/project-permission.graphql +10 -0
- package/src/schema/project-resources/inputs/add-project-resource.graphql +4 -0
- package/src/schema/project-resources/inputs/query-project-resources.graphql +4 -0
- package/src/schema/project-resources/inputs/remove-project-resource.graphql +4 -0
- package/src/schema/project-resources/types/project-resource.graphql +10 -0
- package/src/schema/project-roles/inputs/add-project-role.graphql +4 -0
- package/src/schema/project-roles/inputs/query-project-roles.graphql +3 -0
- package/src/schema/project-roles/inputs/remove-project-role.graphql +4 -0
- package/src/schema/project-roles/types/project-role.graphql +10 -0
- package/src/schema/project-tags/inputs/add-project-tag.graphql +5 -0
- package/src/schema/project-tags/inputs/query-project-tags.graphql +4 -0
- package/src/schema/project-tags/inputs/remove-project-tag.graphql +4 -0
- package/src/schema/project-tags/inputs/update-project-tag.graphql +5 -0
- package/src/schema/project-tags/types/project-tag.graphql +11 -0
- package/src/schema/project-user-api-keys/inputs/add-project-user-api-key.graphql +5 -0
- package/src/schema/project-user-api-keys/inputs/query-project-user-api-keys.graphql +4 -0
- package/src/schema/project-user-api-keys/inputs/remove-project-user-api-key.graphql +5 -0
- package/src/schema/project-user-api-keys/types/project-user-api-key.graphql +12 -0
- package/src/schema/project-users/inputs/add-project-user.graphql +4 -0
- package/src/schema/project-users/inputs/query-project-users.graphql +4 -0
- package/src/schema/project-users/inputs/remove-project-user.graphql +4 -0
- package/src/schema/project-users/types/project-user.graphql +10 -0
- package/src/schema/projects/inputs/create-project.graphql +7 -0
- package/src/schema/projects/inputs/project-sort.graphql +4 -0
- package/src/schema/projects/inputs/update-project.graphql +7 -0
- package/src/schema/projects/mutations/create-project.graphql +3 -0
- package/src/schema/projects/mutations/delete-project.graphql +3 -0
- package/src/schema/projects/mutations/update-project.graphql +3 -0
- package/src/schema/projects/queries/get-projects.graphql +11 -0
- package/src/schema/projects/types/project-page.graphql +5 -0
- package/src/schema/projects/types/project-searchable-field.graphql +5 -0
- package/src/schema/projects/types/project-sortable-field.graphql +5 -0
- package/src/schema/projects/types/project.graphql +17 -0
- package/src/schema/resource-tags/inputs/add-resource-tag.graphql +5 -0
- package/src/schema/resource-tags/inputs/query-resource-tags.graphql +4 -0
- package/src/schema/resource-tags/inputs/remove-resource-tag.graphql +4 -0
- package/src/schema/resource-tags/inputs/update-resource-tag.graphql +5 -0
- package/src/schema/resource-tags/types/resource-tag.graphql +11 -0
- package/src/schema/resources/inputs/create-resource.graphql +10 -0
- package/src/schema/resources/inputs/resource-sort.graphql +4 -0
- package/src/schema/resources/inputs/update-resource.graphql +10 -0
- package/src/schema/resources/mutations/create-resource.graphql +3 -0
- package/src/schema/resources/mutations/delete-resource.graphql +3 -0
- package/src/schema/resources/mutations/update-resource.graphql +3 -0
- package/src/schema/resources/queries/get-resources.graphql +12 -0
- package/src/schema/resources/types/resource-page.graphql +5 -0
- package/src/schema/resources/types/resource-searchable-field.graphql +5 -0
- package/src/schema/resources/types/resource-sortable-field.graphql +6 -0
- package/src/schema/resources/types/resource.graphql +12 -0
- package/src/schema/role-groups/inputs/add-role-group.graphql +4 -0
- package/src/schema/role-groups/inputs/query-role-groups.graphql +4 -0
- package/src/schema/role-groups/inputs/remove-role-group.graphql +4 -0
- package/src/schema/role-groups/types/role-group.graphql +10 -0
- package/src/schema/role-tags/inputs/add-role-tag.graphql +5 -0
- package/src/schema/role-tags/inputs/query-role-tags.graphql +4 -0
- package/src/schema/role-tags/inputs/remove-role-tag.graphql +4 -0
- package/src/schema/role-tags/inputs/update-role-tag.graphql +5 -0
- package/src/schema/role-tags/types/role-tag.graphql +11 -0
- package/src/schema/roles/inputs/create-role.graphql +9 -0
- package/src/schema/roles/inputs/role-sort.graphql +4 -0
- package/src/schema/roles/inputs/update-role.graphql +9 -0
- package/src/schema/roles/mutations/create-role.graphql +3 -0
- package/src/schema/roles/mutations/delete-role.graphql +3 -0
- package/src/schema/roles/mutations/update-role.graphql +3 -0
- package/src/schema/roles/queries/get-roles.graphql +11 -0
- package/src/schema/roles/types/role-page.graphql +5 -0
- package/src/schema/roles/types/role-searchable-field.graphql +4 -0
- package/src/schema/roles/types/role-sortable-field.graphql +3 -0
- package/src/schema/roles/types/role.graphql +11 -0
- package/src/schema/root.graphql +6 -0
- package/src/schema/signing-keys/mutations/rotate-signing-key.graphql +8 -0
- package/src/schema/signing-keys/queries/get-signing-keys.graphql +7 -0
- package/src/schema/signing-keys/types/signing-key.graphql +26 -0
- package/src/schema/tags/inputs/create-tag.graphql +5 -0
- package/src/schema/tags/inputs/tag-sort.graphql +4 -0
- package/src/schema/tags/inputs/update-tag.graphql +5 -0
- package/src/schema/tags/mutations/create-tag.graphql +3 -0
- package/src/schema/tags/mutations/delete-tag.graphql +3 -0
- package/src/schema/tags/mutations/update-tag.graphql +3 -0
- package/src/schema/tags/queries/get-tags.graphql +10 -0
- package/src/schema/tags/types/tag-page.graphql +5 -0
- package/src/schema/tags/types/tag-searchable-field.graphql +3 -0
- package/src/schema/tags/types/tag-sortable-field.graphql +6 -0
- package/src/schema/tags/types/tag.graphql +9 -0
- package/src/schema/user-authentication-method/inputs/create-user-authentication-method.graphql +8 -0
- package/src/schema/user-authentication-method/inputs/delete-user-authentication-method.graphql +3 -0
- package/src/schema/user-authentication-method/inputs/get-user-authentication-methods.graphql +4 -0
- package/src/schema/user-authentication-method/inputs/update-user-authentication-method.graphql +7 -0
- package/src/schema/user-authentication-method/types/user-authentication-email-provider-action.graphql +5 -0
- package/src/schema/user-authentication-method/types/user-authentication-method-provider.graphql +5 -0
- package/src/schema/user-authentication-method/types/user-authentication-method.graphql +14 -0
- package/src/schema/user-roles/inputs/add-user-role.graphql +4 -0
- package/src/schema/user-roles/inputs/query-user-roles.graphql +4 -0
- package/src/schema/user-roles/inputs/remove-user-role.graphql +4 -0
- package/src/schema/user-roles/types/user-role.graphql +10 -0
- package/src/schema/user-sessions/inputs/create-user-session.graphql +9 -0
- package/src/schema/user-sessions/inputs/delete-user-session.graphql +3 -0
- package/src/schema/user-sessions/inputs/get-user-sessions.graphql +13 -0
- package/src/schema/user-sessions/inputs/update-user-session.graphql +6 -0
- package/src/schema/user-sessions/inputs/user-session-sort.graphql +4 -0
- package/src/schema/user-sessions/types/user-session-page.graphql +5 -0
- package/src/schema/user-sessions/types/user-session-searchable-field.graphql +6 -0
- package/src/schema/user-sessions/types/user-session-sortable-field.graphql +3 -0
- package/src/schema/user-sessions/types/user-session.graphql +16 -0
- package/src/schema/user-tags/inputs/add-user-tag.graphql +5 -0
- package/src/schema/user-tags/inputs/query-user-tags.graphql +4 -0
- package/src/schema/user-tags/inputs/remove-user-tag.graphql +4 -0
- package/src/schema/user-tags/inputs/update-user-tag.graphql +5 -0
- package/src/schema/user-tags/types/user-tag.graphql +11 -0
- package/src/schema/users/inputs/create-user.graphql +9 -0
- package/src/schema/users/inputs/update-user.graphql +9 -0
- package/src/schema/users/inputs/upload-user-picture.graphql +7 -0
- package/src/schema/users/inputs/user-sort.graphql +4 -0
- package/src/schema/users/mutations/create-user.graphql +3 -0
- package/src/schema/users/mutations/delete-user.graphql +3 -0
- package/src/schema/users/mutations/update-user.graphql +3 -0
- package/src/schema/users/mutations/upload-user-picture.graphql +3 -0
- package/src/schema/users/queries/get-users.graphql +11 -0
- package/src/schema/users/types/upload-user-picture-result.graphql +4 -0
- package/src/schema/users/types/user-data-export.graphql +55 -0
- package/src/schema/users/types/user-page.graphql +5 -0
- package/src/schema/users/types/user-searchable-field.graphql +3 -0
- package/src/schema/users/types/user-sortable-field.graphql +3 -0
- package/src/schema/users/types/user.graphql +13 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export * from './generated/graphql';
|
|
2
|
+
export type {
|
|
3
|
+
ProjectAppPublicInfo,
|
|
4
|
+
ProjectAppScopeInfo,
|
|
5
|
+
ProjectConsentInfo,
|
|
6
|
+
ProjectConsentInfoUser,
|
|
7
|
+
ProjectConsentRedirectResult,
|
|
8
|
+
} from './project-oauth.types';
|
|
9
|
+
|
|
10
|
+
export type {
|
|
11
|
+
AccountResolvers,
|
|
12
|
+
GroupResolvers,
|
|
13
|
+
MutationResolvers,
|
|
14
|
+
OrganizationInvitationResolvers,
|
|
15
|
+
OrganizationResolvers,
|
|
16
|
+
PermissionResolvers,
|
|
17
|
+
ProjectResolvers,
|
|
18
|
+
ProjectAppResolvers,
|
|
19
|
+
QueryResolvers,
|
|
20
|
+
RequireFields,
|
|
21
|
+
Resolver,
|
|
22
|
+
ResolverTypeWrapper,
|
|
23
|
+
Resolvers,
|
|
24
|
+
ResolversObject,
|
|
25
|
+
ResolversParentTypes,
|
|
26
|
+
ResolversTypes,
|
|
27
|
+
RoleResolvers,
|
|
28
|
+
TagResolvers,
|
|
29
|
+
UserResolvers,
|
|
30
|
+
} from './generated/resolvers';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
query GetApiKeys(
|
|
2
|
+
$scope: Scope!
|
|
3
|
+
$page: Int
|
|
4
|
+
$limit: Int
|
|
5
|
+
$sort: ApiKeySortInput
|
|
6
|
+
$search: String
|
|
7
|
+
$ids: [ID!]
|
|
8
|
+
) {
|
|
9
|
+
apiKeys(scope: $scope, page: $page, limit: $limit, sort: $sort, search: $search, ids: $ids) {
|
|
10
|
+
apiKeys {
|
|
11
|
+
id
|
|
12
|
+
clientId
|
|
13
|
+
name
|
|
14
|
+
description
|
|
15
|
+
expiresAt
|
|
16
|
+
lastUsedAt
|
|
17
|
+
isRevoked
|
|
18
|
+
revokedAt
|
|
19
|
+
revokedBy
|
|
20
|
+
createdBy
|
|
21
|
+
createdAt
|
|
22
|
+
updatedAt
|
|
23
|
+
deletedAt
|
|
24
|
+
role {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
}
|
|
28
|
+
createdByUser {
|
|
29
|
+
id
|
|
30
|
+
name
|
|
31
|
+
pictureUrl
|
|
32
|
+
}
|
|
33
|
+
revokedByUser {
|
|
34
|
+
id
|
|
35
|
+
name
|
|
36
|
+
pictureUrl
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
totalCount
|
|
40
|
+
hasNextPage
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
mutation Login($input: LoginInput!) {
|
|
2
|
+
login(input: $input) {
|
|
3
|
+
accessToken
|
|
4
|
+
refreshToken
|
|
5
|
+
requiresEmailVerification
|
|
6
|
+
verificationExpiry
|
|
7
|
+
email
|
|
8
|
+
accounts {
|
|
9
|
+
id
|
|
10
|
+
type
|
|
11
|
+
owner {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
pictureUrl
|
|
15
|
+
updatedAt
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
mutation Register($input: RegisterInput!) {
|
|
2
|
+
register(input: $input) {
|
|
3
|
+
accessToken
|
|
4
|
+
refreshToken
|
|
5
|
+
requiresEmailVerification
|
|
6
|
+
verificationExpiry
|
|
7
|
+
email
|
|
8
|
+
account {
|
|
9
|
+
id
|
|
10
|
+
type
|
|
11
|
+
owner {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
pictureUrl
|
|
15
|
+
updatedAt
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
query GetGroups(
|
|
2
|
+
$scope: Scope!
|
|
3
|
+
$page: Int
|
|
4
|
+
$limit: Int
|
|
5
|
+
$sort: GroupSortInput
|
|
6
|
+
$search: String
|
|
7
|
+
$ids: [ID!]
|
|
8
|
+
$tagIds: [ID!]
|
|
9
|
+
) {
|
|
10
|
+
groups(
|
|
11
|
+
scope: $scope
|
|
12
|
+
page: $page
|
|
13
|
+
limit: $limit
|
|
14
|
+
sort: $sort
|
|
15
|
+
search: $search
|
|
16
|
+
ids: $ids
|
|
17
|
+
tagIds: $tagIds
|
|
18
|
+
) {
|
|
19
|
+
groups {
|
|
20
|
+
id
|
|
21
|
+
name
|
|
22
|
+
description
|
|
23
|
+
metadata
|
|
24
|
+
createdAt
|
|
25
|
+
updatedAt
|
|
26
|
+
permissions {
|
|
27
|
+
id
|
|
28
|
+
name
|
|
29
|
+
action
|
|
30
|
+
tags {
|
|
31
|
+
id
|
|
32
|
+
name
|
|
33
|
+
color
|
|
34
|
+
isPrimary
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
tags {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
color
|
|
41
|
+
isPrimary
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
totalCount
|
|
45
|
+
hasNextPage
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
mutation CreateMySecondaryAccount {
|
|
2
|
+
createMySecondaryAccount {
|
|
3
|
+
account {
|
|
4
|
+
id
|
|
5
|
+
type
|
|
6
|
+
ownerId
|
|
7
|
+
owner {
|
|
8
|
+
id
|
|
9
|
+
name
|
|
10
|
+
pictureUrl
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
createdAt
|
|
14
|
+
updatedAt
|
|
15
|
+
}
|
|
16
|
+
accounts {
|
|
17
|
+
id
|
|
18
|
+
type
|
|
19
|
+
ownerId
|
|
20
|
+
owner {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
pictureUrl
|
|
24
|
+
updatedAt
|
|
25
|
+
}
|
|
26
|
+
createdAt
|
|
27
|
+
updatedAt
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
mutation CreateMyUserAuthenticationMethod($input: CreateMyUserAuthenticationMethodInput!) {
|
|
2
|
+
createMyUserAuthenticationMethod(input: $input) {
|
|
3
|
+
id
|
|
4
|
+
userId
|
|
5
|
+
provider
|
|
6
|
+
providerId
|
|
7
|
+
isVerified
|
|
8
|
+
isPrimary
|
|
9
|
+
lastUsedAt
|
|
10
|
+
createdAt
|
|
11
|
+
updatedAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
query MyUserDataExport {
|
|
2
|
+
myUserDataExport {
|
|
3
|
+
user {
|
|
4
|
+
id
|
|
5
|
+
name
|
|
6
|
+
email
|
|
7
|
+
createdAt
|
|
8
|
+
updatedAt
|
|
9
|
+
}
|
|
10
|
+
accounts {
|
|
11
|
+
id
|
|
12
|
+
type
|
|
13
|
+
createdAt
|
|
14
|
+
updatedAt
|
|
15
|
+
}
|
|
16
|
+
authenticationMethods {
|
|
17
|
+
provider
|
|
18
|
+
providerId
|
|
19
|
+
isVerified
|
|
20
|
+
isPrimary
|
|
21
|
+
lastUsedAt
|
|
22
|
+
createdAt
|
|
23
|
+
}
|
|
24
|
+
sessions {
|
|
25
|
+
userAgent
|
|
26
|
+
ipAddress
|
|
27
|
+
lastUsedAt
|
|
28
|
+
expiresAt
|
|
29
|
+
createdAt
|
|
30
|
+
}
|
|
31
|
+
organizationMemberships {
|
|
32
|
+
organizationId
|
|
33
|
+
organizationName
|
|
34
|
+
role
|
|
35
|
+
joinedAt
|
|
36
|
+
}
|
|
37
|
+
projectMemberships {
|
|
38
|
+
projectId
|
|
39
|
+
projectName
|
|
40
|
+
role
|
|
41
|
+
joinedAt
|
|
42
|
+
}
|
|
43
|
+
exportedAt
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
query MyUserSessions($input: MyUserSessionsInput!) {
|
|
2
|
+
myUserSessions(input: $input) {
|
|
3
|
+
userSessions {
|
|
4
|
+
id
|
|
5
|
+
userId
|
|
6
|
+
userAuthenticationMethodId
|
|
7
|
+
userAuthenticationMethod {
|
|
8
|
+
provider
|
|
9
|
+
providerId
|
|
10
|
+
}
|
|
11
|
+
audience
|
|
12
|
+
expiresAt
|
|
13
|
+
lastUsedAt
|
|
14
|
+
userAgent
|
|
15
|
+
ipAddress
|
|
16
|
+
createdAt
|
|
17
|
+
}
|
|
18
|
+
totalCount
|
|
19
|
+
hasNextPage
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
mutation AcceptInvitation($input: AcceptInvitationInput!) {
|
|
2
|
+
acceptInvitation(input: $input) {
|
|
3
|
+
requiresRegistration
|
|
4
|
+
isNewUser
|
|
5
|
+
user {
|
|
6
|
+
id
|
|
7
|
+
name
|
|
8
|
+
createdAt
|
|
9
|
+
}
|
|
10
|
+
accounts {
|
|
11
|
+
id
|
|
12
|
+
type
|
|
13
|
+
}
|
|
14
|
+
invitation {
|
|
15
|
+
id
|
|
16
|
+
email
|
|
17
|
+
status
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
query GetInvitation($token: String!) {
|
|
2
|
+
invitation(token: $token) {
|
|
3
|
+
id
|
|
4
|
+
organizationId
|
|
5
|
+
organization {
|
|
6
|
+
id
|
|
7
|
+
name
|
|
8
|
+
slug
|
|
9
|
+
}
|
|
10
|
+
email
|
|
11
|
+
roleId
|
|
12
|
+
role {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
description
|
|
16
|
+
}
|
|
17
|
+
status
|
|
18
|
+
expiresAt
|
|
19
|
+
invitedBy
|
|
20
|
+
inviter {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
}
|
|
24
|
+
invitedAt
|
|
25
|
+
createdAt
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
query GetOrganizationInvitations($scope: Scope!, $status: OrganizationInvitationStatus) {
|
|
2
|
+
organizationInvitations(scope: $scope, status: $status) {
|
|
3
|
+
invitations {
|
|
4
|
+
id
|
|
5
|
+
organizationId
|
|
6
|
+
email
|
|
7
|
+
roleId
|
|
8
|
+
status
|
|
9
|
+
expiresAt
|
|
10
|
+
invitedBy
|
|
11
|
+
invitedAt
|
|
12
|
+
createdAt
|
|
13
|
+
}
|
|
14
|
+
totalCount
|
|
15
|
+
hasNextPage
|
|
16
|
+
}
|
|
17
|
+
}
|