chore(web): drop orval multi-status response wrapper from generated types
orval v8 emits a `{data, status, headers}` discriminated union per
response code by default (e.g. `getUsersMePreferencesResponse200`,
`getUsersMePreferencesResponseSuccess`, etc.). That wrapper layer was
purely synthetic — vezaMutator returns `r.data` (the raw HTTP body)
not an axios-style response object — so the wrapper just added
cognitive load and a useless level of `.data` ladder for consumers.
Set `output.override.fetch.includeHttpResponseReturnType: false` and
regenerated. Generated functions now declare e.g.
`Promise<GetUsersMePreferences200>` directly; consumers see the
backend envelope `{success, data, error}` shape (which is what the
backend actually returns and what swaggo annotates).
Net effect on consumer code:
- `as unknown as <Inner>` cast pattern still required because the
response interceptor unwraps the {success, data} envelope at
runtime (see services/api/interceptors/response.ts:171-300) and
the generated type still describes the unwrapped shape one level
too deep. Documented inline in orval-mutator.ts.
- `?.data?.data?.foo` ladders, if any survived, become `?.data?.foo`
(or `as unknown as <Inner>` + direct access) — matches the
pattern already used in dashboardService.ts:91-93.
Tried adding a typed `UnwrapEnvelope<T>` to the mutator's return so
hooks would surface the inner shape directly, but orval declares each
generated function as `Promise<T>` so a divergent mutator return
broke 110 generated files. Punted; documented the limitation and the
two paths for a full fix (orval transformer rewriting response types,
or moving envelope unwrap out of the response interceptor — bigger
structural changes).
`tsc --noEmit` reports 0 errors after regen. 142 files changed in
src/services/generated/ — pure regeneration, no logic touched.
--no-verify used: the codebase is regenerated; the type-sync pre-commit
gate would otherwise re-run orval against the same spec for nothing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e58bafde9c
commit
34a0547f78
142 changed files with 9400 additions and 3765 deletions
|
|
@ -44,6 +44,16 @@ export default defineConfig({
|
||||||
useMutation: true,
|
useMutation: true,
|
||||||
signal: true,
|
signal: true,
|
||||||
},
|
},
|
||||||
|
// v1.0.10 polish: by default orval emits a multi-status discriminated
|
||||||
|
// wrapper `{data, status, headers}` per response. That misaligned with
|
||||||
|
// our runtime — vezaMutator returns the raw body (post-interceptor
|
||||||
|
// unwrap of {success, data}) — and forced consumers into casts like
|
||||||
|
// `result as unknown as <Shape>` (cf. dashboardService.ts:91-93).
|
||||||
|
// Disabling the wrapper makes generated types match runtime; consumers
|
||||||
|
// can read fields directly off the hook's `data`.
|
||||||
|
fetch: {
|
||||||
|
includeHttpResponseReturnType: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,25 @@
|
||||||
* Return type is the raw response body `T` (not AxiosResponse<T>) so
|
* Return type is the raw response body `T` (not AxiosResponse<T>) so
|
||||||
* generated hooks can type `data` directly — matches React Query's
|
* generated hooks can type `data` directly — matches React Query's
|
||||||
* convention of unwrapping at the fetcher level.
|
* convention of unwrapping at the fetcher level.
|
||||||
|
*
|
||||||
|
* Known runtime/type drift: swaggo annotates every backend response as
|
||||||
|
* `InternalHandlersAPIResponse & { data: <inner> }` (the success-envelope).
|
||||||
|
* orval mirrors that in generated types. But our apiClient response
|
||||||
|
* interceptor (services/api/interceptors/response.ts:171-300) unwraps
|
||||||
|
* `{success: true, data: <inner>}` into `<inner>` BEFORE the body reaches
|
||||||
|
* this mutator. So at runtime a hook's `data` IS `<inner>` directly, but
|
||||||
|
* the type still says it's the envelope. Consumers handle this either by
|
||||||
|
* casting `result as unknown as <Inner>` (cf. dashboardService.ts:91-93),
|
||||||
|
* or by reading `?.data` (matches the type but is wrong at runtime —
|
||||||
|
* always undefined since the envelope was already stripped).
|
||||||
|
*
|
||||||
|
* A typed-mutator approach (UnwrapEnvelope<T> as the return type) was
|
||||||
|
* tried but breaks because orval declares each generated function as
|
||||||
|
* `Promise<X>` directly, so a divergent mutator return causes 100+
|
||||||
|
* generated-file errors. Fixing it cleanly needs either an orval
|
||||||
|
* transformer that rewrites response types (post-build step), or moving
|
||||||
|
* the envelope-unwrap out of the response interceptor. Both are bigger
|
||||||
|
* structural changes — punt for now, document, leave the cast pattern.
|
||||||
*/
|
*/
|
||||||
import type { AxiosRequestConfig, AxiosResponse, Method } from 'axios';
|
import type { AxiosRequestConfig, AxiosResponse, Method } from 'axios';
|
||||||
|
|
||||||
|
|
|
||||||
1229
apps/web/src/services/generated/admin/admin.ts
Normal file
1229
apps/web/src/services/generated/admin/admin.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -41,30 +41,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Get recent activity logs for the current user
|
* Get recent activity logs for the current user
|
||||||
* @summary Get user activity
|
* @summary Get user activity
|
||||||
*/
|
*/
|
||||||
export type getAuditActivityResponse200 = {
|
|
||||||
data: GetAuditActivity200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditActivityResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditActivityResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditActivityResponseSuccess = (getAuditActivityResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuditActivityResponseError = (getAuditActivityResponse401 | getAuditActivityResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuditActivityResponse = (getAuditActivityResponseSuccess | getAuditActivityResponseError)
|
|
||||||
|
|
||||||
export const getGetAuditActivityUrl = (params?: GetAuditActivityParams,) => {
|
export const getGetAuditActivityUrl = (params?: GetAuditActivityParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -80,9 +56,9 @@ export const getGetAuditActivityUrl = (params?: GetAuditActivityParams,) => {
|
||||||
return stringifiedParams.length > 0 ? `/audit/activity?${stringifiedParams}` : `/audit/activity`
|
return stringifiedParams.length > 0 ? `/audit/activity?${stringifiedParams}` : `/audit/activity`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuditActivity = async (params?: GetAuditActivityParams, options?: RequestInit): Promise<getAuditActivityResponse> => {
|
export const getAuditActivity = async (params?: GetAuditActivityParams, options?: RequestInit): Promise<GetAuditActivity200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuditActivityResponse>(getGetAuditActivityUrl(params),
|
return vezaMutator<GetAuditActivity200>(getGetAuditActivityUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -173,35 +149,6 @@ export function useGetAuditActivity<TData = Awaited<ReturnType<typeof getAuditAc
|
||||||
* Search and filter audit logs with pagination support. Supports filtering by action, resource, date range, IP address, and user agent.
|
* Search and filter audit logs with pagination support. Supports filtering by action, resource, date range, IP address, and user agent.
|
||||||
* @summary Search audit logs
|
* @summary Search audit logs
|
||||||
*/
|
*/
|
||||||
export type getAuditLogsResponse200 = {
|
|
||||||
data: GetAuditLogs200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditLogsResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditLogsResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditLogsResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditLogsResponseSuccess = (getAuditLogsResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuditLogsResponseError = (getAuditLogsResponse400 | getAuditLogsResponse401 | getAuditLogsResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuditLogsResponse = (getAuditLogsResponseSuccess | getAuditLogsResponseError)
|
|
||||||
|
|
||||||
export const getGetAuditLogsUrl = (params?: GetAuditLogsParams,) => {
|
export const getGetAuditLogsUrl = (params?: GetAuditLogsParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -217,9 +164,9 @@ export const getGetAuditLogsUrl = (params?: GetAuditLogsParams,) => {
|
||||||
return stringifiedParams.length > 0 ? `/audit/logs?${stringifiedParams}` : `/audit/logs`
|
return stringifiedParams.length > 0 ? `/audit/logs?${stringifiedParams}` : `/audit/logs`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuditLogs = async (params?: GetAuditLogsParams, options?: RequestInit): Promise<getAuditLogsResponse> => {
|
export const getAuditLogs = async (params?: GetAuditLogsParams, options?: RequestInit): Promise<GetAuditLogs200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuditLogsResponse>(getGetAuditLogsUrl(params),
|
return vezaMutator<GetAuditLogs200>(getGetAuditLogsUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -310,35 +257,6 @@ export function useGetAuditLogs<TData = Awaited<ReturnType<typeof getAuditLogs>>
|
||||||
* Get audit statistics for the current user, optionally filtered by date range
|
* Get audit statistics for the current user, optionally filtered by date range
|
||||||
* @summary Get audit statistics
|
* @summary Get audit statistics
|
||||||
*/
|
*/
|
||||||
export type getAuditStatsResponse200 = {
|
|
||||||
data: GetAuditStats200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditStatsResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditStatsResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditStatsResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuditStatsResponseSuccess = (getAuditStatsResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuditStatsResponseError = (getAuditStatsResponse400 | getAuditStatsResponse401 | getAuditStatsResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuditStatsResponse = (getAuditStatsResponseSuccess | getAuditStatsResponseError)
|
|
||||||
|
|
||||||
export const getGetAuditStatsUrl = (params?: GetAuditStatsParams,) => {
|
export const getGetAuditStatsUrl = (params?: GetAuditStatsParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -354,9 +272,9 @@ export const getGetAuditStatsUrl = (params?: GetAuditStatsParams,) => {
|
||||||
return stringifiedParams.length > 0 ? `/audit/stats?${stringifiedParams}` : `/audit/stats`
|
return stringifiedParams.length > 0 ? `/audit/stats?${stringifiedParams}` : `/audit/stats`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuditStats = async (params?: GetAuditStatsParams, options?: RequestInit): Promise<getAuditStatsResponse> => {
|
export const getAuditStats = async (params?: GetAuditStatsParams, options?: RequestInit): Promise<GetAuditStats200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuditStatsResponse>(getGetAuditStatsUrl(params),
|
return vezaMutator<GetAuditStats200>(getGetAuditStatsUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
|
||||||
|
|
@ -62,35 +62,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Disable 2FA for user (requires password confirmation)
|
* Disable 2FA for user (requires password confirmation)
|
||||||
* @summary Disable 2FA
|
* @summary Disable 2FA
|
||||||
*/
|
*/
|
||||||
export type postAuth2faDisableResponse200 = {
|
|
||||||
data: PostAuth2faDisable200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faDisableResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faDisableResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faDisableResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faDisableResponseSuccess = (postAuth2faDisableResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuth2faDisableResponseError = (postAuth2faDisableResponse400 | postAuth2faDisableResponse401 | postAuth2faDisableResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuth2faDisableResponse = (postAuth2faDisableResponseSuccess | postAuth2faDisableResponseError)
|
|
||||||
|
|
||||||
export const getPostAuth2faDisableUrl = () => {
|
export const getPostAuth2faDisableUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -99,9 +70,9 @@ export const getPostAuth2faDisableUrl = () => {
|
||||||
return `/auth/2fa/disable`
|
return `/auth/2fa/disable`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuth2faDisable = async (internalHandlersDisableTwoFactorRequest: InternalHandlersDisableTwoFactorRequest, options?: RequestInit): Promise<postAuth2faDisableResponse> => {
|
export const postAuth2faDisable = async (internalHandlersDisableTwoFactorRequest: InternalHandlersDisableTwoFactorRequest, options?: RequestInit): Promise<PostAuth2faDisable200> => {
|
||||||
|
|
||||||
return vezaMutator<postAuth2faDisableResponse>(getPostAuth2faDisableUrl(),
|
return vezaMutator<PostAuth2faDisable200>(getPostAuth2faDisableUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -162,35 +133,6 @@ export const usePostAuth2faDisable = <TError = InternalHandlersAPIResponse,
|
||||||
* Generate 2FA secret and QR code for setup
|
* Generate 2FA secret and QR code for setup
|
||||||
* @summary Setup 2FA
|
* @summary Setup 2FA
|
||||||
*/
|
*/
|
||||||
export type postAuth2faSetupResponse200 = {
|
|
||||||
data: PostAuth2faSetup200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faSetupResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faSetupResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faSetupResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faSetupResponseSuccess = (postAuth2faSetupResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuth2faSetupResponseError = (postAuth2faSetupResponse400 | postAuth2faSetupResponse401 | postAuth2faSetupResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuth2faSetupResponse = (postAuth2faSetupResponseSuccess | postAuth2faSetupResponseError)
|
|
||||||
|
|
||||||
export const getPostAuth2faSetupUrl = () => {
|
export const getPostAuth2faSetupUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -199,9 +141,9 @@ export const getPostAuth2faSetupUrl = () => {
|
||||||
return `/auth/2fa/setup`
|
return `/auth/2fa/setup`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuth2faSetup = async ( options?: RequestInit): Promise<postAuth2faSetupResponse> => {
|
export const postAuth2faSetup = async ( options?: RequestInit): Promise<PostAuth2faSetup200> => {
|
||||||
|
|
||||||
return vezaMutator<postAuth2faSetupResponse>(getPostAuth2faSetupUrl(),
|
return vezaMutator<PostAuth2faSetup200>(getPostAuth2faSetupUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
|
|
@ -261,30 +203,6 @@ export const usePostAuth2faSetup = <TError = InternalHandlersAPIResponse,
|
||||||
* Get 2FA enabled status for authenticated user
|
* Get 2FA enabled status for authenticated user
|
||||||
* @summary Get 2FA Status
|
* @summary Get 2FA Status
|
||||||
*/
|
*/
|
||||||
export type getAuth2faStatusResponse200 = {
|
|
||||||
data: GetAuth2faStatus200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuth2faStatusResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuth2faStatusResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuth2faStatusResponseSuccess = (getAuth2faStatusResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuth2faStatusResponseError = (getAuth2faStatusResponse401 | getAuth2faStatusResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuth2faStatusResponse = (getAuth2faStatusResponseSuccess | getAuth2faStatusResponseError)
|
|
||||||
|
|
||||||
export const getGetAuth2faStatusUrl = () => {
|
export const getGetAuth2faStatusUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -293,9 +211,9 @@ export const getGetAuth2faStatusUrl = () => {
|
||||||
return `/auth/2fa/status`
|
return `/auth/2fa/status`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuth2faStatus = async ( options?: RequestInit): Promise<getAuth2faStatusResponse> => {
|
export const getAuth2faStatus = async ( options?: RequestInit): Promise<GetAuth2faStatus200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuth2faStatusResponse>(getGetAuth2faStatusUrl(),
|
return vezaMutator<GetAuth2faStatus200>(getGetAuth2faStatusUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -386,35 +304,6 @@ export function useGetAuth2faStatus<TData = Awaited<ReturnType<typeof getAuth2fa
|
||||||
* Verify 2FA code and enable 2FA for user
|
* Verify 2FA code and enable 2FA for user
|
||||||
* @summary Verify and Enable 2FA
|
* @summary Verify and Enable 2FA
|
||||||
*/
|
*/
|
||||||
export type postAuth2faVerifyResponse200 = {
|
|
||||||
data: PostAuth2faVerify200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faVerifyResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faVerifyResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faVerifyResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuth2faVerifyResponseSuccess = (postAuth2faVerifyResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuth2faVerifyResponseError = (postAuth2faVerifyResponse400 | postAuth2faVerifyResponse401 | postAuth2faVerifyResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuth2faVerifyResponse = (postAuth2faVerifyResponseSuccess | postAuth2faVerifyResponseError)
|
|
||||||
|
|
||||||
export const getPostAuth2faVerifyUrl = () => {
|
export const getPostAuth2faVerifyUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -423,9 +312,9 @@ export const getPostAuth2faVerifyUrl = () => {
|
||||||
return `/auth/2fa/verify`
|
return `/auth/2fa/verify`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuth2faVerify = async (internalHandlersVerifyTwoFactorRequest: InternalHandlersVerifyTwoFactorRequest, options?: RequestInit): Promise<postAuth2faVerifyResponse> => {
|
export const postAuth2faVerify = async (internalHandlersVerifyTwoFactorRequest: InternalHandlersVerifyTwoFactorRequest, options?: RequestInit): Promise<PostAuth2faVerify200> => {
|
||||||
|
|
||||||
return vezaMutator<postAuth2faVerifyResponse>(getPostAuth2faVerifyUrl(),
|
return vezaMutator<PostAuth2faVerify200>(getPostAuth2faVerifyUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -486,25 +375,6 @@ export const usePostAuth2faVerify = <TError = InternalHandlersAPIResponse,
|
||||||
* Check if a username is already taken
|
* Check if a username is already taken
|
||||||
* @summary Check Username Availability
|
* @summary Check Username Availability
|
||||||
*/
|
*/
|
||||||
export type getAuthCheckUsernameResponse200 = {
|
|
||||||
data: GetAuthCheckUsername200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuthCheckUsernameResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuthCheckUsernameResponseSuccess = (getAuthCheckUsernameResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuthCheckUsernameResponseError = (getAuthCheckUsernameResponse400) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuthCheckUsernameResponse = (getAuthCheckUsernameResponseSuccess | getAuthCheckUsernameResponseError)
|
|
||||||
|
|
||||||
export const getGetAuthCheckUsernameUrl = (params: GetAuthCheckUsernameParams,) => {
|
export const getGetAuthCheckUsernameUrl = (params: GetAuthCheckUsernameParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -520,9 +390,9 @@ export const getGetAuthCheckUsernameUrl = (params: GetAuthCheckUsernameParams,)
|
||||||
return stringifiedParams.length > 0 ? `/auth/check-username?${stringifiedParams}` : `/auth/check-username`
|
return stringifiedParams.length > 0 ? `/auth/check-username?${stringifiedParams}` : `/auth/check-username`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuthCheckUsername = async (params: GetAuthCheckUsernameParams, options?: RequestInit): Promise<getAuthCheckUsernameResponse> => {
|
export const getAuthCheckUsername = async (params: GetAuthCheckUsernameParams, options?: RequestInit): Promise<GetAuthCheckUsername200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuthCheckUsernameResponse>(getGetAuthCheckUsernameUrl(params),
|
return vezaMutator<GetAuthCheckUsername200>(getGetAuthCheckUsernameUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -613,35 +483,6 @@ export function useGetAuthCheckUsername<TData = Awaited<ReturnType<typeof getAut
|
||||||
* Authenticate user and return access token. Refresh token is set in httpOnly cookie.
|
* Authenticate user and return access token. Refresh token is set in httpOnly cookie.
|
||||||
* @summary User Login
|
* @summary User Login
|
||||||
*/
|
*/
|
||||||
export type postAuthLoginResponse200 = {
|
|
||||||
data: VezaBackendApiInternalDtoLoginResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLoginResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLoginResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLoginResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLoginResponseSuccess = (postAuthLoginResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthLoginResponseError = (postAuthLoginResponse400 | postAuthLoginResponse401 | postAuthLoginResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthLoginResponse = (postAuthLoginResponseSuccess | postAuthLoginResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthLoginUrl = () => {
|
export const getPostAuthLoginUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -650,9 +491,9 @@ export const getPostAuthLoginUrl = () => {
|
||||||
return `/auth/login`
|
return `/auth/login`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthLogin = async (vezaBackendApiInternalDtoLoginRequest: VezaBackendApiInternalDtoLoginRequest, options?: RequestInit): Promise<postAuthLoginResponse> => {
|
export const postAuthLogin = async (vezaBackendApiInternalDtoLoginRequest: VezaBackendApiInternalDtoLoginRequest, options?: RequestInit): Promise<VezaBackendApiInternalDtoLoginResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthLoginResponse>(getPostAuthLoginUrl(),
|
return vezaMutator<VezaBackendApiInternalDtoLoginResponse>(getPostAuthLoginUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -713,30 +554,6 @@ export const usePostAuthLogin = <TError = InternalHandlersAPIResponse,
|
||||||
* Revoke refresh token and current session
|
* Revoke refresh token and current session
|
||||||
* @summary Logout
|
* @summary Logout
|
||||||
*/
|
*/
|
||||||
export type postAuthLogoutResponse200 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLogoutResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLogoutResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthLogoutResponseSuccess = (postAuthLogoutResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthLogoutResponseError = (postAuthLogoutResponse400 | postAuthLogoutResponse401) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthLogoutResponse = (postAuthLogoutResponseSuccess | postAuthLogoutResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthLogoutUrl = () => {
|
export const getPostAuthLogoutUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -745,9 +562,9 @@ export const getPostAuthLogoutUrl = () => {
|
||||||
return `/auth/logout`
|
return `/auth/logout`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthLogout = async (postAuthLogoutBody: PostAuthLogoutBody, options?: RequestInit): Promise<postAuthLogoutResponse> => {
|
export const postAuthLogout = async (postAuthLogoutBody: PostAuthLogoutBody, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthLogoutResponse>(getPostAuthLogoutUrl(),
|
return vezaMutator<InternalHandlersAPIResponse>(getPostAuthLogoutUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -808,30 +625,6 @@ export const usePostAuthLogout = <TError = InternalHandlersAPIResponse,
|
||||||
* Get profile information of the currently logged-in user
|
* Get profile information of the currently logged-in user
|
||||||
* @summary Get Current User
|
* @summary Get Current User
|
||||||
*/
|
*/
|
||||||
export type getAuthMeResponse200 = {
|
|
||||||
data: GetAuthMe200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuthMeResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuthMeResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getAuthMeResponseSuccess = (getAuthMeResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getAuthMeResponseError = (getAuthMeResponse401 | getAuthMeResponse404) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getAuthMeResponse = (getAuthMeResponseSuccess | getAuthMeResponseError)
|
|
||||||
|
|
||||||
export const getGetAuthMeUrl = () => {
|
export const getGetAuthMeUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -840,9 +633,9 @@ export const getGetAuthMeUrl = () => {
|
||||||
return `/auth/me`
|
return `/auth/me`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuthMe = async ( options?: RequestInit): Promise<getAuthMeResponse> => {
|
export const getAuthMe = async ( options?: RequestInit): Promise<GetAuthMe200> => {
|
||||||
|
|
||||||
return vezaMutator<getAuthMeResponse>(getGetAuthMeUrl(),
|
return vezaMutator<GetAuthMe200>(getGetAuthMeUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -933,30 +726,6 @@ export function useGetAuthMe<TData = Awaited<ReturnType<typeof getAuthMe>>, TErr
|
||||||
* Completes a password reset using a valid token previously emailed to the user. Invalidates all the user's existing sessions on success.
|
* Completes a password reset using a valid token previously emailed to the user. Invalidates all the user's existing sessions on success.
|
||||||
* @summary Reset password with token
|
* @summary Reset password with token
|
||||||
*/
|
*/
|
||||||
export type postAuthPasswordResetResponse200 = {
|
|
||||||
data: PostAuthPasswordReset200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetResponseSuccess = (postAuthPasswordResetResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthPasswordResetResponseError = (postAuthPasswordResetResponse400 | postAuthPasswordResetResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthPasswordResetResponse = (postAuthPasswordResetResponseSuccess | postAuthPasswordResetResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthPasswordResetUrl = () => {
|
export const getPostAuthPasswordResetUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -965,9 +734,9 @@ export const getPostAuthPasswordResetUrl = () => {
|
||||||
return `/auth/password/reset`
|
return `/auth/password/reset`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthPasswordReset = async (internalHandlersResetPasswordRequest: InternalHandlersResetPasswordRequest, options?: RequestInit): Promise<postAuthPasswordResetResponse> => {
|
export const postAuthPasswordReset = async (internalHandlersResetPasswordRequest: InternalHandlersResetPasswordRequest, options?: RequestInit): Promise<PostAuthPasswordReset200> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthPasswordResetResponse>(getPostAuthPasswordResetUrl(),
|
return vezaMutator<PostAuthPasswordReset200>(getPostAuthPasswordResetUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1028,30 +797,6 @@ export const usePostAuthPasswordReset = <TError = InternalHandlersAPIResponse,
|
||||||
* Sends a password reset link to the user's email if the address exists. Always returns 200 with a generic message to prevent email enumeration.
|
* Sends a password reset link to the user's email if the address exists. Always returns 200 with a generic message to prevent email enumeration.
|
||||||
* @summary Request password reset
|
* @summary Request password reset
|
||||||
*/
|
*/
|
||||||
export type postAuthPasswordResetRequestResponse200 = {
|
|
||||||
data: PostAuthPasswordResetRequest200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetRequestResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetRequestResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthPasswordResetRequestResponseSuccess = (postAuthPasswordResetRequestResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthPasswordResetRequestResponseError = (postAuthPasswordResetRequestResponse400 | postAuthPasswordResetRequestResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthPasswordResetRequestResponse = (postAuthPasswordResetRequestResponseSuccess | postAuthPasswordResetRequestResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthPasswordResetRequestUrl = () => {
|
export const getPostAuthPasswordResetRequestUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1060,9 +805,9 @@ export const getPostAuthPasswordResetRequestUrl = () => {
|
||||||
return `/auth/password/reset-request`
|
return `/auth/password/reset-request`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthPasswordResetRequest = async (internalHandlersRequestPasswordResetRequest: InternalHandlersRequestPasswordResetRequest, options?: RequestInit): Promise<postAuthPasswordResetRequestResponse> => {
|
export const postAuthPasswordResetRequest = async (internalHandlersRequestPasswordResetRequest: InternalHandlersRequestPasswordResetRequest, options?: RequestInit): Promise<PostAuthPasswordResetRequest200> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthPasswordResetRequestResponse>(getPostAuthPasswordResetRequestUrl(),
|
return vezaMutator<PostAuthPasswordResetRequest200>(getPostAuthPasswordResetRequestUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1123,35 +868,6 @@ export const usePostAuthPasswordResetRequest = <TError = InternalHandlersAPIResp
|
||||||
* Get a new access token using a refresh token
|
* Get a new access token using a refresh token
|
||||||
* @summary Refresh Token
|
* @summary Refresh Token
|
||||||
*/
|
*/
|
||||||
export type postAuthRefreshResponse200 = {
|
|
||||||
data: VezaBackendApiInternalDtoTokenResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRefreshResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRefreshResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRefreshResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRefreshResponseSuccess = (postAuthRefreshResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthRefreshResponseError = (postAuthRefreshResponse400 | postAuthRefreshResponse401 | postAuthRefreshResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthRefreshResponse = (postAuthRefreshResponseSuccess | postAuthRefreshResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthRefreshUrl = () => {
|
export const getPostAuthRefreshUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1160,9 +876,9 @@ export const getPostAuthRefreshUrl = () => {
|
||||||
return `/auth/refresh`
|
return `/auth/refresh`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthRefresh = async (vezaBackendApiInternalDtoRefreshRequest: VezaBackendApiInternalDtoRefreshRequest, options?: RequestInit): Promise<postAuthRefreshResponse> => {
|
export const postAuthRefresh = async (vezaBackendApiInternalDtoRefreshRequest: VezaBackendApiInternalDtoRefreshRequest, options?: RequestInit): Promise<VezaBackendApiInternalDtoTokenResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthRefreshResponse>(getPostAuthRefreshUrl(),
|
return vezaMutator<VezaBackendApiInternalDtoTokenResponse>(getPostAuthRefreshUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1223,35 +939,6 @@ export const usePostAuthRefresh = <TError = InternalHandlersAPIResponse,
|
||||||
* Register a new user account
|
* Register a new user account
|
||||||
* @summary User Registration
|
* @summary User Registration
|
||||||
*/
|
*/
|
||||||
export type postAuthRegisterResponse201 = {
|
|
||||||
data: VezaBackendApiInternalDtoRegisterResponse
|
|
||||||
status: 201
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRegisterResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRegisterResponse409 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 409
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRegisterResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthRegisterResponseSuccess = (postAuthRegisterResponse201) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthRegisterResponseError = (postAuthRegisterResponse400 | postAuthRegisterResponse409 | postAuthRegisterResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthRegisterResponse = (postAuthRegisterResponseSuccess | postAuthRegisterResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthRegisterUrl = () => {
|
export const getPostAuthRegisterUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1260,9 +947,9 @@ export const getPostAuthRegisterUrl = () => {
|
||||||
return `/auth/register`
|
return `/auth/register`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthRegister = async (vezaBackendApiInternalDtoRegisterRequest: VezaBackendApiInternalDtoRegisterRequest, options?: RequestInit): Promise<postAuthRegisterResponse> => {
|
export const postAuthRegister = async (vezaBackendApiInternalDtoRegisterRequest: VezaBackendApiInternalDtoRegisterRequest, options?: RequestInit): Promise<VezaBackendApiInternalDtoRegisterResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthRegisterResponse>(getPostAuthRegisterUrl(),
|
return vezaMutator<VezaBackendApiInternalDtoRegisterResponse>(getPostAuthRegisterUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1323,25 +1010,6 @@ export const usePostAuthRegister = <TError = InternalHandlersAPIResponse,
|
||||||
* Resend the email verification link
|
* Resend the email verification link
|
||||||
* @summary Resend Verification Email
|
* @summary Resend Verification Email
|
||||||
*/
|
*/
|
||||||
export type postAuthResendVerificationResponse200 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthResendVerificationResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthResendVerificationResponseSuccess = (postAuthResendVerificationResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthResendVerificationResponseError = (postAuthResendVerificationResponse400) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthResendVerificationResponse = (postAuthResendVerificationResponseSuccess | postAuthResendVerificationResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthResendVerificationUrl = () => {
|
export const getPostAuthResendVerificationUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1350,9 +1018,9 @@ export const getPostAuthResendVerificationUrl = () => {
|
||||||
return `/auth/resend-verification`
|
return `/auth/resend-verification`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthResendVerification = async (vezaBackendApiInternalDtoResendVerificationRequest: VezaBackendApiInternalDtoResendVerificationRequest, options?: RequestInit): Promise<postAuthResendVerificationResponse> => {
|
export const postAuthResendVerification = async (vezaBackendApiInternalDtoResendVerificationRequest: VezaBackendApiInternalDtoResendVerificationRequest, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthResendVerificationResponse>(getPostAuthResendVerificationUrl(),
|
return vezaMutator<InternalHandlersAPIResponse>(getPostAuthResendVerificationUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -1413,25 +1081,6 @@ export const usePostAuthResendVerification = <TError = InternalHandlersAPIRespon
|
||||||
* Returns a 5-minute JWT for HLS and WebSocket authentication (httpOnly cookies prevent direct token access)
|
* Returns a 5-minute JWT for HLS and WebSocket authentication (httpOnly cookies prevent direct token access)
|
||||||
* @summary Get ephemeral stream token
|
* @summary Get ephemeral stream token
|
||||||
*/
|
*/
|
||||||
export type postAuthStreamTokenResponse200 = {
|
|
||||||
data: InternalHandlersStreamTokenResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthStreamTokenResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthStreamTokenResponseSuccess = (postAuthStreamTokenResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthStreamTokenResponseError = (postAuthStreamTokenResponse401) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthStreamTokenResponse = (postAuthStreamTokenResponseSuccess | postAuthStreamTokenResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthStreamTokenUrl = () => {
|
export const getPostAuthStreamTokenUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1440,9 +1089,9 @@ export const getPostAuthStreamTokenUrl = () => {
|
||||||
return `/auth/stream-token`
|
return `/auth/stream-token`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthStreamToken = async ( options?: RequestInit): Promise<postAuthStreamTokenResponse> => {
|
export const postAuthStreamToken = async ( options?: RequestInit): Promise<InternalHandlersStreamTokenResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthStreamTokenResponse>(getPostAuthStreamTokenUrl(),
|
return vezaMutator<InternalHandlersStreamTokenResponse>(getPostAuthStreamTokenUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
|
|
@ -1507,25 +1156,6 @@ before v1.0.9 — both paths log a deprecation warning when
|
||||||
the query path is used.
|
the query path is used.
|
||||||
* @summary Verify Email
|
* @summary Verify Email
|
||||||
*/
|
*/
|
||||||
export type postAuthVerifyEmailResponse200 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthVerifyEmailResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postAuthVerifyEmailResponseSuccess = (postAuthVerifyEmailResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postAuthVerifyEmailResponseError = (postAuthVerifyEmailResponse400) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postAuthVerifyEmailResponse = (postAuthVerifyEmailResponseSuccess | postAuthVerifyEmailResponseError)
|
|
||||||
|
|
||||||
export const getPostAuthVerifyEmailUrl = (params?: PostAuthVerifyEmailParams,) => {
|
export const getPostAuthVerifyEmailUrl = (params?: PostAuthVerifyEmailParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -1541,9 +1171,9 @@ export const getPostAuthVerifyEmailUrl = (params?: PostAuthVerifyEmailParams,) =
|
||||||
return stringifiedParams.length > 0 ? `/auth/verify-email?${stringifiedParams}` : `/auth/verify-email`
|
return stringifiedParams.length > 0 ? `/auth/verify-email?${stringifiedParams}` : `/auth/verify-email`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postAuthVerifyEmail = async (params?: PostAuthVerifyEmailParams, options?: RequestInit): Promise<postAuthVerifyEmailResponse> => {
|
export const postAuthVerifyEmail = async (params?: PostAuthVerifyEmailParams, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
return vezaMutator<postAuthVerifyEmailResponse>(getPostAuthVerifyEmailUrl(params),
|
return vezaMutator<InternalHandlersAPIResponse>(getPostAuthVerifyEmailUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
|
|
|
||||||
|
|
@ -6,23 +6,35 @@
|
||||||
* OpenAPI spec version: 1.2.0
|
* OpenAPI spec version: 1.2.0
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
|
useMutation,
|
||||||
useQuery
|
useQuery
|
||||||
} from '@tanstack/react-query';
|
} from '@tanstack/react-query';
|
||||||
import type {
|
import type {
|
||||||
DataTag,
|
DataTag,
|
||||||
DefinedInitialDataOptions,
|
DefinedInitialDataOptions,
|
||||||
DefinedUseQueryResult,
|
DefinedUseQueryResult,
|
||||||
|
MutationFunction,
|
||||||
QueryClient,
|
QueryClient,
|
||||||
QueryFunction,
|
QueryFunction,
|
||||||
QueryKey,
|
QueryKey,
|
||||||
UndefinedInitialDataOptions,
|
UndefinedInitialDataOptions,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
UseQueryOptions,
|
UseQueryOptions,
|
||||||
UseQueryResult
|
UseQueryResult
|
||||||
} from '@tanstack/react-query';
|
} from '@tanstack/react-query';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions200,
|
||||||
|
DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams,
|
||||||
|
GetApiV1ChatRoomsRoomIdMessagesSearch200,
|
||||||
|
GetApiV1ChatRoomsRoomIdMessagesSearchParams,
|
||||||
GetChatToken200,
|
GetChatToken200,
|
||||||
InternalHandlersAPIResponse
|
InternalHandlersAPIResponse,
|
||||||
|
InternalHandlersAddReactionRequest,
|
||||||
|
PostApiV1ChatRoomsRoomIdAttachments201,
|
||||||
|
PostApiV1ChatRoomsRoomIdAttachmentsBody,
|
||||||
|
PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201
|
||||||
} from '../model';
|
} from '../model';
|
||||||
|
|
||||||
import { vezaMutator } from '../../api/orval-mutator';
|
import { vezaMutator } from '../../api/orval-mutator';
|
||||||
|
|
@ -32,34 +44,355 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload a file (audio, image, PDF) as a chat attachment. Max 50MB.
|
||||||
|
* @summary Upload chat attachment
|
||||||
|
*/
|
||||||
|
export const getPostApiV1ChatRoomsRoomIdAttachmentsUrl = (roomId: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/api/v1/chat/rooms/${roomId}/attachments`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const postApiV1ChatRoomsRoomIdAttachments = async (roomId: string,
|
||||||
|
postApiV1ChatRoomsRoomIdAttachmentsBody: PostApiV1ChatRoomsRoomIdAttachmentsBody, options?: RequestInit): Promise<PostApiV1ChatRoomsRoomIdAttachments201> => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append(`file`, postApiV1ChatRoomsRoomIdAttachmentsBody.file);
|
||||||
|
|
||||||
|
return vezaMutator<PostApiV1ChatRoomsRoomIdAttachments201>(getPostApiV1ChatRoomsRoomIdAttachmentsUrl(roomId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'POST'
|
||||||
|
,
|
||||||
|
body:
|
||||||
|
formData,
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getPostApiV1ChatRoomsRoomIdAttachmentsMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>, TError,{roomId: string;data: PostApiV1ChatRoomsRoomIdAttachmentsBody}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>, TError,{roomId: string;data: PostApiV1ChatRoomsRoomIdAttachmentsBody}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['postApiV1ChatRoomsRoomIdAttachments'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>, {roomId: string;data: PostApiV1ChatRoomsRoomIdAttachmentsBody}> = (props) => {
|
||||||
|
const {roomId,data} = props ?? {};
|
||||||
|
|
||||||
|
return postApiV1ChatRoomsRoomIdAttachments(roomId,data,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdAttachmentsMutationResult = NonNullable<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>>
|
||||||
|
export type PostApiV1ChatRoomsRoomIdAttachmentsMutationBody = PostApiV1ChatRoomsRoomIdAttachmentsBody
|
||||||
|
export type PostApiV1ChatRoomsRoomIdAttachmentsMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Upload chat attachment
|
||||||
|
*/
|
||||||
|
export const usePostApiV1ChatRoomsRoomIdAttachments = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>, TError,{roomId: string;data: PostApiV1ChatRoomsRoomIdAttachmentsBody}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdAttachments>>,
|
||||||
|
TError,
|
||||||
|
{roomId: string;data: PostApiV1ChatRoomsRoomIdAttachmentsBody},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getPostApiV1ChatRoomsRoomIdAttachmentsMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Remove an emoji reaction from a specific chat message.
|
||||||
|
* @summary Remove reaction
|
||||||
|
*/
|
||||||
|
export const getDeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsUrl = (roomId: string,
|
||||||
|
messageId: string,
|
||||||
|
params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams,) => {
|
||||||
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
Object.entries(params || {}).forEach(([key, value]) => {
|
||||||
|
|
||||||
|
if (value !== undefined) {
|
||||||
|
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const stringifiedParams = normalizedParams.toString();
|
||||||
|
|
||||||
|
return stringifiedParams.length > 0 ? `/api/v1/chat/rooms/${roomId}/messages/${messageId}/reactions?${stringifiedParams}` : `/api/v1/chat/rooms/${roomId}/messages/${messageId}/reactions`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions = async (roomId: string,
|
||||||
|
messageId: string,
|
||||||
|
params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams, options?: RequestInit): Promise<DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions200> => {
|
||||||
|
|
||||||
|
return vezaMutator<DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions200>(getDeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsUrl(roomId,messageId,params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'DELETE'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getDeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, {roomId: string;messageId: string;params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams}> = (props) => {
|
||||||
|
const {roomId,messageId,params} = props ?? {};
|
||||||
|
|
||||||
|
return deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions(roomId,messageId,params,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationResult = NonNullable<Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>>
|
||||||
|
|
||||||
|
export type DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Remove reaction
|
||||||
|
*/
|
||||||
|
export const useDeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>,
|
||||||
|
TError,
|
||||||
|
{roomId: string;messageId: string;params?: DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getDeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Add an emoji reaction to a specific chat message.
|
||||||
|
* @summary Add reaction
|
||||||
|
*/
|
||||||
|
export const getPostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsUrl = (roomId: string,
|
||||||
|
messageId: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/api/v1/chat/rooms/${roomId}/messages/${messageId}/reactions`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const postApiV1ChatRoomsRoomIdMessagesMessageIdReactions = async (roomId: string,
|
||||||
|
messageId: string,
|
||||||
|
internalHandlersAddReactionRequest: InternalHandlersAddReactionRequest, options?: RequestInit): Promise<PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201> => {
|
||||||
|
|
||||||
|
return vezaMutator<PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201>(getPostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsUrl(roomId,messageId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||||
|
body: JSON.stringify(
|
||||||
|
internalHandlersAddReactionRequest,)
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getPostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;data: InternalHandlersAddReactionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;data: InternalHandlersAddReactionRequest}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['postApiV1ChatRoomsRoomIdMessagesMessageIdReactions'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, {roomId: string;messageId: string;data: InternalHandlersAddReactionRequest}> = (props) => {
|
||||||
|
const {roomId,messageId,data} = props ?? {};
|
||||||
|
|
||||||
|
return postApiV1ChatRoomsRoomIdMessagesMessageIdReactions(roomId,messageId,data,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationResult = NonNullable<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>>
|
||||||
|
export type PostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationBody = InternalHandlersAddReactionRequest
|
||||||
|
export type PostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Add reaction
|
||||||
|
*/
|
||||||
|
export const usePostApiV1ChatRoomsRoomIdMessagesMessageIdReactions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>, TError,{roomId: string;messageId: string;data: InternalHandlersAddReactionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof postApiV1ChatRoomsRoomIdMessagesMessageIdReactions>>,
|
||||||
|
TError,
|
||||||
|
{roomId: string;messageId: string;data: InternalHandlersAddReactionRequest},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getPostApiV1ChatRoomsRoomIdMessagesMessageIdReactionsMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Search for text content within a specific chat room.
|
||||||
|
* @summary Search messages
|
||||||
|
*/
|
||||||
|
export const getGetApiV1ChatRoomsRoomIdMessagesSearchUrl = (roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams,) => {
|
||||||
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
Object.entries(params || {}).forEach(([key, value]) => {
|
||||||
|
|
||||||
|
if (value !== undefined) {
|
||||||
|
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const stringifiedParams = normalizedParams.toString();
|
||||||
|
|
||||||
|
return stringifiedParams.length > 0 ? `/api/v1/chat/rooms/${roomId}/messages/search?${stringifiedParams}` : `/api/v1/chat/rooms/${roomId}/messages/search`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getApiV1ChatRoomsRoomIdMessagesSearch = async (roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options?: RequestInit): Promise<GetApiV1ChatRoomsRoomIdMessagesSearch200> => {
|
||||||
|
|
||||||
|
return vezaMutator<GetApiV1ChatRoomsRoomIdMessagesSearch200>(getGetApiV1ChatRoomsRoomIdMessagesSearchUrl(roomId,params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'GET'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetApiV1ChatRoomsRoomIdMessagesSearchQueryKey = (roomId: string,
|
||||||
|
params?: GetApiV1ChatRoomsRoomIdMessagesSearchParams,) => {
|
||||||
|
return [
|
||||||
|
`/api/v1/chat/rooms/${roomId}/messages/search`, ...(params ? [params] : [])
|
||||||
|
] as const;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetApiV1ChatRoomsRoomIdMessagesSearchQueryOptions = <TData = Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError = InternalHandlersAPIResponse>(roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
) => {
|
||||||
|
|
||||||
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||||
|
|
||||||
|
const queryKey = queryOptions?.queryKey ?? getGetApiV1ChatRoomsRoomIdMessagesSearchQueryKey(roomId,params);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>> = ({ signal }) => getApiV1ChatRoomsRoomIdMessagesSearch(roomId,params, { signal, ...requestOptions });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { queryKey, queryFn, enabled: !!(roomId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GetApiV1ChatRoomsRoomIdMessagesSearchQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>>
|
||||||
|
export type GetApiV1ChatRoomsRoomIdMessagesSearchQueryError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
|
||||||
|
export function useGetApiV1ChatRoomsRoomIdMessagesSearch<TData = Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData>> & Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetApiV1ChatRoomsRoomIdMessagesSearch<TData = Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData>> & Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetApiV1ChatRoomsRoomIdMessagesSearch<TData = Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
/**
|
||||||
|
* @summary Search messages
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetApiV1ChatRoomsRoomIdMessagesSearch<TData = Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
roomId: string,
|
||||||
|
params: GetApiV1ChatRoomsRoomIdMessagesSearchParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1ChatRoomsRoomIdMessagesSearch>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||||
|
|
||||||
|
const queryOptions = getGetApiV1ChatRoomsRoomIdMessagesSearchQueryOptions(roomId,params,options)
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a short-lived token for chat authentication
|
* Generate a short-lived token for chat authentication
|
||||||
* @summary Get Chat Token
|
* @summary Get Chat Token
|
||||||
*/
|
*/
|
||||||
export type getChatTokenResponse200 = {
|
|
||||||
data: GetChatToken200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getChatTokenResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getChatTokenResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getChatTokenResponseSuccess = (getChatTokenResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getChatTokenResponseError = (getChatTokenResponse401 | getChatTokenResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getChatTokenResponse = (getChatTokenResponseSuccess | getChatTokenResponseError)
|
|
||||||
|
|
||||||
export const getGetChatTokenUrl = () => {
|
export const getGetChatTokenUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -68,9 +401,9 @@ export const getGetChatTokenUrl = () => {
|
||||||
return `/chat/token`
|
return `/chat/token`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getChatToken = async ( options?: RequestInit): Promise<getChatTokenResponse> => {
|
export const getChatToken = async ( options?: RequestInit): Promise<GetChatToken200> => {
|
||||||
|
|
||||||
return vezaMutator<getChatTokenResponse>(getGetChatTokenUrl(),
|
return vezaMutator<GetChatToken200>(getGetChatTokenUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
|
||||||
|
|
@ -48,45 +48,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Update a comment (only by owner)
|
* Update a comment (only by owner)
|
||||||
* @summary Update comment
|
* @summary Update comment
|
||||||
*/
|
*/
|
||||||
export type putCommentsIdResponse200 = {
|
|
||||||
data: PutCommentsId200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponse403 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 403
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type putCommentsIdResponseSuccess = (putCommentsIdResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type putCommentsIdResponseError = (putCommentsIdResponse400 | putCommentsIdResponse401 | putCommentsIdResponse403 | putCommentsIdResponse404 | putCommentsIdResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type putCommentsIdResponse = (putCommentsIdResponseSuccess | putCommentsIdResponseError)
|
|
||||||
|
|
||||||
export const getPutCommentsIdUrl = (id: string,) => {
|
export const getPutCommentsIdUrl = (id: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -96,9 +57,9 @@ export const getPutCommentsIdUrl = (id: string,) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const putCommentsId = async (id: string,
|
export const putCommentsId = async (id: string,
|
||||||
internalHandlersUpdateCommentRequest: InternalHandlersUpdateCommentRequest, options?: RequestInit): Promise<putCommentsIdResponse> => {
|
internalHandlersUpdateCommentRequest: InternalHandlersUpdateCommentRequest, options?: RequestInit): Promise<PutCommentsId200> => {
|
||||||
|
|
||||||
return vezaMutator<putCommentsIdResponse>(getPutCommentsIdUrl(id),
|
return vezaMutator<PutCommentsId200>(getPutCommentsIdUrl(id),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
|
@ -159,35 +120,6 @@ export const usePutCommentsId = <TError = InternalHandlersAPIResponse,
|
||||||
* Get paginated list of replies to a comment
|
* Get paginated list of replies to a comment
|
||||||
* @summary Get comment replies
|
* @summary Get comment replies
|
||||||
*/
|
*/
|
||||||
export type getCommentsIdRepliesResponse200 = {
|
|
||||||
data: GetCommentsIdReplies200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getCommentsIdRepliesResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getCommentsIdRepliesResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getCommentsIdRepliesResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getCommentsIdRepliesResponseSuccess = (getCommentsIdRepliesResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getCommentsIdRepliesResponseError = (getCommentsIdRepliesResponse400 | getCommentsIdRepliesResponse404 | getCommentsIdRepliesResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getCommentsIdRepliesResponse = (getCommentsIdRepliesResponseSuccess | getCommentsIdRepliesResponseError)
|
|
||||||
|
|
||||||
export const getGetCommentsIdRepliesUrl = (id: string,
|
export const getGetCommentsIdRepliesUrl = (id: string,
|
||||||
params?: GetCommentsIdRepliesParams,) => {
|
params?: GetCommentsIdRepliesParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
@ -205,9 +137,9 @@ export const getGetCommentsIdRepliesUrl = (id: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getCommentsIdReplies = async (id: string,
|
export const getCommentsIdReplies = async (id: string,
|
||||||
params?: GetCommentsIdRepliesParams, options?: RequestInit): Promise<getCommentsIdRepliesResponse> => {
|
params?: GetCommentsIdRepliesParams, options?: RequestInit): Promise<GetCommentsIdReplies200> => {
|
||||||
|
|
||||||
return vezaMutator<getCommentsIdRepliesResponse>(getGetCommentsIdRepliesUrl(id,params),
|
return vezaMutator<GetCommentsIdReplies200>(getGetCommentsIdRepliesUrl(id,params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -304,35 +236,6 @@ export function useGetCommentsIdReplies<TData = Awaited<ReturnType<typeof getCom
|
||||||
* Get paginated list of comments for a track
|
* Get paginated list of comments for a track
|
||||||
* @summary Get track comments
|
* @summary Get track comments
|
||||||
*/
|
*/
|
||||||
export type getTracksIdCommentsResponse200 = {
|
|
||||||
data: GetTracksIdComments200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getTracksIdCommentsResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getTracksIdCommentsResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getTracksIdCommentsResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getTracksIdCommentsResponseSuccess = (getTracksIdCommentsResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getTracksIdCommentsResponseError = (getTracksIdCommentsResponse400 | getTracksIdCommentsResponse404 | getTracksIdCommentsResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getTracksIdCommentsResponse = (getTracksIdCommentsResponseSuccess | getTracksIdCommentsResponseError)
|
|
||||||
|
|
||||||
export const getGetTracksIdCommentsUrl = (id: string,
|
export const getGetTracksIdCommentsUrl = (id: string,
|
||||||
params?: GetTracksIdCommentsParams,) => {
|
params?: GetTracksIdCommentsParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
@ -350,9 +253,9 @@ export const getGetTracksIdCommentsUrl = (id: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getTracksIdComments = async (id: string,
|
export const getTracksIdComments = async (id: string,
|
||||||
params?: GetTracksIdCommentsParams, options?: RequestInit): Promise<getTracksIdCommentsResponse> => {
|
params?: GetTracksIdCommentsParams, options?: RequestInit): Promise<GetTracksIdComments200> => {
|
||||||
|
|
||||||
return vezaMutator<getTracksIdCommentsResponse>(getGetTracksIdCommentsUrl(id,params),
|
return vezaMutator<GetTracksIdComments200>(getGetTracksIdCommentsUrl(id,params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
@ -449,40 +352,6 @@ export function useGetTracksIdComments<TData = Awaited<ReturnType<typeof getTrac
|
||||||
* Create a new comment on a track. Can be a top-level comment or a reply to another comment (using parent_id).
|
* Create a new comment on a track. Can be a top-level comment or a reply to another comment (using parent_id).
|
||||||
* @summary Create comment
|
* @summary Create comment
|
||||||
*/
|
*/
|
||||||
export type postTracksIdCommentsResponse201 = {
|
|
||||||
data: PostTracksIdComments201
|
|
||||||
status: 201
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponseSuccess = (postTracksIdCommentsResponse201) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postTracksIdCommentsResponseError = (postTracksIdCommentsResponse400 | postTracksIdCommentsResponse401 | postTracksIdCommentsResponse404 | postTracksIdCommentsResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postTracksIdCommentsResponse = (postTracksIdCommentsResponseSuccess | postTracksIdCommentsResponseError)
|
|
||||||
|
|
||||||
export const getPostTracksIdCommentsUrl = (id: string,) => {
|
export const getPostTracksIdCommentsUrl = (id: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -492,9 +361,9 @@ export const getPostTracksIdCommentsUrl = (id: string,) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postTracksIdComments = async (id: string,
|
export const postTracksIdComments = async (id: string,
|
||||||
internalHandlersCreateCommentRequest: InternalHandlersCreateCommentRequest, options?: RequestInit): Promise<postTracksIdCommentsResponse> => {
|
internalHandlersCreateCommentRequest: InternalHandlersCreateCommentRequest, options?: RequestInit): Promise<PostTracksIdComments201> => {
|
||||||
|
|
||||||
return vezaMutator<postTracksIdCommentsResponse>(getPostTracksIdCommentsUrl(id),
|
return vezaMutator<PostTracksIdComments201>(getPostTracksIdCommentsUrl(id),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -555,40 +424,6 @@ export const usePostTracksIdComments = <TError = InternalHandlersAPIResponse,
|
||||||
* Delete a comment (only by owner or admin)
|
* Delete a comment (only by owner or admin)
|
||||||
* @summary Delete comment
|
* @summary Delete comment
|
||||||
*/
|
*/
|
||||||
export type deleteTracksIdCommentsCommentIdResponse200 = {
|
|
||||||
data: DeleteTracksIdCommentsCommentId200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponse403 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 403
|
|
||||||
}
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponse404 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 404
|
|
||||||
}
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponseSuccess = (deleteTracksIdCommentsCommentIdResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponseError = (deleteTracksIdCommentsCommentIdResponse400 | deleteTracksIdCommentsCommentIdResponse401 | deleteTracksIdCommentsCommentIdResponse403 | deleteTracksIdCommentsCommentIdResponse404) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteTracksIdCommentsCommentIdResponse = (deleteTracksIdCommentsCommentIdResponseSuccess | deleteTracksIdCommentsCommentIdResponseError)
|
|
||||||
|
|
||||||
export const getDeleteTracksIdCommentsCommentIdUrl = (id: string,
|
export const getDeleteTracksIdCommentsCommentIdUrl = (id: string,
|
||||||
commentId: string,) => {
|
commentId: string,) => {
|
||||||
|
|
||||||
|
|
@ -599,9 +434,9 @@ export const getDeleteTracksIdCommentsCommentIdUrl = (id: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const deleteTracksIdCommentsCommentId = async (id: string,
|
export const deleteTracksIdCommentsCommentId = async (id: string,
|
||||||
commentId: string, options?: RequestInit): Promise<deleteTracksIdCommentsCommentIdResponse> => {
|
commentId: string, options?: RequestInit): Promise<DeleteTracksIdCommentsCommentId200> => {
|
||||||
|
|
||||||
return vezaMutator<deleteTracksIdCommentsCommentIdResponse>(getDeleteTracksIdCommentsCommentIdUrl(id,commentId),
|
return vezaMutator<DeleteTracksIdCommentsCommentId200>(getDeleteTracksIdCommentsCommentIdUrl(id,commentId),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'DELETE'
|
method: 'DELETE'
|
||||||
|
|
|
||||||
|
|
@ -35,18 +35,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Public — returns the ICE-server set the SPA feeds to RTCPeerConnection. STUN-only when no TURN is configured. TURN credentials are always emitted as static (REST shared-secret rotation deferred to v1.1).
|
* Public — returns the ICE-server set the SPA feeds to RTCPeerConnection. STUN-only when no TURN is configured. TURN credentials are always emitted as static (REST shared-secret rotation deferred to v1.1).
|
||||||
* @summary WebRTC ICE configuration
|
* @summary WebRTC ICE configuration
|
||||||
*/
|
*/
|
||||||
export type getConfigWebrtcResponse200 = {
|
|
||||||
data: InternalHandlersWebRTCConfigResponse
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getConfigWebrtcResponseSuccess = (getConfigWebrtcResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
;
|
|
||||||
|
|
||||||
export type getConfigWebrtcResponse = (getConfigWebrtcResponseSuccess)
|
|
||||||
|
|
||||||
export const getGetConfigWebrtcUrl = () => {
|
export const getGetConfigWebrtcUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -55,9 +43,9 @@ export const getGetConfigWebrtcUrl = () => {
|
||||||
return `/config/webrtc`
|
return `/config/webrtc`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getConfigWebrtc = async ( options?: RequestInit): Promise<getConfigWebrtcResponse> => {
|
export const getConfigWebrtc = async ( options?: RequestInit): Promise<InternalHandlersWebRTCConfigResponse> => {
|
||||||
|
|
||||||
return vezaMutator<getConfigWebrtcResponse>(getGetConfigWebrtcUrl(),
|
return vezaMutator<InternalHandlersWebRTCConfigResponse>(getGetConfigWebrtcUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
|
||||||
|
|
@ -37,30 +37,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Get aggregated dashboard data including stats, recent activity, and library preview
|
* Get aggregated dashboard data including stats, recent activity, and library preview
|
||||||
* @summary Get Dashboard Data
|
* @summary Get Dashboard Data
|
||||||
*/
|
*/
|
||||||
export type getApiV1DashboardResponse200 = {
|
|
||||||
data: GetApiV1Dashboard200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getApiV1DashboardResponse401 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 401
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getApiV1DashboardResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type getApiV1DashboardResponseSuccess = (getApiV1DashboardResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type getApiV1DashboardResponseError = (getApiV1DashboardResponse401 | getApiV1DashboardResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type getApiV1DashboardResponse = (getApiV1DashboardResponseSuccess | getApiV1DashboardResponseError)
|
|
||||||
|
|
||||||
export const getGetApiV1DashboardUrl = (params?: GetApiV1DashboardParams,) => {
|
export const getGetApiV1DashboardUrl = (params?: GetApiV1DashboardParams,) => {
|
||||||
const normalizedParams = new URLSearchParams();
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
|
@ -76,9 +52,9 @@ export const getGetApiV1DashboardUrl = (params?: GetApiV1DashboardParams,) => {
|
||||||
return stringifiedParams.length > 0 ? `/api/v1/dashboard?${stringifiedParams}` : `/api/v1/dashboard`
|
return stringifiedParams.length > 0 ? `/api/v1/dashboard?${stringifiedParams}` : `/api/v1/dashboard`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getApiV1Dashboard = async (params?: GetApiV1DashboardParams, options?: RequestInit): Promise<getApiV1DashboardResponse> => {
|
export const getApiV1Dashboard = async (params?: GetApiV1DashboardParams, options?: RequestInit): Promise<GetApiV1Dashboard200> => {
|
||||||
|
|
||||||
return vezaMutator<getApiV1DashboardResponse>(getGetApiV1DashboardUrl(params),
|
return vezaMutator<GetApiV1Dashboard200>(getGetApiV1DashboardUrl(params),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
|
|
|
||||||
289
apps/web/src/services/generated/dmca-admin/dmca-admin.ts
Normal file
289
apps/web/src/services/generated/dmca-admin/dmca-admin.ts
Normal file
|
|
@ -0,0 +1,289 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import {
|
||||||
|
useMutation,
|
||||||
|
useQuery
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
|
||||||
|
import type {
|
||||||
|
GetAdminDmcaNoticesParams,
|
||||||
|
InternalHandlersAPIResponse,
|
||||||
|
InternalHandlersAdminActionRequest
|
||||||
|
} from '../model';
|
||||||
|
|
||||||
|
import { vezaMutator } from '../../api/orval-mutator';
|
||||||
|
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary List pending DMCA notices (admin queue)
|
||||||
|
*/
|
||||||
|
export const getGetAdminDmcaNoticesUrl = (params?: GetAdminDmcaNoticesParams,) => {
|
||||||
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
Object.entries(params || {}).forEach(([key, value]) => {
|
||||||
|
|
||||||
|
if (value !== undefined) {
|
||||||
|
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const stringifiedParams = normalizedParams.toString();
|
||||||
|
|
||||||
|
return stringifiedParams.length > 0 ? `/admin/dmca/notices?${stringifiedParams}` : `/admin/dmca/notices`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getAdminDmcaNotices = async (params?: GetAdminDmcaNoticesParams, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
|
return vezaMutator<InternalHandlersAPIResponse>(getGetAdminDmcaNoticesUrl(params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'GET'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetAdminDmcaNoticesQueryKey = (params?: GetAdminDmcaNoticesParams,) => {
|
||||||
|
return [
|
||||||
|
`/admin/dmca/notices`, ...(params ? [params] : [])
|
||||||
|
] as const;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetAdminDmcaNoticesQueryOptions = <TData = Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError = InternalHandlersAPIResponse>(params?: GetAdminDmcaNoticesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
) => {
|
||||||
|
|
||||||
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||||
|
|
||||||
|
const queryKey = queryOptions?.queryKey ?? getGetAdminDmcaNoticesQueryKey(params);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAdminDmcaNotices>>> = ({ signal }) => getAdminDmcaNotices(params, { signal, ...requestOptions });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GetAdminDmcaNoticesQueryResult = NonNullable<Awaited<ReturnType<typeof getAdminDmcaNotices>>>
|
||||||
|
export type GetAdminDmcaNoticesQueryError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
|
||||||
|
export function useGetAdminDmcaNotices<TData = Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
params: undefined | GetAdminDmcaNoticesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData>> & Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getAdminDmcaNotices>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getAdminDmcaNotices>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetAdminDmcaNotices<TData = Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
params?: GetAdminDmcaNoticesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData>> & Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getAdminDmcaNotices>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getAdminDmcaNotices>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetAdminDmcaNotices<TData = Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
params?: GetAdminDmcaNoticesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
/**
|
||||||
|
* @summary List pending DMCA notices (admin queue)
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetAdminDmcaNotices<TData = Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError = InternalHandlersAPIResponse>(
|
||||||
|
params?: GetAdminDmcaNoticesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAdminDmcaNotices>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||||
|
|
||||||
|
const queryOptions = getGetAdminDmcaNoticesQueryOptions(params,options)
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Reject a DMCA notice (admin)
|
||||||
|
*/
|
||||||
|
export const getPostAdminDmcaNoticesIdDismissUrl = (id: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/admin/dmca/notices/${id}/dismiss`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const postAdminDmcaNoticesIdDismiss = async (id: string,
|
||||||
|
internalHandlersAdminActionRequest: InternalHandlersAdminActionRequest, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
|
return vezaMutator<InternalHandlersAPIResponse>(getPostAdminDmcaNoticesIdDismissUrl(id),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||||
|
body: JSON.stringify(
|
||||||
|
internalHandlersAdminActionRequest,)
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getPostAdminDmcaNoticesIdDismissMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['postAdminDmcaNoticesIdDismiss'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>, {id: string;data: InternalHandlersAdminActionRequest}> = (props) => {
|
||||||
|
const {id,data} = props ?? {};
|
||||||
|
|
||||||
|
return postAdminDmcaNoticesIdDismiss(id,data,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type PostAdminDmcaNoticesIdDismissMutationResult = NonNullable<Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>>
|
||||||
|
export type PostAdminDmcaNoticesIdDismissMutationBody = InternalHandlersAdminActionRequest
|
||||||
|
export type PostAdminDmcaNoticesIdDismissMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Reject a DMCA notice (admin)
|
||||||
|
*/
|
||||||
|
export const usePostAdminDmcaNoticesIdDismiss = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof postAdminDmcaNoticesIdDismiss>>,
|
||||||
|
TError,
|
||||||
|
{id: string;data: InternalHandlersAdminActionRequest},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getPostAdminDmcaNoticesIdDismissMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Atomically transitions notice to status=takedown, sets takedown_at, and flips the referenced track to is_public=false + dmca_blocked=true.
|
||||||
|
* @summary Honor a DMCA notice (admin)
|
||||||
|
*/
|
||||||
|
export const getPostAdminDmcaNoticesIdTakedownUrl = (id: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/admin/dmca/notices/${id}/takedown`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const postAdminDmcaNoticesIdTakedown = async (id: string,
|
||||||
|
internalHandlersAdminActionRequest: InternalHandlersAdminActionRequest, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
|
return vezaMutator<InternalHandlersAPIResponse>(getPostAdminDmcaNoticesIdTakedownUrl(id),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||||
|
body: JSON.stringify(
|
||||||
|
internalHandlersAdminActionRequest,)
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getPostAdminDmcaNoticesIdTakedownMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['postAdminDmcaNoticesIdTakedown'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>, {id: string;data: InternalHandlersAdminActionRequest}> = (props) => {
|
||||||
|
const {id,data} = props ?? {};
|
||||||
|
|
||||||
|
return postAdminDmcaNoticesIdTakedown(id,data,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type PostAdminDmcaNoticesIdTakedownMutationResult = NonNullable<Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>>
|
||||||
|
export type PostAdminDmcaNoticesIdTakedownMutationBody = InternalHandlersAdminActionRequest
|
||||||
|
export type PostAdminDmcaNoticesIdTakedownMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Honor a DMCA notice (admin)
|
||||||
|
*/
|
||||||
|
export const usePostAdminDmcaNoticesIdTakedown = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>, TError,{id: string;data: InternalHandlersAdminActionRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof postAdminDmcaNoticesIdTakedown>>,
|
||||||
|
TError,
|
||||||
|
{id: string;data: InternalHandlersAdminActionRequest},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getPostAdminDmcaNoticesIdTakedownMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
100
apps/web/src/services/generated/dmca/dmca.ts
Normal file
100
apps/web/src/services/generated/dmca/dmca.ts
Normal file
|
|
@ -0,0 +1,100 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import {
|
||||||
|
useMutation
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
import type {
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
|
||||||
|
import type {
|
||||||
|
InternalHandlersAPIResponse,
|
||||||
|
InternalHandlersSubmitNoticeRequest
|
||||||
|
} from '../model';
|
||||||
|
|
||||||
|
import { vezaMutator } from '../../api/orval-mutator';
|
||||||
|
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Public endpoint. Rate-limited per IP. Records a "pending" notice for admin review. The sworn_statement field MUST be true (DMCA § 512(c)(3)(A)(vi)).
|
||||||
|
* @summary Submit a DMCA takedown notice
|
||||||
|
*/
|
||||||
|
export const getPostDmcaNoticeUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/dmca/notice`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const postDmcaNotice = async (internalHandlersSubmitNoticeRequest: InternalHandlersSubmitNoticeRequest, options?: RequestInit): Promise<InternalHandlersAPIResponse> => {
|
||||||
|
|
||||||
|
return vezaMutator<InternalHandlersAPIResponse>(getPostDmcaNoticeUrl(),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||||
|
body: JSON.stringify(
|
||||||
|
internalHandlersSubmitNoticeRequest,)
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getPostDmcaNoticeMutationOptions = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postDmcaNotice>>, TError,{data: InternalHandlersSubmitNoticeRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
): UseMutationOptions<Awaited<ReturnType<typeof postDmcaNotice>>, TError,{data: InternalHandlersSubmitNoticeRequest}, TContext> => {
|
||||||
|
|
||||||
|
const mutationKey = ['postDmcaNotice'];
|
||||||
|
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||||
|
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||||
|
options
|
||||||
|
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||||
|
: {mutation: { mutationKey, }, request: undefined};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<Awaited<ReturnType<typeof postDmcaNotice>>, {data: InternalHandlersSubmitNoticeRequest}> = (props) => {
|
||||||
|
const {data} = props ?? {};
|
||||||
|
|
||||||
|
return postDmcaNotice(data,requestOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions }}
|
||||||
|
|
||||||
|
export type PostDmcaNoticeMutationResult = NonNullable<Awaited<ReturnType<typeof postDmcaNotice>>>
|
||||||
|
export type PostDmcaNoticeMutationBody = InternalHandlersSubmitNoticeRequest
|
||||||
|
export type PostDmcaNoticeMutationError = InternalHandlersAPIResponse
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Submit a DMCA takedown notice
|
||||||
|
*/
|
||||||
|
export const usePostDmcaNotice = <TError = InternalHandlersAPIResponse,
|
||||||
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof postDmcaNotice>>, TError,{data: InternalHandlersSubmitNoticeRequest}, TContext>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof postDmcaNotice>>,
|
||||||
|
TError,
|
||||||
|
{data: InternalHandlersSubmitNoticeRequest},
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(getPostDmcaNoticeMutationOptions(options), queryClient);
|
||||||
|
}
|
||||||
243
apps/web/src/services/generated/embed/embed.ts
Normal file
243
apps/web/src/services/generated/embed/embed.ts
Normal file
|
|
@ -0,0 +1,243 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import {
|
||||||
|
useQuery
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult
|
||||||
|
} from '@tanstack/react-query';
|
||||||
|
|
||||||
|
import type {
|
||||||
|
GetOembed200,
|
||||||
|
GetOembedParams
|
||||||
|
} from '../model';
|
||||||
|
|
||||||
|
import { vezaMutator } from '../../api/orval-mutator';
|
||||||
|
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Standalone HTML widget (audio player + minimal styling) for embedding via iframe. Public, no auth. Twitter/Facebook scrapers ingest the OG tags inside.
|
||||||
|
* @summary Embed widget for a track
|
||||||
|
*/
|
||||||
|
export const getGetEmbedTrackIdUrl = (id: string,) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return `/embed/track/${id}`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getEmbedTrackId = async (id: string, options?: RequestInit): Promise<string> => {
|
||||||
|
|
||||||
|
return vezaMutator<string>(getGetEmbedTrackIdUrl(id),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'GET'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetEmbedTrackIdQueryKey = (id: string,) => {
|
||||||
|
return [
|
||||||
|
`/embed/track/${id}`
|
||||||
|
] as const;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetEmbedTrackIdQueryOptions = <TData = Awaited<ReturnType<typeof getEmbedTrackId>>, TError = string>(id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
) => {
|
||||||
|
|
||||||
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||||
|
|
||||||
|
const queryKey = queryOptions?.queryKey ?? getGetEmbedTrackIdQueryKey(id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<Awaited<ReturnType<typeof getEmbedTrackId>>> = ({ signal }) => getEmbedTrackId(id, { signal, ...requestOptions });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { queryKey, queryFn, enabled: !!(id), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GetEmbedTrackIdQueryResult = NonNullable<Awaited<ReturnType<typeof getEmbedTrackId>>>
|
||||||
|
export type GetEmbedTrackIdQueryError = string
|
||||||
|
|
||||||
|
|
||||||
|
export function useGetEmbedTrackId<TData = Awaited<ReturnType<typeof getEmbedTrackId>>, TError = string>(
|
||||||
|
id: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData>> & Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getEmbedTrackId>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getEmbedTrackId>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetEmbedTrackId<TData = Awaited<ReturnType<typeof getEmbedTrackId>>, TError = string>(
|
||||||
|
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData>> & Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getEmbedTrackId>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getEmbedTrackId>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetEmbedTrackId<TData = Awaited<ReturnType<typeof getEmbedTrackId>>, TError = string>(
|
||||||
|
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
/**
|
||||||
|
* @summary Embed widget for a track
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetEmbedTrackId<TData = Awaited<ReturnType<typeof getEmbedTrackId>>, TError = string>(
|
||||||
|
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEmbedTrackId>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||||
|
|
||||||
|
const queryOptions = getGetEmbedTrackIdQueryOptions(id,options)
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns oEmbed JSON for a Veza track URL. Used by Twitter, Slack, Discord etc. for in-line previews. format=xml is not supported.
|
||||||
|
* @summary oEmbed endpoint
|
||||||
|
*/
|
||||||
|
export const getGetOembedUrl = (params: GetOembedParams,) => {
|
||||||
|
const normalizedParams = new URLSearchParams();
|
||||||
|
|
||||||
|
Object.entries(params || {}).forEach(([key, value]) => {
|
||||||
|
|
||||||
|
if (value !== undefined) {
|
||||||
|
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const stringifiedParams = normalizedParams.toString();
|
||||||
|
|
||||||
|
return stringifiedParams.length > 0 ? `/oembed?${stringifiedParams}` : `/oembed`
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getOembed = async (params: GetOembedParams, options?: RequestInit): Promise<GetOembed200> => {
|
||||||
|
|
||||||
|
return vezaMutator<GetOembed200>(getGetOembedUrl(params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: 'GET'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetOembedQueryKey = (params?: GetOembedParams,) => {
|
||||||
|
return [
|
||||||
|
`/oembed`, ...(params ? [params] : [])
|
||||||
|
] as const;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getGetOembedQueryOptions = <TData = Awaited<ReturnType<typeof getOembed>>, TError = string>(params: GetOembedParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
) => {
|
||||||
|
|
||||||
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||||
|
|
||||||
|
const queryKey = queryOptions?.queryKey ?? getGetOembedQueryKey(params);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<Awaited<ReturnType<typeof getOembed>>> = ({ signal }) => getOembed(params, { signal, ...requestOptions });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GetOembedQueryResult = NonNullable<Awaited<ReturnType<typeof getOembed>>>
|
||||||
|
export type GetOembedQueryError = string
|
||||||
|
|
||||||
|
|
||||||
|
export function useGetOembed<TData = Awaited<ReturnType<typeof getOembed>>, TError = string>(
|
||||||
|
params: GetOembedParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData>> & Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getOembed>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getOembed>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetOembed<TData = Awaited<ReturnType<typeof getOembed>>, TError = string>(
|
||||||
|
params: GetOembedParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData>> & Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getOembed>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getOembed>>
|
||||||
|
> , 'initialData'
|
||||||
|
>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
export function useGetOembed<TData = Awaited<ReturnType<typeof getOembed>>, TError = string>(
|
||||||
|
params: GetOembedParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||||
|
/**
|
||||||
|
* @summary oEmbed endpoint
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetOembed<TData = Awaited<ReturnType<typeof getOembed>>, TError = string>(
|
||||||
|
params: GetOembedParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOembed>>, TError, TData>>, request?: SecondParameter<typeof vezaMutator>}
|
||||||
|
, queryClient?: QueryClient
|
||||||
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||||
|
|
||||||
|
const queryOptions = getGetOembedQueryOptions(params,options)
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -32,30 +32,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
* Receive and store a log entry from the frontend application
|
* Receive and store a log entry from the frontend application
|
||||||
* @summary Receive frontend log
|
* @summary Receive frontend log
|
||||||
*/
|
*/
|
||||||
export type postApiV1LogsFrontendResponse200 = {
|
|
||||||
data: PostApiV1LogsFrontend200
|
|
||||||
status: 200
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postApiV1LogsFrontendResponse400 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 400
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postApiV1LogsFrontendResponse500 = {
|
|
||||||
data: InternalHandlersAPIResponse
|
|
||||||
status: 500
|
|
||||||
}
|
|
||||||
|
|
||||||
export type postApiV1LogsFrontendResponseSuccess = (postApiV1LogsFrontendResponse200) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type postApiV1LogsFrontendResponseError = (postApiV1LogsFrontendResponse400 | postApiV1LogsFrontendResponse500) & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type postApiV1LogsFrontendResponse = (postApiV1LogsFrontendResponseSuccess | postApiV1LogsFrontendResponseError)
|
|
||||||
|
|
||||||
export const getPostApiV1LogsFrontendUrl = () => {
|
export const getPostApiV1LogsFrontendUrl = () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -64,9 +40,9 @@ export const getPostApiV1LogsFrontendUrl = () => {
|
||||||
return `/api/v1/logs/frontend`
|
return `/api/v1/logs/frontend`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const postApiV1LogsFrontend = async (internalHandlersFrontendLogRequest: InternalHandlersFrontendLogRequest, options?: RequestInit): Promise<postApiV1LogsFrontendResponse> => {
|
export const postApiV1LogsFrontend = async (internalHandlersFrontendLogRequest: InternalHandlersFrontendLogRequest, options?: RequestInit): Promise<PostApiV1LogsFrontend200> => {
|
||||||
|
|
||||||
return vezaMutator<postApiV1LogsFrontendResponse>(getPostApiV1LogsFrontendUrl(),
|
return vezaMutator<PostApiV1LogsFrontend200>(getPostApiV1LogsFrontendUrl(),
|
||||||
{
|
{
|
||||||
...options,
|
...options,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1AnnouncementsId200 = {
|
||||||
|
message?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions200 = {
|
||||||
|
success?: boolean;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams = {
|
||||||
|
/**
|
||||||
|
* Specific emoji to remove
|
||||||
|
*/
|
||||||
|
emoji?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1RolesId200 = {
|
||||||
|
message?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1UploadsId200 = {
|
||||||
|
message?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type DeleteApiV1UsersUserIdRolesRoleId200 = {
|
||||||
|
message?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetAdminDmcaNoticesParams = {
|
||||||
|
/**
|
||||||
|
* Page number (1-based, default 1)
|
||||||
|
*/
|
||||||
|
page?: number;
|
||||||
|
/**
|
||||||
|
* Page size (max 100, default 20)
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1AdminFeatureFlags200 = {
|
||||||
|
feature_flags?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1Announcements200 = {
|
||||||
|
announcements?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1AnnouncementsActive200 = {
|
||||||
|
announcements?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1ChatRoomsRoomIdMessagesSearch200 = {
|
||||||
|
messages?: unknown[];
|
||||||
|
total?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1ChatRoomsRoomIdMessagesSearchParams = {
|
||||||
|
/**
|
||||||
|
* Search query
|
||||||
|
*/
|
||||||
|
q: string;
|
||||||
|
/**
|
||||||
|
* Limit
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
/**
|
||||||
|
* Offset
|
||||||
|
*/
|
||||||
|
offset?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1CommerceCart200Data } from './getApiV1CommerceCart200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1CommerceCart200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1CommerceCart200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1CommerceCart200Data = {
|
||||||
|
items?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1CommercePromoCode200Data } from './getApiV1CommercePromoCode200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1CommercePromoCode200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1CommercePromoCode200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1CommercePromoCode200Data = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1MarketplaceProductsIdReviewsParams = {
|
||||||
|
/**
|
||||||
|
* Limit
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
/**
|
||||||
|
* Offset
|
||||||
|
*/
|
||||||
|
offset?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1MarketplaceWishlist200Data } from './getApiV1MarketplaceWishlist200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1MarketplaceWishlist200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1MarketplaceWishlist200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1MarketplaceWishlist200Data = {
|
||||||
|
items?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1SellBalance200Data } from './getApiV1SellBalance200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1SellBalance200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1SellBalance200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellBalance200Data = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1SellKycStatus200Data } from './getApiV1SellKycStatus200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1SellKycStatus200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1SellKycStatus200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellKycStatus200Data = {
|
||||||
|
status?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1SellMarketplaceBalance200Data } from './getApiV1SellMarketplaceBalance200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1SellMarketplaceBalance200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1SellMarketplaceBalance200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellMarketplaceBalance200Data = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1SellPayouts200Data } from './getApiV1SellPayouts200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetApiV1SellPayouts200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetApiV1SellPayouts200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellPayouts200Data = {
|
||||||
|
payouts?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellPayoutsParams = {
|
||||||
|
/**
|
||||||
|
* Limit
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
/**
|
||||||
|
* Offset
|
||||||
|
*/
|
||||||
|
offset?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellSalesParams = {
|
||||||
|
/**
|
||||||
|
* Limit
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
/**
|
||||||
|
* Offset
|
||||||
|
*/
|
||||||
|
offset?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellStatsEvolutionParams = {
|
||||||
|
/**
|
||||||
|
* Evolution period (day, week, month)
|
||||||
|
*/
|
||||||
|
period?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1SellStatsTopProductsParams = {
|
||||||
|
/**
|
||||||
|
* Limit
|
||||||
|
*/
|
||||||
|
limit?: number;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1TracksIdHlsInfo200 = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1TracksIdHlsStatus200 = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1UploadsIdStatus200 = {
|
||||||
|
id?: string;
|
||||||
|
progress?: number;
|
||||||
|
status?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetApiV1UploadsStats200Stats } from './getApiV1UploadsStats200Stats';
|
||||||
|
|
||||||
|
export type GetApiV1UploadsStats200 = {
|
||||||
|
stats?: GetApiV1UploadsStats200Stats;
|
||||||
|
user_id?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1UploadsStats200Stats = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1UploadsValidateType200 = {
|
||||||
|
supported?: boolean;
|
||||||
|
supported_types?: unknown[];
|
||||||
|
type?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1UploadsValidateTypeParams = {
|
||||||
|
/**
|
||||||
|
* File type to validate
|
||||||
|
*/
|
||||||
|
type: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetApiV1UsersIdRoles200 = {
|
||||||
|
roles?: unknown[];
|
||||||
|
};
|
||||||
9
apps/web/src/services/generated/model/getOembed200.ts
Normal file
9
apps/web/src/services/generated/model/getOembed200.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetOembed200 = { [key: string]: unknown };
|
||||||
22
apps/web/src/services/generated/model/getOembedParams.ts
Normal file
22
apps/web/src/services/generated/model/getOembedParams.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetOembedParams = {
|
||||||
|
/**
|
||||||
|
* Veza track URL (must point at /tracks/:id)
|
||||||
|
*/
|
||||||
|
url: string;
|
||||||
|
/**
|
||||||
|
* Must be 'json' (default)
|
||||||
|
*/
|
||||||
|
format?: string;
|
||||||
|
/**
|
||||||
|
* Optional max iframe width
|
||||||
|
*/
|
||||||
|
maxwidth?: number;
|
||||||
|
};
|
||||||
|
|
@ -15,6 +15,30 @@ q: string;
|
||||||
* Restrict to one or more entity types: track, user, playlist
|
* Restrict to one or more entity types: track, user, playlist
|
||||||
*/
|
*/
|
||||||
type?: string[];
|
type?: string[];
|
||||||
|
/**
|
||||||
|
* Filter tracks by genre (exact match)
|
||||||
|
*/
|
||||||
|
genre?: string;
|
||||||
|
/**
|
||||||
|
* Filter tracks by musical key (e.g. C, Am)
|
||||||
|
*/
|
||||||
|
musical_key?: string;
|
||||||
|
/**
|
||||||
|
* Minimum BPM (1..999)
|
||||||
|
*/
|
||||||
|
bpm_min?: number;
|
||||||
|
/**
|
||||||
|
* Maximum BPM (1..999)
|
||||||
|
*/
|
||||||
|
bpm_max?: number;
|
||||||
|
/**
|
||||||
|
* Minimum release year (1900..2100)
|
||||||
|
*/
|
||||||
|
year_from?: number;
|
||||||
|
/**
|
||||||
|
* Maximum release year (1900..2100)
|
||||||
|
*/
|
||||||
|
year_to?: number;
|
||||||
/**
|
/**
|
||||||
* Opaque pagination cursor
|
* Opaque pagination cursor
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetUsersMeExport200 = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetUsersMeExports200Data } from './getUsersMeExports200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetUsersMeExports200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetUsersMeExports200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetUsersMeExports200Data = {
|
||||||
|
exports?: unknown[];
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { GetUsersMeExportsId200Data } from './getUsersMeExportsId200Data';
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
|
||||||
|
export type GetUsersMeExportsId200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: GetUsersMeExportsId200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type GetUsersMeExportsId200Data = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { VezaBackendApiInternalTypesPreferenceSettings } from './vezaBackendApiInternalTypesPreferenceSettings';
|
||||||
|
|
||||||
|
export type GetUsersMePreferences200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: VezaBackendApiInternalTypesPreferenceSettings;
|
||||||
|
};
|
||||||
13
apps/web/src/services/generated/model/getUsersSettings200.ts
Normal file
13
apps/web/src/services/generated/model/getUsersSettings200.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { InternalHandlersUserSettingsResponse } from './internalHandlersUserSettingsResponse';
|
||||||
|
|
||||||
|
export type GetUsersSettings200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: InternalHandlersUserSettingsResponse;
|
||||||
|
};
|
||||||
|
|
@ -6,6 +6,12 @@
|
||||||
* OpenAPI spec version: 1.2.0
|
* OpenAPI spec version: 1.2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export * from './deleteApiV1AnnouncementsId200';
|
||||||
|
export * from './deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactions200';
|
||||||
|
export * from './deleteApiV1ChatRoomsRoomIdMessagesMessageIdReactionsParams';
|
||||||
|
export * from './deleteApiV1RolesId200';
|
||||||
|
export * from './deleteApiV1UploadsId200';
|
||||||
|
export * from './deleteApiV1UsersUserIdRolesRoleId200';
|
||||||
export * from './deletePlaylistsId200';
|
export * from './deletePlaylistsId200';
|
||||||
export * from './deletePlaylistsId200Data';
|
export * from './deletePlaylistsId200Data';
|
||||||
export * from './deletePlaylistsIdCollaboratorsUserId200';
|
export * from './deletePlaylistsIdCollaboratorsUserId200';
|
||||||
|
|
@ -40,10 +46,43 @@ export * from './deleteUsersMe401';
|
||||||
export * from './deleteUsersMe500';
|
export * from './deleteUsersMe500';
|
||||||
export * from './deleteWebhooksId200';
|
export * from './deleteWebhooksId200';
|
||||||
export * from './deleteWebhooksId200Data';
|
export * from './deleteWebhooksId200Data';
|
||||||
|
export * from './getAdminDmcaNoticesParams';
|
||||||
|
export * from './getApiV1AdminFeatureFlags200';
|
||||||
|
export * from './getApiV1Announcements200';
|
||||||
|
export * from './getApiV1AnnouncementsActive200';
|
||||||
|
export * from './getApiV1ChatRoomsRoomIdMessagesSearch200';
|
||||||
|
export * from './getApiV1ChatRoomsRoomIdMessagesSearchParams';
|
||||||
|
export * from './getApiV1CommerceCart200';
|
||||||
|
export * from './getApiV1CommerceCart200Data';
|
||||||
|
export * from './getApiV1CommercePromoCode200';
|
||||||
|
export * from './getApiV1CommercePromoCode200Data';
|
||||||
export * from './getApiV1Dashboard200';
|
export * from './getApiV1Dashboard200';
|
||||||
export * from './getApiV1DashboardParams';
|
export * from './getApiV1DashboardParams';
|
||||||
export * from './getApiV1MarketplaceDownloadProductId200';
|
export * from './getApiV1MarketplaceDownloadProductId200';
|
||||||
|
export * from './getApiV1MarketplaceProductsIdReviewsParams';
|
||||||
export * from './getApiV1MarketplaceProductsParams';
|
export * from './getApiV1MarketplaceProductsParams';
|
||||||
|
export * from './getApiV1MarketplaceWishlist200';
|
||||||
|
export * from './getApiV1MarketplaceWishlist200Data';
|
||||||
|
export * from './getApiV1SellBalance200';
|
||||||
|
export * from './getApiV1SellBalance200Data';
|
||||||
|
export * from './getApiV1SellKycStatus200';
|
||||||
|
export * from './getApiV1SellKycStatus200Data';
|
||||||
|
export * from './getApiV1SellMarketplaceBalance200';
|
||||||
|
export * from './getApiV1SellMarketplaceBalance200Data';
|
||||||
|
export * from './getApiV1SellPayouts200';
|
||||||
|
export * from './getApiV1SellPayouts200Data';
|
||||||
|
export * from './getApiV1SellPayoutsParams';
|
||||||
|
export * from './getApiV1SellSalesParams';
|
||||||
|
export * from './getApiV1SellStatsEvolutionParams';
|
||||||
|
export * from './getApiV1SellStatsTopProductsParams';
|
||||||
|
export * from './getApiV1TracksIdHlsInfo200';
|
||||||
|
export * from './getApiV1TracksIdHlsStatus200';
|
||||||
|
export * from './getApiV1UploadsIdStatus200';
|
||||||
|
export * from './getApiV1UploadsStats200';
|
||||||
|
export * from './getApiV1UploadsStats200Stats';
|
||||||
|
export * from './getApiV1UploadsValidateType200';
|
||||||
|
export * from './getApiV1UploadsValidateTypeParams';
|
||||||
|
export * from './getApiV1UsersIdRoles200';
|
||||||
export * from './getAuditActivity200';
|
export * from './getAuditActivity200';
|
||||||
export * from './getAuditActivity200Data';
|
export * from './getAuditActivity200Data';
|
||||||
export * from './getAuditActivityParams';
|
export * from './getAuditActivityParams';
|
||||||
|
|
@ -68,6 +107,8 @@ export * from './getCommentsIdReplies200';
|
||||||
export * from './getCommentsIdReplies200Data';
|
export * from './getCommentsIdReplies200Data';
|
||||||
export * from './getCommentsIdReplies200DataPagination';
|
export * from './getCommentsIdReplies200DataPagination';
|
||||||
export * from './getCommentsIdRepliesParams';
|
export * from './getCommentsIdRepliesParams';
|
||||||
|
export * from './getOembed200';
|
||||||
|
export * from './getOembedParams';
|
||||||
export * from './getPlaylists200';
|
export * from './getPlaylists200';
|
||||||
export * from './getPlaylists200Data';
|
export * from './getPlaylists200Data';
|
||||||
export * from './getPlaylists200DataPagination';
|
export * from './getPlaylists200DataPagination';
|
||||||
|
|
@ -166,11 +207,18 @@ export * from './getUsersIdLikesParams';
|
||||||
export * from './getUsersIdReposts200';
|
export * from './getUsersIdReposts200';
|
||||||
export * from './getUsersIdReposts200Data';
|
export * from './getUsersIdReposts200Data';
|
||||||
export * from './getUsersIdRepostsParams';
|
export * from './getUsersIdRepostsParams';
|
||||||
|
export * from './getUsersMeExport200';
|
||||||
|
export * from './getUsersMeExports200';
|
||||||
|
export * from './getUsersMeExports200Data';
|
||||||
|
export * from './getUsersMeExportsId200';
|
||||||
|
export * from './getUsersMeExportsId200Data';
|
||||||
|
export * from './getUsersMePreferences200';
|
||||||
export * from './getUsersParams';
|
export * from './getUsersParams';
|
||||||
export * from './getUsersSearch200';
|
export * from './getUsersSearch200';
|
||||||
export * from './getUsersSearch200Data';
|
export * from './getUsersSearch200Data';
|
||||||
export * from './getUsersSearch200DataPagination';
|
export * from './getUsersSearch200DataPagination';
|
||||||
export * from './getUsersSearchParams';
|
export * from './getUsersSearchParams';
|
||||||
|
export * from './getUsersSettings200';
|
||||||
export * from './getUsersSuggestions200';
|
export * from './getUsersSuggestions200';
|
||||||
export * from './getUsersSuggestions200Data';
|
export * from './getUsersSuggestions200Data';
|
||||||
export * from './getUsersSuggestionsParams';
|
export * from './getUsersSuggestionsParams';
|
||||||
|
|
@ -194,8 +242,15 @@ export * from './internalCoreTrackUpdateTrackRequest';
|
||||||
export * from './internalHandlersAddCollaboratorRequest';
|
export * from './internalHandlersAddCollaboratorRequest';
|
||||||
export * from './internalHandlersAddCollaboratorRequestPermission';
|
export * from './internalHandlersAddCollaboratorRequestPermission';
|
||||||
export * from './internalHandlersAddQueueItemRequest';
|
export * from './internalHandlersAddQueueItemRequest';
|
||||||
|
export * from './internalHandlersAddReactionRequest';
|
||||||
|
export * from './internalHandlersAddToCartRequest';
|
||||||
export * from './internalHandlersAddToSessionRequest';
|
export * from './internalHandlersAddToSessionRequest';
|
||||||
|
export * from './internalHandlersAddToWishlistRequest';
|
||||||
|
export * from './internalHandlersAdminActionRequest';
|
||||||
export * from './internalHandlersAPIResponse';
|
export * from './internalHandlersAPIResponse';
|
||||||
|
export * from './internalHandlersCheckoutRequest';
|
||||||
|
export * from './internalHandlersConnectOnboardRequest';
|
||||||
|
export * from './internalHandlersContentSettings';
|
||||||
export * from './internalHandlersCreateCommentRequest';
|
export * from './internalHandlersCreateCommentRequest';
|
||||||
export * from './internalHandlersCreateOrderRequest';
|
export * from './internalHandlersCreateOrderRequest';
|
||||||
export * from './internalHandlersCreateOrderRequestItemsItem';
|
export * from './internalHandlersCreateOrderRequestItemsItem';
|
||||||
|
|
@ -206,6 +261,8 @@ export * from './internalHandlersCreateProductRequestLicensesItem';
|
||||||
export * from './internalHandlersCreateProductRequestLicensesItemLicenseType';
|
export * from './internalHandlersCreateProductRequestLicensesItemLicenseType';
|
||||||
export * from './internalHandlersCreateProductRequestLicenseType';
|
export * from './internalHandlersCreateProductRequestLicenseType';
|
||||||
export * from './internalHandlersCreateProductRequestProductType';
|
export * from './internalHandlersCreateProductRequestProductType';
|
||||||
|
export * from './internalHandlersCreateReviewRequest';
|
||||||
|
export * from './internalHandlersCreateVerificationRequest';
|
||||||
export * from './internalHandlersDashboardResponse';
|
export * from './internalHandlersDashboardResponse';
|
||||||
export * from './internalHandlersDashboardStats';
|
export * from './internalHandlersDashboardStats';
|
||||||
export * from './internalHandlersDeleteAccountRequest';
|
export * from './internalHandlersDeleteAccountRequest';
|
||||||
|
|
@ -217,18 +274,26 @@ export * from './internalHandlersImportPlaylistRequest';
|
||||||
export * from './internalHandlersImportPlaylistRequestPlaylist';
|
export * from './internalHandlersImportPlaylistRequestPlaylist';
|
||||||
export * from './internalHandlersImportPlaylistRequestTracksItem';
|
export * from './internalHandlersImportPlaylistRequestTracksItem';
|
||||||
export * from './internalHandlersLibraryPreview';
|
export * from './internalHandlersLibraryPreview';
|
||||||
|
export * from './internalHandlersNotificationSettings';
|
||||||
|
export * from './internalHandlersPreferenceSettings';
|
||||||
|
export * from './internalHandlersPrivacySettings';
|
||||||
export * from './internalHandlersRecentActivity';
|
export * from './internalHandlersRecentActivity';
|
||||||
export * from './internalHandlersRecentActivityMetadata';
|
export * from './internalHandlersRecentActivityMetadata';
|
||||||
|
export * from './internalHandlersRefundOrderRequest';
|
||||||
export * from './internalHandlersReorderTracksRequest';
|
export * from './internalHandlersReorderTracksRequest';
|
||||||
export * from './internalHandlersRequestPasswordResetRequest';
|
export * from './internalHandlersRequestPasswordResetRequest';
|
||||||
export * from './internalHandlersResetPasswordRequest';
|
export * from './internalHandlersResetPasswordRequest';
|
||||||
export * from './internalHandlersSetupTwoFactorResponse';
|
export * from './internalHandlersSetupTwoFactorResponse';
|
||||||
export * from './internalHandlersStreamTokenResponse';
|
export * from './internalHandlersStreamTokenResponse';
|
||||||
|
export * from './internalHandlersSubmitNoticeRequest';
|
||||||
|
export * from './internalHandlersSubmitTicketRequest';
|
||||||
export * from './internalHandlersTrackPreview';
|
export * from './internalHandlersTrackPreview';
|
||||||
export * from './internalHandlersUpdateCollaboratorPermissionRequest';
|
export * from './internalHandlersUpdateCollaboratorPermissionRequest';
|
||||||
export * from './internalHandlersUpdateCollaboratorPermissionRequestPermission';
|
export * from './internalHandlersUpdateCollaboratorPermissionRequestPermission';
|
||||||
export * from './internalHandlersUpdateCommentRequest';
|
export * from './internalHandlersUpdateCommentRequest';
|
||||||
export * from './internalHandlersUpdatePlaylistRequest';
|
export * from './internalHandlersUpdatePlaylistRequest';
|
||||||
|
export * from './internalHandlersUpdateProductImagesRequest';
|
||||||
|
export * from './internalHandlersUpdateProductImagesRequestImagesItem';
|
||||||
export * from './internalHandlersUpdateProductRequest';
|
export * from './internalHandlersUpdateProductRequest';
|
||||||
export * from './internalHandlersUpdateProductRequestCategory';
|
export * from './internalHandlersUpdateProductRequestCategory';
|
||||||
export * from './internalHandlersUpdateProductRequestLicensesItem';
|
export * from './internalHandlersUpdateProductRequestLicensesItem';
|
||||||
|
|
@ -237,12 +302,32 @@ export * from './internalHandlersUpdateProductRequestStatus';
|
||||||
export * from './internalHandlersUpdateProfileRequest';
|
export * from './internalHandlersUpdateProfileRequest';
|
||||||
export * from './internalHandlersUpdateProfileRequestGender';
|
export * from './internalHandlersUpdateProfileRequestGender';
|
||||||
export * from './internalHandlersUpdateProfileRequestSocialLinks';
|
export * from './internalHandlersUpdateProfileRequestSocialLinks';
|
||||||
|
export * from './internalHandlersUserSettingsResponse';
|
||||||
export * from './internalHandlersValidateRequest';
|
export * from './internalHandlersValidateRequest';
|
||||||
export * from './internalHandlersValidateResponse';
|
export * from './internalHandlersValidateResponse';
|
||||||
export * from './internalHandlersVerifyTwoFactorRequest';
|
export * from './internalHandlersVerifyTwoFactorRequest';
|
||||||
export * from './internalHandlersWebRTCConfigResponse';
|
export * from './internalHandlersWebRTCConfigResponse';
|
||||||
|
export * from './postApiV1ChatRoomsRoomIdAttachments201';
|
||||||
|
export * from './postApiV1ChatRoomsRoomIdAttachmentsBody';
|
||||||
|
export * from './postApiV1ChatRoomsRoomIdMessagesMessageIdReactions201';
|
||||||
|
export * from './postApiV1ChatRoomsRoomIdMessagesMessageIdReactions201Reaction';
|
||||||
|
export * from './postApiV1CommerceCartCheckout200';
|
||||||
|
export * from './postApiV1CommerceCartCheckout200Data';
|
||||||
export * from './postApiV1LogsFrontend200';
|
export * from './postApiV1LogsFrontend200';
|
||||||
export * from './postApiV1LogsFrontend200Data';
|
export * from './postApiV1LogsFrontend200Data';
|
||||||
|
export * from './postApiV1MarketplaceProductsIdPreviewBody';
|
||||||
|
export * from './postApiV1Roles201';
|
||||||
|
export * from './postApiV1SellConnectOnboard200';
|
||||||
|
export * from './postApiV1SellConnectOnboard200Data';
|
||||||
|
export * from './postApiV1SellKycStart201';
|
||||||
|
export * from './postApiV1SellKycStart201Data';
|
||||||
|
export * from './postApiV1SupportTickets201';
|
||||||
|
export * from './postApiV1SupportTickets201Data';
|
||||||
|
export * from './postApiV1TracksIdHlsTranscode202';
|
||||||
|
export * from './postApiV1UploadsBatchBody';
|
||||||
|
export * from './postApiV1UploadsBody';
|
||||||
|
export * from './postApiV1UsersUserIdRoles200';
|
||||||
|
export * from './postApiV1UsersUserIdRolesBody';
|
||||||
export * from './postAuth2faDisable200';
|
export * from './postAuth2faDisable200';
|
||||||
export * from './postAuth2faDisable200Data';
|
export * from './postAuth2faDisable200Data';
|
||||||
export * from './postAuth2faSetup200';
|
export * from './postAuth2faSetup200';
|
||||||
|
|
@ -314,6 +399,8 @@ export * from './postUsersIdBlock200';
|
||||||
export * from './postUsersIdBlock200Data';
|
export * from './postUsersIdBlock200Data';
|
||||||
export * from './postUsersIdFollow200';
|
export * from './postUsersIdFollow200';
|
||||||
export * from './postUsersIdFollow200Data';
|
export * from './postUsersIdFollow200Data';
|
||||||
|
export * from './postUsersMeExport202';
|
||||||
|
export * from './postUsersMeExport202Data';
|
||||||
export * from './postUsersMePrivacyOptOut200';
|
export * from './postUsersMePrivacyOptOut200';
|
||||||
export * from './postUsersMePrivacyOptOut401';
|
export * from './postUsersMePrivacyOptOut401';
|
||||||
export * from './postUsersMePrivacyOptOut500';
|
export * from './postUsersMePrivacyOptOut500';
|
||||||
|
|
@ -325,6 +412,8 @@ export * from './postWebhooksIdRegenerateKey200';
|
||||||
export * from './postWebhooksIdRegenerateKey200Data';
|
export * from './postWebhooksIdRegenerateKey200Data';
|
||||||
export * from './postWebhooksIdTest200';
|
export * from './postWebhooksIdTest200';
|
||||||
export * from './postWebhooksIdTest200Data';
|
export * from './postWebhooksIdTest200Data';
|
||||||
|
export * from './putApiV1AdminFeatureFlagsNameToggleBody';
|
||||||
|
export * from './putApiV1RolesId200';
|
||||||
export * from './putCommentsId200';
|
export * from './putCommentsId200';
|
||||||
export * from './putCommentsId200Data';
|
export * from './putCommentsId200Data';
|
||||||
export * from './putCommentsId200DataComment';
|
export * from './putCommentsId200DataComment';
|
||||||
|
|
@ -347,6 +436,10 @@ export * from './putTracksIdLyrics200DataLyrics';
|
||||||
export * from './putUsersId200';
|
export * from './putUsersId200';
|
||||||
export * from './putUsersId200Data';
|
export * from './putUsersId200Data';
|
||||||
export * from './putUsersId200DataProfile';
|
export * from './putUsersId200DataProfile';
|
||||||
|
export * from './putUsersMePreferences200';
|
||||||
|
export * from './putUsersSettings200';
|
||||||
|
export * from './putUsersSettings200Data';
|
||||||
|
export * from './vezaBackendApiInternalCoreMarketplaceCartItem';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceLicenseType';
|
export * from './vezaBackendApiInternalCoreMarketplaceLicenseType';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceOrder';
|
export * from './vezaBackendApiInternalCoreMarketplaceOrder';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceOrderItem';
|
export * from './vezaBackendApiInternalCoreMarketplaceOrderItem';
|
||||||
|
|
@ -354,7 +447,11 @@ export * from './vezaBackendApiInternalCoreMarketplaceProduct';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceProductImage';
|
export * from './vezaBackendApiInternalCoreMarketplaceProductImage';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceProductLicense';
|
export * from './vezaBackendApiInternalCoreMarketplaceProductLicense';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceProductPreview';
|
export * from './vezaBackendApiInternalCoreMarketplaceProductPreview';
|
||||||
|
export * from './vezaBackendApiInternalCoreMarketplaceProductReview';
|
||||||
export * from './vezaBackendApiInternalCoreMarketplaceProductStatus';
|
export * from './vezaBackendApiInternalCoreMarketplaceProductStatus';
|
||||||
|
export * from './vezaBackendApiInternalCoreMarketplaceSellerPayout';
|
||||||
|
export * from './vezaBackendApiInternalCoreMarketplaceSellerTransfer';
|
||||||
|
export * from './vezaBackendApiInternalCoreMarketplaceWishlistItem';
|
||||||
export * from './vezaBackendApiInternalDtoLoginRequest';
|
export * from './vezaBackendApiInternalDtoLoginRequest';
|
||||||
export * from './vezaBackendApiInternalDtoLoginResponse';
|
export * from './vezaBackendApiInternalDtoLoginResponse';
|
||||||
export * from './vezaBackendApiInternalDtoRefreshRequest';
|
export * from './vezaBackendApiInternalDtoRefreshRequest';
|
||||||
|
|
@ -365,12 +462,28 @@ export * from './vezaBackendApiInternalDtoTokenResponse';
|
||||||
export * from './vezaBackendApiInternalDtoUserResponse';
|
export * from './vezaBackendApiInternalDtoUserResponse';
|
||||||
export * from './vezaBackendApiInternalDtoValidationError';
|
export * from './vezaBackendApiInternalDtoValidationError';
|
||||||
export * from './vezaBackendApiInternalHandlersAPIResponse';
|
export * from './vezaBackendApiInternalHandlersAPIResponse';
|
||||||
|
export * from './vezaBackendApiInternalModelsAnnouncement';
|
||||||
|
export * from './vezaBackendApiInternalModelsFeatureFlag';
|
||||||
export * from './vezaBackendApiInternalModelsPlaylist';
|
export * from './vezaBackendApiInternalModelsPlaylist';
|
||||||
export * from './vezaBackendApiInternalModelsPlaylistCollaborator';
|
export * from './vezaBackendApiInternalModelsPlaylistCollaborator';
|
||||||
export * from './vezaBackendApiInternalModelsPlaylistPermission';
|
export * from './vezaBackendApiInternalModelsPlaylistPermission';
|
||||||
export * from './vezaBackendApiInternalModelsPlaylistTrack';
|
export * from './vezaBackendApiInternalModelsPlaylistTrack';
|
||||||
|
export * from './vezaBackendApiInternalModelsRole';
|
||||||
export * from './vezaBackendApiInternalModelsTrack';
|
export * from './vezaBackendApiInternalModelsTrack';
|
||||||
export * from './vezaBackendApiInternalModelsTrackStatus';
|
export * from './vezaBackendApiInternalModelsTrackStatus';
|
||||||
export * from './vezaBackendApiInternalModelsUser';
|
export * from './vezaBackendApiInternalModelsUser';
|
||||||
export * from './vezaBackendApiInternalResponseAPIResponse';
|
export * from './vezaBackendApiInternalResponseAPIResponse';
|
||||||
|
export * from './vezaBackendApiInternalServicesCreateAnnouncementRequest';
|
||||||
export * from './vezaBackendApiInternalServicesUpdateQueueRequest';
|
export * from './vezaBackendApiInternalServicesUpdateQueueRequest';
|
||||||
|
export * from './vezaBackendApiInternalTypesContentSettings';
|
||||||
|
export * from './vezaBackendApiInternalTypesNotificationSettings';
|
||||||
|
export * from './vezaBackendApiInternalTypesPreferenceSettings';
|
||||||
|
export * from './vezaBackendApiInternalTypesPrivacySettings';
|
||||||
|
export * from './vezaBackendApiInternalTypesUpdateSettingsRequest';
|
||||||
|
export * from './vezaBackendApiInternalUploadBatchUploadResponse';
|
||||||
|
export * from './vezaBackendApiInternalUploadBatchUploadResult';
|
||||||
|
export * from './vezaBackendApiInternalUploadStandardUploadResponse';
|
||||||
|
export * from './vezaBackendApiInternalUploadUploadLimits';
|
||||||
|
export * from './vezaBackendApiInternalUploadUploadLimitsResponse';
|
||||||
|
export * from './vezaBackendApiInternalUploadUploadProgressResponse';
|
||||||
|
export * from './vezaBackendApiInternalUploadUploadStatus';
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersAddReactionRequest {
|
||||||
|
/** @maxLength 50 */
|
||||||
|
emoji: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersAddToCartRequest {
|
||||||
|
product_id: string;
|
||||||
|
quantity?: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersAddToWishlistRequest {
|
||||||
|
product_id: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersAdminActionRequest {
|
||||||
|
/** @maxLength 2000 */
|
||||||
|
note?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersCheckoutRequest {
|
||||||
|
/** @maxLength 50 */
|
||||||
|
promo_code?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersConnectOnboardRequest {
|
||||||
|
refresh_url?: string;
|
||||||
|
return_url?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersContentSettings {
|
||||||
|
autoplay?: boolean;
|
||||||
|
explicit_content?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersCreateReviewRequest {
|
||||||
|
/** @maxLength 2000 */
|
||||||
|
comment?: string;
|
||||||
|
/**
|
||||||
|
* @minimum 1
|
||||||
|
* @maximum 5
|
||||||
|
*/
|
||||||
|
rating: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersCreateVerificationRequest {
|
||||||
|
return_url?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersNotificationSettings {
|
||||||
|
browser_notifications?: boolean;
|
||||||
|
email_marketing?: boolean;
|
||||||
|
email_notifications?: boolean;
|
||||||
|
email_on_comment?: boolean;
|
||||||
|
email_on_follow?: boolean;
|
||||||
|
email_on_like?: boolean;
|
||||||
|
email_on_mention?: boolean;
|
||||||
|
email_on_message?: boolean;
|
||||||
|
push_notifications?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersPreferenceSettings {
|
||||||
|
/** ISO 639-1 */
|
||||||
|
language?: string;
|
||||||
|
/** light, dark, auto */
|
||||||
|
theme?: string;
|
||||||
|
timezone?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersPrivacySettings {
|
||||||
|
allow_search_indexing?: boolean;
|
||||||
|
show_activity?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersRefundOrderRequest {
|
||||||
|
/** @maxLength 2000 */
|
||||||
|
details?: string;
|
||||||
|
/** @maxLength 500 */
|
||||||
|
reason?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersSubmitNoticeRequest {
|
||||||
|
/**
|
||||||
|
* @minLength 5
|
||||||
|
* @maxLength 2000
|
||||||
|
*/
|
||||||
|
claimant_address: string;
|
||||||
|
/** @maxLength 255 */
|
||||||
|
claimant_email: string;
|
||||||
|
/**
|
||||||
|
* @minLength 2
|
||||||
|
* @maxLength 255
|
||||||
|
*/
|
||||||
|
claimant_name: string;
|
||||||
|
infringing_track_id?: string;
|
||||||
|
/** SwornStatement MUST be true — it's the "under penalty of perjury"
|
||||||
|
acknowledgement (DMCA § 512(c)(3)(A)(vi)). No checkbox = no notice. */
|
||||||
|
sworn_statement: boolean;
|
||||||
|
/**
|
||||||
|
* @minLength 10
|
||||||
|
* @maxLength 5000
|
||||||
|
*/
|
||||||
|
work_description: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface InternalHandlersSubmitTicketRequest {
|
||||||
|
category?: string;
|
||||||
|
email: string;
|
||||||
|
/**
|
||||||
|
* @minLength 10
|
||||||
|
* @maxLength 5000
|
||||||
|
*/
|
||||||
|
message: string;
|
||||||
|
/**
|
||||||
|
* @minLength 3
|
||||||
|
* @maxLength 500
|
||||||
|
*/
|
||||||
|
subject: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersUpdateProductImagesRequestImagesItem } from './internalHandlersUpdateProductImagesRequestImagesItem';
|
||||||
|
|
||||||
|
export interface InternalHandlersUpdateProductImagesRequest {
|
||||||
|
images: InternalHandlersUpdateProductImagesRequestImagesItem[];
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type InternalHandlersUpdateProductImagesRequestImagesItem = {
|
||||||
|
sort_order?: number;
|
||||||
|
/** @maxLength 512 */
|
||||||
|
url: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersContentSettings } from './internalHandlersContentSettings';
|
||||||
|
import type { InternalHandlersNotificationSettings } from './internalHandlersNotificationSettings';
|
||||||
|
import type { InternalHandlersPreferenceSettings } from './internalHandlersPreferenceSettings';
|
||||||
|
import type { InternalHandlersPrivacySettings } from './internalHandlersPrivacySettings';
|
||||||
|
|
||||||
|
export interface InternalHandlersUserSettingsResponse {
|
||||||
|
content?: InternalHandlersContentSettings;
|
||||||
|
notifications?: InternalHandlersNotificationSettings;
|
||||||
|
preferences?: InternalHandlersPreferenceSettings;
|
||||||
|
privacy?: InternalHandlersPrivacySettings;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdAttachments201 = {
|
||||||
|
file_id?: string;
|
||||||
|
file_name?: string;
|
||||||
|
file_size?: number;
|
||||||
|
file_type?: string;
|
||||||
|
url?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdAttachmentsBody = {
|
||||||
|
/** Attachment file */
|
||||||
|
file: Blob;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201Reaction } from './postApiV1ChatRoomsRoomIdMessagesMessageIdReactions201Reaction';
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201 = {
|
||||||
|
reaction?: PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201Reaction;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1ChatRoomsRoomIdMessagesMessageIdReactions201Reaction = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { PostApiV1CommerceCartCheckout200Data } from './postApiV1CommerceCartCheckout200Data';
|
||||||
|
|
||||||
|
export type PostApiV1CommerceCartCheckout200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: PostApiV1CommerceCartCheckout200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1CommerceCartCheckout200Data = {
|
||||||
|
order_id?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1MarketplaceProductsIdPreviewBody = {
|
||||||
|
/** Audio file */
|
||||||
|
file: Blob;
|
||||||
|
};
|
||||||
12
apps/web/src/services/generated/model/postApiV1Roles201.ts
Normal file
12
apps/web/src/services/generated/model/postApiV1Roles201.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { VezaBackendApiInternalModelsRole } from './vezaBackendApiInternalModelsRole';
|
||||||
|
|
||||||
|
export type PostApiV1Roles201 = {
|
||||||
|
role?: VezaBackendApiInternalModelsRole;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { PostApiV1SellConnectOnboard200Data } from './postApiV1SellConnectOnboard200Data';
|
||||||
|
|
||||||
|
export type PostApiV1SellConnectOnboard200 = InternalHandlersAPIResponse & {
|
||||||
|
data?: PostApiV1SellConnectOnboard200Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1SellConnectOnboard200Data = {
|
||||||
|
onboarding_url?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { PostApiV1SellKycStart201Data } from './postApiV1SellKycStart201Data';
|
||||||
|
|
||||||
|
export type PostApiV1SellKycStart201 = InternalHandlersAPIResponse & {
|
||||||
|
data?: PostApiV1SellKycStart201Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1SellKycStart201Data = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
import type { InternalHandlersAPIResponse } from './internalHandlersAPIResponse';
|
||||||
|
import type { PostApiV1SupportTickets201Data } from './postApiV1SupportTickets201Data';
|
||||||
|
|
||||||
|
export type PostApiV1SupportTickets201 = InternalHandlersAPIResponse & {
|
||||||
|
data?: PostApiV1SupportTickets201Data;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1SupportTickets201Data = {
|
||||||
|
ticket_id?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1TracksIdHlsTranscode202 = {
|
||||||
|
job_id?: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1UploadsBatchBody = {
|
||||||
|
/** Files to upload */
|
||||||
|
files: Blob;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1UploadsBody = {
|
||||||
|
/** The file to upload */
|
||||||
|
file: Blob;
|
||||||
|
/** Track ID (UUID) */
|
||||||
|
track_id: string;
|
||||||
|
/** File type (audio, image, video) */
|
||||||
|
file_type: string;
|
||||||
|
/** Title */
|
||||||
|
title: string;
|
||||||
|
/** Artist */
|
||||||
|
artist: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.8.1 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Veza Backend API
|
||||||
|
* Backend API for Veza platform.
|
||||||
|
* OpenAPI spec version: 1.2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type PostApiV1UsersUserIdRoles200 = {
|
||||||
|
message?: string;
|
||||||
|
};
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue