Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export namespace APP_DEF {
- export type schema = {
- "app_id": UUID_DEF.schema,
- "account_uuid": UUID_DEF.schema,
- "app_name"?: "string",
- "status"?: "string",
- }
- export const required = [
- "app_id",
- "account_uuid",
- ];
- export const defaults = {
- "app_id": "123asd",
- "account_uuid": null,
- }
- }
- export namespace USER_DEF {
- export type schema = {
- "user_id"?: UUID_DEF.schema,
- "username": "string",
- "email"?: "string",
- }
- export const required = [
- "username",
- ];
- export const defaults = {
- "user_id": 123,
- }
- }
- export namespace UUID_DEF {
- export type schema = String;
- export const pattern = "^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$";
- }
- export namespace ACCOUNTS_ACCOUNT_accountid_EP {
- export const url = "/accounts/account/{account-id}";
- export namespace GET {
- export namespace request {
- export type schema = {
- "account_id": UUID_DEF.schema,
- }
- export const required = [
- "account_id",
- ];
- }
- export namespace response {
- export type schema = {
- "account_id": UUID_DEF.schema,
- }
- export const required = [
- "account_id",
- ];
- }
- }
- export namespace POST {
- export namespace request {
- export type schema = {
- "account_id": UUID_DEF.schema,
- }
- export const required = [
- "account_id",
- ];
- }
- export namespace response {
- export type schema = {
- "account_id": UUID_DEF.schema,
- }
- export const required = [
- "account_id",
- ];
- }
- }
- }
- export namespace ACCOUNTS_ACCOUNT_AUTH_LOGIN_EP {
- export const url = "/accounts/account/auth/login";
- export namespace POST {
- export namespace request {
- export type schema = {
- "username": "string",
- "password": "string",
- }
- export const required = [
- "username",
- "password",
- ];
- }
- export namespace response {
- export type schema = {
- "user": USER_DEF.schema,
- }
- export const required = [
- "user",
- ];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement