2021-07-08 12:15:19 +00:00
|
|
|
# GraphQL schema example
|
|
|
|
#
|
|
|
|
# https://gqlgen.com/getting-started/
|
2021-07-12 18:22:16 +00:00
|
|
|
scalar Int64
|
2021-09-20 05:06:26 +00:00
|
|
|
scalar Map
|
|
|
|
scalar Any
|
2021-07-08 12:15:19 +00:00
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
type Pagination {
|
2022-12-21 17:44:24 +00:00
|
|
|
limit: Int64!
|
|
|
|
page: Int64!
|
|
|
|
offset: Int64!
|
|
|
|
total: Int64!
|
2022-01-25 05:27:40 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 07:55:52 +00:00
|
|
|
type Meta {
|
2022-12-21 17:44:24 +00:00
|
|
|
version: String!
|
|
|
|
client_id: String!
|
|
|
|
is_google_login_enabled: Boolean!
|
|
|
|
is_facebook_login_enabled: Boolean!
|
|
|
|
is_github_login_enabled: Boolean!
|
|
|
|
is_linkedin_login_enabled: Boolean!
|
|
|
|
is_apple_login_enabled: Boolean!
|
|
|
|
is_twitter_login_enabled: Boolean!
|
2023-02-25 23:53:02 +00:00
|
|
|
is_microsoft_login_enabled: Boolean!
|
2022-12-21 17:44:24 +00:00
|
|
|
is_email_verification_enabled: Boolean!
|
|
|
|
is_basic_authentication_enabled: Boolean!
|
|
|
|
is_magic_link_login_enabled: Boolean!
|
|
|
|
is_sign_up_enabled: Boolean!
|
|
|
|
is_strong_password_enabled: Boolean!
|
|
|
|
is_multi_factor_auth_enabled: Boolean!
|
2021-07-28 07:55:52 +00:00
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type User {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
email: String!
|
|
|
|
email_verified: Boolean!
|
|
|
|
signup_methods: String!
|
|
|
|
given_name: String
|
|
|
|
family_name: String
|
|
|
|
middle_name: String
|
|
|
|
nickname: String
|
|
|
|
# defaults to email
|
|
|
|
preferred_username: String
|
|
|
|
gender: String
|
|
|
|
birthdate: String
|
|
|
|
phone_number: String
|
|
|
|
phone_number_verified: Boolean
|
|
|
|
picture: String
|
|
|
|
roles: [String!]!
|
|
|
|
created_at: Int64
|
|
|
|
updated_at: Int64
|
|
|
|
revoked_timestamp: Int64
|
|
|
|
is_multi_factor_auth_enabled: Boolean
|
2021-07-08 12:15:19 +00:00
|
|
|
}
|
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
type Users {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: Pagination!
|
|
|
|
users: [User!]!
|
2022-01-25 05:27:40 +00:00
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type VerificationRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
identifier: String
|
|
|
|
token: String
|
|
|
|
email: String
|
|
|
|
expires: Int64
|
|
|
|
created_at: Int64
|
|
|
|
updated_at: Int64
|
|
|
|
nonce: String
|
|
|
|
redirect_uri: String
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
type VerificationRequests {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: Pagination!
|
|
|
|
verification_requests: [VerificationRequest!]!
|
2022-01-25 05:27:40 +00:00
|
|
|
}
|
|
|
|
|
2023-06-11 12:58:50 +00:00
|
|
|
type SMSVerificationRequests {
|
|
|
|
id: ID!
|
|
|
|
code: String!
|
|
|
|
code_expires_at: Int64!
|
|
|
|
phone_number: String!
|
|
|
|
created_at: Int64!
|
|
|
|
updated_at: Int64
|
|
|
|
}
|
|
|
|
|
|
|
|
input VerifyMobileRequest {
|
|
|
|
phone_number: String!
|
|
|
|
code: String!
|
|
|
|
}
|
|
|
|
|
2021-07-12 18:22:16 +00:00
|
|
|
type Error {
|
2022-12-21 17:44:24 +00:00
|
|
|
message: String!
|
|
|
|
reason: String!
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 10:13:08 +00:00
|
|
|
type AuthResponse {
|
2022-12-21 17:44:24 +00:00
|
|
|
message: String!
|
|
|
|
should_show_otp_screen: Boolean
|
|
|
|
access_token: String
|
|
|
|
id_token: String
|
|
|
|
refresh_token: String
|
|
|
|
expires_in: Int64
|
|
|
|
user: User
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2021-07-15 09:43:00 +00:00
|
|
|
type Response {
|
2022-12-21 17:44:24 +00:00
|
|
|
message: String!
|
2021-07-15 09:43:00 +00:00
|
|
|
}
|
|
|
|
|
2023-04-19 11:45:22 +00:00
|
|
|
type InviteMembersResponse {
|
|
|
|
message: String!
|
|
|
|
Users: [User!]!
|
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
type Env {
|
2022-12-21 17:44:24 +00:00
|
|
|
ACCESS_TOKEN_EXPIRY_TIME: String
|
|
|
|
ADMIN_SECRET: String
|
|
|
|
DATABASE_NAME: String
|
|
|
|
DATABASE_URL: String
|
|
|
|
DATABASE_TYPE: String
|
|
|
|
DATABASE_USERNAME: String
|
|
|
|
DATABASE_PASSWORD: String
|
|
|
|
DATABASE_HOST: String
|
|
|
|
DATABASE_PORT: String
|
|
|
|
CLIENT_ID: String!
|
|
|
|
CLIENT_SECRET: String!
|
|
|
|
CUSTOM_ACCESS_TOKEN_SCRIPT: String
|
|
|
|
SMTP_HOST: String
|
|
|
|
SMTP_PORT: String
|
|
|
|
SMTP_USERNAME: String
|
|
|
|
SMTP_PASSWORD: String
|
|
|
|
SMTP_LOCAL_NAME: String
|
|
|
|
SENDER_EMAIL: String
|
2023-05-15 21:46:22 +00:00
|
|
|
SENDER_NAME: String
|
2022-12-21 17:44:24 +00:00
|
|
|
JWT_TYPE: String
|
|
|
|
JWT_SECRET: String
|
|
|
|
JWT_PRIVATE_KEY: String
|
|
|
|
JWT_PUBLIC_KEY: String
|
|
|
|
ALLOWED_ORIGINS: [String!]
|
|
|
|
APP_URL: String
|
|
|
|
REDIS_URL: String
|
|
|
|
RESET_PASSWORD_URL: String
|
|
|
|
DISABLE_EMAIL_VERIFICATION: Boolean!
|
|
|
|
DISABLE_BASIC_AUTHENTICATION: Boolean!
|
|
|
|
DISABLE_MAGIC_LINK_LOGIN: Boolean!
|
|
|
|
DISABLE_LOGIN_PAGE: Boolean!
|
|
|
|
DISABLE_SIGN_UP: Boolean!
|
|
|
|
DISABLE_REDIS_FOR_ENV: Boolean!
|
|
|
|
DISABLE_STRONG_PASSWORD: Boolean!
|
|
|
|
DISABLE_MULTI_FACTOR_AUTHENTICATION: Boolean!
|
|
|
|
ENFORCE_MULTI_FACTOR_AUTHENTICATION: Boolean!
|
|
|
|
ROLES: [String!]
|
|
|
|
PROTECTED_ROLES: [String!]
|
|
|
|
DEFAULT_ROLES: [String!]
|
|
|
|
JWT_ROLE_CLAIM: String
|
|
|
|
GOOGLE_CLIENT_ID: String
|
|
|
|
GOOGLE_CLIENT_SECRET: String
|
|
|
|
GITHUB_CLIENT_ID: String
|
|
|
|
GITHUB_CLIENT_SECRET: String
|
|
|
|
FACEBOOK_CLIENT_ID: String
|
|
|
|
FACEBOOK_CLIENT_SECRET: String
|
|
|
|
LINKEDIN_CLIENT_ID: String
|
|
|
|
LINKEDIN_CLIENT_SECRET: String
|
|
|
|
APPLE_CLIENT_ID: String
|
|
|
|
APPLE_CLIENT_SECRET: String
|
|
|
|
TWITTER_CLIENT_ID: String
|
|
|
|
TWITTER_CLIENT_SECRET: String
|
2023-02-25 23:53:02 +00:00
|
|
|
MICROSOFT_CLIENT_ID: String
|
|
|
|
MICROSOFT_CLIENT_SECRET: String
|
|
|
|
MICROSOFT_ACTIVE_DIRECTORY_TENANT_ID: String
|
2022-12-21 17:44:24 +00:00
|
|
|
ORGANIZATION_NAME: String
|
|
|
|
ORGANIZATION_LOGO: String
|
|
|
|
APP_COOKIE_SECURE: Boolean!
|
|
|
|
ADMIN_COOKIE_SECURE: Boolean!
|
2023-04-01 12:06:07 +00:00
|
|
|
DEFAULT_AUTHORIZE_RESPONSE_TYPE: String
|
|
|
|
DEFAULT_AUTHORIZE_RESPONSE_MODE: String
|
2021-12-31 11:33:37 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 08:01:56 +00:00
|
|
|
type ValidateJWTTokenResponse {
|
2022-12-21 17:44:24 +00:00
|
|
|
is_valid: Boolean!
|
|
|
|
claims: Map
|
2022-03-24 08:01:56 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 13:51:52 +00:00
|
|
|
type GenerateJWTKeysResponse {
|
2022-12-21 17:44:24 +00:00
|
|
|
secret: String
|
|
|
|
public_key: String
|
|
|
|
private_key: String
|
2022-03-24 13:51:52 +00:00
|
|
|
}
|
|
|
|
|
2022-07-17 06:37:17 +00:00
|
|
|
type Webhook {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
2023-03-29 01:36:33 +00:00
|
|
|
event_name: String # this is unique string
|
2023-03-26 02:18:06 +00:00
|
|
|
event_description: String
|
2022-12-21 17:44:24 +00:00
|
|
|
endpoint: String
|
|
|
|
enabled: Boolean
|
|
|
|
headers: Map
|
|
|
|
created_at: Int64
|
|
|
|
updated_at: Int64
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Webhooks {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: Pagination!
|
|
|
|
webhooks: [Webhook!]!
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebhookLog {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
http_status: Int64
|
|
|
|
response: String
|
|
|
|
request: String
|
|
|
|
webhook_id: ID
|
|
|
|
created_at: Int64
|
|
|
|
updated_at: Int64
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type TestEndpointResponse {
|
2022-12-21 17:44:24 +00:00
|
|
|
http_status: Int64
|
|
|
|
response: String
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebhookLogs {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: Pagination!
|
|
|
|
webhook_logs: [WebhookLog!]!
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type EmailTemplate {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
event_name: String!
|
|
|
|
template: String!
|
|
|
|
design: String!
|
|
|
|
subject: String!
|
|
|
|
created_at: Int64
|
|
|
|
updated_at: Int64
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type EmailTemplates {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: Pagination!
|
|
|
|
email_templates: [EmailTemplate!]!
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 07:42:46 +00:00
|
|
|
input UpdateEnvInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
ACCESS_TOKEN_EXPIRY_TIME: String
|
|
|
|
ADMIN_SECRET: String
|
|
|
|
CUSTOM_ACCESS_TOKEN_SCRIPT: String
|
|
|
|
OLD_ADMIN_SECRET: String
|
|
|
|
SMTP_HOST: String
|
|
|
|
SMTP_PORT: String
|
|
|
|
SMTP_USERNAME: String
|
|
|
|
SMTP_PASSWORD: String
|
|
|
|
SMTP_LOCAL_NAME: String
|
|
|
|
SENDER_EMAIL: String
|
2023-05-15 21:46:22 +00:00
|
|
|
SENDER_NAME: String
|
2022-12-21 17:44:24 +00:00
|
|
|
JWT_TYPE: String
|
|
|
|
JWT_SECRET: String
|
|
|
|
JWT_PRIVATE_KEY: String
|
|
|
|
JWT_PUBLIC_KEY: String
|
|
|
|
ALLOWED_ORIGINS: [String!]
|
|
|
|
APP_URL: String
|
|
|
|
RESET_PASSWORD_URL: String
|
|
|
|
APP_COOKIE_SECURE: Boolean
|
|
|
|
ADMIN_COOKIE_SECURE: Boolean
|
|
|
|
DISABLE_EMAIL_VERIFICATION: Boolean
|
|
|
|
DISABLE_BASIC_AUTHENTICATION: Boolean
|
|
|
|
DISABLE_MAGIC_LINK_LOGIN: Boolean
|
|
|
|
DISABLE_LOGIN_PAGE: Boolean
|
|
|
|
DISABLE_SIGN_UP: Boolean
|
|
|
|
DISABLE_REDIS_FOR_ENV: Boolean
|
|
|
|
DISABLE_STRONG_PASSWORD: Boolean
|
|
|
|
DISABLE_MULTI_FACTOR_AUTHENTICATION: Boolean
|
|
|
|
ENFORCE_MULTI_FACTOR_AUTHENTICATION: Boolean
|
|
|
|
ROLES: [String!]
|
|
|
|
PROTECTED_ROLES: [String!]
|
|
|
|
DEFAULT_ROLES: [String!]
|
|
|
|
JWT_ROLE_CLAIM: String
|
|
|
|
GOOGLE_CLIENT_ID: String
|
|
|
|
GOOGLE_CLIENT_SECRET: String
|
|
|
|
GITHUB_CLIENT_ID: String
|
|
|
|
GITHUB_CLIENT_SECRET: String
|
|
|
|
FACEBOOK_CLIENT_ID: String
|
|
|
|
FACEBOOK_CLIENT_SECRET: String
|
|
|
|
LINKEDIN_CLIENT_ID: String
|
|
|
|
LINKEDIN_CLIENT_SECRET: String
|
|
|
|
APPLE_CLIENT_ID: String
|
|
|
|
APPLE_CLIENT_SECRET: String
|
|
|
|
TWITTER_CLIENT_ID: String
|
|
|
|
TWITTER_CLIENT_SECRET: String
|
2023-02-25 23:53:02 +00:00
|
|
|
MICROSOFT_CLIENT_ID: String
|
|
|
|
MICROSOFT_CLIENT_SECRET: String
|
|
|
|
MICROSOFT_ACTIVE_DIRECTORY_TENANT_ID: String
|
2022-12-21 17:44:24 +00:00
|
|
|
ORGANIZATION_NAME: String
|
|
|
|
ORGANIZATION_LOGO: String
|
2023-04-01 12:06:07 +00:00
|
|
|
DEFAULT_AUTHORIZE_RESPONSE_TYPE: String
|
|
|
|
DEFAULT_AUTHORIZE_RESPONSE_MODE: String
|
2021-12-31 11:33:37 +00:00
|
|
|
}
|
|
|
|
|
2021-12-30 04:31:51 +00:00
|
|
|
input AdminLoginInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
admin_secret: String!
|
2021-12-30 04:31:51 +00:00
|
|
|
}
|
|
|
|
|
2022-01-09 13:10:30 +00:00
|
|
|
input AdminSignupInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
admin_secret: String!
|
|
|
|
}
|
|
|
|
|
2022-12-24 21:52:42 +00:00
|
|
|
input MobileSignUpInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String
|
|
|
|
given_name: String
|
|
|
|
family_name: String
|
|
|
|
middle_name: String
|
|
|
|
nickname: String
|
|
|
|
gender: String
|
|
|
|
birthdate: String
|
|
|
|
phone_number: String!
|
|
|
|
picture: String
|
|
|
|
password: String!
|
|
|
|
confirm_password: String!
|
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
|
|
|
redirect_uri: String
|
|
|
|
is_multi_factor_auth_enabled: Boolean
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2022-01-09 13:10:30 +00:00
|
|
|
}
|
|
|
|
|
2021-07-15 09:43:00 +00:00
|
|
|
input SignUpInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
given_name: String
|
|
|
|
family_name: String
|
|
|
|
middle_name: String
|
|
|
|
nickname: String
|
|
|
|
gender: String
|
|
|
|
birthdate: String
|
|
|
|
phone_number: String
|
|
|
|
picture: String
|
|
|
|
password: String!
|
|
|
|
confirm_password: String!
|
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
|
|
|
redirect_uri: String
|
|
|
|
is_multi_factor_auth_enabled: Boolean
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|
|
|
|
|
2021-07-14 18:43:19 +00:00
|
|
|
input LoginInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
password: String!
|
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2021-07-08 12:15:19 +00:00
|
|
|
}
|
|
|
|
|
2022-12-24 21:52:42 +00:00
|
|
|
input MobileLoginInput {
|
|
|
|
phone_number: String!
|
|
|
|
password: String!
|
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
|
|
|
}
|
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
input VerifyEmailInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
token: String!
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2021-07-13 20:06:11 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 07:26:17 +00:00
|
|
|
input ResendVerifyEmailInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
identifier: String!
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2021-07-18 07:26:17 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 03:55:20 +00:00
|
|
|
input UpdateProfileInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
old_password: String
|
|
|
|
new_password: String
|
|
|
|
confirm_new_password: String
|
|
|
|
email: String
|
|
|
|
given_name: String
|
|
|
|
family_name: String
|
|
|
|
middle_name: String
|
|
|
|
nickname: String
|
|
|
|
gender: String
|
|
|
|
birthdate: String
|
|
|
|
phone_number: String
|
|
|
|
picture: String
|
|
|
|
is_multi_factor_auth_enabled: Boolean
|
2021-07-18 03:55:20 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 05:21:12 +00:00
|
|
|
input UpdateUserInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
email: String
|
|
|
|
email_verified: Boolean
|
|
|
|
given_name: String
|
|
|
|
family_name: String
|
|
|
|
middle_name: String
|
|
|
|
nickname: String
|
|
|
|
gender: String
|
|
|
|
birthdate: String
|
|
|
|
phone_number: String
|
|
|
|
picture: String
|
|
|
|
roles: [String]
|
|
|
|
is_multi_factor_auth_enabled: Boolean
|
2021-09-21 02:53:40 +00:00
|
|
|
}
|
|
|
|
|
2021-07-21 08:06:26 +00:00
|
|
|
input ForgotPasswordInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
state: String
|
|
|
|
redirect_uri: String
|
2021-07-18 09:56:29 +00:00
|
|
|
}
|
|
|
|
|
2021-08-07 08:41:26 +00:00
|
|
|
input ResetPasswordInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
token: String!
|
|
|
|
password: String!
|
|
|
|
confirm_password: String!
|
2021-08-06 13:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteUserInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
2021-07-18 09:56:29 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 05:21:12 +00:00
|
|
|
input MagicLinkLoginInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
|
|
|
state: String
|
|
|
|
redirect_uri: String
|
2021-11-11 23:52:03 +00:00
|
|
|
}
|
|
|
|
|
2022-01-23 19:02:06 +00:00
|
|
|
input SessionQueryInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
roles: [String!]
|
|
|
|
scope: [String!]
|
2022-01-23 19:02:06 +00:00
|
|
|
}
|
|
|
|
|
2022-01-25 05:27:40 +00:00
|
|
|
input PaginationInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
limit: Int64
|
|
|
|
page: Int64
|
2022-01-25 05:27:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input PaginatedInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: PaginationInput
|
2022-01-25 05:27:40 +00:00
|
|
|
}
|
|
|
|
|
2022-03-08 13:19:42 +00:00
|
|
|
input OAuthRevokeInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
refresh_token: String!
|
2022-03-08 13:19:42 +00:00
|
|
|
}
|
|
|
|
|
2022-03-15 03:23:48 +00:00
|
|
|
input InviteMemberInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
emails: [String!]!
|
|
|
|
redirect_uri: String
|
2022-03-15 03:23:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 08:43:55 +00:00
|
|
|
input UpdateAccessInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
user_id: String!
|
2022-03-24 08:43:55 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 08:01:56 +00:00
|
|
|
input ValidateJWTTokenInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
token_type: String!
|
|
|
|
token: String!
|
|
|
|
roles: [String!]
|
2022-03-24 08:01:56 +00:00
|
|
|
}
|
|
|
|
|
2022-03-24 13:51:52 +00:00
|
|
|
input GenerateJWTKeysInput {
|
2022-12-21 17:44:24 +00:00
|
|
|
type: String!
|
2022-03-24 13:51:52 +00:00
|
|
|
}
|
|
|
|
|
2022-07-06 05:08:21 +00:00
|
|
|
input ListWebhookLogRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
pagination: PaginationInput
|
|
|
|
webhook_id: String
|
2022-07-06 05:08:21 +00:00
|
|
|
}
|
|
|
|
|
2022-07-10 16:19:33 +00:00
|
|
|
input AddWebhookRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
event_name: String!
|
2023-03-26 02:18:06 +00:00
|
|
|
event_description: String
|
2022-12-21 17:44:24 +00:00
|
|
|
endpoint: String!
|
|
|
|
enabled: Boolean!
|
|
|
|
headers: Map
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateWebhookRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
event_name: String
|
2023-03-26 02:18:06 +00:00
|
|
|
event_description: String
|
2022-12-21 17:44:24 +00:00
|
|
|
endpoint: String
|
|
|
|
enabled: Boolean
|
|
|
|
headers: Map
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input WebhookRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input TestEndpointRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
endpoint: String!
|
|
|
|
event_name: String!
|
|
|
|
headers: Map
|
2022-07-10 16:19:33 +00:00
|
|
|
}
|
|
|
|
|
2022-07-17 06:37:17 +00:00
|
|
|
input AddEmailTemplateRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
event_name: String!
|
|
|
|
subject: String!
|
|
|
|
template: String!
|
|
|
|
# Design value is set when editor is used
|
|
|
|
# If raw HTML is used design value is set to null
|
|
|
|
design: String
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateEmailTemplateRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
|
|
|
event_name: String
|
|
|
|
template: String
|
|
|
|
subject: String
|
|
|
|
# Design value is set when editor is used
|
|
|
|
# If raw HTML is used design value is set to null
|
|
|
|
design: String
|
2022-07-17 06:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteEmailTemplateRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
id: ID!
|
2022-07-06 05:08:21 +00:00
|
|
|
}
|
|
|
|
|
2022-07-23 11:14:39 +00:00
|
|
|
input VerifyOTPRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
otp: String!
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2022-07-23 11:14:39 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 08:19:46 +00:00
|
|
|
input ResendOTPRequest {
|
2022-12-21 17:44:24 +00:00
|
|
|
email: String!
|
|
|
|
# state is used for authorization code grant flow
|
|
|
|
# it is used to get code for an on-going auth process during login
|
|
|
|
# and use that code for setting `c_hash` in id_token
|
|
|
|
state: String
|
2022-07-29 08:19:46 +00:00
|
|
|
}
|
|
|
|
|
2023-01-05 14:46:41 +00:00
|
|
|
input GetUserRequest {
|
2023-05-20 04:19:18 +00:00
|
|
|
id: String
|
|
|
|
email: String
|
2023-01-05 14:46:41 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 12:15:19 +00:00
|
|
|
type Mutation {
|
2022-12-21 17:44:24 +00:00
|
|
|
signup(params: SignUpInput!): AuthResponse!
|
2022-12-24 21:52:42 +00:00
|
|
|
mobile_signup(params: MobileSignUpInput): AuthResponse!
|
2022-12-21 17:44:24 +00:00
|
|
|
login(params: LoginInput!): AuthResponse!
|
2022-12-24 21:52:42 +00:00
|
|
|
mobile_login(params: MobileLoginInput!): AuthResponse!
|
2022-12-21 17:44:24 +00:00
|
|
|
magic_link_login(params: MagicLinkLoginInput!): Response!
|
|
|
|
logout: Response!
|
|
|
|
update_profile(params: UpdateProfileInput!): Response!
|
|
|
|
verify_email(params: VerifyEmailInput!): AuthResponse!
|
|
|
|
resend_verify_email(params: ResendVerifyEmailInput!): Response!
|
|
|
|
forgot_password(params: ForgotPasswordInput!): Response!
|
|
|
|
reset_password(params: ResetPasswordInput!): Response!
|
|
|
|
revoke(params: OAuthRevokeInput!): Response!
|
|
|
|
verify_otp(params: VerifyOTPRequest!): AuthResponse!
|
|
|
|
resend_otp(params: ResendOTPRequest!): Response!
|
2023-06-11 12:58:50 +00:00
|
|
|
verify_mobile(params: VerifyMobileRequest!): AuthResponse!
|
2022-12-21 17:44:24 +00:00
|
|
|
# admin only apis
|
|
|
|
_delete_user(params: DeleteUserInput!): Response!
|
|
|
|
_update_user(params: UpdateUserInput!): User!
|
|
|
|
_admin_signup(params: AdminSignupInput!): Response!
|
|
|
|
_admin_login(params: AdminLoginInput!): Response!
|
|
|
|
_admin_logout: Response!
|
|
|
|
_update_env(params: UpdateEnvInput!): Response!
|
2023-04-19 11:45:22 +00:00
|
|
|
_invite_members(params: InviteMemberInput!): InviteMembersResponse!
|
2022-12-21 17:44:24 +00:00
|
|
|
_revoke_access(param: UpdateAccessInput!): Response!
|
|
|
|
_enable_access(param: UpdateAccessInput!): Response!
|
|
|
|
_generate_jwt_keys(params: GenerateJWTKeysInput!): GenerateJWTKeysResponse!
|
|
|
|
_add_webhook(params: AddWebhookRequest!): Response!
|
|
|
|
_update_webhook(params: UpdateWebhookRequest!): Response!
|
|
|
|
_delete_webhook(params: WebhookRequest!): Response!
|
|
|
|
_test_endpoint(params: TestEndpointRequest!): TestEndpointResponse!
|
|
|
|
_add_email_template(params: AddEmailTemplateRequest!): Response!
|
|
|
|
_update_email_template(params: UpdateEmailTemplateRequest!): Response!
|
|
|
|
_delete_email_template(params: DeleteEmailTemplateRequest!): Response!
|
2021-07-14 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Query {
|
2022-12-21 17:44:24 +00:00
|
|
|
meta: Meta!
|
|
|
|
session(params: SessionQueryInput): AuthResponse!
|
|
|
|
profile: User!
|
|
|
|
validate_jwt_token(params: ValidateJWTTokenInput!): ValidateJWTTokenResponse!
|
|
|
|
# admin only apis
|
|
|
|
_users(params: PaginatedInput): Users!
|
2023-01-05 14:46:41 +00:00
|
|
|
_user(params: GetUserRequest!): User!
|
2022-12-21 17:44:24 +00:00
|
|
|
_verification_requests(params: PaginatedInput): VerificationRequests!
|
|
|
|
_admin_session: Response!
|
|
|
|
_env: Env!
|
|
|
|
_webhook(params: WebhookRequest!): Webhook!
|
|
|
|
_webhooks(params: PaginatedInput): Webhooks!
|
|
|
|
_webhook_logs(params: ListWebhookLogRequest): WebhookLogs!
|
|
|
|
_email_templates(params: PaginatedInput): EmailTemplates!
|
2021-07-12 18:22:16 +00:00
|
|
|
}
|