Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "moos-api", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Moos API type definitions", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,3 +8,5 @@ /** | ||
"/profile": { | ||
/** Get your own Profile, if you are logged in with a session cookie */ | ||
post: operations["fetch-profile"]; | ||
/** Update your own Profile information, if you are logged in with a session cookie */ | ||
patch: operations["patch-profile"]; | ||
@@ -24,2 +26,6 @@ }; | ||
}; | ||
"/client/profile": { | ||
/** Fetch profile associated with the bearer token. */ | ||
post: operations["post-client-profile"]; | ||
}; | ||
} | ||
@@ -45,3 +51,3 @@ | ||
/** @enum {string} */ | ||
provider: "discord"; | ||
provider: "discord" | "google"; | ||
providerId: string; | ||
@@ -68,2 +74,3 @@ username: string; | ||
export interface operations { | ||
/** Get your own Profile, if you are logged in with a session cookie */ | ||
"fetch-profile": { | ||
@@ -83,2 +90,3 @@ responses: { | ||
}; | ||
/** Update your own Profile information, if you are logged in with a session cookie */ | ||
"patch-profile": { | ||
@@ -152,4 +160,17 @@ responses: { | ||
}; | ||
/** Fetch profile associated with the bearer token. */ | ||
"post-client-profile": { | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["UserProfile"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
}; | ||
}; | ||
} | ||
export interface external {} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94040
201