Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Generate and check OpenApi types in CI. (#811)

cowlicks1587961dabc0
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index 1f431490f6..3281c63527 100644
--- a/.github/workflows/web-app-check-main.yml
+++ b/.github/workflows/web-app-check-main.yml
@@ -40,9 +40,13 @@ jobs:
uses: ./.github/actions/setup-reqs-web
with:
npm-rc-token: ${{ secrets.NPMRC_GH_TOKEN }}
+ - name: Setup Biome
+ uses: biomejs/setup-biome@v2
+ with:
+ version: 2.2.6
- name: Generate API Types
working-directory: js/app
- run: just gen-api
+ run: bun run gen-api -- --check
- name: Check Types
working-directory: js/app
run: |
@@ -112,7 +116,7 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
- version: latest
+ version: 2.2.6
- name: Cycles Import Check
working-directory: js/app
run: biome lint --changed --no-errors-on-unmatched --only=nursery/noImportCycles
diff --git a/js/app/biome.jsonc b/js/app/biome.jsonc
index 6098f08680..763b455898 100644
--- a/js/app/biome.jsonc
+++ b/js/app/biome.jsonc
@@ -11,10 +11,10 @@
"**/*.{ts,tsx,js,jsx}",
"**/openapi.json",
"!**/*.d.ts",
- "!**/generated",
"!chrome-extension-vite",
"!infra/web-app/output",
"!scripts",
+ "packages/service-clients/**/generated/**",
"!packages/filesystem",
"!packages/_app-mobile",
"!packages/loro-mirror/packages",
@@ -140,6 +140,16 @@
}
}
}
+ },
+ {
+ "includes": ["packages/service-clients/**"],
+ "assist": {
+ "actions": {
+ "source": {
+ "organizeImports": "on"
+ }
+ }
+ }
}
]
}
diff --git a/js/app/package.json b/js/app/package.json
index e60f22a582..f01745d4da 100644
--- a/js/app/package.json
+++ b/js/app/package.json
@@ -11,6 +11,7 @@
"dev": "cd packages/app && bun run --bun dev",
"build": "cd packages/app && MODE=development NODE_ENV=production bun run --bun build",
"test": "bunx vitest run",
+ "gen-api": "bun scripts/generate-api-schema.ts",
"check": "tsc --noEmit --skipLibCheck --project packages/app/tsconfig.json",
"preview": "cd packages/app && bun run --bun preview:dev",
"lint": "bunx --bun biome lint --skip=nursery/noImportCycles",
diff --git a/js/app/packages/service-clients/service-auth/generated/client.ts b/js/app/packages/service-clients/service-auth/generated/client.ts
index 9e9b6165a5..a79db80860 100644
--- a/js/app/packages/service-clients/service-auth/generated/client.ts
+++ b/js/app/packages/service-clients/service-auth/generated/client.ts
@@ -22,9 +22,9 @@ import type {
InviteToTeamRequest,
MacroApiTokenParams,
MacroApiTokenResponse,
- PasswordRequest,
PasswordlessCallbackParams,
PasswordlessRequest,
+ PasswordRequest,
PatchTeamRequest,
PatchUserGroupRequest,
PatchUserOnboardingRequest,
@@ -45,253 +45,252 @@ import type {
UserNames,
UserOrganizationResponse,
UserQuota,
- UserTokensResponse
+ UserTokensResponse,
} from './schemas';
/**
* @summary Verifies the user's primary email for FusionAuth
*/
export type verifyFusionauthUserEmailResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type verifyFusionauthUserEmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type verifyFusionauthUserEmailResponseSuccess = (verifyFusionauthUserEmailResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type verifyFusionauthUserEmailResponseError = (verifyFusionauthUserEmailResponse500) & {
- headers: Headers;
-};
-
-export type verifyFusionauthUserEmailResponse = (verifyFusionauthUserEmailResponseSuccess | verifyFusionauthUserEmailResponseError)
-
-export const getVerifyFusionauthUserEmailUrl = (verificationId: string,) => {
+export type verifyFusionauthUserEmailResponseSuccess =
+ verifyFusionauthUserEmailResponse200 & {
+ headers: Headers;
+ };
+export type verifyFusionauthUserEmailResponseError =
+ verifyFusionauthUserEmailResponse500 & {
+ headers: Headers;
+ };
-
+export type verifyFusionauthUserEmailResponse =
+ | verifyFusionauthUserEmailResponseSuccess
+ | verifyFusionauthUserEmailResponseError;
- return `/email/fusionauth/verify/${verificationId}`
-}
+export const getVerifyFusionauthUserEmailUrl = (verificationId: string) => {
+ return `/email/fusionauth/verify/${verificationId}`;
+};
-export const verifyFusionauthUserEmail = async (verificationId: string, options?: RequestInit): Promise<verifyFusionauthUserEmailResponse> => {
-
- const res = await fetch(getVerifyFusionauthUserEmailUrl(verificationId),
- {
+export const verifyFusionauthUserEmail = async (
+ verificationId: string,
+ options?: RequestInit
+): Promise<verifyFusionauthUserEmailResponse> => {
+ const res = await fetch(getVerifyFusionauthUserEmailUrl(verificationId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: verifyFusionauthUserEmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as verifyFusionauthUserEmailResponse
-}
-
+ const data: verifyFusionauthUserEmailResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as verifyFusionauthUserEmailResponse;
+};
/**
* @summary Resend the user's primary email verification for FusionAuth
*/
export type resendFusionauthVerifyUserEmailResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type resendFusionauthVerifyUserEmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type resendFusionauthVerifyUserEmailResponseSuccess = (resendFusionauthVerifyUserEmailResponse200) & {
- headers: Headers;
-};
-export type resendFusionauthVerifyUserEmailResponseError = (resendFusionauthVerifyUserEmailResponse500) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type resendFusionauthVerifyUserEmailResponse = (resendFusionauthVerifyUserEmailResponseSuccess | resendFusionauthVerifyUserEmailResponseError)
-
-export const getResendFusionauthVerifyUserEmailUrl = () => {
+export type resendFusionauthVerifyUserEmailResponseSuccess =
+ resendFusionauthVerifyUserEmailResponse200 & {
+ headers: Headers;
+ };
+export type resendFusionauthVerifyUserEmailResponseError =
+ resendFusionauthVerifyUserEmailResponse500 & {
+ headers: Headers;
+ };
+export type resendFusionauthVerifyUserEmailResponse =
+ | resendFusionauthVerifyUserEmailResponseSuccess
+ | resendFusionauthVerifyUserEmailResponseError;
-
-
- return `/email/fusionauth_resend`
-}
+export const getResendFusionauthVerifyUserEmailUrl = () => {
+ return `/email/fusionauth_resend`;
+};
-export const resendFusionauthVerifyUserEmail = async (resendFusionauthVerifyUserEmailRequest: ResendFusionauthVerifyUserEmailRequest, options?: RequestInit): Promise<resendFusionauthVerifyUserEmailResponse> => {
-
- const res = await fetch(getResendFusionauthVerifyUserEmailUrl(),
- {
+export const resendFusionauthVerifyUserEmail = async (
+ resendFusionauthVerifyUserEmailRequest: ResendFusionauthVerifyUserEmailRequest,
+ options?: RequestInit
+): Promise<resendFusionauthVerifyUserEmailResponse> => {
+ const res = await fetch(getResendFusionauthVerifyUserEmailUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- resendFusionauthVerifyUserEmailRequest,)
- }
-)
+ body: JSON.stringify(resendFusionauthVerifyUserEmailRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: resendFusionauthVerifyUserEmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as resendFusionauthVerifyUserEmailResponse
-}
-
+ const data: resendFusionauthVerifyUserEmailResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as resendFusionauthVerifyUserEmailResponse;
+};
/**
* @summary Generates an email link for the user to verify their email address.
*/
export type generateEmailLinkResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type generateEmailLinkResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type generateEmailLinkResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type generateEmailLinkResponseSuccess = (generateEmailLinkResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type generateEmailLinkResponseSuccess = generateEmailLinkResponse200 & {
headers: Headers;
};
-export type generateEmailLinkResponseError = (generateEmailLinkResponse400 | generateEmailLinkResponse500) & {
+export type generateEmailLinkResponseError = (
+ | generateEmailLinkResponse400
+ | generateEmailLinkResponse500
+) & {
headers: Headers;
};
-export type generateEmailLinkResponse = (generateEmailLinkResponseSuccess | generateEmailLinkResponseError)
+export type generateEmailLinkResponse =
+ | generateEmailLinkResponseSuccess
+ | generateEmailLinkResponseError;
export const getGenerateEmailLinkUrl = () => {
+ return `/email/generate/link`;
+};
-
-
-
- return `/email/generate/link`
-}
-
-export const generateEmailLink = async (generateEmailLinkRequest: GenerateEmailLinkRequest, options?: RequestInit): Promise<generateEmailLinkResponse> => {
-
- const res = await fetch(getGenerateEmailLinkUrl(),
- {
+export const generateEmailLink = async (
+ generateEmailLinkRequest: GenerateEmailLinkRequest,
+ options?: RequestInit
+): Promise<generateEmailLinkResponse> => {
+ const res = await fetch(getGenerateEmailLinkUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- generateEmailLinkRequest,)
- }
-)
+ body: JSON.stringify(generateEmailLinkRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: generateEmailLinkResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as generateEmailLinkResponse
-}
-
+ const data: generateEmailLinkResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as generateEmailLinkResponse;
+};
/**
* @summary Verifies the user's email for a user profile
*/
export type verifyEmailLinkResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type verifyEmailLinkResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type verifyEmailLinkResponseSuccess = (verifyEmailLinkResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type verifyEmailLinkResponseSuccess = verifyEmailLinkResponse200 & {
headers: Headers;
};
-export type verifyEmailLinkResponseError = (verifyEmailLinkResponse500) & {
+export type verifyEmailLinkResponseError = verifyEmailLinkResponse500 & {
headers: Headers;
};
-export type verifyEmailLinkResponse = (verifyEmailLinkResponseSuccess | verifyEmailLinkResponseError)
-
-export const getVerifyEmailLinkUrl = (verificationId: string,) => {
-
+export type verifyEmailLinkResponse =
+ | verifyEmailLinkResponseSuccess
+ | verifyEmailLinkResponseError;
-
-
- return `/email/verify/${verificationId}`
-}
+export const getVerifyEmailLinkUrl = (verificationId: string) => {
+ return `/email/verify/${verificationId}`;
+};
-export const verifyEmailLink = async (verificationId: string, options?: RequestInit): Promise<verifyEmailLinkResponse> => {
-
- const res = await fetch(getVerifyEmailLinkUrl(verificationId),
- {
+export const verifyEmailLink = async (
+ verificationId: string,
+ options?: RequestInit
+): Promise<verifyEmailLinkResponse> => {
+ const res = await fetch(getVerifyEmailLinkUrl(verificationId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: verifyEmailLinkResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as verifyEmailLinkResponse
-}
-
+ const data: verifyEmailLinkResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as verifyEmailLinkResponse;
+};
/**
* @summary Health check
*/
export type healthHandlerResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type healthHandlerResponseSuccess = (healthHandlerResponse200) & {
+ data: EmptyResponse;
+ status: 200;
+};
+
+export type healthHandlerResponseSuccess = healthHandlerResponse200 & {
headers: Headers;
};
-;
-export type healthHandlerResponse = (healthHandlerResponseSuccess)
+export type healthHandlerResponse = healthHandlerResponseSuccess;
export const getHealthHandlerUrl = () => {
+ return `/health`;
+};
-
-
-
- return `/health`
-}
-
-export const healthHandler = async ( options?: RequestInit): Promise<healthHandlerResponse> => {
-
- const res = await fetch(getHealthHandlerUrl(),
- {
+export const healthHandler = async (
+ options?: RequestInit
+): Promise<healthHandlerResponse> => {
+ const res = await fetch(getHealthHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as healthHandlerResponse
-}
-
+ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as healthHandlerResponse;
+};
/**
* @summary Generates a macro-api-token using the user's macro-access-token
@@ -301,62 +300,68 @@ Authorization: Bearer <access_token>
This returns a new macro-api-token
*/
export type macroApiTokenResponse200 = {
- data: MacroApiTokenResponse
- status: 200
-}
+ data: MacroApiTokenResponse;
+ status: 200;
+};
export type macroApiTokenResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type macroApiTokenResponse500 = {
- data: string
- status: 500
-}
-
-export type macroApiTokenResponseSuccess = (macroApiTokenResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type macroApiTokenResponseSuccess = macroApiTokenResponse200 & {
headers: Headers;
};
-export type macroApiTokenResponseError = (macroApiTokenResponse401 | macroApiTokenResponse500) & {
+export type macroApiTokenResponseError = (
+ | macroApiTokenResponse401
+ | macroApiTokenResponse500
+) & {
headers: Headers;
};
-export type macroApiTokenResponse = (macroApiTokenResponseSuccess | macroApiTokenResponseError)
+export type macroApiTokenResponse =
+ | macroApiTokenResponseSuccess
+ | macroApiTokenResponseError;
-export const getMacroApiTokenUrl = (params: MacroApiTokenParams,) => {
+export const getMacroApiTokenUrl = (params: MacroApiTokenParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/jwt/macro_api_token?${stringifiedParams}` : `/jwt/macro_api_token`
-}
+ return stringifiedParams.length > 0
+ ? `/jwt/macro_api_token?${stringifiedParams}`
+ : `/jwt/macro_api_token`;
+};
-export const macroApiToken = async (params: MacroApiTokenParams, options?: RequestInit): Promise<macroApiTokenResponse> => {
-
- const res = await fetch(getMacroApiTokenUrl(params),
- {
+export const macroApiToken = async (
+ params: MacroApiTokenParams,
+ options?: RequestInit
+): Promise<macroApiTokenResponse> => {
+ const res = await fetch(getMacroApiTokenUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: macroApiTokenResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as macroApiTokenResponse
-}
-
+ const data: macroApiTokenResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as macroApiTokenResponse;
+};
/**
* @summary Refreshes a JWT token
@@ -367,412 +372,414 @@ x-macro-refresh-token: <refresh_token>
This returns the cookies with the new access and refresh token
*/
export type refreshResponse200 = {
- data: UserTokensResponse
- status: 200
-}
+ data: UserTokensResponse;
+ status: 200;
+};
export type refreshResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type refreshResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type refreshResponse500 = {
- data: string
- status: 500
-}
-
-export type refreshResponseSuccess = (refreshResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type refreshResponseSuccess = refreshResponse200 & {
headers: Headers;
};
-export type refreshResponseError = (refreshResponse400 | refreshResponse401 | refreshResponse500) & {
+export type refreshResponseError = (
+ | refreshResponse400
+ | refreshResponse401
+ | refreshResponse500
+) & {
headers: Headers;
};
-export type refreshResponse = (refreshResponseSuccess | refreshResponseError)
+export type refreshResponse = refreshResponseSuccess | refreshResponseError;
export const getRefreshUrl = () => {
+ return `/jwt/refresh`;
+};
-
-
-
- return `/jwt/refresh`
-}
-
-export const refresh = async ( options?: RequestInit): Promise<refreshResponse> => {
-
- const res = await fetch(getRefreshUrl(),
- {
+export const refresh = async (
+ options?: RequestInit
+): Promise<refreshResponse> => {
+ const res = await fetch(getRefreshUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: refreshResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as refreshResponse
-}
-
+ const data: refreshResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as refreshResponse;
+};
/**
* @summary Initiates a link for a user
*/
export type createInProgressLinkResponse200 = {
- data: CreateInProgressLinkResponse
- status: 200
-}
+ data: CreateInProgressLinkResponse;
+ status: 200;
+};
export type createInProgressLinkResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createInProgressLinkResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type createInProgressLinkResponse429 = {
- data: ErrorResponse
- status: 429
-}
+ data: ErrorResponse;
+ status: 429;
+};
export type createInProgressLinkResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createInProgressLinkResponseSuccess = (createInProgressLinkResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type createInProgressLinkResponseError = (createInProgressLinkResponse400 | createInProgressLinkResponse401 | createInProgressLinkResponse429 | createInProgressLinkResponse500) & {
+
+export type createInProgressLinkResponseSuccess =
+ createInProgressLinkResponse200 & {
+ headers: Headers;
+ };
+export type createInProgressLinkResponseError = (
+ | createInProgressLinkResponse400
+ | createInProgressLinkResponse401
+ | createInProgressLinkResponse429
+ | createInProgressLinkResponse500
+) & {
headers: Headers;
};
-export type createInProgressLinkResponse = (createInProgressLinkResponseSuccess | createInProgressLinkResponseError)
+export type createInProgressLinkResponse =
+ | createInProgressLinkResponseSuccess
+ | createInProgressLinkResponseError;
export const getCreateInProgressLinkUrl = () => {
+ return `/link`;
+};
-
-
-
- return `/link`
-}
-
-export const createInProgressLink = async ( options?: RequestInit): Promise<createInProgressLinkResponse> => {
-
- const res = await fetch(getCreateInProgressLinkUrl(),
- {
+export const createInProgressLink = async (
+ options?: RequestInit
+): Promise<createInProgressLinkResponse> => {
+ const res = await fetch(getCreateInProgressLinkUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createInProgressLinkResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createInProgressLinkResponse
-}
-
+ const data: createInProgressLinkResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createInProgressLinkResponse;
+};
/**
* @summary Completes the apple login flow
*/
export type appleLoginResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type appleLoginResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type appleLoginResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type appleLoginResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type appleLoginResponseSuccess = (appleLoginResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type appleLoginResponseSuccess = appleLoginResponse200 & {
headers: Headers;
};
-export type appleLoginResponseError = (appleLoginResponse400 | appleLoginResponse401 | appleLoginResponse500) & {
+export type appleLoginResponseError = (
+ | appleLoginResponse400
+ | appleLoginResponse401
+ | appleLoginResponse500
+) & {
headers: Headers;
};
-export type appleLoginResponse = (appleLoginResponseSuccess | appleLoginResponseError)
+export type appleLoginResponse =
+ | appleLoginResponseSuccess
+ | appleLoginResponseError;
export const getAppleLoginUrl = () => {
+ return `/login/apple`;
+};
-
-
-
- return `/login/apple`
-}
-
-export const appleLogin = async (appleLoginRequest: AppleLoginRequest, options?: RequestInit): Promise<appleLoginResponse> => {
-
- const res = await fetch(getAppleLoginUrl(),
- {
+export const appleLogin = async (
+ appleLoginRequest: AppleLoginRequest,
+ options?: RequestInit
+): Promise<appleLoginResponse> => {
+ const res = await fetch(getAppleLoginUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- appleLoginRequest,)
- }
-)
+ body: JSON.stringify(appleLoginRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: appleLoginResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as appleLoginResponse
-}
-
+ const data: appleLoginResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as appleLoginResponse;
+};
/**
* @summary Performs a password login
*/
export type passwordLoginResponse200 = {
- data: UserTokensResponse
- status: 200
-}
+ data: UserTokensResponse;
+ status: 200;
+};
export type passwordLoginResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type passwordLoginResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type passwordLoginResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type passwordLoginResponseSuccess = (passwordLoginResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type passwordLoginResponseSuccess = passwordLoginResponse200 & {
headers: Headers;
};
-export type passwordLoginResponseError = (passwordLoginResponse400 | passwordLoginResponse401 | passwordLoginResponse500) & {
+export type passwordLoginResponseError = (
+ | passwordLoginResponse400
+ | passwordLoginResponse401
+ | passwordLoginResponse500
+) & {
headers: Headers;
};
-export type passwordLoginResponse = (passwordLoginResponseSuccess | passwordLoginResponseError)
+export type passwordLoginResponse =
+ | passwordLoginResponseSuccess
+ | passwordLoginResponseError;
export const getPasswordLoginUrl = () => {
+ return `/login/password`;
+};
-
-
-
- return `/login/password`
-}
-
-export const passwordLogin = async (passwordRequest: PasswordRequest, options?: RequestInit): Promise<passwordLoginResponse> => {
-
- const res = await fetch(getPasswordLoginUrl(),
- {
+export const passwordLogin = async (
+ passwordRequest: PasswordRequest,
+ options?: RequestInit
+): Promise<passwordLoginResponse> => {
+ const res = await fetch(getPasswordLoginUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- passwordRequest,)
- }
-)
+ body: JSON.stringify(passwordRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: passwordLoginResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as passwordLoginResponse
-}
-
+ const data: passwordLoginResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as passwordLoginResponse;
+};
/**
* @summary Initiates a passwordless login
*/
export type passwordlessLoginResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type passwordlessLoginResponse202 = {
- data: SsoRequiredResponse
- status: 202
-}
+ data: SsoRequiredResponse;
+ status: 202;
+};
export type passwordlessLoginResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type passwordlessLoginResponse403 = {
- data: string
- status: 403
-}
+ data: string;
+ status: 403;
+};
export type passwordlessLoginResponse500 = {
- data: string
- status: 500
-}
-
-export type passwordlessLoginResponseSuccess = (passwordlessLoginResponse200 | passwordlessLoginResponse202) & {
+ data: string;
+ status: 500;
+};
+
+export type passwordlessLoginResponseSuccess = (
+ | passwordlessLoginResponse200
+ | passwordlessLoginResponse202
+) & {
headers: Headers;
};
-export type passwordlessLoginResponseError = (passwordlessLoginResponse400 | passwordlessLoginResponse403 | passwordlessLoginResponse500) & {
+export type passwordlessLoginResponseError = (
+ | passwordlessLoginResponse400
+ | passwordlessLoginResponse403
+ | passwordlessLoginResponse500
+) & {
headers: Headers;
};
-export type passwordlessLoginResponse = (passwordlessLoginResponseSuccess | passwordlessLoginResponseError)
+export type passwordlessLoginResponse =
+ | passwordlessLoginResponseSuccess
+ | passwordlessLoginResponseError;
export const getPasswordlessLoginUrl = () => {
+ return `/login/passwordless`;
+};
-
-
-
- return `/login/passwordless`
-}
-
-export const passwordlessLogin = async (passwordlessRequest: PasswordlessRequest, options?: RequestInit): Promise<passwordlessLoginResponse> => {
-
- const res = await fetch(getPasswordlessLoginUrl(),
- {
+export const passwordlessLogin = async (
+ passwordlessRequest: PasswordlessRequest,
+ options?: RequestInit
+): Promise<passwordlessLoginResponse> => {
+ const res = await fetch(getPasswordlessLoginUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- passwordlessRequest,)
- }
-)
+ body: JSON.stringify(passwordlessRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: passwordlessLoginResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as passwordlessLoginResponse
-}
-
+ const data: passwordlessLoginResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as passwordlessLoginResponse;
+};
/**
* @summary Initiates an SSO login
*/
export type ssoLoginResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type ssoLoginResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type ssoLoginResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type ssoLoginResponseSuccess = (ssoLoginResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type ssoLoginResponseSuccess = ssoLoginResponse200 & {
headers: Headers;
};
-export type ssoLoginResponseError = (ssoLoginResponse400 | ssoLoginResponse500) & {
+export type ssoLoginResponseError = (
+ | ssoLoginResponse400
+ | ssoLoginResponse500
+) & {
headers: Headers;
};
-export type ssoLoginResponse = (ssoLoginResponseSuccess | ssoLoginResponseError)
+export type ssoLoginResponse = ssoLoginResponseSuccess | ssoLoginResponseError;
-export const getSsoLoginUrl = (params: SsoLoginParams,) => {
+export const getSsoLoginUrl = (params: SsoLoginParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/login/sso?${stringifiedParams}` : `/login/sso`
-}
+ return stringifiedParams.length > 0
+ ? `/login/sso?${stringifiedParams}`
+ : `/login/sso`;
+};
-export const ssoLogin = async (params: SsoLoginParams, options?: RequestInit): Promise<ssoLoginResponse> => {
-
- const res = await fetch(getSsoLoginUrl(params),
- {
+export const ssoLogin = async (
+ params: SsoLoginParams,
+ options?: RequestInit
+): Promise<ssoLoginResponse> => {
+ const res = await fetch(getSsoLoginUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: ssoLoginResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as ssoLoginResponse
-}
-
+ const data: ssoLoginResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as ssoLoginResponse;
+};
/**
* @summary Initiates a passwordless login
*/
export type logoutResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type logoutResponseSuccess = (logoutResponse200) & {
+ data: EmptyResponse;
+ status: 200;
+};
+
+export type logoutResponseSuccess = logoutResponse200 & {
headers: Headers;
};
-;
-export type logoutResponse = (logoutResponseSuccess)
+export type logoutResponse = logoutResponseSuccess;
export const getLogoutUrl = () => {
+ return `/logout`;
+};
-
-
-
- return `/logout`
-}
-
-export const logout = async ( options?: RequestInit): Promise<logoutResponse> => {
-
- const res = await fetch(getLogoutUrl(),
- {
+export const logout = async (
+ options?: RequestInit
+): Promise<logoutResponse> => {
+ const res = await fetch(getLogoutUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: logoutResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as logoutResponse
-}
-
+ const data: logoutResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as logoutResponse;
+};
/**
* @summary Creates a merge request used to verify the user's email address in order to merge their
@@ -781,892 +788,918 @@ This is different than generate_email_link which is used to verify a new email a
new profile to a user's account.
*/
export type createMergeRequestResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type createMergeRequestResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createMergeRequestResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type createMergeRequestResponse429 = {
- data: string
- status: 429
-}
+ data: string;
+ status: 429;
+};
export type createMergeRequestResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createMergeRequestResponseSuccess = (createMergeRequestResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type createMergeRequestResponseError = (createMergeRequestResponse400 | createMergeRequestResponse404 | createMergeRequestResponse429 | createMergeRequestResponse500) & {
+
+export type createMergeRequestResponseSuccess =
+ createMergeRequestResponse200 & {
+ headers: Headers;
+ };
+export type createMergeRequestResponseError = (
+ | createMergeRequestResponse400
+ | createMergeRequestResponse404
+ | createMergeRequestResponse429
+ | createMergeRequestResponse500
+) & {
headers: Headers;
};
-export type createMergeRequestResponse = (createMergeRequestResponseSuccess | createMergeRequestResponseError)
+export type createMergeRequestResponse =
+ | createMergeRequestResponseSuccess
+ | createMergeRequestResponseError;
export const getCreateMergeRequestUrl = () => {
+ return `/merge`;
+};
-
-
-
- return `/merge`
-}
-
-export const createMergeRequest = async (createAccountMergeRequest: CreateAccountMergeRequest, options?: RequestInit): Promise<createMergeRequestResponse> => {
-
- const res = await fetch(getCreateMergeRequestUrl(),
- {
+export const createMergeRequest = async (
+ createAccountMergeRequest: CreateAccountMergeRequest,
+ options?: RequestInit
+): Promise<createMergeRequestResponse> => {
+ const res = await fetch(getCreateMergeRequestUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createAccountMergeRequest,)
- }
-)
+ body: JSON.stringify(createAccountMergeRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createMergeRequestResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createMergeRequestResponse
-}
-
+ const data: createMergeRequestResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createMergeRequestResponse;
+};
/**
* @summary Verifies the merge request
*/
export type verifyMergeRequestResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type verifyMergeRequestResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type verifyMergeRequestResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type verifyMergeRequestResponseSuccess = (verifyMergeRequestResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type verifyMergeRequestResponseError = (verifyMergeRequestResponse404 | verifyMergeRequestResponse500) & {
+
+export type verifyMergeRequestResponseSuccess =
+ verifyMergeRequestResponse200 & {
+ headers: Headers;
+ };
+export type verifyMergeRequestResponseError = (
+ | verifyMergeRequestResponse404
+ | verifyMergeRequestResponse500
+) & {
headers: Headers;
};
-export type verifyMergeRequestResponse = (verifyMergeRequestResponseSuccess | verifyMergeRequestResponseError)
-
-export const getVerifyMergeRequestUrl = (code: string,) => {
-
-
-
+export type verifyMergeRequestResponse =
+ | verifyMergeRequestResponseSuccess
+ | verifyMergeRequestResponseError;
- return `/merge/verify/${code}`
-}
+export const getVerifyMergeRequestUrl = (code: string) => {
+ return `/merge/verify/${code}`;
+};
-export const verifyMergeRequest = async (code: string, options?: RequestInit): Promise<verifyMergeRequestResponse> => {
-
- const res = await fetch(getVerifyMergeRequestUrl(code),
- {
+export const verifyMergeRequest = async (
+ code: string,
+ options?: RequestInit
+): Promise<verifyMergeRequestResponse> => {
+ const res = await fetch(getVerifyMergeRequestUrl(code), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: verifyMergeRequestResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as verifyMergeRequestResponse
-}
-
+ const data: verifyMergeRequestResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as verifyMergeRequestResponse;
+};
/**
* @summary Handles oauth redirect
*/
export type passwordlessCallbackResponse200 = {
- data: UserTokensResponse
- status: 200
-}
+ data: UserTokensResponse;
+ status: 200;
+};
export type passwordlessCallbackResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type passwordlessCallbackResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type passwordlessCallbackResponse500 = {
- data: string
- status: 500
-}
-
-export type passwordlessCallbackResponseSuccess = (passwordlessCallbackResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type passwordlessCallbackResponseError = (passwordlessCallbackResponse400 | passwordlessCallbackResponse401 | passwordlessCallbackResponse500) & {
+
+export type passwordlessCallbackResponseSuccess =
+ passwordlessCallbackResponse200 & {
+ headers: Headers;
+ };
+export type passwordlessCallbackResponseError = (
+ | passwordlessCallbackResponse400
+ | passwordlessCallbackResponse401
+ | passwordlessCallbackResponse500
+) & {
headers: Headers;
};
-export type passwordlessCallbackResponse = (passwordlessCallbackResponseSuccess | passwordlessCallbackResponseError)
+export type passwordlessCallbackResponse =
+ | passwordlessCallbackResponseSuccess
+ | passwordlessCallbackResponseError;
-export const getPasswordlessCallbackUrl = (code: string,
- params: PasswordlessCallbackParams,) => {
+export const getPasswordlessCallbackUrl = (
+ code: string,
+ params: PasswordlessCallbackParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/oauth/passwordless/${code}?${stringifiedParams}` : `/oauth/passwordless/${code}`
-}
+ return stringifiedParams.length > 0
+ ? `/oauth/passwordless/${code}?${stringifiedParams}`
+ : `/oauth/passwordless/${code}`;
+};
-export const passwordlessCallback = async (code: string,
- params: PasswordlessCallbackParams, options?: RequestInit): Promise<passwordlessCallbackResponse> => {
-
- const res = await fetch(getPasswordlessCallbackUrl(code,params),
- {
+export const passwordlessCallback = async (
+ code: string,
+ params: PasswordlessCallbackParams,
+ options?: RequestInit
+): Promise<passwordlessCallbackResponse> => {
+ const res = await fetch(getPasswordlessCallbackUrl(code, params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: passwordlessCallbackResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as passwordlessCallbackResponse
-}
-
+ const data: passwordlessCallbackResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as passwordlessCallbackResponse;
+};
/**
* @summary Handles oauth redirect
*/
export type oauthRedirectResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type oauthRedirectResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type oauthRedirectResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type oauthRedirectResponse500 = {
- data: string
- status: 500
-}
-
-export type oauthRedirectResponseSuccess = (oauthRedirectResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type oauthRedirectResponseSuccess = oauthRedirectResponse200 & {
headers: Headers;
};
-export type oauthRedirectResponseError = (oauthRedirectResponse400 | oauthRedirectResponse401 | oauthRedirectResponse500) & {
+export type oauthRedirectResponseError = (
+ | oauthRedirectResponse400
+ | oauthRedirectResponse401
+ | oauthRedirectResponse500
+) & {
headers: Headers;
};
-export type oauthRedirectResponse = (oauthRedirectResponseSuccess | oauthRedirectResponseError)
+export type oauthRedirectResponse =
+ | oauthRedirectResponseSuccess
+ | oauthRedirectResponseError;
export const getOauthRedirectUrl = () => {
+ return `/oauth/redirect`;
+};
-
-
-
- return `/oauth/redirect`
-}
-
-export const oauthRedirect = async ( options?: RequestInit): Promise<oauthRedirectResponse> => {
-
- const res = await fetch(getOauthRedirectUrl(),
- {
+export const oauthRedirect = async (
+ options?: RequestInit
+): Promise<oauthRedirectResponse> => {
+ const res = await fetch(getOauthRedirectUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: oauthRedirectResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as oauthRedirectResponse
-}
-
+ const data: oauthRedirectResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as oauthRedirectResponse;
+};
/**
* @summary Custom OAuth2 callback
*/
export type oauth2CallbackResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type oauth2CallbackResponse304 = {
- data: ErrorResponse
- status: 304
-}
+ data: ErrorResponse;
+ status: 304;
+};
export type oauth2CallbackResponse307 = {
- data: void
- status: 307
-}
+ data: void;
+ status: 307;
+};
export type oauth2CallbackResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type oauth2CallbackResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type oauth2CallbackResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type oauth2CallbackResponseSuccess = (oauth2CallbackResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type oauth2CallbackResponseSuccess = oauth2CallbackResponse200 & {
headers: Headers;
};
-export type oauth2CallbackResponseError = (oauth2CallbackResponse304 | oauth2CallbackResponse307 | oauth2CallbackResponse400 | oauth2CallbackResponse401 | oauth2CallbackResponse500) & {
+export type oauth2CallbackResponseError = (
+ | oauth2CallbackResponse304
+ | oauth2CallbackResponse307
+ | oauth2CallbackResponse400
+ | oauth2CallbackResponse401
+ | oauth2CallbackResponse500
+) & {
headers: Headers;
};
-export type oauth2CallbackResponse = (oauth2CallbackResponseSuccess | oauth2CallbackResponseError)
+export type oauth2CallbackResponse =
+ | oauth2CallbackResponseSuccess
+ | oauth2CallbackResponseError;
-export const getOauth2CallbackUrl = (provider: string,) => {
-
-
-
-
- return `/oauth2/${provider}/callback`
-}
+export const getOauth2CallbackUrl = (provider: string) => {
+ return `/oauth2/${provider}/callback`;
+};
-export const oauth2Callback = async (provider: string, options?: RequestInit): Promise<oauth2CallbackResponse> => {
-
- const res = await fetch(getOauth2CallbackUrl(provider),
- {
+export const oauth2Callback = async (
+ provider: string,
+ options?: RequestInit
+): Promise<oauth2CallbackResponse> => {
+ const res = await fetch(getOauth2CallbackUrl(provider), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: oauth2CallbackResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as oauth2CallbackResponse
-}
-
+ const data: oauth2CallbackResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as oauth2CallbackResponse;
+};
/**
* @summary Gets all permissions
*/
export type getPermissionsResponse200 = {
- data: Permission[]
- status: 200
-}
+ data: Permission[];
+ status: 200;
+};
export type getPermissionsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getPermissionsResponse500 = {
- data: string
- status: 500
-}
-
-export type getPermissionsResponseSuccess = (getPermissionsResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getPermissionsResponseSuccess = getPermissionsResponse200 & {
headers: Headers;
};
-export type getPermissionsResponseError = (getPermissionsResponse401 | getPermissionsResponse500) & {
+export type getPermissionsResponseError = (
+ | getPermissionsResponse401
+ | getPermissionsResponse500
+) & {
headers: Headers;
};
-export type getPermissionsResponse = (getPermissionsResponseSuccess | getPermissionsResponseError)
+export type getPermissionsResponse =
+ | getPermissionsResponseSuccess
+ | getPermissionsResponseError;
export const getGetPermissionsUrl = () => {
+ return `/permissions`;
+};
-
-
-
- return `/permissions`
-}
-
-export const getPermissions = async ( options?: RequestInit): Promise<getPermissionsResponse> => {
-
- const res = await fetch(getGetPermissionsUrl(),
- {
+export const getPermissions = async (
+ options?: RequestInit
+): Promise<getPermissionsResponse> => {
+ const res = await fetch(getGetPermissionsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getPermissionsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getPermissionsResponse
-}
-
+ const data: getPermissionsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getPermissionsResponse;
+};
/**
* @summary Gets a list of the users permissions
*/
export type getUserPermissionsResponse200 = {
- data: string[]
- status: 200
-}
+ data: string[];
+ status: 200;
+};
export type getUserPermissionsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserPermissionsResponse500 = {
- data: string
- status: 500
-}
-
-export type getUserPermissionsResponseSuccess = (getUserPermissionsResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getUserPermissionsResponseError = (getUserPermissionsResponse401 | getUserPermissionsResponse500) & {
+
+export type getUserPermissionsResponseSuccess =
+ getUserPermissionsResponse200 & {
+ headers: Headers;
+ };
+export type getUserPermissionsResponseError = (
+ | getUserPermissionsResponse401
+ | getUserPermissionsResponse500
+) & {
headers: Headers;
};
-export type getUserPermissionsResponse = (getUserPermissionsResponseSuccess | getUserPermissionsResponseError)
+export type getUserPermissionsResponse =
+ | getUserPermissionsResponseSuccess
+ | getUserPermissionsResponseError;
export const getGetUserPermissionsUrl = () => {
+ return `/permissions/me`;
+};
-
-
-
- return `/permissions/me`
-}
-
-export const getUserPermissions = async ( options?: RequestInit): Promise<getUserPermissionsResponse> => {
-
- const res = await fetch(getGetUserPermissionsUrl(),
- {
+export const getUserPermissions = async (
+ options?: RequestInit
+): Promise<getUserPermissionsResponse> => {
+ const res = await fetch(getGetUserPermissionsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserPermissionsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserPermissionsResponse
-}
-
+ const data: getUserPermissionsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserPermissionsResponse;
+};
/**
* @summary Refreshes a JWT token
*/
export type sessionCreationResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type sessionCreationResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type sessionCreationResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type sessionCreationResponseSuccess = (sessionCreationResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type sessionCreationResponseSuccess = sessionCreationResponse200 & {
headers: Headers;
};
-export type sessionCreationResponseError = (sessionCreationResponse400 | sessionCreationResponse500) & {
+export type sessionCreationResponseError = (
+ | sessionCreationResponse400
+ | sessionCreationResponse500
+) & {
headers: Headers;
};
-export type sessionCreationResponse = (sessionCreationResponseSuccess | sessionCreationResponseError)
+export type sessionCreationResponse =
+ | sessionCreationResponseSuccess
+ | sessionCreationResponseError;
export const getSessionCreationUrl = () => {
+ return `/session`;
+};
-
-
-
- return `/session`
-}
-
-export const sessionCreation = async ( options?: RequestInit): Promise<sessionCreationResponse> => {
-
- const res = await fetch(getSessionCreationUrl(),
- {
+export const sessionCreation = async (
+ options?: RequestInit
+): Promise<sessionCreationResponse> => {
+ const res = await fetch(getSessionCreationUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: sessionCreationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as sessionCreationResponse
-}
-
+ const data: sessionCreationResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as sessionCreationResponse;
+};
/**
* @summary Performs a login via session code
*/
export type sessionLoginResponse200 = {
- data: UserTokensResponse
- status: 200
-}
+ data: UserTokensResponse;
+ status: 200;
+};
export type sessionLoginResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type sessionLoginResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type sessionLoginResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type sessionLoginResponseSuccess = (sessionLoginResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type sessionLoginResponseSuccess = sessionLoginResponse200 & {
headers: Headers;
};
-export type sessionLoginResponseError = (sessionLoginResponse400 | sessionLoginResponse401 | sessionLoginResponse500) & {
+export type sessionLoginResponseError = (
+ | sessionLoginResponse400
+ | sessionLoginResponse401
+ | sessionLoginResponse500
+) & {
headers: Headers;
};
-export type sessionLoginResponse = (sessionLoginResponseSuccess | sessionLoginResponseError)
-
-export const getSessionLoginUrl = (sessionCode: string,) => {
-
+export type sessionLoginResponse =
+ | sessionLoginResponseSuccess
+ | sessionLoginResponseError;
-
-
- return `/session/login/${sessionCode}`
-}
+export const getSessionLoginUrl = (sessionCode: string) => {
+ return `/session/login/${sessionCode}`;
+};
-export const sessionLogin = async (sessionCode: string, options?: RequestInit): Promise<sessionLoginResponse> => {
-
- const res = await fetch(getSessionLoginUrl(sessionCode),
- {
+export const sessionLogin = async (
+ sessionCode: string,
+ options?: RequestInit
+): Promise<sessionLoginResponse> => {
+ const res = await fetch(getSessionLoginUrl(sessionCode), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: sessionLoginResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as sessionLoginResponse
-}
-
+ const data: sessionLoginResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as sessionLoginResponse;
+};
/**
* @summary Creates a new team.
*/
export type createTeamResponse200 = {
- data: Team
- status: 200
-}
+ data: Team;
+ status: 200;
+};
export type createTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createTeamResponseSuccess = (createTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type createTeamResponseSuccess = createTeamResponse200 & {
headers: Headers;
};
-export type createTeamResponseError = (createTeamResponse400 | createTeamResponse500) & {
+export type createTeamResponseError = (
+ | createTeamResponse400
+ | createTeamResponse500
+) & {
headers: Headers;
};
-export type createTeamResponse = (createTeamResponseSuccess | createTeamResponseError)
+export type createTeamResponse =
+ | createTeamResponseSuccess
+ | createTeamResponseError;
export const getCreateTeamUrl = () => {
+ return `/team`;
+};
-
-
-
- return `/team`
-}
-
-export const createTeam = async (createTeamRequest: CreateTeamRequest, options?: RequestInit): Promise<createTeamResponse> => {
-
- const res = await fetch(getCreateTeamUrl(),
- {
+export const createTeam = async (
+ createTeamRequest: CreateTeamRequest,
+ options?: RequestInit
+): Promise<createTeamResponse> => {
+ const res = await fetch(getCreateTeamUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createTeamRequest,)
- }
-)
+ body: JSON.stringify(createTeamRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createTeamResponse
-}
-
+ const data: createTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createTeamResponse;
+};
/**
* @summary Joins a team by accepting an invite.
*/
export type joinTeamResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type joinTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type joinTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type joinTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type joinTeamResponseSuccess = (joinTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type joinTeamResponseSuccess = joinTeamResponse200 & {
headers: Headers;
};
-export type joinTeamResponseError = (joinTeamResponse400 | joinTeamResponse401 | joinTeamResponse500) & {
+export type joinTeamResponseError = (
+ | joinTeamResponse400
+ | joinTeamResponse401
+ | joinTeamResponse500
+) & {
headers: Headers;
};
-export type joinTeamResponse = (joinTeamResponseSuccess | joinTeamResponseError)
-
-export const getJoinTeamUrl = (teamInviteId: string,) => {
+export type joinTeamResponse = joinTeamResponseSuccess | joinTeamResponseError;
+export const getJoinTeamUrl = (teamInviteId: string) => {
+ return `/team/join/${teamInviteId}`;
+};
-
-
- return `/team/join/${teamInviteId}`
-}
-
-export const joinTeam = async (teamInviteId: string, options?: RequestInit): Promise<joinTeamResponse> => {
-
- const res = await fetch(getJoinTeamUrl(teamInviteId),
- {
+export const joinTeam = async (
+ teamInviteId: string,
+ options?: RequestInit
+): Promise<joinTeamResponse> => {
+ const res = await fetch(getJoinTeamUrl(teamInviteId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: joinTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as joinTeamResponse
-}
-
+ const data: joinTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as joinTeamResponse;
+};
/**
* @summary Rejects an invitation to join a team.
*/
export type rejectInvitationResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type rejectInvitationResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type rejectInvitationResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type rejectInvitationResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type rejectInvitationResponseSuccess = (rejectInvitationResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type rejectInvitationResponseSuccess = rejectInvitationResponse200 & {
headers: Headers;
};
-export type rejectInvitationResponseError = (rejectInvitationResponse400 | rejectInvitationResponse401 | rejectInvitationResponse500) & {
+export type rejectInvitationResponseError = (
+ | rejectInvitationResponse400
+ | rejectInvitationResponse401
+ | rejectInvitationResponse500
+) & {
headers: Headers;
};
-export type rejectInvitationResponse = (rejectInvitationResponseSuccess | rejectInvitationResponseError)
-
-export const getRejectInvitationUrl = (teamInviteId: string,) => {
-
+export type rejectInvitationResponse =
+ | rejectInvitationResponseSuccess
+ | rejectInvitationResponseError;
-
-
- return `/team/join/${teamInviteId}`
-}
+export const getRejectInvitationUrl = (teamInviteId: string) => {
+ return `/team/join/${teamInviteId}`;
+};
-export const rejectInvitation = async (teamInviteId: string, options?: RequestInit): Promise<rejectInvitationResponse> => {
-
- const res = await fetch(getRejectInvitationUrl(teamInviteId),
- {
+export const rejectInvitation = async (
+ teamInviteId: string,
+ options?: RequestInit
+): Promise<rejectInvitationResponse> => {
+ const res = await fetch(getRejectInvitationUrl(teamInviteId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: rejectInvitationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as rejectInvitationResponse
-}
-
+ const data: rejectInvitationResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as rejectInvitationResponse;
+};
/**
* @summary Gets all teams for the authenticated user.
*/
export type getUserTeamsResponse200 = {
- data: Team[]
- status: 200
-}
+ data: Team[];
+ status: 200;
+};
export type getUserTeamsResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getUserTeamsResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getUserTeamsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserTeamsResponseSuccess = (getUserTeamsResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserTeamsResponseSuccess = getUserTeamsResponse200 & {
headers: Headers;
};
-export type getUserTeamsResponseError = (getUserTeamsResponse400 | getUserTeamsResponse401 | getUserTeamsResponse500) & {
+export type getUserTeamsResponseError = (
+ | getUserTeamsResponse400
+ | getUserTeamsResponse401
+ | getUserTeamsResponse500
+) & {
headers: Headers;
};
-export type getUserTeamsResponse = (getUserTeamsResponseSuccess | getUserTeamsResponseError)
+export type getUserTeamsResponse =
+ | getUserTeamsResponseSuccess
+ | getUserTeamsResponseError;
export const getGetUserTeamsUrl = () => {
+ return `/team/user`;
+};
-
-
-
- return `/team/user`
-}
-
-export const getUserTeams = async ( options?: RequestInit): Promise<getUserTeamsResponse> => {
-
- const res = await fetch(getGetUserTeamsUrl(),
- {
+export const getUserTeams = async (
+ options?: RequestInit
+): Promise<getUserTeamsResponse> => {
+ const res = await fetch(getGetUserTeamsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserTeamsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserTeamsResponse
-}
-
+ const data: getUserTeamsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserTeamsResponse;
+};
/**
* @summary Gets all of a user's invitations.
*/
export type getUserInvitesResponse200 = {
- data: TeamInvitesResponse
- status: 200
-}
+ data: TeamInvitesResponse;
+ status: 200;
+};
export type getUserInvitesResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getUserInvitesResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getUserInvitesResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserInvitesResponseSuccess = (getUserInvitesResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserInvitesResponseSuccess = getUserInvitesResponse200 & {
headers: Headers;
};
-export type getUserInvitesResponseError = (getUserInvitesResponse400 | getUserInvitesResponse401 | getUserInvitesResponse500) & {
+export type getUserInvitesResponseError = (
+ | getUserInvitesResponse400
+ | getUserInvitesResponse401
+ | getUserInvitesResponse500
+) & {
headers: Headers;
};
-export type getUserInvitesResponse = (getUserInvitesResponseSuccess | getUserInvitesResponseError)
+export type getUserInvitesResponse =
+ | getUserInvitesResponseSuccess
+ | getUserInvitesResponseError;
export const getGetUserInvitesUrl = () => {
+ return `/team/user/invites`;
+};
-
-
-
- return `/team/user/invites`
-}
-
-export const getUserInvites = async ( options?: RequestInit): Promise<getUserInvitesResponse> => {
-
- const res = await fetch(getGetUserInvitesUrl(),
- {
+export const getUserInvites = async (
+ options?: RequestInit
+): Promise<getUserInvitesResponse> => {
+ const res = await fetch(getGetUserInvitesUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserInvitesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserInvitesResponse
-}
-
+ const data: getUserInvitesResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserInvitesResponse;
+};
/**
* @summary Gets a team by ID.
*/
export type getTeamResponse200 = {
- data: TeamWithUsers
- status: 200
-}
+ data: TeamWithUsers;
+ status: 200;
+};
export type getTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getTeamResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getTeamResponseSuccess = (getTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getTeamResponseSuccess = getTeamResponse200 & {
headers: Headers;
};
-export type getTeamResponseError = (getTeamResponse400 | getTeamResponse401 | getTeamResponse404 | getTeamResponse500) & {
+export type getTeamResponseError = (
+ | getTeamResponse400
+ | getTeamResponse401
+ | getTeamResponse404
+ | getTeamResponse500
+) & {
headers: Headers;
};
-export type getTeamResponse = (getTeamResponseSuccess | getTeamResponseError)
-
-export const getGetTeamUrl = (teamId: string,) => {
-
+export type getTeamResponse = getTeamResponseSuccess | getTeamResponseError;
-
-
- return `/team/${teamId}`
-}
+export const getGetTeamUrl = (teamId: string) => {
+ return `/team/${teamId}`;
+};
-export const getTeam = async (teamId: string, options?: RequestInit): Promise<getTeamResponse> => {
-
- const res = await fetch(getGetTeamUrl(teamId),
- {
+export const getTeam = async (
+ teamId: string,
+ options?: RequestInit
+): Promise<getTeamResponse> => {
+ const res = await fetch(getGetTeamUrl(teamId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getTeamResponse
-}
-
+ const data: getTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as getTeamResponse;
+};
/**
* @summary Deletes a team.
@@ -1674,618 +1707,652 @@ This will update all team members roles and cancel your subscription for the tea
This action is **irreversible** and you will not be able to recover the team afterwards.
*/
export type deleteTeamResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type deleteTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type deleteTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type deleteTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type deleteTeamResponseSuccess = (deleteTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type deleteTeamResponseSuccess = deleteTeamResponse200 & {
headers: Headers;
};
-export type deleteTeamResponseError = (deleteTeamResponse400 | deleteTeamResponse401 | deleteTeamResponse500) & {
+export type deleteTeamResponseError = (
+ | deleteTeamResponse400
+ | deleteTeamResponse401
+ | deleteTeamResponse500
+) & {
headers: Headers;
};
-export type deleteTeamResponse = (deleteTeamResponseSuccess | deleteTeamResponseError)
+export type deleteTeamResponse =
+ | deleteTeamResponseSuccess
+ | deleteTeamResponseError;
-export const getDeleteTeamUrl = (teamId: string,) => {
-
-
-
-
- return `/team/${teamId}`
-}
+export const getDeleteTeamUrl = (teamId: string) => {
+ return `/team/${teamId}`;
+};
-export const deleteTeam = async (teamId: string, options?: RequestInit): Promise<deleteTeamResponse> => {
-
- const res = await fetch(getDeleteTeamUrl(teamId),
- {
+export const deleteTeam = async (
+ teamId: string,
+ options?: RequestInit
+): Promise<deleteTeamResponse> => {
+ const res = await fetch(getDeleteTeamUrl(teamId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteTeamResponse
-}
-
+ const data: deleteTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteTeamResponse;
+};
/**
* @summary Updates a team.
*/
export type patchTeamResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type patchTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type patchTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type patchTeamResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type patchTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type patchTeamResponseSuccess = (patchTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type patchTeamResponseSuccess = patchTeamResponse200 & {
headers: Headers;
};
-export type patchTeamResponseError = (patchTeamResponse400 | patchTeamResponse401 | patchTeamResponse404 | patchTeamResponse500) & {
+export type patchTeamResponseError = (
+ | patchTeamResponse400
+ | patchTeamResponse401
+ | patchTeamResponse404
+ | patchTeamResponse500
+) & {
headers: Headers;
};
-export type patchTeamResponse = (patchTeamResponseSuccess | patchTeamResponseError)
-
-export const getPatchTeamUrl = (teamId: string,) => {
-
+export type patchTeamResponse =
+ | patchTeamResponseSuccess
+ | patchTeamResponseError;
-
-
- return `/team/${teamId}`
-}
+export const getPatchTeamUrl = (teamId: string) => {
+ return `/team/${teamId}`;
+};
-export const patchTeam = async (teamId: string,
- patchTeamRequest: PatchTeamRequest, options?: RequestInit): Promise<patchTeamResponse> => {
-
- const res = await fetch(getPatchTeamUrl(teamId),
- {
+export const patchTeam = async (
+ teamId: string,
+ patchTeamRequest: PatchTeamRequest,
+ options?: RequestInit
+): Promise<patchTeamResponse> => {
+ const res = await fetch(getPatchTeamUrl(teamId), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchTeamRequest,)
- }
-)
+ body: JSON.stringify(patchTeamRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchTeamResponse
-}
-
+ const data: patchTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchTeamResponse;
+};
/**
* @summary Invites a user to a team.
*/
export type inviteToTeamResponse201 = {
- data: void
- status: 201
-}
+ data: void;
+ status: 201;
+};
export type inviteToTeamResponse304 = {
- data: void
- status: 304
-}
+ data: void;
+ status: 304;
+};
export type inviteToTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type inviteToTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type inviteToTeamResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type inviteToTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type inviteToTeamResponseSuccess = (inviteToTeamResponse201) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type inviteToTeamResponseSuccess = inviteToTeamResponse201 & {
headers: Headers;
};
-export type inviteToTeamResponseError = (inviteToTeamResponse304 | inviteToTeamResponse400 | inviteToTeamResponse401 | inviteToTeamResponse404 | inviteToTeamResponse500) & {
+export type inviteToTeamResponseError = (
+ | inviteToTeamResponse304
+ | inviteToTeamResponse400
+ | inviteToTeamResponse401
+ | inviteToTeamResponse404
+ | inviteToTeamResponse500
+) & {
headers: Headers;
};
-export type inviteToTeamResponse = (inviteToTeamResponseSuccess | inviteToTeamResponseError)
-
-export const getInviteToTeamUrl = (teamId: string,) => {
-
-
-
+export type inviteToTeamResponse =
+ | inviteToTeamResponseSuccess
+ | inviteToTeamResponseError;
- return `/team/${teamId}/invite`
-}
+export const getInviteToTeamUrl = (teamId: string) => {
+ return `/team/${teamId}/invite`;
+};
-export const inviteToTeam = async (teamId: string,
- inviteToTeamRequest: InviteToTeamRequest, options?: RequestInit): Promise<inviteToTeamResponse> => {
-
- const res = await fetch(getInviteToTeamUrl(teamId),
- {
+export const inviteToTeam = async (
+ teamId: string,
+ inviteToTeamRequest: InviteToTeamRequest,
+ options?: RequestInit
+): Promise<inviteToTeamResponse> => {
+ const res = await fetch(getInviteToTeamUrl(teamId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- inviteToTeamRequest,)
- }
-)
+ body: JSON.stringify(inviteToTeamRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: inviteToTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as inviteToTeamResponse
-}
-
+ const data: inviteToTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as inviteToTeamResponse;
+};
/**
* @summary Gets all invites for a team.
*/
export type getTeamInvitesResponse200 = {
- data: TeamInvitesResponse
- status: 200
-}
+ data: TeamInvitesResponse;
+ status: 200;
+};
export type getTeamInvitesResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getTeamInvitesResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getTeamInvitesResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getTeamInvitesResponseSuccess = (getTeamInvitesResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getTeamInvitesResponseSuccess = getTeamInvitesResponse200 & {
headers: Headers;
};
-export type getTeamInvitesResponseError = (getTeamInvitesResponse400 | getTeamInvitesResponse401 | getTeamInvitesResponse500) & {
+export type getTeamInvitesResponseError = (
+ | getTeamInvitesResponse400
+ | getTeamInvitesResponse401
+ | getTeamInvitesResponse500
+) & {
headers: Headers;
};
-export type getTeamInvitesResponse = (getTeamInvitesResponseSuccess | getTeamInvitesResponseError)
-
-export const getGetTeamInvitesUrl = (teamId: string,) => {
+export type getTeamInvitesResponse =
+ | getTeamInvitesResponseSuccess
+ | getTeamInvitesResponseError;
+export const getGetTeamInvitesUrl = (teamId: string) => {
+ return `/team/${teamId}/invites`;
+};
-
-
- return `/team/${teamId}/invites`
-}
-
-export const getTeamInvites = async (teamId: string, options?: RequestInit): Promise<getTeamInvitesResponse> => {
-
- const res = await fetch(getGetTeamInvitesUrl(teamId),
- {
+export const getTeamInvites = async (
+ teamId: string,
+ options?: RequestInit
+): Promise<getTeamInvitesResponse> => {
+ const res = await fetch(getGetTeamInvitesUrl(teamId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getTeamInvitesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getTeamInvitesResponse
-}
-
+ const data: getTeamInvitesResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getTeamInvitesResponse;
+};
/**
* @summary Regenerates a team invite notifying the user again.
*/
export type reinviteToTeamResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type reinviteToTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type reinviteToTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type reinviteToTeamResponse429 = {
- data: ErrorResponse
- status: 429
-}
+ data: ErrorResponse;
+ status: 429;
+};
export type reinviteToTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type reinviteToTeamResponseSuccess = (reinviteToTeamResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type reinviteToTeamResponseSuccess = reinviteToTeamResponse200 & {
headers: Headers;
};
-export type reinviteToTeamResponseError = (reinviteToTeamResponse400 | reinviteToTeamResponse401 | reinviteToTeamResponse429 | reinviteToTeamResponse500) & {
+export type reinviteToTeamResponseError = (
+ | reinviteToTeamResponse400
+ | reinviteToTeamResponse401
+ | reinviteToTeamResponse429
+ | reinviteToTeamResponse500
+) & {
headers: Headers;
};
-export type reinviteToTeamResponse = (reinviteToTeamResponseSuccess | reinviteToTeamResponseError)
-
-export const getReinviteToTeamUrl = (teamId: string,
- teamInviteId: string,) => {
-
-
-
+export type reinviteToTeamResponse =
+ | reinviteToTeamResponseSuccess
+ | reinviteToTeamResponseError;
- return `/team/${teamId}/reinvite/${teamInviteId}`
-}
+export const getReinviteToTeamUrl = (teamId: string, teamInviteId: string) => {
+ return `/team/${teamId}/reinvite/${teamInviteId}`;
+};
-export const reinviteToTeam = async (teamId: string,
- teamInviteId: string, options?: RequestInit): Promise<reinviteToTeamResponse> => {
-
- const res = await fetch(getReinviteToTeamUrl(teamId,teamInviteId),
- {
+export const reinviteToTeam = async (
+ teamId: string,
+ teamInviteId: string,
+ options?: RequestInit
+): Promise<reinviteToTeamResponse> => {
+ const res = await fetch(getReinviteToTeamUrl(teamId, teamInviteId), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: reinviteToTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as reinviteToTeamResponse
-}
-
+ const data: reinviteToTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as reinviteToTeamResponse;
+};
/**
* @summary Removes a user from a team.
*/
export type removeUserFromTeamResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type removeUserFromTeamResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type removeUserFromTeamResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type removeUserFromTeamResponse429 = {
- data: ErrorResponse
- status: 429
-}
+ data: ErrorResponse;
+ status: 429;
+};
export type removeUserFromTeamResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type removeUserFromTeamResponseSuccess = (removeUserFromTeamResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type removeUserFromTeamResponseError = (removeUserFromTeamResponse400 | removeUserFromTeamResponse401 | removeUserFromTeamResponse429 | removeUserFromTeamResponse500) & {
+
+export type removeUserFromTeamResponseSuccess =
+ removeUserFromTeamResponse200 & {
+ headers: Headers;
+ };
+export type removeUserFromTeamResponseError = (
+ | removeUserFromTeamResponse400
+ | removeUserFromTeamResponse401
+ | removeUserFromTeamResponse429
+ | removeUserFromTeamResponse500
+) & {
headers: Headers;
};
-export type removeUserFromTeamResponse = (removeUserFromTeamResponseSuccess | removeUserFromTeamResponseError)
-
-export const getRemoveUserFromTeamUrl = (teamId: string,
- removeUserId: string,) => {
-
+export type removeUserFromTeamResponse =
+ | removeUserFromTeamResponseSuccess
+ | removeUserFromTeamResponseError;
-
-
- return `/team/${teamId}/remove/${removeUserId}`
-}
+export const getRemoveUserFromTeamUrl = (
+ teamId: string,
+ removeUserId: string
+) => {
+ return `/team/${teamId}/remove/${removeUserId}`;
+};
-export const removeUserFromTeam = async (teamId: string,
- removeUserId: string, options?: RequestInit): Promise<removeUserFromTeamResponse> => {
-
- const res = await fetch(getRemoveUserFromTeamUrl(teamId,removeUserId),
- {
+export const removeUserFromTeam = async (
+ teamId: string,
+ removeUserId: string,
+ options?: RequestInit
+): Promise<removeUserFromTeamResponse> => {
+ const res = await fetch(getRemoveUserFromTeamUrl(teamId, removeUserId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: removeUserFromTeamResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as removeUserFromTeamResponse
-}
-
+ const data: removeUserFromTeamResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as removeUserFromTeamResponse;
+};
/**
* @summary Creates a new user.
*/
export type createUserResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type createUserResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createUserResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createUserResponseSuccess = (createUserResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type createUserResponseSuccess = createUserResponse200 & {
headers: Headers;
};
-export type createUserResponseError = (createUserResponse400 | createUserResponse500) & {
+export type createUserResponseError = (
+ | createUserResponse400
+ | createUserResponse500
+) & {
headers: Headers;
};
-export type createUserResponse = (createUserResponseSuccess | createUserResponseError)
+export type createUserResponse =
+ | createUserResponseSuccess
+ | createUserResponseError;
export const getCreateUserUrl = () => {
+ return `/user`;
+};
-
-
-
- return `/user`
-}
-
-export const createUser = async (createUserRequest: CreateUserRequest, options?: RequestInit): Promise<createUserResponse> => {
-
- const res = await fetch(getCreateUserUrl(),
- {
+export const createUser = async (
+ createUserRequest: CreateUserRequest,
+ options?: RequestInit
+): Promise<createUserResponse> => {
+ const res = await fetch(getCreateUserUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createUserRequest,)
- }
-)
+ body: JSON.stringify(createUserRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createUserResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createUserResponse
-}
-
+ const data: createUserResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createUserResponse;
+};
/**
* @summary Retrieves user names in bulk
*/
export type getUserNamesResponse200 = {
- data: UserNames
- status: 200
-}
+ data: UserNames;
+ status: 200;
+};
export type getUserNamesResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserNamesResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserNamesResponseSuccess = (getUserNamesResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserNamesResponseSuccess = getUserNamesResponse200 & {
headers: Headers;
};
-export type getUserNamesResponseError = (getUserNamesResponse401 | getUserNamesResponse500) & {
+export type getUserNamesResponseError = (
+ | getUserNamesResponse401
+ | getUserNamesResponse500
+) & {
headers: Headers;
};
-export type getUserNamesResponse = (getUserNamesResponseSuccess | getUserNamesResponseError)
+export type getUserNamesResponse =
+ | getUserNamesResponseSuccess
+ | getUserNamesResponseError;
export const getGetUserNamesUrl = () => {
+ return `/user/get_names`;
+};
-
-
-
- return `/user/get_names`
-}
-
-export const getUserNames = async (postGetNamesRequestBody: PostGetNamesRequestBody, options?: RequestInit): Promise<getUserNamesResponse> => {
-
- const res = await fetch(getGetUserNamesUrl(),
- {
+export const getUserNames = async (
+ postGetNamesRequestBody: PostGetNamesRequestBody,
+ options?: RequestInit
+): Promise<getUserNamesResponse> => {
+ const res = await fetch(getGetUserNamesUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- postGetNamesRequestBody,)
- }
-)
+ body: JSON.stringify(postGetNamesRequestBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserNamesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserNamesResponse
-}
-
+ const data: getUserNamesResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNamesResponse;
+};
/**
* @summary Gets names for passed user profile ids, falling back to the requesting user's email contact names
*/
export type getUserNamesWithEmailResponse200 = {
- data: UserNames
- status: 200
-}
+ data: UserNames;
+ status: 200;
+};
export type getUserNamesWithEmailResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type getUserNamesWithEmailResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserNamesWithEmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserNamesWithEmailResponseSuccess = (getUserNamesWithEmailResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getUserNamesWithEmailResponseError = (getUserNamesWithEmailResponse400 | getUserNamesWithEmailResponse401 | getUserNamesWithEmailResponse500) & {
+
+export type getUserNamesWithEmailResponseSuccess =
+ getUserNamesWithEmailResponse200 & {
+ headers: Headers;
+ };
+export type getUserNamesWithEmailResponseError = (
+ | getUserNamesWithEmailResponse400
+ | getUserNamesWithEmailResponse401
+ | getUserNamesWithEmailResponse500
+) & {
headers: Headers;
};
-export type getUserNamesWithEmailResponse = (getUserNamesWithEmailResponseSuccess | getUserNamesWithEmailResponseError)
+export type getUserNamesWithEmailResponse =
+ | getUserNamesWithEmailResponseSuccess
+ | getUserNamesWithEmailResponseError;
export const getGetUserNamesWithEmailUrl = () => {
+ return `/user/get_names_with_email`;
+};
-
-
-
- return `/user/get_names_with_email`
-}
-
-export const getUserNamesWithEmail = async (getNamesWithEmailRequestBody: GetNamesWithEmailRequestBody, options?: RequestInit): Promise<getUserNamesWithEmailResponse> => {
-
- const res = await fetch(getGetUserNamesWithEmailUrl(),
- {
+export const getUserNamesWithEmail = async (
+ getNamesWithEmailRequestBody: GetNamesWithEmailRequestBody,
+ options?: RequestInit
+): Promise<getUserNamesWithEmailResponse> => {
+ const res = await fetch(getGetUserNamesWithEmailUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getNamesWithEmailRequestBody,)
- }
-)
+ body: JSON.stringify(getNamesWithEmailRequestBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserNamesWithEmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserNamesWithEmailResponse
-}
-
+ const data: getUserNamesWithEmailResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNamesWithEmailResponse;
+};
/**
* @summary Updates the user's group.
*/
export type patchUserGroupResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type patchUserGroupResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type patchUserGroupResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type patchUserGroupResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type patchUserGroupResponseSuccess = (patchUserGroupResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type patchUserGroupResponseSuccess = patchUserGroupResponse200 & {
headers: Headers;
};
-export type patchUserGroupResponseError = (patchUserGroupResponse401 | patchUserGroupResponse404 | patchUserGroupResponse500) & {
+export type patchUserGroupResponseError = (
+ | patchUserGroupResponse401
+ | patchUserGroupResponse404
+ | patchUserGroupResponse500
+) & {
headers: Headers;
};
-export type patchUserGroupResponse = (patchUserGroupResponseSuccess | patchUserGroupResponseError)
+export type patchUserGroupResponse =
+ | patchUserGroupResponseSuccess
+ | patchUserGroupResponseError;
export const getPatchUserGroupUrl = () => {
+ return `/user/group`;
+};
-
-
-
- return `/user/group`
-}
-
-export const patchUserGroup = async (patchUserGroupRequest: PatchUserGroupRequest, options?: RequestInit): Promise<patchUserGroupResponse> => {
-
- const res = await fetch(getPatchUserGroupUrl(),
- {
+export const patchUserGroup = async (
+ patchUserGroupRequest: PatchUserGroupRequest,
+ options?: RequestInit
+): Promise<patchUserGroupResponse> => {
+ const res = await fetch(getPatchUserGroupUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchUserGroupRequest,)
- }
-)
+ body: JSON.stringify(patchUserGroupRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchUserGroupResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchUserGroupResponse
-}
-
+ const data: patchUserGroupResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchUserGroupResponse;
+};
/**
* @summary Gets the calling user's info which matches what was given in the **deprecated**
@@ -2294,695 +2361,741 @@ This will eventually be removed and optimized to use smaller calls that grab
what is needed for various parts of the UI.
*/
export type getLegacyUserPermissionsResponse200 = {
- data: GetLegacyUserPermissionsResponse
- status: 200
-}
+ data: GetLegacyUserPermissionsResponse;
+ status: 200;
+};
export type getLegacyUserPermissionsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getLegacyUserPermissionsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getLegacyUserPermissionsResponseSuccess = (getLegacyUserPermissionsResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getLegacyUserPermissionsResponseError = (getLegacyUserPermissionsResponse401 | getLegacyUserPermissionsResponse500) & {
+
+export type getLegacyUserPermissionsResponseSuccess =
+ getLegacyUserPermissionsResponse200 & {
+ headers: Headers;
+ };
+export type getLegacyUserPermissionsResponseError = (
+ | getLegacyUserPermissionsResponse401
+ | getLegacyUserPermissionsResponse500
+) & {
headers: Headers;
};
-export type getLegacyUserPermissionsResponse = (getLegacyUserPermissionsResponseSuccess | getLegacyUserPermissionsResponseError)
+export type getLegacyUserPermissionsResponse =
+ | getLegacyUserPermissionsResponseSuccess
+ | getLegacyUserPermissionsResponseError;
export const getGetLegacyUserPermissionsUrl = () => {
+ return `/user/legacy_user_permissions`;
+};
-
-
-
- return `/user/legacy_user_permissions`
-}
-
-export const getLegacyUserPermissions = async ( options?: RequestInit): Promise<getLegacyUserPermissionsResponse> => {
-
- const res = await fetch(getGetLegacyUserPermissionsUrl(),
- {
+export const getLegacyUserPermissions = async (
+ options?: RequestInit
+): Promise<getLegacyUserPermissionsResponse> => {
+ const res = await fetch(getGetLegacyUserPermissionsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getLegacyUserPermissionsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getLegacyUserPermissionsResponse
-}
-
+ const data: getLegacyUserPermissionsResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getLegacyUserPermissionsResponse;
+};
/**
* @summary Returns whether or not a given idp link exists for a user
*/
export type getUserLinkExistsResponse200 = {
- data: UserLinkResponse
- status: 200
-}
+ data: UserLinkResponse;
+ status: 200;
+};
export type getUserLinkExistsResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getUserLinkExistsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserLinkExistsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserLinkExistsResponseSuccess = (getUserLinkExistsResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserLinkExistsResponseSuccess = getUserLinkExistsResponse200 & {
headers: Headers;
};
-export type getUserLinkExistsResponseError = (getUserLinkExistsResponse400 | getUserLinkExistsResponse401 | getUserLinkExistsResponse500) & {
+export type getUserLinkExistsResponseError = (
+ | getUserLinkExistsResponse400
+ | getUserLinkExistsResponse401
+ | getUserLinkExistsResponse500
+) & {
headers: Headers;
};
-export type getUserLinkExistsResponse = (getUserLinkExistsResponseSuccess | getUserLinkExistsResponseError)
+export type getUserLinkExistsResponse =
+ | getUserLinkExistsResponseSuccess
+ | getUserLinkExistsResponseError;
-export const getGetUserLinkExistsUrl = (params: GetUserLinkExistsParams,) => {
+export const getGetUserLinkExistsUrl = (params: GetUserLinkExistsParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user/link_exists?${stringifiedParams}` : `/user/link_exists`
-}
+ return stringifiedParams.length > 0
+ ? `/user/link_exists?${stringifiedParams}`
+ : `/user/link_exists`;
+};
-export const getUserLinkExists = async (params: GetUserLinkExistsParams, options?: RequestInit): Promise<getUserLinkExistsResponse> => {
-
- const res = await fetch(getGetUserLinkExistsUrl(params),
- {
+export const getUserLinkExists = async (
+ params: GetUserLinkExistsParams,
+ options?: RequestInit
+): Promise<getUserLinkExistsResponse> => {
+ const res = await fetch(getGetUserLinkExistsUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserLinkExistsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserLinkExistsResponse
-}
-
+ const data: getUserLinkExistsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserLinkExistsResponse;
+};
/**
* @summary Gets the calling user's info
*/
export type getUserInfoResponse200 = {
- data: GetUserInfo
- status: 200
-}
+ data: GetUserInfo;
+ status: 200;
+};
export type getUserInfoResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserInfoResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserInfoResponseSuccess = (getUserInfoResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserInfoResponseSuccess = getUserInfoResponse200 & {
headers: Headers;
};
-export type getUserInfoResponseError = (getUserInfoResponse401 | getUserInfoResponse500) & {
+export type getUserInfoResponseError = (
+ | getUserInfoResponse401
+ | getUserInfoResponse500
+) & {
headers: Headers;
};
-export type getUserInfoResponse = (getUserInfoResponseSuccess | getUserInfoResponseError)
+export type getUserInfoResponse =
+ | getUserInfoResponseSuccess
+ | getUserInfoResponseError;
export const getGetUserInfoUrl = () => {
+ return `/user/me`;
+};
-
-
-
- return `/user/me`
-}
-
-export const getUserInfo = async ( options?: RequestInit): Promise<getUserInfoResponse> => {
-
- const res = await fetch(getGetUserInfoUrl(),
- {
+export const getUserInfo = async (
+ options?: RequestInit
+): Promise<getUserInfoResponse> => {
+ const res = await fetch(getGetUserInfoUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserInfoResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserInfoResponse
-}
-
+ const data: getUserInfoResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserInfoResponse;
+};
/**
* @summary Deletes the user who calls this endpoint
*/
export type deleteUserResponse200 = {
- data: GenericSuccessResponse
- status: 200
-}
+ data: GenericSuccessResponse;
+ status: 200;
+};
export type deleteUserResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type deleteUserResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type deleteUserResponseSuccess = (deleteUserResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type deleteUserResponseSuccess = deleteUserResponse200 & {
headers: Headers;
};
-export type deleteUserResponseError = (deleteUserResponse401 | deleteUserResponse500) & {
+export type deleteUserResponseError = (
+ | deleteUserResponse401
+ | deleteUserResponse500
+) & {
headers: Headers;
};
-export type deleteUserResponse = (deleteUserResponseSuccess | deleteUserResponseError)
+export type deleteUserResponse =
+ | deleteUserResponseSuccess
+ | deleteUserResponseError;
export const getDeleteUserUrl = () => {
+ return `/user/me`;
+};
-
-
-
- return `/user/me`
-}
-
-export const deleteUser = async ( options?: RequestInit): Promise<deleteUserResponse> => {
-
- const res = await fetch(getDeleteUserUrl(),
- {
+export const deleteUser = async (
+ options?: RequestInit
+): Promise<deleteUserResponse> => {
+ const res = await fetch(getDeleteUserUrl(), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteUserResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteUserResponse
-}
-
+ const data: deleteUserResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteUserResponse;
+};
/**
* @summary Retrieves the name of a particular user.
*/
export type getUserNameResponse200 = {
- data: UserName
- status: 200
-}
+ data: UserName;
+ status: 200;
+};
export type getUserNameResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserNameResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserNameResponseSuccess = (getUserNameResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserNameResponseSuccess = getUserNameResponse200 & {
headers: Headers;
};
-export type getUserNameResponseError = (getUserNameResponse401 | getUserNameResponse500) & {
+export type getUserNameResponseError = (
+ | getUserNameResponse401
+ | getUserNameResponse500
+) & {
headers: Headers;
};
-export type getUserNameResponse = (getUserNameResponseSuccess | getUserNameResponseError)
+export type getUserNameResponse =
+ | getUserNameResponseSuccess
+ | getUserNameResponseError;
export const getGetUserNameUrl = () => {
+ return `/user/name`;
+};
-
-
-
- return `/user/name`
-}
-
-export const getUserName = async ( options?: RequestInit): Promise<getUserNameResponse> => {
-
- const res = await fetch(getGetUserNameUrl(),
- {
+export const getUserName = async (
+ options?: RequestInit
+): Promise<getUserNameResponse> => {
+ const res = await fetch(getGetUserNameUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserNameResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserNameResponse
-}
-
+ const data: getUserNameResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNameResponse;
+};
/**
* @summary Sets the name of a particular user
*/
export type putUserNameResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type putUserNameResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type putUserNameResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type putUserNameResponseSuccess = (putUserNameResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type putUserNameResponseSuccess = putUserNameResponse200 & {
headers: Headers;
};
-export type putUserNameResponseError = (putUserNameResponse401 | putUserNameResponse500) & {
+export type putUserNameResponseError = (
+ | putUserNameResponse401
+ | putUserNameResponse500
+) & {
headers: Headers;
};
-export type putUserNameResponse = (putUserNameResponseSuccess | putUserNameResponseError)
+export type putUserNameResponse =
+ | putUserNameResponseSuccess
+ | putUserNameResponseError;
-export const getPutUserNameUrl = (params?: PutUserNameParams,) => {
+export const getPutUserNameUrl = (params?: PutUserNameParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user/name?${stringifiedParams}` : `/user/name`
-}
+ return stringifiedParams.length > 0
+ ? `/user/name?${stringifiedParams}`
+ : `/user/name`;
+};
-export const putUserName = async (params?: PutUserNameParams, options?: RequestInit): Promise<putUserNameResponse> => {
-
- const res = await fetch(getPutUserNameUrl(params),
- {
+export const putUserName = async (
+ params?: PutUserNameParams,
+ options?: RequestInit
+): Promise<putUserNameResponse> => {
+ const res = await fetch(getPutUserNameUrl(params), {
...options,
- method: 'PUT'
-
-
- }
-)
+ method: 'PUT',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: putUserNameResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as putUserNameResponse
-}
-
+ const data: putUserNameResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as putUserNameResponse;
+};
/**
* @summary Updates the user's onboarding.
*/
export type patchUserOnboardingResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type patchUserOnboardingResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type patchUserOnboardingResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type patchUserOnboardingResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type patchUserOnboardingResponseSuccess = (patchUserOnboardingResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type patchUserOnboardingResponseError = (patchUserOnboardingResponse401 | patchUserOnboardingResponse404 | patchUserOnboardingResponse500) & {
+
+export type patchUserOnboardingResponseSuccess =
+ patchUserOnboardingResponse200 & {
+ headers: Headers;
+ };
+export type patchUserOnboardingResponseError = (
+ | patchUserOnboardingResponse401
+ | patchUserOnboardingResponse404
+ | patchUserOnboardingResponse500
+) & {
headers: Headers;
};
-export type patchUserOnboardingResponse = (patchUserOnboardingResponseSuccess | patchUserOnboardingResponseError)
+export type patchUserOnboardingResponse =
+ | patchUserOnboardingResponseSuccess
+ | patchUserOnboardingResponseError;
export const getPatchUserOnboardingUrl = () => {
+ return `/user/onboarding`;
+};
-
-
-
- return `/user/onboarding`
-}
-
-export const patchUserOnboarding = async (patchUserOnboardingRequest: PatchUserOnboardingRequest, options?: RequestInit): Promise<patchUserOnboardingResponse> => {
-
- const res = await fetch(getPatchUserOnboardingUrl(),
- {
+export const patchUserOnboarding = async (
+ patchUserOnboardingRequest: PatchUserOnboardingRequest,
+ options?: RequestInit
+): Promise<patchUserOnboardingResponse> => {
+ const res = await fetch(getPatchUserOnboardingUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchUserOnboardingRequest,)
- }
-)
+ body: JSON.stringify(patchUserOnboardingRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchUserOnboardingResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchUserOnboardingResponse
-}
-
+ const data: patchUserOnboardingResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchUserOnboardingResponse;
+};
/**
* @summary Retrieves the users organization if present.
Returns NO_CONTENT if the user is a not part of an organization.
*/
export type getUserOrganizationResponse200 = {
- data: UserOrganizationResponse
- status: 200
-}
+ data: UserOrganizationResponse;
+ status: 200;
+};
export type getUserOrganizationResponse204 = {
- data: void
- status: 204
-}
+ data: void;
+ status: 204;
+};
export type getUserOrganizationResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserOrganizationResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserOrganizationResponseSuccess = (getUserOrganizationResponse200 | getUserOrganizationResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserOrganizationResponseSuccess = (
+ | getUserOrganizationResponse200
+ | getUserOrganizationResponse204
+) & {
headers: Headers;
};
-export type getUserOrganizationResponseError = (getUserOrganizationResponse401 | getUserOrganizationResponse500) & {
+export type getUserOrganizationResponseError = (
+ | getUserOrganizationResponse401
+ | getUserOrganizationResponse500
+) & {
headers: Headers;
};
-export type getUserOrganizationResponse = (getUserOrganizationResponseSuccess | getUserOrganizationResponseError)
+export type getUserOrganizationResponse =
+ | getUserOrganizationResponseSuccess
+ | getUserOrganizationResponseError;
export const getGetUserOrganizationUrl = () => {
+ return `/user/organization`;
+};
-
-
-
- return `/user/organization`
-}
-
-export const getUserOrganization = async ( options?: RequestInit): Promise<getUserOrganizationResponse> => {
-
- const res = await fetch(getGetUserOrganizationUrl(),
- {
+export const getUserOrganization = async (
+ options?: RequestInit
+): Promise<getUserOrganizationResponse> => {
+ const res = await fetch(getGetUserOrganizationUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserOrganizationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserOrganizationResponse
-}
-
+ const data: getUserOrganizationResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserOrganizationResponse;
+};
/**
* @summary Sets the profile picture URL for a particular user
*/
export type putProfilePictureResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type putProfilePictureResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type putProfilePictureResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type putProfilePictureResponseSuccess = (putProfilePictureResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type putProfilePictureResponseSuccess = putProfilePictureResponse200 & {
headers: Headers;
};
-export type putProfilePictureResponseError = (putProfilePictureResponse401 | putProfilePictureResponse500) & {
+export type putProfilePictureResponseError = (
+ | putProfilePictureResponse401
+ | putProfilePictureResponse500
+) & {
headers: Headers;
};
-export type putProfilePictureResponse = (putProfilePictureResponseSuccess | putProfilePictureResponseError)
+export type putProfilePictureResponse =
+ | putProfilePictureResponseSuccess
+ | putProfilePictureResponseError;
-export const getPutProfilePictureUrl = (params: PutProfilePictureParams,) => {
+export const getPutProfilePictureUrl = (params: PutProfilePictureParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user/profile_picture?${stringifiedParams}` : `/user/profile_picture`
-}
+ return stringifiedParams.length > 0
+ ? `/user/profile_picture?${stringifiedParams}`
+ : `/user/profile_picture`;
+};
-export const putProfilePicture = async (params: PutProfilePictureParams, options?: RequestInit): Promise<putProfilePictureResponse> => {
-
- const res = await fetch(getPutProfilePictureUrl(params),
- {
+export const putProfilePicture = async (
+ params: PutProfilePictureParams,
+ options?: RequestInit
+): Promise<putProfilePictureResponse> => {
+ const res = await fetch(getPutProfilePictureUrl(params), {
...options,
- method: 'PUT'
-
-
- }
-)
+ method: 'PUT',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: putProfilePictureResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as putProfilePictureResponse
-}
-
+ const data: putProfilePictureResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as putProfilePictureResponse;
+};
/**
* @summary Retrieves profile picture URLs for a list of users
*/
export type postProfilePicturesResponse200 = {
- data: ProfilePictures
- status: 200
-}
+ data: ProfilePictures;
+ status: 200;
+};
export type postProfilePicturesResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type postProfilePicturesResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type postProfilePicturesResponseSuccess = (postProfilePicturesResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type postProfilePicturesResponseError = (postProfilePicturesResponse401 | postProfilePicturesResponse500) & {
+
+export type postProfilePicturesResponseSuccess =
+ postProfilePicturesResponse200 & {
+ headers: Headers;
+ };
+export type postProfilePicturesResponseError = (
+ | postProfilePicturesResponse401
+ | postProfilePicturesResponse500
+) & {
headers: Headers;
};
-export type postProfilePicturesResponse = (postProfilePicturesResponseSuccess | postProfilePicturesResponseError)
+export type postProfilePicturesResponse =
+ | postProfilePicturesResponseSuccess
+ | postProfilePicturesResponseError;
export const getPostProfilePicturesUrl = () => {
+ return `/user/profile_pictures`;
+};
-
-
-
- return `/user/profile_pictures`
-}
-
-export const postProfilePictures = async (getProfilePicturesRequestBody: GetProfilePicturesRequestBody, options?: RequestInit): Promise<postProfilePicturesResponse> => {
-
- const res = await fetch(getPostProfilePicturesUrl(),
- {
+export const postProfilePictures = async (
+ getProfilePicturesRequestBody: GetProfilePicturesRequestBody,
+ options?: RequestInit
+): Promise<postProfilePicturesResponse> => {
+ const res = await fetch(getPostProfilePicturesUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getProfilePicturesRequestBody,)
- }
-)
+ body: JSON.stringify(getProfilePicturesRequestBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: postProfilePicturesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as postProfilePicturesResponse
-}
-
+ const data: postProfilePicturesResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as postProfilePicturesResponse;
+};
/**
* @summary Retrieves the users quota.
Returns NO_CONTENT if the user is a premium user with no quota.
*/
export type getUserQuotaResponse200 = {
- data: UserQuota
- status: 200
-}
+ data: UserQuota;
+ status: 200;
+};
export type getUserQuotaResponse204 = {
- data: void
- status: 204
-}
+ data: void;
+ status: 204;
+};
export type getUserQuotaResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUserQuotaResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserQuotaResponseSuccess = (getUserQuotaResponse200 | getUserQuotaResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserQuotaResponseSuccess = (
+ | getUserQuotaResponse200
+ | getUserQuotaResponse204
+) & {
headers: Headers;
};
-export type getUserQuotaResponseError = (getUserQuotaResponse401 | getUserQuotaResponse500) & {
+export type getUserQuotaResponseError = (
+ | getUserQuotaResponse401
+ | getUserQuotaResponse500
+) & {
headers: Headers;
};
-export type getUserQuotaResponse = (getUserQuotaResponseSuccess | getUserQuotaResponseError)
+export type getUserQuotaResponse =
+ | getUserQuotaResponseSuccess
+ | getUserQuotaResponseError;
export const getGetUserQuotaUrl = () => {
+ return `/user/quota`;
+};
-
-
-
- return `/user/quota`
-}
-
-export const getUserQuota = async ( options?: RequestInit): Promise<getUserQuotaResponse> => {
-
- const res = await fetch(getGetUserQuotaUrl(),
- {
+export const getUserQuota = async (
+ options?: RequestInit
+): Promise<getUserQuotaResponse> => {
+ const res = await fetch(getGetUserQuotaUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserQuotaResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserQuotaResponse
-}
-
+ const data: getUserQuotaResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserQuotaResponse;
+};
/**
* @summary Updates the user's tutorialComplete flag.
*/
export type patchUserTutorialResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type patchUserTutorialResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type patchUserTutorialResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type patchUserTutorialResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type patchUserTutorialResponseSuccess = (patchUserTutorialResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type patchUserTutorialResponseSuccess = patchUserTutorialResponse200 & {
headers: Headers;
};
-export type patchUserTutorialResponseError = (patchUserTutorialResponse401 | patchUserTutorialResponse404 | patchUserTutorialResponse500) & {
+export type patchUserTutorialResponseError = (
+ | patchUserTutorialResponse401
+ | patchUserTutorialResponse404
+ | patchUserTutorialResponse500
+) & {
headers: Headers;
};
-export type patchUserTutorialResponse = (patchUserTutorialResponseSuccess | patchUserTutorialResponseError)
+export type patchUserTutorialResponse =
+ | patchUserTutorialResponseSuccess
+ | patchUserTutorialResponseError;
export const getPatchUserTutorialUrl = () => {
+ return `/user/tutorial`;
+};
-
-
-
- return `/user/tutorial`
-}
-
-export const patchUserTutorial = async (patchUserTutorialRequest: PatchUserTutorialRequest, options?: RequestInit): Promise<patchUserTutorialResponse> => {
-
- const res = await fetch(getPatchUserTutorialUrl(),
- {
+export const patchUserTutorial = async (
+ patchUserTutorialRequest: PatchUserTutorialRequest,
+ options?: RequestInit
+): Promise<patchUserTutorialResponse> => {
+ const res = await fetch(getPatchUserTutorialUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchUserTutorialRequest,)
- }
-)
+ body: JSON.stringify(patchUserTutorialRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchUserTutorialResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchUserTutorialResponse
-}
+
+ const data: patchUserTutorialResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchUserTutorialResponse;
+};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts b/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts
index c1c32967df..d3e638e915 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ABGroup = typeof ABGroup[keyof typeof ABGroup];
-
+export type ABGroup = (typeof ABGroup)[keyof typeof ABGroup];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ABGroup = {
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-auth/generated/schemas/emptyResponse.ts
index 723813875f..adba80f092 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/getUserLinkExistsParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/getUserLinkExistsParams.ts
index 6920c3d9a1..2cfa2434fa 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/getUserLinkExistsParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/getUserLinkExistsParams.ts
@@ -6,12 +6,12 @@
*/
export type GetUserLinkExistsParams = {
-/**
- * The idp name to lookup. If not provided, the idp_id must be provided.
- */
-idp_name: string;
-/**
- * The idp id to lookup. If not provided, the idp_name must be provided.
- */
-idp_id: string;
+ /**
+ * The idp name to lookup. If not provided, the idp_id must be provided.
+ */
+ idp_name: string;
+ /**
+ * The idp id to lookup. If not provided, the idp_name must be provided.
+ */
+ idp_id: string;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/index.ts b/js/app/packages/service-clients/service-auth/generated/schemas/index.ts
index d5646ad11c..569be63f61 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/index.ts
@@ -26,9 +26,9 @@ export * from './getUserLinkExistsParams';
export * from './inviteToTeamRequest';
export * from './macroApiTokenParams';
export * from './macroApiTokenResponse';
-export * from './passwordRequest';
export * from './passwordlessCallbackParams';
export * from './passwordlessRequest';
+export * from './passwordRequest';
export * from './patchTeamRequest';
export * from './patchTeamRequestName';
export * from './patchUserGroupRequest';
@@ -48,9 +48,9 @@ export * from './ssoLoginParams';
export * from './ssoRequiredResponse';
export * from './team';
export * from './teamInvite';
+export * from './teamInvitesResponse';
export * from './teamInviteUpdate';
export * from './teamInviteUpdateTeamRole';
-export * from './teamInvitesResponse';
export * from './teamRole';
export * from './teamUpdateOperation';
export * from './teamUser';
@@ -66,4 +66,4 @@ export * from './userOrganizationResponse';
export * from './userProfilePicture';
export * from './userProfilePictureChecksum';
export * from './userQuota';
-export * from './userTokensResponse';
\ No newline at end of file
+export * from './userTokensResponse';
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/macroApiTokenParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/macroApiTokenParams.ts
index 5c1dfc1293..3cd500e5b5 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/macroApiTokenParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/macroApiTokenParams.ts
@@ -6,8 +6,8 @@
*/
export type MacroApiTokenParams = {
-/**
- * The email to generate the macro-api-token for. If not provided, we use your default profile.
- */
-email: string;
+ /**
+ * The email to generate the macro-api-token for. If not provided, we use your default profile.
+ */
+ email: string;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/passwordlessCallbackParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/passwordlessCallbackParams.ts
index c125376d4f..08d2ad97e7 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/passwordlessCallbackParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/passwordlessCallbackParams.ts
@@ -6,8 +6,8 @@
*/
export type PasswordlessCallbackParams = {
-/**
- * Email
- */
-email: string;
+ /**
+ * Email
+ */
+ email: string;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/putProfilePictureParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/putProfilePictureParams.ts
index b5de695e5b..f5c6f1c5df 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/putProfilePictureParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/putProfilePictureParams.ts
@@ -6,8 +6,8 @@
*/
export type PutProfilePictureParams = {
-/**
- * profile picture URL
- */
-url: string;
+ /**
+ * profile picture URL
+ */
+ url: string;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/putUserNameParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/putUserNameParams.ts
index 0c34bb563d..774c98246e 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/putUserNameParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/putUserNameParams.ts
@@ -6,12 +6,12 @@
*/
export type PutUserNameParams = {
-/**
- * First Name of user
- */
-first_name?: string | null;
-/**
- * Last Name of user
- */
-last_name?: string | null;
+ /**
+ * First Name of user
+ */
+ first_name?: string | null;
+ /**
+ * Last Name of user
+ */
+ last_name?: string | null;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/ssoLoginParams.ts b/js/app/packages/service-clients/service-auth/generated/schemas/ssoLoginParams.ts
index 34f1448e0a..baff85e090 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/ssoLoginParams.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/ssoLoginParams.ts
@@ -6,24 +6,24 @@
*/
export type SsoLoginParams = {
-/**
- * The name of the identity provider to use for login. e.g Google
- */
-idp_name: string;
-/**
- * **OPTIONAL**. The idp id of the identity provider to use for login.
- */
-idp_id: string;
-/**
- * **OPTIONAL**. The user's email.
- */
-login_hint: string;
-/**
- * **OPTIONAL**. The original url you came from.
- */
-original_url: string;
-/**
- * **OPTIONAL**. If the authentication request is from a mobile device.
- */
-is_mobile: string;
+ /**
+ * The name of the identity provider to use for login. e.g Google
+ */
+ idp_name: string;
+ /**
+ * **OPTIONAL**. The idp id of the identity provider to use for login.
+ */
+ idp_id: string;
+ /**
+ * **OPTIONAL**. The user's email.
+ */
+ login_hint: string;
+ /**
+ * **OPTIONAL**. The original url you came from.
+ */
+ original_url: string;
+ /**
+ * **OPTIONAL**. If the authentication request is from a mobile device.
+ */
+ is_mobile: string;
};
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/teamInviteUpdate.ts b/js/app/packages/service-clients/service-auth/generated/schemas/teamInviteUpdate.ts
index 3879783f9a..04cefbe1d4 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/teamInviteUpdate.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/teamInviteUpdate.ts
@@ -4,8 +4,9 @@
* authentication_service
* OpenAPI spec version: 0.1.0
*/
-import type { TeamUpdateOperation } from './teamUpdateOperation';
+
import type { TeamInviteUpdateTeamRole } from './teamInviteUpdateTeamRole';
+import type { TeamUpdateOperation } from './teamUpdateOperation';
export interface TeamInviteUpdate {
/** The operation to perform
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/teamRole.ts b/js/app/packages/service-clients/service-auth/generated/schemas/teamRole.ts
index f5c8e2ff39..944eb2632c 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/teamRole.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/teamRole.ts
@@ -8,8 +8,7 @@
/**
* Ordered from least to most access top -> bottom
*/
-export type TeamRole = typeof TeamRole[keyof typeof TeamRole];
-
+export type TeamRole = (typeof TeamRole)[keyof typeof TeamRole];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const TeamRole = {
diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/teamUpdateOperation.ts b/js/app/packages/service-clients/service-auth/generated/schemas/teamUpdateOperation.ts
index 21192aff61..4eca679bac 100644
--- a/js/app/packages/service-clients/service-auth/generated/schemas/teamUpdateOperation.ts
+++ b/js/app/packages/service-clients/service-auth/generated/schemas/teamUpdateOperation.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type TeamUpdateOperation = typeof TeamUpdateOperation[keyof typeof TeamUpdateOperation];
-
+export type TeamUpdateOperation =
+ (typeof TeamUpdateOperation)[keyof typeof TeamUpdateOperation];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const TeamUpdateOperation = {
diff --git a/js/app/packages/service-clients/service-auth/openapi.json b/js/app/packages/service-clients/service-auth/openapi.json
index 99a6b9adbf..6cf8286ac5 100644
--- a/js/app/packages/service-clients/service-auth/openapi.json
+++ b/js/app/packages/service-clients/service-auth/openapi.json
@@ -4,7 +4,9 @@
"title": "authentication_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -19,7 +21,9 @@
"in": "path",
"description": "The verification id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -27,7 +31,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -35,7 +41,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -62,7 +70,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -70,7 +80,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -97,7 +109,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -105,7 +119,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -113,7 +129,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -131,7 +149,9 @@
"in": "path",
"description": "The verification id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -139,7 +159,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -147,7 +169,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -164,7 +188,9 @@
"description": "health",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -182,7 +208,9 @@
"in": "query",
"description": "The email to generate the macro-api-token for. If not provided, we use your default profile.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -198,11 +226,23 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -217,21 +257,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserTokensResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserTokensResponse"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -256,7 +316,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -264,7 +326,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -272,7 +336,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -280,7 +346,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -295,7 +363,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/AppleLoginRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/AppleLoginRequest"
+ }
}
},
"required": true
@@ -305,7 +375,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -313,7 +385,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -321,7 +395,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -329,7 +405,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -344,7 +422,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PasswordRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PasswordRequest"
+ }
}
},
"required": true
@@ -354,7 +434,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserTokensResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserTokensResponse"
+ }
}
}
},
@@ -362,7 +444,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -370,7 +454,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -378,7 +464,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -393,7 +481,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PasswordlessRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PasswordlessRequest"
+ }
}
},
"required": true
@@ -403,7 +493,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -411,21 +503,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SsoRequiredResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SsoRequiredResponse"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"403": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -441,44 +553,58 @@
"in": "query",
"description": "The name of the identity provider to use for login. e.g Google",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "idp_id",
"in": "query",
"description": "**OPTIONAL**. The idp id of the identity provider to use for login.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "login_hint",
"in": "query",
"description": "**OPTIONAL**. The user's email.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "original_url",
"in": "query",
"description": "**OPTIONAL**. The original url you came from.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "is_mobile",
"in": "query",
"description": "**OPTIONAL**. If the authentication request is from a mobile device.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -486,7 +612,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -503,7 +631,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -530,7 +660,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -538,7 +670,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -546,19 +680,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
"429": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -576,7 +720,9 @@
"in": "path",
"description": "The code",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -584,7 +730,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -592,7 +740,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -600,7 +750,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -618,14 +770,18 @@
"in": "path",
"description": "Code",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "email",
"in": "query",
"description": "Email",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -633,21 +789,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserTokensResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserTokensResponse"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -658,18 +834,38 @@
"summary": "Handles oauth redirect",
"operationId": "oauth_redirect",
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -685,25 +881,35 @@
"in": "path",
"description": "The provider to use",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"304": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
- "307": { "description": "" },
+ "307": {
+ "description": ""
+ },
"400": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -711,7 +917,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -719,7 +927,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -738,18 +948,32 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Permission" }
+ "items": {
+ "$ref": "#/components/schemas/Permission"
+ }
}
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -764,17 +988,34 @@
"description": "",
"content": {
"application/json": {
- "schema": { "type": "array", "items": { "type": "string" } }
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -789,19 +1030,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -819,7 +1070,9 @@
"in": "path",
"description": "The session code",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -827,7 +1080,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserTokensResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserTokensResponse"
+ }
}
}
},
@@ -835,7 +1090,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -843,7 +1100,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -851,7 +1110,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -866,7 +1127,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateTeamRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateTeamRequest"
+ }
}
},
"required": true
@@ -876,7 +1139,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/Team" }
+ "schema": {
+ "$ref": "#/components/schemas/Team"
+ }
}
}
},
@@ -884,7 +1149,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -892,7 +1159,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -910,7 +1179,9 @@
"in": "path",
"description": "The team invite id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -918,7 +1189,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -926,7 +1199,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -934,7 +1209,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -942,7 +1219,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -958,7 +1237,9 @@
"in": "path",
"description": "The team invite id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -966,7 +1247,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -974,7 +1257,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -982,7 +1267,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -990,7 +1277,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1009,7 +1298,9 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Team" }
+ "items": {
+ "$ref": "#/components/schemas/Team"
+ }
}
}
}
@@ -1018,7 +1309,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1026,7 +1319,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1034,7 +1329,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1051,7 +1348,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/TeamInvitesResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/TeamInvitesResponse"
+ }
}
}
},
@@ -1059,7 +1358,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1067,7 +1368,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1075,7 +1378,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1093,7 +1398,9 @@
"in": "path",
"description": "The ID of the team to retrieve",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1101,7 +1408,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/TeamWithUsers" }
+ "schema": {
+ "$ref": "#/components/schemas/TeamWithUsers"
+ }
}
}
},
@@ -1109,7 +1418,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1117,7 +1428,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1125,7 +1438,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1133,7 +1448,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1149,7 +1466,9 @@
"in": "path",
"description": "The ID of the team to delete",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1157,7 +1476,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1165,7 +1486,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1173,7 +1496,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1181,7 +1506,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1197,13 +1524,17 @@
"in": "path",
"description": "The ID of the team to update",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchTeamRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchTeamRequest"
+ }
}
},
"required": true
@@ -1213,7 +1544,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1221,7 +1554,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1229,7 +1564,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1237,7 +1574,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1245,7 +1584,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1263,25 +1604,35 @@
"in": "path",
"description": "The ID of the team to invite to",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/InviteToTeamRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/InviteToTeamRequest"
+ }
}
},
"required": true
},
"responses": {
- "201": { "description": "" },
- "304": { "description": "" },
+ "201": {
+ "description": ""
+ },
+ "304": {
+ "description": ""
+ },
"400": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1289,7 +1640,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1297,7 +1650,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1305,7 +1660,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1323,7 +1680,9 @@
"in": "path",
"description": "The ID of the team to get invites for",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1331,7 +1690,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/TeamInvitesResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/TeamInvitesResponse"
+ }
}
}
},
@@ -1339,7 +1700,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1347,7 +1710,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1355,7 +1720,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1373,14 +1740,18 @@
"in": "path",
"description": "The ID of the team to invite to",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "team_invite_id",
"in": "path",
"description": "The ID of the team invite to reinvite",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1388,7 +1759,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1396,7 +1769,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1404,7 +1779,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1412,7 +1789,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1420,7 +1799,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1438,14 +1819,18 @@
"in": "path",
"description": "The ID of the team to invite to",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "remove_user_id",
"in": "path",
"description": "The ID of the user to remove",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1453,7 +1838,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1461,7 +1848,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1469,7 +1858,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1477,7 +1868,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1485,7 +1878,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1500,7 +1895,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateUserRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateUserRequest"
+ }
}
},
"required": true
@@ -1510,7 +1907,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1518,7 +1917,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1526,7 +1927,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1553,19 +1956,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserNames" }
+ "schema": {
+ "$ref": "#/components/schemas/UserNames"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1592,23 +2005,39 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserNames" }
+ "schema": {
+ "$ref": "#/components/schemas/UserNames"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1623,7 +2052,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchUserGroupRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchUserGroupRequest"
+ }
}
},
"required": true
@@ -1633,23 +2064,39 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1674,13 +2121,21 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1698,14 +2153,18 @@
"in": "query",
"description": "The idp name to lookup. If not provided, the idp_id must be provided.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "idp_id",
"in": "query",
"description": "The idp id to lookup. If not provided, the idp_name must be provided.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1713,7 +2172,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserLinkResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserLinkResponse"
+ }
}
}
},
@@ -1721,19 +2182,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1750,19 +2221,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetUserInfo" }
+ "schema": {
+ "$ref": "#/components/schemas/GetUserInfo"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1787,7 +2268,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1795,7 +2278,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1812,19 +2297,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserName" }
+ "schema": {
+ "$ref": "#/components/schemas/UserName"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1840,14 +2335,18 @@
"in": "query",
"description": "First Name of user",
"required": false,
- "schema": { "type": ["string", "null"] }
+ "schema": {
+ "type": ["string", "null"]
+ }
},
{
"name": "last_name",
"in": "query",
"description": "Last Name of user",
"required": false,
- "schema": { "type": ["string", "null"] }
+ "schema": {
+ "type": ["string", "null"]
+ }
}
],
"responses": {
@@ -1855,19 +2354,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1894,23 +2403,39 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1933,16 +2458,26 @@
}
}
},
- "204": { "description": "" },
+ "204": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1960,7 +2495,9 @@
"in": "query",
"description": "profile picture URL",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1968,19 +2505,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2007,19 +2554,29 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ProfilePictures" }
+ "schema": {
+ "$ref": "#/components/schemas/ProfilePictures"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2036,20 +2593,32 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserQuota" }
+ "schema": {
+ "$ref": "#/components/schemas/UserQuota"
+ }
}
}
},
- "204": { "description": "" },
+ "204": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2076,23 +2645,39 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2102,13 +2687,20 @@
},
"components": {
"schemas": {
- "ABGroup": { "type": "string", "enum": ["A", "B"] },
+ "ABGroup": {
+ "type": "string",
+ "enum": ["A", "B"]
+ },
"AppleLoginRequest": {
"type": "object",
"required": ["id_token", "code"],
"properties": {
- "code": { "type": "string" },
- "id_token": { "type": "string" }
+ "code": {
+ "type": "string"
+ },
+ "id_token": {
+ "type": "string"
+ }
}
},
"CreateAccountMergeRequest": {
@@ -2125,7 +2717,10 @@
"type": "object",
"required": ["link_id"],
"properties": {
- "link_id": { "type": "string", "description": "The link id" }
+ "link_id": {
+ "type": "string",
+ "description": "The link id"
+ }
}
},
"CreateTeamRequest": {
@@ -2133,7 +2728,10 @@
"description": "The request body to create a new team",
"required": ["name"],
"properties": {
- "name": { "type": "string", "description": "The name of the team" }
+ "name": {
+ "type": "string",
+ "description": "The name of the team"
+ }
}
},
"CreateUserRequest": {
@@ -2202,10 +2800,15 @@
"hasTrialed"
],
"properties": {
- "email": { "type": "string", "description": "The user's email" },
+ "email": {
+ "type": "string",
+ "description": "The user's email"
+ },
"group": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ABGroup",
"description": "The user's group"
@@ -2230,28 +2833,43 @@
},
"permissions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The permissions the user has"
},
"tutorialComplete": {
"type": "boolean",
"description": "Whether the user has completed the tutorial"
},
- "userId": { "type": "string", "description": "The user id" }
+ "userId": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"GetNamesWithEmailRequestBody": {
"type": "object",
"required": ["user_ids"],
"properties": {
- "user_ids": { "type": "array", "items": { "type": "string" } }
+ "user_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetProfilePicturesRequestBody": {
"type": "object",
"required": ["user_id_list"],
"properties": {
- "user_id_list": { "type": "array", "items": { "type": "string" } }
+ "user_id_list": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetUserInfo": {
@@ -2265,10 +2883,15 @@
},
"permissions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The user's permissions"
},
- "user_id": { "type": "string", "description": "The user id" }
+ "user_id": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"InviteToTeamRequest": {
@@ -2278,7 +2901,9 @@
"properties": {
"emails": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The emails of the users you want to invite to the team"
}
}
@@ -2301,7 +2926,9 @@
"type": "string",
"description": "The email to login with"
},
- "password": { "type": "string" }
+ "password": {
+ "type": "string"
+ }
}
},
"PasswordlessRequest": {
@@ -2354,7 +2981,10 @@
"type": "string",
"description": "The last name of the user"
},
- "title": { "type": "string", "description": "The title of the user" }
+ "title": {
+ "type": "string",
+ "description": "The title of the user"
+ }
}
},
"PatchUserTutorialRequest": {
@@ -2375,20 +3005,32 @@
"type": "string",
"description": "The description of the permission"
},
- "id": { "type": "string", "description": "The permission" }
+ "id": {
+ "type": "string",
+ "description": "The permission"
+ }
}
},
"PostGetNamesRequestBody": {
"type": "object",
"required": ["user_ids"],
"properties": {
- "user_ids": { "type": "array", "items": { "type": "string" } }
+ "user_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"ProfilePictureQueryParams": {
"type": "object",
"required": ["url"],
- "properties": { "url": { "type": "string" } }
+ "properties": {
+ "url": {
+ "type": "string"
+ }
+ }
},
"ProfilePictures": {
"type": "object",
@@ -2396,7 +3038,9 @@
"properties": {
"pictures": {
"type": "array",
- "items": { "$ref": "#/components/schemas/UserProfilePicture" }
+ "items": {
+ "$ref": "#/components/schemas/UserProfilePicture"
+ }
}
}
},
@@ -2437,9 +3081,16 @@
"type": "object",
"required": ["id", "name", "owner_id"],
"properties": {
- "id": { "type": "string", "format": "uuid" },
- "name": { "type": "string" },
- "owner_id": { "type": "string" }
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ }
}
},
"TeamInvite": {
@@ -2454,13 +3105,31 @@
"last_sent_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "email": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
- "invited_by": { "type": "string" },
- "last_sent_at": { "type": "string", "format": "date-time" },
- "team_id": { "type": "string", "format": "uuid" },
- "team_role": { "$ref": "#/components/schemas/TeamRole" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "email": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "invited_by": {
+ "type": "string"
+ },
+ "last_sent_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "team_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "team_role": {
+ "$ref": "#/components/schemas/TeamRole"
+ }
}
},
"TeamInviteUpdate": {
@@ -2478,7 +3147,9 @@
},
"team_role": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/TeamRole",
"description": "The role to assign to the invited user\nThis is only used for `Update` operation"
@@ -2493,7 +3164,9 @@
"properties": {
"invites": {
"type": "array",
- "items": { "$ref": "#/components/schemas/TeamInvite" }
+ "items": {
+ "$ref": "#/components/schemas/TeamInvite"
+ }
}
}
},
@@ -2502,14 +3175,24 @@
"description": "Ordered from least to most access top -> bottom",
"enum": ["member", "admin", "owner"]
},
- "TeamUpdateOperation": { "type": "string", "enum": ["update", "remove"] },
+ "TeamUpdateOperation": {
+ "type": "string",
+ "enum": ["update", "remove"]
+ },
"TeamUser": {
"type": "object",
"required": ["user_id", "team_id", "team_role"],
"properties": {
- "team_id": { "type": "string", "format": "uuid" },
- "team_role": { "$ref": "#/components/schemas/TeamRole" },
- "user_id": { "type": "string" }
+ "team_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "team_role": {
+ "$ref": "#/components/schemas/TeamRole"
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
"TeamUserUpdate": {
@@ -2522,7 +3205,9 @@
},
"team_role": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/TeamRole",
"description": "The new role for the user if the operation is `Update`"
@@ -2539,10 +3224,14 @@
"type": "object",
"required": ["team", "users"],
"properties": {
- "team": { "$ref": "#/components/schemas/Team" },
+ "team": {
+ "$ref": "#/components/schemas/Team"
+ },
"users": {
"type": "array",
- "items": { "$ref": "#/components/schemas/TeamUser" }
+ "items": {
+ "$ref": "#/components/schemas/TeamUser"
+ }
}
}
},
@@ -2560,9 +3249,15 @@
"type": "object",
"required": ["id"],
"properties": {
- "first_name": { "type": ["string", "null"] },
- "id": { "type": "string" },
- "last_name": { "type": ["string", "null"] }
+ "first_name": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_name": {
+ "type": ["string", "null"]
+ }
}
},
"UserNames": {
@@ -2571,7 +3266,9 @@
"properties": {
"names": {
"type": "array",
- "items": { "$ref": "#/components/schemas/UserName" }
+ "items": {
+ "$ref": "#/components/schemas/UserName"
+ }
}
}
},
@@ -2594,9 +3291,15 @@
"type": "object",
"required": ["id", "url"],
"properties": {
- "checksum": { "type": ["string", "null"] },
- "id": { "type": "string" },
- "url": { "type": "string" }
+ "checksum": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
}
},
"UserQuota": {
@@ -2650,6 +3353,9 @@
}
},
"tags": [
- { "name": "auth service", "description": "Macro Authentication Service" }
+ {
+ "name": "auth service",
+ "description": "Macro Authentication Service"
+ }
]
}
diff --git a/js/app/packages/service-clients/service-cognition/generated/client.ts b/js/app/packages/service-clients/service-cognition/generated/client.ts
index f8dc16eae2..69c02dc07e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/client.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/client.ts
@@ -32,1557 +32,1569 @@ import type {
StructedOutputCompletionRequest,
StructedOutputCompletionResponse,
SuccessResponse,
- ToolSchemasResponse,
VerifyAttachmentsRequest,
- VerifyAttachmentsResponse
+ VerifyAttachmentsResponse,
} from './schemas';
export type getModelsForAttachmentsHandlerResponse200 = {
- data: GetModelsForAttachmentsResponse
- status: 200
-}
+ data: GetModelsForAttachmentsResponse;
+ status: 200;
+};
export type getModelsForAttachmentsHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getModelsForAttachmentsHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getModelsForAttachmentsHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getModelsForAttachmentsHandlerResponseSuccess = (getModelsForAttachmentsHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getModelsForAttachmentsHandlerResponseError = (getModelsForAttachmentsHandlerResponse401 | getModelsForAttachmentsHandlerResponse404 | getModelsForAttachmentsHandlerResponse500) & {
+
+export type getModelsForAttachmentsHandlerResponseSuccess =
+ getModelsForAttachmentsHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getModelsForAttachmentsHandlerResponseError = (
+ | getModelsForAttachmentsHandlerResponse401
+ | getModelsForAttachmentsHandlerResponse404
+ | getModelsForAttachmentsHandlerResponse500
+) & {
headers: Headers;
};
-export type getModelsForAttachmentsHandlerResponse = (getModelsForAttachmentsHandlerResponseSuccess | getModelsForAttachmentsHandlerResponseError)
+export type getModelsForAttachmentsHandlerResponse =
+ | getModelsForAttachmentsHandlerResponseSuccess
+ | getModelsForAttachmentsHandlerResponseError;
export const getGetModelsForAttachmentsHandlerUrl = () => {
+ return `/attachments/get_models_for_attachments`;
+};
-
-
-
- return `/attachments/get_models_for_attachments`
-}
-
-export const getModelsForAttachmentsHandler = async (getModelsForAttachmentsRequest: GetModelsForAttachmentsRequest, options?: RequestInit): Promise<getModelsForAttachmentsHandlerResponse> => {
-
- const res = await fetch(getGetModelsForAttachmentsHandlerUrl(),
- {
+export const getModelsForAttachmentsHandler = async (
+ getModelsForAttachmentsRequest: GetModelsForAttachmentsRequest,
+ options?: RequestInit
+): Promise<getModelsForAttachmentsHandlerResponse> => {
+ const res = await fetch(getGetModelsForAttachmentsHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getModelsForAttachmentsRequest,)
- }
-)
+ body: JSON.stringify(getModelsForAttachmentsRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getModelsForAttachmentsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getModelsForAttachmentsHandlerResponse
-}
-
+ const data: getModelsForAttachmentsHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getModelsForAttachmentsHandlerResponse;
+};
export type verifyAttachmentsHandlerResponse200 = {
- data: VerifyAttachmentsResponse
- status: 200
-}
+ data: VerifyAttachmentsResponse;
+ status: 200;
+};
export type verifyAttachmentsHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type verifyAttachmentsHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type verifyAttachmentsHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type verifyAttachmentsHandlerResponseSuccess = (verifyAttachmentsHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type verifyAttachmentsHandlerResponseError = (verifyAttachmentsHandlerResponse401 | verifyAttachmentsHandlerResponse404 | verifyAttachmentsHandlerResponse500) & {
+
+export type verifyAttachmentsHandlerResponseSuccess =
+ verifyAttachmentsHandlerResponse200 & {
+ headers: Headers;
+ };
+export type verifyAttachmentsHandlerResponseError = (
+ | verifyAttachmentsHandlerResponse401
+ | verifyAttachmentsHandlerResponse404
+ | verifyAttachmentsHandlerResponse500
+) & {
headers: Headers;
};
-export type verifyAttachmentsHandlerResponse = (verifyAttachmentsHandlerResponseSuccess | verifyAttachmentsHandlerResponseError)
+export type verifyAttachmentsHandlerResponse =
+ | verifyAttachmentsHandlerResponseSuccess
+ | verifyAttachmentsHandlerResponseError;
export const getVerifyAttachmentsHandlerUrl = () => {
+ return `/attachments/verify`;
+};
-
-
-
- return `/attachments/verify`
-}
-
-export const verifyAttachmentsHandler = async (verifyAttachmentsRequest: VerifyAttachmentsRequest, options?: RequestInit): Promise<verifyAttachmentsHandlerResponse> => {
-
- const res = await fetch(getVerifyAttachmentsHandlerUrl(),
- {
+export const verifyAttachmentsHandler = async (
+ verifyAttachmentsRequest: VerifyAttachmentsRequest,
+ options?: RequestInit
+): Promise<verifyAttachmentsHandlerResponse> => {
+ const res = await fetch(getVerifyAttachmentsHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- verifyAttachmentsRequest,)
- }
-)
+ body: JSON.stringify(verifyAttachmentsRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: verifyAttachmentsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as verifyAttachmentsHandlerResponse
-}
-
+ const data: verifyAttachmentsHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as verifyAttachmentsHandlerResponse;
+};
export type getChatsForAttachmentHandlerResponse200 = {
- data: GetChatsForAttachmentResponse
- status: 200
-}
+ data: GetChatsForAttachmentResponse;
+ status: 200;
+};
export type getChatsForAttachmentHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getChatsForAttachmentHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatsForAttachmentHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getChatsForAttachmentHandlerResponseSuccess = (getChatsForAttachmentHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getChatsForAttachmentHandlerResponseError = (getChatsForAttachmentHandlerResponse401 | getChatsForAttachmentHandlerResponse404 | getChatsForAttachmentHandlerResponse500) & {
+
+export type getChatsForAttachmentHandlerResponseSuccess =
+ getChatsForAttachmentHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getChatsForAttachmentHandlerResponseError = (
+ | getChatsForAttachmentHandlerResponse401
+ | getChatsForAttachmentHandlerResponse404
+ | getChatsForAttachmentHandlerResponse500
+) & {
headers: Headers;
};
-export type getChatsForAttachmentHandlerResponse = (getChatsForAttachmentHandlerResponseSuccess | getChatsForAttachmentHandlerResponseError)
-
-export const getGetChatsForAttachmentHandlerUrl = (attachmentId: string,) => {
-
+export type getChatsForAttachmentHandlerResponse =
+ | getChatsForAttachmentHandlerResponseSuccess
+ | getChatsForAttachmentHandlerResponseError;
-
-
- return `/attachments/${attachmentId}/chats`
-}
+export const getGetChatsForAttachmentHandlerUrl = (attachmentId: string) => {
+ return `/attachments/${attachmentId}/chats`;
+};
-export const getChatsForAttachmentHandler = async (attachmentId: string, options?: RequestInit): Promise<getChatsForAttachmentHandlerResponse> => {
-
- const res = await fetch(getGetChatsForAttachmentHandlerUrl(attachmentId),
- {
+export const getChatsForAttachmentHandler = async (
+ attachmentId: string,
+ options?: RequestInit
+): Promise<getChatsForAttachmentHandlerResponse> => {
+ const res = await fetch(getGetChatsForAttachmentHandlerUrl(attachmentId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatsForAttachmentHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatsForAttachmentHandlerResponse
-}
-
+ const data: getChatsForAttachmentHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatsForAttachmentHandlerResponse;
+};
/**
* @summary Gets all the chats for a user
*/
export type getChatsHandlerResponse200 = {
- data: ChatsResponse
- status: 200
-}
+ data: ChatsResponse;
+ status: 200;
+};
export type getChatsHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getChatsHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatsHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getChatsHandlerResponseSuccess = (getChatsHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getChatsHandlerResponseSuccess = getChatsHandlerResponse200 & {
headers: Headers;
};
-export type getChatsHandlerResponseError = (getChatsHandlerResponse401 | getChatsHandlerResponse404 | getChatsHandlerResponse500) & {
+export type getChatsHandlerResponseError = (
+ | getChatsHandlerResponse401
+ | getChatsHandlerResponse404
+ | getChatsHandlerResponse500
+) & {
headers: Headers;
};
-export type getChatsHandlerResponse = (getChatsHandlerResponseSuccess | getChatsHandlerResponseError)
+export type getChatsHandlerResponse =
+ | getChatsHandlerResponseSuccess
+ | getChatsHandlerResponseError;
export const getGetChatsHandlerUrl = () => {
+ return `/chats`;
+};
-
-
-
- return `/chats`
-}
-
-export const getChatsHandler = async ( options?: RequestInit): Promise<getChatsHandlerResponse> => {
-
- const res = await fetch(getGetChatsHandlerUrl(),
- {
+export const getChatsHandler = async (
+ options?: RequestInit
+): Promise<getChatsHandlerResponse> => {
+ const res = await fetch(getGetChatsHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatsHandlerResponse
-}
-
+ const data: getChatsHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatsHandlerResponse;
+};
export type createChatHandlerResponse201 = {
- data: StringIDResponse
- status: 201
-}
+ data: StringIDResponse;
+ status: 201;
+};
export type createChatHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type createChatHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type createChatHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type createChatHandlerResponseSuccess = (createChatHandlerResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type createChatHandlerResponseSuccess = createChatHandlerResponse201 & {
headers: Headers;
};
-export type createChatHandlerResponseError = (createChatHandlerResponse401 | createChatHandlerResponse404 | createChatHandlerResponse500) & {
+export type createChatHandlerResponseError = (
+ | createChatHandlerResponse401
+ | createChatHandlerResponse404
+ | createChatHandlerResponse500
+) & {
headers: Headers;
};
-export type createChatHandlerResponse = (createChatHandlerResponseSuccess | createChatHandlerResponseError)
+export type createChatHandlerResponse =
+ | createChatHandlerResponseSuccess
+ | createChatHandlerResponseError;
export const getCreateChatHandlerUrl = () => {
+ return `/chats`;
+};
-
-
-
- return `/chats`
-}
-
-export const createChatHandler = async ( options?: RequestInit): Promise<createChatHandlerResponse> => {
-
- const res = await fetch(getCreateChatHandlerUrl(),
- {
+export const createChatHandler = async (
+ options?: RequestInit
+): Promise<createChatHandlerResponse> => {
+ const res = await fetch(getCreateChatHandlerUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createChatHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createChatHandlerResponse
-}
-
+ const data: createChatHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createChatHandlerResponse;
+};
/**
* @summary Retrieves chat history for a specific chat ID
*/
export type getChatHistoryHandlerResponse200 = {
- data: ChatHistory
- status: 200
-}
+ data: ChatHistory;
+ status: 200;
+};
export type getChatHistoryHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatHistoryHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getChatHistoryHandlerResponseSuccess = (getChatHistoryHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getChatHistoryHandlerResponseError = (getChatHistoryHandlerResponse404 | getChatHistoryHandlerResponse500) & {
+
+export type getChatHistoryHandlerResponseSuccess =
+ getChatHistoryHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getChatHistoryHandlerResponseError = (
+ | getChatHistoryHandlerResponse404
+ | getChatHistoryHandlerResponse500
+) & {
headers: Headers;
};
-export type getChatHistoryHandlerResponse = (getChatHistoryHandlerResponseSuccess | getChatHistoryHandlerResponseError)
-
-export const getGetChatHistoryHandlerUrl = (chatId: string,) => {
-
+export type getChatHistoryHandlerResponse =
+ | getChatHistoryHandlerResponseSuccess
+ | getChatHistoryHandlerResponseError;
-
-
- return `/chats/history/${chatId}`
-}
+export const getGetChatHistoryHandlerUrl = (chatId: string) => {
+ return `/chats/history/${chatId}`;
+};
-export const getChatHistoryHandler = async (chatId: string, options?: RequestInit): Promise<getChatHistoryHandlerResponse> => {
-
- const res = await fetch(getGetChatHistoryHandlerUrl(chatId),
- {
+export const getChatHistoryHandler = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<getChatHistoryHandlerResponse> => {
+ const res = await fetch(getGetChatHistoryHandlerUrl(chatId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatHistoryHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatHistoryHandlerResponse
-}
-
+ const data: getChatHistoryHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatHistoryHandlerResponse;
+};
/**
* @summary Retrieves chat history for multiple message IDs
*/
export type getChatHistoryBatchMessagesHandlerResponse200 = {
- data: ChatHistory
- status: 200
-}
+ data: ChatHistory;
+ status: 200;
+};
export type getChatHistoryBatchMessagesHandlerResponse403 = {
- data: string
- status: 403
-}
+ data: string;
+ status: 403;
+};
export type getChatHistoryBatchMessagesHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatHistoryBatchMessagesHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getChatHistoryBatchMessagesHandlerResponseSuccess = (getChatHistoryBatchMessagesHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getChatHistoryBatchMessagesHandlerResponseError = (getChatHistoryBatchMessagesHandlerResponse403 | getChatHistoryBatchMessagesHandlerResponse404 | getChatHistoryBatchMessagesHandlerResponse500) & {
+
+export type getChatHistoryBatchMessagesHandlerResponseSuccess =
+ getChatHistoryBatchMessagesHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getChatHistoryBatchMessagesHandlerResponseError = (
+ | getChatHistoryBatchMessagesHandlerResponse403
+ | getChatHistoryBatchMessagesHandlerResponse404
+ | getChatHistoryBatchMessagesHandlerResponse500
+) & {
headers: Headers;
};
-export type getChatHistoryBatchMessagesHandlerResponse = (getChatHistoryBatchMessagesHandlerResponseSuccess | getChatHistoryBatchMessagesHandlerResponseError)
+export type getChatHistoryBatchMessagesHandlerResponse =
+ | getChatHistoryBatchMessagesHandlerResponseSuccess
+ | getChatHistoryBatchMessagesHandlerResponseError;
export const getGetChatHistoryBatchMessagesHandlerUrl = () => {
+ return `/chats/history_batch_messages`;
+};
-
-
-
- return `/chats/history_batch_messages`
-}
-
-export const getChatHistoryBatchMessagesHandler = async (chatHistoryBatchMessagesRequest: ChatHistoryBatchMessagesRequest, options?: RequestInit): Promise<getChatHistoryBatchMessagesHandlerResponse> => {
-
- const res = await fetch(getGetChatHistoryBatchMessagesHandlerUrl(),
- {
+export const getChatHistoryBatchMessagesHandler = async (
+ chatHistoryBatchMessagesRequest: ChatHistoryBatchMessagesRequest,
+ options?: RequestInit
+): Promise<getChatHistoryBatchMessagesHandlerResponse> => {
+ const res = await fetch(getGetChatHistoryBatchMessagesHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- chatHistoryBatchMessagesRequest,)
- }
-)
+ body: JSON.stringify(chatHistoryBatchMessagesRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatHistoryBatchMessagesHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatHistoryBatchMessagesHandlerResponse
-}
-
+ const data: getChatHistoryBatchMessagesHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatHistoryBatchMessagesHandlerResponse;
+};
/**
* @summary Gets a particular chat by its id
*/
export type getChatHandlerResponse200 = {
- data: GetChatResponse
- status: 200
-}
+ data: GetChatResponse;
+ status: 200;
+};
export type getChatHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getChatHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getChatHandlerResponseSuccess = (getChatHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getChatHandlerResponseSuccess = getChatHandlerResponse200 & {
headers: Headers;
};
-export type getChatHandlerResponseError = (getChatHandlerResponse401 | getChatHandlerResponse404 | getChatHandlerResponse500) & {
+export type getChatHandlerResponseError = (
+ | getChatHandlerResponse401
+ | getChatHandlerResponse404
+ | getChatHandlerResponse500
+) & {
headers: Headers;
};
-export type getChatHandlerResponse = (getChatHandlerResponseSuccess | getChatHandlerResponseError)
-
-export const getGetChatHandlerUrl = (chatId: string,) => {
-
+export type getChatHandlerResponse =
+ | getChatHandlerResponseSuccess
+ | getChatHandlerResponseError;
-
-
- return `/chats/${chatId}`
-}
+export const getGetChatHandlerUrl = (chatId: string) => {
+ return `/chats/${chatId}`;
+};
-export const getChatHandler = async (chatId: string, options?: RequestInit): Promise<getChatHandlerResponse> => {
-
- const res = await fetch(getGetChatHandlerUrl(chatId),
- {
+export const getChatHandler = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<getChatHandlerResponse> => {
+ const res = await fetch(getGetChatHandlerUrl(chatId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatHandlerResponse
-}
-
+ const data: getChatHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatHandlerResponse;
+};
/**
* @summary Deletes a particular chat by its id.
Soft deletes the chat.
*/
export type deleteChatHandlerResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type deleteChatHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type deleteChatHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type deleteChatHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type deleteChatHandlerResponseSuccess = (deleteChatHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type deleteChatHandlerResponseSuccess = deleteChatHandlerResponse200 & {
headers: Headers;
};
-export type deleteChatHandlerResponseError = (deleteChatHandlerResponse401 | deleteChatHandlerResponse404 | deleteChatHandlerResponse500) & {
+export type deleteChatHandlerResponseError = (
+ | deleteChatHandlerResponse401
+ | deleteChatHandlerResponse404
+ | deleteChatHandlerResponse500
+) & {
headers: Headers;
};
-export type deleteChatHandlerResponse = (deleteChatHandlerResponseSuccess | deleteChatHandlerResponseError)
-
-export const getDeleteChatHandlerUrl = (chatId: string,) => {
-
+export type deleteChatHandlerResponse =
+ | deleteChatHandlerResponseSuccess
+ | deleteChatHandlerResponseError;
-
-
- return `/chats/${chatId}`
-}
+export const getDeleteChatHandlerUrl = (chatId: string) => {
+ return `/chats/${chatId}`;
+};
-export const deleteChatHandler = async (chatId: string, options?: RequestInit): Promise<deleteChatHandlerResponse> => {
-
- const res = await fetch(getDeleteChatHandlerUrl(chatId),
- {
+export const deleteChatHandler = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<deleteChatHandlerResponse> => {
+ const res = await fetch(getDeleteChatHandlerUrl(chatId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteChatHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteChatHandlerResponse
-}
-
+ const data: deleteChatHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteChatHandlerResponse;
+};
export type copyChatHandlerResponse201 = {
- data: StringIDResponse
- status: 201
-}
+ data: StringIDResponse;
+ status: 201;
+};
export type copyChatHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type copyChatHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type copyChatHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type copyChatHandlerResponseSuccess = (copyChatHandlerResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type copyChatHandlerResponseSuccess = copyChatHandlerResponse201 & {
headers: Headers;
};
-export type copyChatHandlerResponseError = (copyChatHandlerResponse401 | copyChatHandlerResponse404 | copyChatHandlerResponse500) & {
+export type copyChatHandlerResponseError = (
+ | copyChatHandlerResponse401
+ | copyChatHandlerResponse404
+ | copyChatHandlerResponse500
+) & {
headers: Headers;
};
-export type copyChatHandlerResponse = (copyChatHandlerResponseSuccess | copyChatHandlerResponseError)
-
-export const getCopyChatHandlerUrl = (chatId: string,) => {
+export type copyChatHandlerResponse =
+ | copyChatHandlerResponseSuccess
+ | copyChatHandlerResponseError;
+export const getCopyChatHandlerUrl = (chatId: string) => {
+ return `/chats/${chatId}/copy`;
+};
-
-
- return `/chats/${chatId}/copy`
-}
-
-export const copyChatHandler = async (chatId: string,
- copyChatRequest: CopyChatRequest, options?: RequestInit): Promise<copyChatHandlerResponse> => {
-
- const res = await fetch(getCopyChatHandlerUrl(chatId),
- {
+export const copyChatHandler = async (
+ chatId: string,
+ copyChatRequest: CopyChatRequest,
+ options?: RequestInit
+): Promise<copyChatHandlerResponse> => {
+ const res = await fetch(getCopyChatHandlerUrl(chatId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- copyChatRequest,)
- }
-)
+ body: JSON.stringify(copyChatRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: copyChatHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as copyChatHandlerResponse
-}
-
+ const data: copyChatHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as copyChatHandlerResponse;
+};
/**
* @summary Permanently deletes a chat.
*/
export type permanentlyDeleteChatResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type permanentlyDeleteChatResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type permanentlyDeleteChatResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type permanentlyDeleteChatResponse500 = {
- data: string
- status: 500
-}
-
-export type permanentlyDeleteChatResponseSuccess = (permanentlyDeleteChatResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type permanentlyDeleteChatResponseError = (permanentlyDeleteChatResponse401 | permanentlyDeleteChatResponse404 | permanentlyDeleteChatResponse500) & {
+
+export type permanentlyDeleteChatResponseSuccess =
+ permanentlyDeleteChatResponse200 & {
+ headers: Headers;
+ };
+export type permanentlyDeleteChatResponseError = (
+ | permanentlyDeleteChatResponse401
+ | permanentlyDeleteChatResponse404
+ | permanentlyDeleteChatResponse500
+) & {
headers: Headers;
};
-export type permanentlyDeleteChatResponse = (permanentlyDeleteChatResponseSuccess | permanentlyDeleteChatResponseError)
-
-export const getPermanentlyDeleteChatUrl = (chatId: string,) => {
-
+export type permanentlyDeleteChatResponse =
+ | permanentlyDeleteChatResponseSuccess
+ | permanentlyDeleteChatResponseError;
-
-
- return `/chats/${chatId}/permanent`
-}
+export const getPermanentlyDeleteChatUrl = (chatId: string) => {
+ return `/chats/${chatId}/permanent`;
+};
-export const permanentlyDeleteChat = async (chatId: string, options?: RequestInit): Promise<permanentlyDeleteChatResponse> => {
-
- const res = await fetch(getPermanentlyDeleteChatUrl(chatId),
- {
+export const permanentlyDeleteChat = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<permanentlyDeleteChatResponse> => {
+ const res = await fetch(getPermanentlyDeleteChatUrl(chatId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: permanentlyDeleteChatResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as permanentlyDeleteChatResponse
-}
-
+ const data: permanentlyDeleteChatResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as permanentlyDeleteChatResponse;
+};
/**
* @summary Deletes a specific document
*/
export type revertDeleteChatResponse200 = {
- data: SuccessResponse
- status: 200
-}
+ data: SuccessResponse;
+ status: 200;
+};
export type revertDeleteChatResponse401 = {
- data: GenericErrorResponse
- status: 401
-}
+ data: GenericErrorResponse;
+ status: 401;
+};
export type revertDeleteChatResponse404 = {
- data: GenericErrorResponse
- status: 404
-}
+ data: GenericErrorResponse;
+ status: 404;
+};
export type revertDeleteChatResponse500 = {
- data: GenericErrorResponse
- status: 500
-}
-
-export type revertDeleteChatResponseSuccess = (revertDeleteChatResponse200) & {
+ data: GenericErrorResponse;
+ status: 500;
+};
+
+export type revertDeleteChatResponseSuccess = revertDeleteChatResponse200 & {
headers: Headers;
};
-export type revertDeleteChatResponseError = (revertDeleteChatResponse401 | revertDeleteChatResponse404 | revertDeleteChatResponse500) & {
+export type revertDeleteChatResponseError = (
+ | revertDeleteChatResponse401
+ | revertDeleteChatResponse404
+ | revertDeleteChatResponse500
+) & {
headers: Headers;
};
-export type revertDeleteChatResponse = (revertDeleteChatResponseSuccess | revertDeleteChatResponseError)
-
-export const getRevertDeleteChatUrl = (chatId: string,) => {
-
-
-
+export type revertDeleteChatResponse =
+ | revertDeleteChatResponseSuccess
+ | revertDeleteChatResponseError;
- return `/chats/${chatId}/revert_delete`
-}
+export const getRevertDeleteChatUrl = (chatId: string) => {
+ return `/chats/${chatId}/revert_delete`;
+};
-export const revertDeleteChat = async (chatId: string, options?: RequestInit): Promise<revertDeleteChatResponse> => {
-
- const res = await fetch(getRevertDeleteChatUrl(chatId),
- {
+export const revertDeleteChat = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<revertDeleteChatResponse> => {
+ const res = await fetch(getRevertDeleteChatUrl(chatId), {
...options,
- method: 'PUT'
-
-
- }
-)
+ method: 'PUT',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: revertDeleteChatResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as revertDeleteChatResponse
-}
-
+ const data: revertDeleteChatResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as revertDeleteChatResponse;
+};
export type getCitationHandlerResponse200 = {
- data: DocumentTextPart
- status: 200
-}
+ data: DocumentTextPart;
+ status: 200;
+};
export type getCitationHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getCitationHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getCitationHandlerResponseSuccess = (getCitationHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getCitationHandlerResponseError = (getCitationHandlerResponse404 | getCitationHandlerResponse500) & {
+
+export type getCitationHandlerResponseSuccess =
+ getCitationHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getCitationHandlerResponseError = (
+ | getCitationHandlerResponse404
+ | getCitationHandlerResponse500
+) & {
headers: Headers;
};
-export type getCitationHandlerResponse = (getCitationHandlerResponseSuccess | getCitationHandlerResponseError)
-
-export const getGetCitationHandlerUrl = (id: string,) => {
-
+export type getCitationHandlerResponse =
+ | getCitationHandlerResponseSuccess
+ | getCitationHandlerResponseError;
-
-
- return `/citations/${id}`
-}
+export const getGetCitationHandlerUrl = (id: string) => {
+ return `/citations/${id}`;
+};
-export const getCitationHandler = async (id: string, options?: RequestInit): Promise<getCitationHandlerResponse> => {
-
- const res = await fetch(getGetCitationHandlerUrl(id),
- {
+export const getCitationHandler = async (
+ id: string,
+ options?: RequestInit
+): Promise<getCitationHandlerResponse> => {
+ const res = await fetch(getGetCitationHandlerUrl(id), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getCitationHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getCitationHandlerResponse
-}
-
+ const data: getCitationHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getCitationHandlerResponse;
+};
export type getCompletionHandlerResponse200 = {
- data: GetCompletionResponse
- status: 200
-}
+ data: GetCompletionResponse;
+ status: 200;
+};
export type getCompletionHandlerResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type getCompletionHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getCompletionHandlerResponse422 = {
- data: string
- status: 422
-}
+ data: string;
+ status: 422;
+};
export type getCompletionHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getCompletionHandlerResponseSuccess = (getCompletionHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getCompletionHandlerResponseError = (getCompletionHandlerResponse400 | getCompletionHandlerResponse401 | getCompletionHandlerResponse422 | getCompletionHandlerResponse500) & {
+
+export type getCompletionHandlerResponseSuccess =
+ getCompletionHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getCompletionHandlerResponseError = (
+ | getCompletionHandlerResponse400
+ | getCompletionHandlerResponse401
+ | getCompletionHandlerResponse422
+ | getCompletionHandlerResponse500
+) & {
headers: Headers;
};
-export type getCompletionHandlerResponse = (getCompletionHandlerResponseSuccess | getCompletionHandlerResponseError)
+export type getCompletionHandlerResponse =
+ | getCompletionHandlerResponseSuccess
+ | getCompletionHandlerResponseError;
export const getGetCompletionHandlerUrl = () => {
+ return `/completions/get_completion`;
+};
-
-
-
- return `/completions/get_completion`
-}
-
-export const getCompletionHandler = async (getCompletionRequest: GetCompletionRequest, options?: RequestInit): Promise<getCompletionHandlerResponse> => {
-
- const res = await fetch(getGetCompletionHandlerUrl(),
- {
+export const getCompletionHandler = async (
+ getCompletionRequest: GetCompletionRequest,
+ options?: RequestInit
+): Promise<getCompletionHandlerResponse> => {
+ const res = await fetch(getGetCompletionHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getCompletionRequest,)
- }
-)
+ body: JSON.stringify(getCompletionRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getCompletionHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getCompletionHandlerResponse
-}
-
+ const data: getCompletionHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getCompletionHandlerResponse;
+};
export type handlerResponse200 = {
- data: StructedOutputCompletionResponse
- status: 200
-}
+ data: StructedOutputCompletionResponse;
+ status: 200;
+};
export type handlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type handlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type handlerResponse500 = {
- data: string
- status: 500
-}
-
-export type handlerResponseSuccess = (handlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type handlerResponseSuccess = handlerResponse200 & {
headers: Headers;
};
-export type handlerResponseError = (handlerResponse401 | handlerResponse404 | handlerResponse500) & {
+export type handlerResponseError = (
+ | handlerResponse401
+ | handlerResponse404
+ | handlerResponse500
+) & {
headers: Headers;
};
-export type handlerResponse = (handlerResponseSuccess | handlerResponseError)
+export type handlerResponse = handlerResponseSuccess | handlerResponseError;
export const getHandlerUrl = () => {
+ return `/completions/structured_output`;
+};
-
-
-
- return `/completions/structured_output`
-}
-
-export const handler = async (structedOutputCompletionRequest: StructedOutputCompletionRequest, options?: RequestInit): Promise<handlerResponse> => {
-
- const res = await fetch(getHandlerUrl(),
- {
+export const handler = async (
+ structedOutputCompletionRequest: StructedOutputCompletionRequest,
+ options?: RequestInit
+): Promise<handlerResponse> => {
+ const res = await fetch(getHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- structedOutputCompletionRequest,)
- }
-)
+ body: JSON.stringify(structedOutputCompletionRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: handlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as handlerResponse
-}
-
+ const data: handlerResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as handlerResponse;
+};
export type upsertTextHandlerResponse201 = {
- data: void
- status: 201
-}
+ data: void;
+ status: 201;
+};
export type upsertTextHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type upsertTextHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type upsertTextHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type upsertTextHandlerResponseSuccess = (upsertTextHandlerResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type upsertTextHandlerResponseSuccess = upsertTextHandlerResponse201 & {
headers: Headers;
};
-export type upsertTextHandlerResponseError = (upsertTextHandlerResponse401 | upsertTextHandlerResponse404 | upsertTextHandlerResponse500) & {
+export type upsertTextHandlerResponseError = (
+ | upsertTextHandlerResponse401
+ | upsertTextHandlerResponse404
+ | upsertTextHandlerResponse500
+) & {
headers: Headers;
};
-export type upsertTextHandlerResponse = (upsertTextHandlerResponseSuccess | upsertTextHandlerResponseError)
+export type upsertTextHandlerResponse =
+ | upsertTextHandlerResponseSuccess
+ | upsertTextHandlerResponseError;
export const getUpsertTextHandlerUrl = () => {
+ return `/document_text/:document_id`;
+};
-
-
-
- return `/document_text/:document_id`
-}
-
-export const upsertTextHandler = async (createTextRequestBody: CreateTextRequestBody, options?: RequestInit): Promise<upsertTextHandlerResponse> => {
-
- const res = await fetch(getUpsertTextHandlerUrl(),
- {
+export const upsertTextHandler = async (
+ createTextRequestBody: CreateTextRequestBody,
+ options?: RequestInit
+): Promise<upsertTextHandlerResponse> => {
+ const res = await fetch(getUpsertTextHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createTextRequestBody,)
- }
-)
+ body: JSON.stringify(createTextRequestBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: upsertTextHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as upsertTextHandlerResponse
-}
-
+ const data: upsertTextHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as upsertTextHandlerResponse;
+};
/**
* @summary Health check
*/
export type healthHandlerResponse200 = {
- data: string
- status: 200
-}
-
-export type healthHandlerResponseSuccess = (healthHandlerResponse200) & {
+ data: string;
+ status: 200;
+};
+
+export type healthHandlerResponseSuccess = healthHandlerResponse200 & {
headers: Headers;
};
-;
-export type healthHandlerResponse = (healthHandlerResponseSuccess)
+export type healthHandlerResponse = healthHandlerResponseSuccess;
export const getHealthHandlerUrl = () => {
+ return `/health`;
+};
-
-
-
- return `/health`
-}
-
-export const healthHandler = async ( options?: RequestInit): Promise<healthHandlerResponse> => {
-
- const res = await fetch(getHealthHandlerUrl(),
- {
+export const healthHandler = async (
+ options?: RequestInit
+): Promise<healthHandlerResponse> => {
+ const res = await fetch(getHealthHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as healthHandlerResponse
-}
-
+ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as healthHandlerResponse;
+};
/**
* @summary Gets all the macros for a user.
*/
export type getMacrosHandlerResponse200 = {
- data: MacrosResponse
- status: 200
-}
+ data: MacrosResponse;
+ status: 200;
+};
export type getMacrosHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getMacrosHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getMacrosHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getMacrosHandlerResponseSuccess = (getMacrosHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getMacrosHandlerResponseSuccess = getMacrosHandlerResponse200 & {
headers: Headers;
};
-export type getMacrosHandlerResponseError = (getMacrosHandlerResponse401 | getMacrosHandlerResponse404 | getMacrosHandlerResponse500) & {
+export type getMacrosHandlerResponseError = (
+ | getMacrosHandlerResponse401
+ | getMacrosHandlerResponse404
+ | getMacrosHandlerResponse500
+) & {
headers: Headers;
};
-export type getMacrosHandlerResponse = (getMacrosHandlerResponseSuccess | getMacrosHandlerResponseError)
+export type getMacrosHandlerResponse =
+ | getMacrosHandlerResponseSuccess
+ | getMacrosHandlerResponseError;
export const getGetMacrosHandlerUrl = () => {
+ return `/macros`;
+};
-
-
-
- return `/macros`
-}
-
-export const getMacrosHandler = async ( options?: RequestInit): Promise<getMacrosHandlerResponse> => {
-
- const res = await fetch(getGetMacrosHandlerUrl(),
- {
+export const getMacrosHandler = async (
+ options?: RequestInit
+): Promise<getMacrosHandlerResponse> => {
+ const res = await fetch(getGetMacrosHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMacrosHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMacrosHandlerResponse
-}
-
+ const data: getMacrosHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMacrosHandlerResponse;
+};
export type createMacroHandlerResponse201 = {
- data: StringIDResponse
- status: 201
-}
+ data: StringIDResponse;
+ status: 201;
+};
export type createMacroHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type createMacroHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type createMacroHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type createMacroHandlerResponseSuccess = (createMacroHandlerResponse201) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type createMacroHandlerResponseError = (createMacroHandlerResponse401 | createMacroHandlerResponse404 | createMacroHandlerResponse500) & {
+
+export type createMacroHandlerResponseSuccess =
+ createMacroHandlerResponse201 & {
+ headers: Headers;
+ };
+export type createMacroHandlerResponseError = (
+ | createMacroHandlerResponse401
+ | createMacroHandlerResponse404
+ | createMacroHandlerResponse500
+) & {
headers: Headers;
};
-export type createMacroHandlerResponse = (createMacroHandlerResponseSuccess | createMacroHandlerResponseError)
+export type createMacroHandlerResponse =
+ | createMacroHandlerResponseSuccess
+ | createMacroHandlerResponseError;
export const getCreateMacroHandlerUrl = () => {
+ return `/macros`;
+};
-
-
-
- return `/macros`
-}
-
-export const createMacroHandler = async (createMacroRequest: CreateMacroRequest, options?: RequestInit): Promise<createMacroHandlerResponse> => {
-
- const res = await fetch(getCreateMacroHandlerUrl(),
- {
+export const createMacroHandler = async (
+ createMacroRequest: CreateMacroRequest,
+ options?: RequestInit
+): Promise<createMacroHandlerResponse> => {
+ const res = await fetch(getCreateMacroHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createMacroRequest,)
- }
-)
+ body: JSON.stringify(createMacroRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createMacroHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createMacroHandlerResponse
-}
-
+ const data: createMacroHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createMacroHandlerResponse;
+};
/**
* @summary Gets a particular macro by its id
*/
export type getMacroHandlerResponse200 = {
- data: GetMacroResponse
- status: 200
-}
+ data: GetMacroResponse;
+ status: 200;
+};
export type getMacroHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getMacroHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getMacroHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getMacroHandlerResponseSuccess = (getMacroHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getMacroHandlerResponseSuccess = getMacroHandlerResponse200 & {
headers: Headers;
};
-export type getMacroHandlerResponseError = (getMacroHandlerResponse401 | getMacroHandlerResponse404 | getMacroHandlerResponse500) & {
+export type getMacroHandlerResponseError = (
+ | getMacroHandlerResponse401
+ | getMacroHandlerResponse404
+ | getMacroHandlerResponse500
+) & {
headers: Headers;
};
-export type getMacroHandlerResponse = (getMacroHandlerResponseSuccess | getMacroHandlerResponseError)
-
-export const getGetMacroHandlerUrl = (macroPromptId: string,) => {
-
+export type getMacroHandlerResponse =
+ | getMacroHandlerResponseSuccess
+ | getMacroHandlerResponseError;
-
-
- return `/macros/${macroPromptId}`
-}
+export const getGetMacroHandlerUrl = (macroPromptId: string) => {
+ return `/macros/${macroPromptId}`;
+};
-export const getMacroHandler = async (macroPromptId: string, options?: RequestInit): Promise<getMacroHandlerResponse> => {
-
- const res = await fetch(getGetMacroHandlerUrl(macroPromptId),
- {
+export const getMacroHandler = async (
+ macroPromptId: string,
+ options?: RequestInit
+): Promise<getMacroHandlerResponse> => {
+ const res = await fetch(getGetMacroHandlerUrl(macroPromptId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMacroHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMacroHandlerResponse
-}
-
+ const data: getMacroHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMacroHandlerResponse;
+};
/**
* @summary Deletes a particular macro by its id
*/
export type deleteMacroHandlerResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type deleteMacroHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type deleteMacroHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type deleteMacroHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type deleteMacroHandlerResponseSuccess = (deleteMacroHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type deleteMacroHandlerResponseError = (deleteMacroHandlerResponse401 | deleteMacroHandlerResponse404 | deleteMacroHandlerResponse500) & {
+
+export type deleteMacroHandlerResponseSuccess =
+ deleteMacroHandlerResponse200 & {
+ headers: Headers;
+ };
+export type deleteMacroHandlerResponseError = (
+ | deleteMacroHandlerResponse401
+ | deleteMacroHandlerResponse404
+ | deleteMacroHandlerResponse500
+) & {
headers: Headers;
};
-export type deleteMacroHandlerResponse = (deleteMacroHandlerResponseSuccess | deleteMacroHandlerResponseError)
-
-export const getDeleteMacroHandlerUrl = (macroPromptId: string,) => {
+export type deleteMacroHandlerResponse =
+ | deleteMacroHandlerResponseSuccess
+ | deleteMacroHandlerResponseError;
+export const getDeleteMacroHandlerUrl = (macroPromptId: string) => {
+ return `/macros/${macroPromptId}`;
+};
-
-
- return `/macros/${macroPromptId}`
-}
-
-export const deleteMacroHandler = async (macroPromptId: string, options?: RequestInit): Promise<deleteMacroHandlerResponse> => {
-
- const res = await fetch(getDeleteMacroHandlerUrl(macroPromptId),
- {
+export const deleteMacroHandler = async (
+ macroPromptId: string,
+ options?: RequestInit
+): Promise<deleteMacroHandlerResponse> => {
+ const res = await fetch(getDeleteMacroHandlerUrl(macroPromptId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteMacroHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteMacroHandlerResponse
-}
-
+ const data: deleteMacroHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteMacroHandlerResponse;
+};
export type patchMacroHandlerResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type patchMacroHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type patchMacroHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type patchMacroHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type patchMacroHandlerResponseSuccess = (patchMacroHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type patchMacroHandlerResponseSuccess = patchMacroHandlerResponse200 & {
headers: Headers;
};
-export type patchMacroHandlerResponseError = (patchMacroHandlerResponse401 | patchMacroHandlerResponse404 | patchMacroHandlerResponse500) & {
+export type patchMacroHandlerResponseError = (
+ | patchMacroHandlerResponse401
+ | patchMacroHandlerResponse404
+ | patchMacroHandlerResponse500
+) & {
headers: Headers;
};
-export type patchMacroHandlerResponse = (patchMacroHandlerResponseSuccess | patchMacroHandlerResponseError)
-
-export const getPatchMacroHandlerUrl = (macroPromptId: string,) => {
-
+export type patchMacroHandlerResponse =
+ | patchMacroHandlerResponseSuccess
+ | patchMacroHandlerResponseError;
-
-
- return `/macros/${macroPromptId}`
-}
+export const getPatchMacroHandlerUrl = (macroPromptId: string) => {
+ return `/macros/${macroPromptId}`;
+};
-export const patchMacroHandler = async (macroPromptId: string,
- patchMacroRequest: PatchMacroRequest, options?: RequestInit): Promise<patchMacroHandlerResponse> => {
-
- const res = await fetch(getPatchMacroHandlerUrl(macroPromptId),
- {
+export const patchMacroHandler = async (
+ macroPromptId: string,
+ patchMacroRequest: PatchMacroRequest,
+ options?: RequestInit
+): Promise<patchMacroHandlerResponse> => {
+ const res = await fetch(getPatchMacroHandlerUrl(macroPromptId), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchMacroRequest,)
- }
-)
+ body: JSON.stringify(patchMacroRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchMacroHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchMacroHandlerResponse
-}
-
+ const data: patchMacroHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchMacroHandlerResponse;
+};
/**
* @summary Gets the current macro share permissions
*/
export type getMacroPermissionsHandlerResponse200 = {
- data: GetMacroPermissionsResponseV2
- status: 200
-}
+ data: GetMacroPermissionsResponseV2;
+ status: 200;
+};
export type getMacroPermissionsHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getMacroPermissionsHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getMacroPermissionsHandlerResponseSuccess = (getMacroPermissionsHandlerResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getMacroPermissionsHandlerResponseError = (getMacroPermissionsHandlerResponse404 | getMacroPermissionsHandlerResponse500) & {
+
+export type getMacroPermissionsHandlerResponseSuccess =
+ getMacroPermissionsHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getMacroPermissionsHandlerResponseError = (
+ | getMacroPermissionsHandlerResponse404
+ | getMacroPermissionsHandlerResponse500
+) & {
headers: Headers;
};
-export type getMacroPermissionsHandlerResponse = (getMacroPermissionsHandlerResponseSuccess | getMacroPermissionsHandlerResponseError)
-
-export const getGetMacroPermissionsHandlerUrl = (macroPromptId: string,) => {
-
-
-
+export type getMacroPermissionsHandlerResponse =
+ | getMacroPermissionsHandlerResponseSuccess
+ | getMacroPermissionsHandlerResponseError;
- return `/macros/${macroPromptId}/permissions`
-}
+export const getGetMacroPermissionsHandlerUrl = (macroPromptId: string) => {
+ return `/macros/${macroPromptId}/permissions`;
+};
-export const getMacroPermissionsHandler = async (macroPromptId: string, options?: RequestInit): Promise<getMacroPermissionsHandlerResponse> => {
-
- const res = await fetch(getGetMacroPermissionsHandlerUrl(macroPromptId),
- {
+export const getMacroPermissionsHandler = async (
+ macroPromptId: string,
+ options?: RequestInit
+): Promise<getMacroPermissionsHandlerResponse> => {
+ const res = await fetch(getGetMacroPermissionsHandlerUrl(macroPromptId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMacroPermissionsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMacroPermissionsHandlerResponse
-}
-
+ const data: getMacroPermissionsHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMacroPermissionsHandlerResponse;
+};
/**
* @summary Gets all available models
*/
export type getModelsHandlerResponse200 = {
- data: GetModelsResponse
- status: 200
-}
-
-export type getModelsHandlerResponseSuccess = (getModelsHandlerResponse200) & {
+ data: GetModelsResponse;
+ status: 200;
+};
+
+export type getModelsHandlerResponseSuccess = getModelsHandlerResponse200 & {
headers: Headers;
};
-;
-export type getModelsHandlerResponse = (getModelsHandlerResponseSuccess)
+export type getModelsHandlerResponse = getModelsHandlerResponseSuccess;
export const getGetModelsHandlerUrl = () => {
+ return `/models`;
+};
-
-
-
- return `/models`
-}
-
-export const getModelsHandler = async ( options?: RequestInit): Promise<getModelsHandlerResponse> => {
-
- const res = await fetch(getGetModelsHandlerUrl(),
- {
+export const getModelsHandler = async (
+ options?: RequestInit
+): Promise<getModelsHandlerResponse> => {
+ const res = await fetch(getGetModelsHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getModelsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getModelsHandlerResponse
-}
-
+ const data: getModelsHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getModelsHandlerResponse;
+};
export type getBatchPreviewResponse200 = {
- data: GetBatchPreviewResponse
- status: 200
-}
+ data: GetBatchPreviewResponse;
+ status: 200;
+};
export type getBatchPreviewResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getBatchPreviewResponse500 = {
- data: string
- status: 500
-}
-
-export type getBatchPreviewResponseSuccess = (getBatchPreviewResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getBatchPreviewResponseSuccess = getBatchPreviewResponse200 & {
headers: Headers;
};
-export type getBatchPreviewResponseError = (getBatchPreviewResponse401 | getBatchPreviewResponse500) & {
+export type getBatchPreviewResponseError = (
+ | getBatchPreviewResponse401
+ | getBatchPreviewResponse500
+) & {
headers: Headers;
};
-export type getBatchPreviewResponse = (getBatchPreviewResponseSuccess | getBatchPreviewResponseError)
+export type getBatchPreviewResponse =
+ | getBatchPreviewResponseSuccess
+ | getBatchPreviewResponseError;
export const getGetBatchPreviewUrl = () => {
+ return `/preview`;
+};
-
-
-
- return `/preview`
-}
-
-export const getBatchPreview = async (getBatchPreviewRequest: GetBatchPreviewRequest, options?: RequestInit): Promise<getBatchPreviewResponse> => {
-
- const res = await fetch(getGetBatchPreviewUrl(),
- {
+export const getBatchPreview = async (
+ getBatchPreviewRequest: GetBatchPreviewRequest,
+ options?: RequestInit
+): Promise<getBatchPreviewResponse> => {
+ const res = await fetch(getGetBatchPreviewUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getBatchPreviewRequest,)
- }
-)
+ body: JSON.stringify(getBatchPreviewRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getBatchPreviewResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getBatchPreviewResponse
-}
-
+ const data: getBatchPreviewResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getBatchPreviewResponse;
+};
export type wsHandlerResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type wsHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type wsHandlerResponseSuccess = (wsHandlerResponse200) & {
- headers: Headers;
-};
-export type wsHandlerResponseError = (wsHandlerResponse500) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type wsHandlerResponse = (wsHandlerResponseSuccess | wsHandlerResponseError)
-
-export const getWsHandlerUrl = () => {
-
-
-
-
- return `/stream`
-}
-
-export const wsHandler = async ( options?: RequestInit): Promise<wsHandlerResponse> => {
-
- const res = await fetch(getWsHandlerUrl(),
- {
- ...options,
- method: 'GET'
-
-
- }
-)
-
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: wsHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as wsHandlerResponse
-}
-
-
-
-/**
- * @summary Get all available tool schemas as JSON Schema definitions
- */
-export type getToolSchemasResponse200 = {
- data: ToolSchemasResponse
- status: 200
-}
-
-export type getToolSchemasResponse500 = {
- data: void
- status: 500
-}
-
-export type getToolSchemasResponseSuccess = (getToolSchemasResponse200) & {
+export type wsHandlerResponseSuccess = wsHandlerResponse200 & {
headers: Headers;
};
-export type getToolSchemasResponseError = (getToolSchemasResponse500) & {
+export type wsHandlerResponseError = wsHandlerResponse500 & {
headers: Headers;
};
-export type getToolSchemasResponse = (getToolSchemasResponseSuccess | getToolSchemasResponseError)
-
-export const getGetToolSchemasUrl = () => {
-
+export type wsHandlerResponse =
+ | wsHandlerResponseSuccess
+ | wsHandlerResponseError;
-
-
- return `/tools/schemas`
-}
+export const getWsHandlerUrl = () => {
+ return `/stream`;
+};
-export const getToolSchemas = async ( options?: RequestInit): Promise<getToolSchemasResponse> => {
-
- const res = await fetch(getGetToolSchemasUrl(),
- {
+export const wsHandler = async (
+ options?: RequestInit
+): Promise<wsHandlerResponse> => {
+ const res = await fetch(getWsHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getToolSchemasResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getToolSchemasResponse
-}
-
+ const data: wsHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as wsHandlerResponse;
+};
/**
* @summary Gets the current chat share permissions
*/
export type getChatPermissionsHandlerV2Response200 = {
- data: GetChatPermissionsResponseV2
- status: 200
-}
+ data: GetChatPermissionsResponseV2;
+ status: 200;
+};
export type getChatPermissionsHandlerV2Response404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChatPermissionsHandlerV2Response500 = {
- data: string
- status: 500
-}
-
-export type getChatPermissionsHandlerV2ResponseSuccess = (getChatPermissionsHandlerV2Response200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getChatPermissionsHandlerV2ResponseError = (getChatPermissionsHandlerV2Response404 | getChatPermissionsHandlerV2Response500) & {
+
+export type getChatPermissionsHandlerV2ResponseSuccess =
+ getChatPermissionsHandlerV2Response200 & {
+ headers: Headers;
+ };
+export type getChatPermissionsHandlerV2ResponseError = (
+ | getChatPermissionsHandlerV2Response404
+ | getChatPermissionsHandlerV2Response500
+) & {
headers: Headers;
};
-export type getChatPermissionsHandlerV2Response = (getChatPermissionsHandlerV2ResponseSuccess | getChatPermissionsHandlerV2ResponseError)
-
-export const getGetChatPermissionsHandlerV2Url = (chatId: string,) => {
-
+export type getChatPermissionsHandlerV2Response =
+ | getChatPermissionsHandlerV2ResponseSuccess
+ | getChatPermissionsHandlerV2ResponseError;
-
-
- return `/v2/chats/${chatId}/permissions`
-}
+export const getGetChatPermissionsHandlerV2Url = (chatId: string) => {
+ return `/v2/chats/${chatId}/permissions`;
+};
-export const getChatPermissionsHandlerV2 = async (chatId: string, options?: RequestInit): Promise<getChatPermissionsHandlerV2Response> => {
-
- const res = await fetch(getGetChatPermissionsHandlerV2Url(chatId),
- {
+export const getChatPermissionsHandlerV2 = async (
+ chatId: string,
+ options?: RequestInit
+): Promise<getChatPermissionsHandlerV2Response> => {
+ const res = await fetch(getGetChatPermissionsHandlerV2Url(chatId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChatPermissionsHandlerV2Response['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChatPermissionsHandlerV2Response
-}
+
+ const data: getChatPermissionsHandlerV2Response['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChatPermissionsHandlerV2Response;
+};
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/accessLevel.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/accessLevel.ts
index 4793d1d655..40df351d50 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/accessLevel.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/accessLevel.ts
@@ -8,8 +8,7 @@
/**
* Ordered from least to most access top -> bottom
*/
-export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
-
+export type AccessLevel = (typeof AccessLevel)[keyof typeof AccessLevel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AccessLevel = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePart.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePart.ts
index a23ee1fa87..314601a248 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePart.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePart.ts
@@ -5,8 +5,12 @@
* OpenAPI spec version: 1.0.0
*/
import type { AssistantMessagePartOneOf } from './assistantMessagePartOneOf';
-import type { AssistantMessagePartOneOfThree } from './assistantMessagePartOneOfThree';
import type { AssistantMessagePartOneOfFive } from './assistantMessagePartOneOfFive';
import type { AssistantMessagePartOneOfSeven } from './assistantMessagePartOneOfSeven';
+import type { AssistantMessagePartOneOfThree } from './assistantMessagePartOneOfThree';
-export type AssistantMessagePart = AssistantMessagePartOneOf | AssistantMessagePartOneOfThree | AssistantMessagePartOneOfFive | AssistantMessagePartOneOfSeven;
+export type AssistantMessagePart =
+ | AssistantMessagePartOneOf
+ | AssistantMessagePartOneOfThree
+ | AssistantMessagePartOneOfFive
+ | AssistantMessagePartOneOfSeven;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfFiveType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfFiveType.ts
index afba4556d2..ef1ee44aa9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AssistantMessagePartOneOfFiveType = typeof AssistantMessagePartOneOfFiveType[keyof typeof AssistantMessagePartOneOfFiveType];
-
+export type AssistantMessagePartOneOfFiveType =
+ (typeof AssistantMessagePartOneOfFiveType)[keyof typeof AssistantMessagePartOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssistantMessagePartOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfSevenType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfSevenType.ts
index 5ccf2a6bbb..c7a19da0a8 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AssistantMessagePartOneOfSevenType = typeof AssistantMessagePartOneOfSevenType[keyof typeof AssistantMessagePartOneOfSevenType];
-
+export type AssistantMessagePartOneOfSevenType =
+ (typeof AssistantMessagePartOneOfSevenType)[keyof typeof AssistantMessagePartOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssistantMessagePartOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfThreeType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfThreeType.ts
index da9bb7e464..09b444311f 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AssistantMessagePartOneOfThreeType = typeof AssistantMessagePartOneOfThreeType[keyof typeof AssistantMessagePartOneOfThreeType];
-
+export type AssistantMessagePartOneOfThreeType =
+ (typeof AssistantMessagePartOneOfThreeType)[keyof typeof AssistantMessagePartOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssistantMessagePartOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfType.ts
index e120df9384..08cfcd08d2 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/assistantMessagePartOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AssistantMessagePartOneOfType = typeof AssistantMessagePartOneOfType[keyof typeof AssistantMessagePartOneOfType];
-
+export type AssistantMessagePartOneOfType =
+ (typeof AssistantMessagePartOneOfType)[keyof typeof AssistantMessagePartOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssistantMessagePartOneOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadata.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadata.ts
index bfb6f7d4a7..435e9304a5 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadata.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadata.ts
@@ -5,9 +5,14 @@
* OpenAPI spec version: 1.0.0
*/
import type { AttachmentMetadataOneOf } from './attachmentMetadataOneOf';
-import type { AttachmentMetadataOneOfThree } from './attachmentMetadataOneOfThree';
import type { AttachmentMetadataOneOfFive } from './attachmentMetadataOneOfFive';
-import type { AttachmentMetadataOneOfSeven } from './attachmentMetadataOneOfSeven';
import type { AttachmentMetadataOneOfNine } from './attachmentMetadataOneOfNine';
+import type { AttachmentMetadataOneOfSeven } from './attachmentMetadataOneOfSeven';
+import type { AttachmentMetadataOneOfThree } from './attachmentMetadataOneOfThree';
-export type AttachmentMetadata = AttachmentMetadataOneOf | AttachmentMetadataOneOfThree | AttachmentMetadataOneOfFive | AttachmentMetadataOneOfSeven | AttachmentMetadataOneOfNine;
+export type AttachmentMetadata =
+ | AttachmentMetadataOneOf
+ | AttachmentMetadataOneOfThree
+ | AttachmentMetadataOneOfFive
+ | AttachmentMetadataOneOfSeven
+ | AttachmentMetadataOneOfNine;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOf.ts
index eb69226cf0..3c8bb84cf5 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOf.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOf.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { FileType } from './fileType';
+
import type { AttachmentMetadataOneOfType } from './attachmentMetadataOneOfType';
+import type { FileType } from './fileType';
export type AttachmentMetadataOneOf = {
/** Name of the document */
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFive.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFive.ts
index 0dc86a0f22..19ffcfa20b 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFive.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFive.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { FileType } from './fileType';
+
import type { AttachmentMetadataOneOfFiveType } from './attachmentMetadataOneOfFiveType';
+import type { FileType } from './fileType';
export type AttachmentMetadataOneOfFive = {
/** jpg | png | etc */
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFiveType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFiveType.ts
index 2e2495fb24..e3f575aad4 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentMetadataOneOfFiveType = typeof AttachmentMetadataOneOfFiveType[keyof typeof AttachmentMetadataOneOfFiveType];
-
+export type AttachmentMetadataOneOfFiveType =
+ (typeof AttachmentMetadataOneOfFiveType)[keyof typeof AttachmentMetadataOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentMetadataOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfNineType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfNineType.ts
index 005fbe51d6..956244de48 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfNineType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfNineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentMetadataOneOfNineType = typeof AttachmentMetadataOneOfNineType[keyof typeof AttachmentMetadataOneOfNineType];
-
+export type AttachmentMetadataOneOfNineType =
+ (typeof AttachmentMetadataOneOfNineType)[keyof typeof AttachmentMetadataOneOfNineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentMetadataOneOfNineType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSeven.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSeven.ts
index 2237c9ba93..dfe2eb4ff7 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSeven.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { ChannelType } from './channelType';
+
import type { AttachmentMetadataOneOfSevenType } from './attachmentMetadataOneOfSevenType';
+import type { ChannelType } from './channelType';
export type AttachmentMetadataOneOfSeven = {
channel_name: string;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSevenType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSevenType.ts
index 745143f0a0..a1ae00885c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentMetadataOneOfSevenType = typeof AttachmentMetadataOneOfSevenType[keyof typeof AttachmentMetadataOneOfSevenType];
-
+export type AttachmentMetadataOneOfSevenType =
+ (typeof AttachmentMetadataOneOfSevenType)[keyof typeof AttachmentMetadataOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentMetadataOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfThreeType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfThreeType.ts
index 58306e3ad9..5dccdc4333 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentMetadataOneOfThreeType = typeof AttachmentMetadataOneOfThreeType[keyof typeof AttachmentMetadataOneOfThreeType];
-
+export type AttachmentMetadataOneOfThreeType =
+ (typeof AttachmentMetadataOneOfThreeType)[keyof typeof AttachmentMetadataOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentMetadataOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfType.ts
index c726ad2042..46669deaac 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentMetadataOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentMetadataOneOfType = typeof AttachmentMetadataOneOfType[keyof typeof AttachmentMetadataOneOfType];
-
+export type AttachmentMetadataOneOfType =
+ (typeof AttachmentMetadataOneOfType)[keyof typeof AttachmentMetadataOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentMetadataOneOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentType.ts
index d0a51390d5..124ad89832 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/attachmentType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type AttachmentType = typeof AttachmentType[keyof typeof AttachmentType];
-
+export type AttachmentType =
+ (typeof AttachmentType)[keyof typeof AttachmentType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AttachmentType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/channelType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/channelType.ts
index dfae6ff193..3601c55f5d 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/channelType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/channelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 1.0.0
*/
-export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
-
+export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreview.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreview.ts
index 5458b69e31..8dff8393b0 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreview.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreview.ts
@@ -8,4 +8,7 @@ import type { ChatPreviewOneOf } from './chatPreviewOneOf';
import type { ChatPreviewOneOfFour } from './chatPreviewOneOfFour';
import type { ChatPreviewOneOfSeven } from './chatPreviewOneOfSeven';
-export type ChatPreview = ChatPreviewOneOf | ChatPreviewOneOfFour | ChatPreviewOneOfSeven;
+export type ChatPreview =
+ | ChatPreviewOneOf
+ | ChatPreviewOneOfFour
+ | ChatPreviewOneOfSeven;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfAllOfType.ts
index 36b16e275d..85f139fab1 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ChatPreviewOneOfAllOfType = typeof ChatPreviewOneOfAllOfType[keyof typeof ChatPreviewOneOfAllOfType];
-
+export type ChatPreviewOneOfAllOfType =
+ (typeof ChatPreviewOneOfAllOfType)[keyof typeof ChatPreviewOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChatPreviewOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFour.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFour.ts
index f873955221..b31686a93d 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFour.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFour.ts
@@ -4,7 +4,8 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { WithChatId } from './withChatId';
+
import type { ChatPreviewOneOfFourAllOf } from './chatPreviewOneOfFourAllOf';
+import type { WithChatId } from './withChatId';
export type ChatPreviewOneOfFour = WithChatId & ChatPreviewOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFourAllOfType.ts
index 38a5dd46e1..edfe3c1bd4 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ChatPreviewOneOfFourAllOfType = typeof ChatPreviewOneOfFourAllOfType[keyof typeof ChatPreviewOneOfFourAllOfType];
-
+export type ChatPreviewOneOfFourAllOfType =
+ (typeof ChatPreviewOneOfFourAllOfType)[keyof typeof ChatPreviewOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChatPreviewOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSeven.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSeven.ts
index 3f4111530a..7cbf25ca48 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSeven.ts
@@ -4,7 +4,8 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { WithChatId } from './withChatId';
+
import type { ChatPreviewOneOfSevenAllOf } from './chatPreviewOneOfSevenAllOf';
+import type { WithChatId } from './withChatId';
export type ChatPreviewOneOfSeven = WithChatId & ChatPreviewOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSevenAllOfType.ts
index 20fb904ce6..7ceba821ce 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatPreviewOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ChatPreviewOneOfSevenAllOfType = typeof ChatPreviewOneOfSevenAllOfType[keyof typeof ChatPreviewOneOfSevenAllOfType];
-
+export type ChatPreviewOneOfSevenAllOfType =
+ (typeof ChatPreviewOneOfSevenAllOfType)[keyof typeof ChatPreviewOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChatPreviewOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chatResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chatResponse.ts
index 85a932bda6..98bcf7fb28 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chatResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chatResponse.ts
@@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0
*/
import type { ChatAttachmentWithName } from './chatAttachmentWithName';
-import type { Model } from './model';
import type { ChatMessageWithAttachments } from './chatMessageWithAttachments';
import type { ChatResponseModel } from './chatResponseModel';
import type { ChatResponseProjectId } from './chatResponseProjectId';
import type { ChatResponseTokenCount } from './chatResponseTokenCount';
import type { ChatResponseWebCitationsItemItem1Item } from './chatResponseWebCitationsItemItem1Item';
+import type { Model } from './model';
export interface ChatResponse {
/**
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/conversationRecord.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/conversationRecord.ts
index b7c9b2dc8e..03491e47c0 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/conversationRecord.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/conversationRecord.ts
@@ -4,10 +4,10 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { MessageWithAttachmentSummary } from './messageWithAttachmentSummary';
+import type { MessageWithAttachments } from './messageWithAttachments';
export interface ConversationRecord {
chat_id: string;
- messages: MessageWithAttachmentSummary[];
+ messages: MessageWithAttachments[];
title: string;
}
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentCognitionServiceApiVersion.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentCognitionServiceApiVersion.ts
index adedfe4295..cac2bfe462 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentCognitionServiceApiVersion.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/documentCognitionServiceApiVersion.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type DocumentCognitionServiceApiVersion = typeof DocumentCognitionServiceApiVersion[keyof typeof DocumentCognitionServiceApiVersion];
-
+export type DocumentCognitionServiceApiVersion =
+ (typeof DocumentCognitionServiceApiVersion)[keyof typeof DocumentCognitionServiceApiVersion];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentCognitionServiceApiVersion = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOf.ts
index a6afeafbb4..265cf29e3c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOf.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOf.ts
@@ -4,7 +4,8 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { UserPdfRect } from './userPdfRect';
+
import type { DocumentReferenceOneOfAllOf } from './documentReferenceOneOfAllOf';
+import type { UserPdfRect } from './userPdfRect';
export type DocumentReferenceOneOf = UserPdfRect & DocumentReferenceOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOfAllOfKind.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOfAllOfKind.ts
index 1aaa3d7753..52b20c0e3d 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOfAllOfKind.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/documentReferenceOneOfAllOfKind.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type DocumentReferenceOneOfAllOfKind = typeof DocumentReferenceOneOfAllOfKind[keyof typeof DocumentReferenceOneOfAllOfKind];
-
+export type DocumentReferenceOneOfAllOfKind =
+ (typeof DocumentReferenceOneOfAllOfKind)[keyof typeof DocumentReferenceOneOfAllOfKind];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentReferenceOneOfAllOfKind = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummary.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummary.ts
deleted file mode 100644
index 86e9188e9a..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummary.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-import type { DocumentSummaryCreatedAt } from './documentSummaryCreatedAt';
-import type { DocumentSummaryId } from './documentSummaryId';
-
-export interface DocumentSummary {
- created_at?: DocumentSummaryCreatedAt;
- document_id: string;
- id?: DocumentSummaryId;
- summary: string;
- version_id: string;
-}
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryCreatedAt.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryCreatedAt.ts
deleted file mode 100644
index 3f95f95589..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryCreatedAt.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-
-export type DocumentSummaryCreatedAt = string | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryId.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryId.ts
deleted file mode 100644
index 310f296a6a..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/documentSummaryId.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-
-export type DocumentSummaryId = string | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/emptyResponse.ts
index 6231c21359..a1a7a719a6 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnum.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnum.ts
index 84d114f1ab..8275cf704c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnum.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnum.ts
@@ -5,8 +5,12 @@
* OpenAPI spec version: 1.0.0
*/
import type { ExtractionStatusEnumOneOf } from './extractionStatusEnumOneOf';
-import type { ExtractionStatusEnumOneOfThree } from './extractionStatusEnumOneOfThree';
import type { ExtractionStatusEnumOneOfFive } from './extractionStatusEnumOneOfFive';
import type { ExtractionStatusEnumOneOfSeven } from './extractionStatusEnumOneOfSeven';
+import type { ExtractionStatusEnumOneOfThree } from './extractionStatusEnumOneOfThree';
-export type ExtractionStatusEnum = ExtractionStatusEnumOneOf | ExtractionStatusEnumOneOfThree | ExtractionStatusEnumOneOfFive | ExtractionStatusEnumOneOfSeven;
+export type ExtractionStatusEnum =
+ | ExtractionStatusEnumOneOf
+ | ExtractionStatusEnumOneOfThree
+ | ExtractionStatusEnumOneOfFive
+ | ExtractionStatusEnumOneOfSeven;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfFiveType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfFiveType.ts
index 8a191d8feb..b2f46e673c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ExtractionStatusEnumOneOfFiveType = typeof ExtractionStatusEnumOneOfFiveType[keyof typeof ExtractionStatusEnumOneOfFiveType];
-
+export type ExtractionStatusEnumOneOfFiveType =
+ (typeof ExtractionStatusEnumOneOfFiveType)[keyof typeof ExtractionStatusEnumOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ExtractionStatusEnumOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfSevenType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfSevenType.ts
index 048aad9088..6a8e279775 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ExtractionStatusEnumOneOfSevenType = typeof ExtractionStatusEnumOneOfSevenType[keyof typeof ExtractionStatusEnumOneOfSevenType];
-
+export type ExtractionStatusEnumOneOfSevenType =
+ (typeof ExtractionStatusEnumOneOfSevenType)[keyof typeof ExtractionStatusEnumOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ExtractionStatusEnumOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfThreeType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfThreeType.ts
index 282b643f15..1ccacd02ae 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ExtractionStatusEnumOneOfThreeType = typeof ExtractionStatusEnumOneOfThreeType[keyof typeof ExtractionStatusEnumOneOfThreeType];
-
+export type ExtractionStatusEnumOneOfThreeType =
+ (typeof ExtractionStatusEnumOneOfThreeType)[keyof typeof ExtractionStatusEnumOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ExtractionStatusEnumOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfType.ts
index cc9e832808..55160c6f65 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/extractionStatusEnumOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ExtractionStatusEnumOneOfType = typeof ExtractionStatusEnumOneOfType[keyof typeof ExtractionStatusEnumOneOfType];
-
+export type ExtractionStatusEnumOneOfType =
+ (typeof ExtractionStatusEnumOneOfType)[keyof typeof ExtractionStatusEnumOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ExtractionStatusEnumOneOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
index 3ed6559efd..4e284c29d9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
@@ -21,8 +21,7 @@ For each tuple it generates:
- ContentType::mime_type() - Gets MIME type for ContentType
*/
-export type FileType = typeof FileType[keyof typeof FileType];
-
+export type FileType = (typeof FileType)[keyof typeof FileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FileType = {
@@ -210,6 +209,7 @@ export const FileType = {
rbi: 'rbi',
rs: 'rs',
scss: 'scss',
+ sass: 'sass',
shader: 'shader',
sh: 'sh',
bash: 'bash',
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessage.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessage.ts
index 6a6d2f0864..a3ddd720e5 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessage.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessage.ts
@@ -5,18 +5,32 @@
* OpenAPI spec version: 1.0.0
*/
import type { FromWebSocketMessageOneOf } from './fromWebSocketMessageOneOf';
-import type { FromWebSocketMessageOneOfFour } from './fromWebSocketMessageOneOfFour';
-import type { FromWebSocketMessageOneOfSix } from './fromWebSocketMessageOneOfSix';
import type { FromWebSocketMessageOneOfEight } from './fromWebSocketMessageOneOfEight';
-import type { FromWebSocketMessageOneOfOnezero } from './fromWebSocketMessageOneOfOnezero';
-import type { FromWebSocketMessageOneOfOnetwo } from './fromWebSocketMessageOneOfOnetwo';
+import type { FromWebSocketMessageOneOfFour } from './fromWebSocketMessageOneOfFour';
import type { FromWebSocketMessageOneOfOnefive } from './fromWebSocketMessageOneOfOnefive';
-import type { FromWebSocketMessageOneOfOneseven } from './fromWebSocketMessageOneOfOneseven';
import type { FromWebSocketMessageOneOfOnenine } from './fromWebSocketMessageOneOfOnenine';
-import type { FromWebSocketMessageOneOfTwoone } from './fromWebSocketMessageOneOfTwoone';
-import type { FromWebSocketMessageOneOfTwothree } from './fromWebSocketMessageOneOfTwothree';
+import type { FromWebSocketMessageOneOfOneseven } from './fromWebSocketMessageOneOfOneseven';
+import type { FromWebSocketMessageOneOfOnetwo } from './fromWebSocketMessageOneOfOnetwo';
+import type { FromWebSocketMessageOneOfOnezero } from './fromWebSocketMessageOneOfOnezero';
+import type { FromWebSocketMessageOneOfSix } from './fromWebSocketMessageOneOfSix';
import type { FromWebSocketMessageOneOfTwofive } from './fromWebSocketMessageOneOfTwofive';
-import type { FromWebSocketMessageOneOfTwoseven } from './fromWebSocketMessageOneOfTwoseven';
import type { FromWebSocketMessageOneOfTwonine } from './fromWebSocketMessageOneOfTwonine';
+import type { FromWebSocketMessageOneOfTwoone } from './fromWebSocketMessageOneOfTwoone';
+import type { FromWebSocketMessageOneOfTwoseven } from './fromWebSocketMessageOneOfTwoseven';
+import type { FromWebSocketMessageOneOfTwothree } from './fromWebSocketMessageOneOfTwothree';
-export type FromWebSocketMessage = FromWebSocketMessageOneOf | FromWebSocketMessageOneOfFour | FromWebSocketMessageOneOfSix | FromWebSocketMessageOneOfEight | FromWebSocketMessageOneOfOnezero | FromWebSocketMessageOneOfOnetwo | FromWebSocketMessageOneOfOnefive | FromWebSocketMessageOneOfOneseven | FromWebSocketMessageOneOfOnenine | FromWebSocketMessageOneOfTwoone | FromWebSocketMessageOneOfTwothree | FromWebSocketMessageOneOfTwofive | FromWebSocketMessageOneOfTwoseven | FromWebSocketMessageOneOfTwonine;
+export type FromWebSocketMessage =
+ | FromWebSocketMessageOneOf
+ | FromWebSocketMessageOneOfFour
+ | FromWebSocketMessageOneOfSix
+ | FromWebSocketMessageOneOfEight
+ | FromWebSocketMessageOneOfOnezero
+ | FromWebSocketMessageOneOfOnetwo
+ | FromWebSocketMessageOneOfOnefive
+ | FromWebSocketMessageOneOfOneseven
+ | FromWebSocketMessageOneOfOnenine
+ | FromWebSocketMessageOneOfTwoone
+ | FromWebSocketMessageOneOfTwothree
+ | FromWebSocketMessageOneOfTwofive
+ | FromWebSocketMessageOneOfTwoseven
+ | FromWebSocketMessageOneOfTwonine;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOf.ts
index 01992185a2..17d055b4cf 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOf.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOf.ts
@@ -4,10 +4,12 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { WebSocketError } from './webSocketError';
+
import type { FromWebSocketMessageOneOfAllOf } from './fromWebSocketMessageOneOfAllOf';
+import type { WebSocketError } from './webSocketError';
/**
* Misc error
*/
-export type FromWebSocketMessageOneOf = WebSocketError & FromWebSocketMessageOneOfAllOf;
+export type FromWebSocketMessageOneOf = WebSocketError &
+ FromWebSocketMessageOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfAllOfType.ts
index 653bf1bca4..76e3c1b216 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfAllOfType = typeof FromWebSocketMessageOneOfAllOfType[keyof typeof FromWebSocketMessageOneOfAllOfType];
-
+export type FromWebSocketMessageOneOfAllOfType =
+ (typeof FromWebSocketMessageOneOfAllOfType)[keyof typeof FromWebSocketMessageOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfEightType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfEightType.ts
index f02e1fee03..eef1e1b24d 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfEightType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfEightType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfEightType = typeof FromWebSocketMessageOneOfEightType[keyof typeof FromWebSocketMessageOneOfEightType];
-
+export type FromWebSocketMessageOneOfEightType =
+ (typeof FromWebSocketMessageOneOfEightType)[keyof typeof FromWebSocketMessageOneOfEightType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfEightType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfFourType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfFourType.ts
index fc8d31b39c..633158e9a8 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfFourType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfFourType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfFourType = typeof FromWebSocketMessageOneOfFourType[keyof typeof FromWebSocketMessageOneOfFourType];
-
+export type FromWebSocketMessageOneOfFourType =
+ (typeof FromWebSocketMessageOneOfFourType)[keyof typeof FromWebSocketMessageOneOfFourType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfFourType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnefiveType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnefiveType.ts
index 71dabf4710..8b959041dd 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnefiveType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnefiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfOnefiveType = typeof FromWebSocketMessageOneOfOnefiveType[keyof typeof FromWebSocketMessageOneOfOnefiveType];
-
+export type FromWebSocketMessageOneOfOnefiveType =
+ (typeof FromWebSocketMessageOneOfOnefiveType)[keyof typeof FromWebSocketMessageOneOfOnefiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfOnefiveType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnenineType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnenineType.ts
index 08bf956e51..2fcfccbe44 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnenineType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnenineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfOnenineType = typeof FromWebSocketMessageOneOfOnenineType[keyof typeof FromWebSocketMessageOneOfOnenineType];
-
+export type FromWebSocketMessageOneOfOnenineType =
+ (typeof FromWebSocketMessageOneOfOnenineType)[keyof typeof FromWebSocketMessageOneOfOnenineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfOnenineType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnesevenType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnesevenType.ts
index e33095aeda..cdecf4ddad 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnesevenType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnesevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfOnesevenType = typeof FromWebSocketMessageOneOfOnesevenType[keyof typeof FromWebSocketMessageOneOfOnesevenType];
-
+export type FromWebSocketMessageOneOfOnesevenType =
+ (typeof FromWebSocketMessageOneOfOnesevenType)[keyof typeof FromWebSocketMessageOneOfOnesevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfOnesevenType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwo.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwo.ts
index 09c568cf4c..11ddb70e27 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwo.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwo.ts
@@ -4,9 +4,10 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { Model } from './model';
+
import type { FromWebSocketMessageOneOfOnetwoNewModel } from './fromWebSocketMessageOneOfOnetwoNewModel';
import type { FromWebSocketMessageOneOfOnetwoType } from './fromWebSocketMessageOneOfOnetwoType';
+import type { Model } from './model';
/**
* Notifies the client that the available models have changed
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwoType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwoType.ts
index fafc01190c..338b85406c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwoType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnetwoType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfOnetwoType = typeof FromWebSocketMessageOneOfOnetwoType[keyof typeof FromWebSocketMessageOneOfOnetwoType];
-
+export type FromWebSocketMessageOneOfOnetwoType =
+ (typeof FromWebSocketMessageOneOfOnetwoType)[keyof typeof FromWebSocketMessageOneOfOnetwoType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfOnetwoType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnezeroType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnezeroType.ts
index ff56527f21..8f247208a9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnezeroType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfOnezeroType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfOnezeroType = typeof FromWebSocketMessageOneOfOnezeroType[keyof typeof FromWebSocketMessageOneOfOnezeroType];
-
+export type FromWebSocketMessageOneOfOnezeroType =
+ (typeof FromWebSocketMessageOneOfOnezeroType)[keyof typeof FromWebSocketMessageOneOfOnezeroType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfOnezeroType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfSixType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfSixType.ts
index 4a17fdac48..f20a9e3db3 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfSixType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfSixType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfSixType = typeof FromWebSocketMessageOneOfSixType[keyof typeof FromWebSocketMessageOneOfSixType];
-
+export type FromWebSocketMessageOneOfSixType =
+ (typeof FromWebSocketMessageOneOfSixType)[keyof typeof FromWebSocketMessageOneOfSixType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfSixType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwofiveType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwofiveType.ts
index e8945c39d4..812d23af95 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwofiveType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwofiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfTwofiveType = typeof FromWebSocketMessageOneOfTwofiveType[keyof typeof FromWebSocketMessageOneOfTwofiveType];
-
+export type FromWebSocketMessageOneOfTwofiveType =
+ (typeof FromWebSocketMessageOneOfTwofiveType)[keyof typeof FromWebSocketMessageOneOfTwofiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfTwofiveType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwonineType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwonineType.ts
index 9ac77df0f3..ac6a3645ae 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwonineType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwonineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfTwonineType = typeof FromWebSocketMessageOneOfTwonineType[keyof typeof FromWebSocketMessageOneOfTwonineType];
-
+export type FromWebSocketMessageOneOfTwonineType =
+ (typeof FromWebSocketMessageOneOfTwonineType)[keyof typeof FromWebSocketMessageOneOfTwonineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfTwonineType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwooneType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwooneType.ts
index d34f0cd624..7bc78c9ed2 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwooneType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwooneType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfTwooneType = typeof FromWebSocketMessageOneOfTwooneType[keyof typeof FromWebSocketMessageOneOfTwooneType];
-
+export type FromWebSocketMessageOneOfTwooneType =
+ (typeof FromWebSocketMessageOneOfTwooneType)[keyof typeof FromWebSocketMessageOneOfTwooneType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfTwooneType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwosevenType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwosevenType.ts
index 7daae0a39b..061cc24e5e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwosevenType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwosevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfTwosevenType = typeof FromWebSocketMessageOneOfTwosevenType[keyof typeof FromWebSocketMessageOneOfTwosevenType];
-
+export type FromWebSocketMessageOneOfTwosevenType =
+ (typeof FromWebSocketMessageOneOfTwosevenType)[keyof typeof FromWebSocketMessageOneOfTwosevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfTwosevenType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwothreeType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwothreeType.ts
index 241c9140e5..47ffaf22a4 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwothreeType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fromWebSocketMessageOneOfTwothreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type FromWebSocketMessageOneOfTwothreeType = typeof FromWebSocketMessageOneOfTwothreeType[keyof typeof FromWebSocketMessageOneOfTwothreeType];
-
+export type FromWebSocketMessageOneOfTwothreeType =
+ (typeof FromWebSocketMessageOneOfTwothreeType)[keyof typeof FromWebSocketMessageOneOfTwothreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FromWebSocketMessageOneOfTwothreeType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/getChatResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/getChatResponse.ts
index dd3090293b..1f79089344 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/getChatResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/getChatResponse.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { ChatResponse } from './chatResponse';
+
import type { AccessLevel } from './accessLevel';
+import type { ChatResponse } from './chatResponse';
export interface GetChatResponse {
chat: ChatResponse;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/getMacroResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/getMacroResponse.ts
index 29069a0e55..d06bffaf40 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/getMacroResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/getMacroResponse.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { MacroResponse } from './macroResponse';
+
import type { AccessLevel } from './accessLevel';
+import type { MacroResponse } from './macroResponse';
export interface GetMacroResponse {
macroItem: MacroResponse;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/getModelsForAttachmentsResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/getModelsForAttachmentsResponse.ts
index 14fcdbf54c..fe20741cb9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/getModelsForAttachmentsResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/getModelsForAttachmentsResponse.ts
@@ -4,8 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { Model } from './model';
+
import type { GetModelsForAttachmentsResponseNewModel } from './getModelsForAttachmentsResponseNewModel';
+import type { Model } from './model';
export interface GetModelsForAttachmentsResponse {
available_models: Model[];
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/getSimpleCompletionStreamPayloadContentDocumentIds.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/getSimpleCompletionStreamPayloadContentDocumentIds.ts
index 0afc42465b..5e892ed7dc 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/getSimpleCompletionStreamPayloadContentDocumentIds.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/getSimpleCompletionStreamPayloadContentDocumentIds.ts
@@ -8,4 +8,6 @@
/**
* Optional document ID to provide context
*/
-export type GetSimpleCompletionStreamPayloadContentDocumentIds = string[] | null;
+export type GetSimpleCompletionStreamPayloadContentDocumentIds =
+ | string[]
+ | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts
index cdb32532a2..06dfc1b11c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/index.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export * from './aIModel';
export * from './accessLevel';
+export * from './aIModel';
export * from './assistantMessagePart';
export * from './assistantMessagePartOneOf';
export * from './assistantMessagePartOneOfFive';
@@ -65,8 +65,8 @@ export * from './chatResponseWebCitationsItemItem1Item';
export * from './chatResponseWebCitationsItemItem1ItemDescription';
export * from './chatResponseWebCitationsItemItem1ItemFaviconUrl';
export * from './chatResponseWebCitationsItemItem1ItemImageUrl';
-export * from './chatTokenCount';
export * from './chatsResponse';
+export * from './chatTokenCount';
export * from './conversationRecord';
export * from './copyChatRequest';
export * from './createChatRequest';
@@ -84,9 +84,6 @@ export * from './documentReference';
export * from './documentReferenceOneOf';
export * from './documentReferenceOneOfAllOf';
export * from './documentReferenceOneOfAllOfKind';
-export * from './documentSummary';
-export * from './documentSummaryCreatedAt';
-export * from './documentSummaryId';
export * from './documentTextPart';
export * from './emptyResponse';
export * from './extractionStatusEnum';
@@ -162,7 +159,7 @@ export * from './macroRequiredDocs';
export * from './macroResponse';
export * from './macroResponseRequiredDocs';
export * from './macrosResponse';
-export * from './messageWithAttachmentSummary';
+export * from './messageWithAttachments';
export * from './model';
export * from './modelMetadata';
export * from './newAttachment';
@@ -214,10 +211,13 @@ export * from './stringIDResponse';
export * from './structedOutputCompletionRequest';
export * from './structedOutputCompletionResponse';
export * from './successResponse';
-export * from './summary';
-export * from './summaryOneOf';
-export * from './summaryOneOfTwo';
-export * from './summaryOneOfTwoNoSummary';
+export * from './toolSchema';
+export * from './toolSchemas';
+export * from './toolSet';
+export * from './toolSetOneOf';
+export * from './toolSetOneOfThree';
+export * from './toolSetOneOfThreeType';
+export * from './toolSetOneOfType';
export * from './toWebSocketMessage';
export * from './toWebSocketMessageOneOf';
export * from './toWebSocketMessageOneOfAllOf';
@@ -240,13 +240,6 @@ export * from './toWebSocketMessageOneOfOnezeroAllOfType';
export * from './toWebSocketMessageOneOfSeven';
export * from './toWebSocketMessageOneOfSevenAllOf';
export * from './toWebSocketMessageOneOfSevenAllOfType';
-export * from './toolSchema';
-export * from './toolSchemasResponse';
-export * from './toolSet';
-export * from './toolSetOneOf';
-export * from './toolSetOneOfThree';
-export * from './toolSetOneOfThreeType';
-export * from './toolSetOneOfType';
export * from './updateChannelSharePermission';
export * from './updateChannelSharePermissionAccessLevel';
export * from './updateOperation';
@@ -291,4 +284,4 @@ export * from './webSocketErrorOneOfTwofiveErrorType';
export * from './webSocketErrorOneOfTwotwo';
export * from './webSocketErrorOneOfTwotwoDetails';
export * from './webSocketErrorOneOfTwotwoErrorType';
-export * from './withChatId';
\ No newline at end of file
+export * from './withChatId';
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachmentSummary.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachments.ts
similarity index 57%
rename from js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachmentSummary.ts
rename to js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachments.ts
index 124895b3c0..dcada274d0 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachmentSummary.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/messageWithAttachments.ts
@@ -4,10 +4,9 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { Summary } from './summary';
-export interface MessageWithAttachmentSummary {
- attachment_summaries: Summary[];
+export interface MessageWithAttachments {
+ attachmentIds: string[];
content: string;
date: string;
}
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/model.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/model.ts
index 89cb97fb56..472770efbe 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/model.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/model.ts
@@ -1,25 +1,23 @@
/* Generated by scripts/generate-models-enum.ts
- * *DO NOT EDIT MANUALLY*
- *
- * Model names enum generated from document-cognition/models endpoint
-*/
-import {z} from 'zod';
-export type Model = typeof Model[keyof typeof Model];
+ * *DO NOT EDIT MANUALLY*
+ *
+ * Model names enum generated from document-cognition/models endpoint
+ */
+import { z } from 'zod';
+export type Model = (typeof Model)[keyof typeof Model];
export const Model = {
- "claude-haiku-4-5": "claude-haiku-4-5",
- "claude-opus-4-5": "claude-opus-4-5",
+ 'claude-haiku-4-5': 'claude-haiku-4-5',
+ 'claude-opus-4-5': 'claude-opus-4-5',
} as const;
export const AllModels: Model[] = [
- "claude-haiku-4-5",
- "claude-opus-4-5"
+ 'claude-haiku-4-5',
+ 'claude-opus-4-5',
] as const;
const values: [Model, ...Model[]] = [
-Object.values(Model)[0],
-...Object.values(Model).slice(1),
+ Object.values(Model)[0],
+ ...Object.values(Model).slice(1),
];
export const ModelEnum = z.enum(values);
-
-
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/newChatMessage.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/newChatMessage.ts
index f0ac0b7a54..792f69fde5 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/newChatMessage.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/newChatMessage.ts
@@ -4,9 +4,10 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
-import type { NewChatMessageAttachments } from './newChatMessageAttachments';
+
import type { ChatMessageContent } from './chatMessageContent';
import type { Model } from './model';
+import type { NewChatMessageAttachments } from './newChatMessageAttachments';
import type { Role } from './role';
export interface NewChatMessage {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/patchChatRequestV2SharePermission.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/patchChatRequestV2SharePermission.ts
index 804e6d7fdb..e69df5ec97 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/patchChatRequestV2SharePermission.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/patchChatRequestV2SharePermission.ts
@@ -6,4 +6,5 @@
*/
import type { UpdateSharePermissionRequestV2 } from './updateSharePermissionRequestV2';
-export type PatchChatRequestV2SharePermission = null | UpdateSharePermissionRequestV2;
+export type PatchChatRequestV2SharePermission =
+ null | UpdateSharePermissionRequestV2;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/provider.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/provider.ts
index fb67c36922..6c6c12bc07 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/provider.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/provider.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 1.0.0
*/
-export type Provider = typeof Provider[keyof typeof Provider];
-
+export type Provider = (typeof Provider)[keyof typeof Provider];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const Provider = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/role.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/role.ts
index 75dcf75e3e..d97cc98c2e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/role.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/role.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 1.0.0
*/
-export type Role = typeof Role[keyof typeof Role];
-
+export type Role = (typeof Role)[keyof typeof Role];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const Role = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOf.ts
index 991cfbb307..c2718c2adc 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOf.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOf.ts
@@ -4,9 +4,10 @@
* Document Cognition Service
* OpenAPI spec version: 1.0.0
*/
+
+import type { Model } from './model';
import type { SendChatMessagePayloadAllOfAdditionalInstructions } from './sendChatMessagePayloadAllOfAdditionalInstructions';
import type { SendChatMessagePayloadAllOfAttachments } from './sendChatMessagePayloadAllOfAttachments';
-import type { Model } from './model';
import type { ToolSet } from './toolSet';
export type SendChatMessagePayloadAllOf = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOfAttachments.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOfAttachments.ts
index ab9fc7c673..95d7a61f18 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOfAttachments.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/sendChatMessagePayloadAllOfAttachments.ts
@@ -9,4 +9,6 @@ import type { ChatAttachmentWithName } from './chatAttachmentWithName';
/**
* Use citation prompt
*/
-export type SendChatMessagePayloadAllOfAttachments = ChatAttachmentWithName[] | null;
+export type SendChatMessagePayloadAllOfAttachments =
+ | ChatAttachmentWithName[]
+ | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/sharePermissionV2ChannelSharePermissions.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
index b17e95ff7c..cd3628d7e2 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
@@ -9,4 +9,6 @@ import type { ChannelSharePermission } from './channelSharePermission';
/**
* The channel share permissions for the item
*/
-export type SharePermissionV2ChannelSharePermissions = ChannelSharePermission[] | null;
+export type SharePermissionV2ChannelSharePermissions =
+ | ChannelSharePermission[]
+ | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamError.ts
index aeea2372d7..f8a643aa1e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamError.ts
@@ -5,9 +5,14 @@
* OpenAPI spec version: 1.0.0
*/
import type { StreamErrorOneOf } from './streamErrorOneOf';
-import type { StreamErrorOneOfThree } from './streamErrorOneOfThree';
import type { StreamErrorOneOfFive } from './streamErrorOneOfFive';
-import type { StreamErrorOneOfSeven } from './streamErrorOneOfSeven';
import type { StreamErrorOneOfNine } from './streamErrorOneOfNine';
+import type { StreamErrorOneOfSeven } from './streamErrorOneOfSeven';
+import type { StreamErrorOneOfThree } from './streamErrorOneOfThree';
-export type StreamError = StreamErrorOneOf | StreamErrorOneOfThree | StreamErrorOneOfFive | StreamErrorOneOfSeven | StreamErrorOneOfNine;
+export type StreamError =
+ | StreamErrorOneOf
+ | StreamErrorOneOfThree
+ | StreamErrorOneOfFive
+ | StreamErrorOneOfSeven
+ | StreamErrorOneOfNine;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfFiveStreamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfFiveStreamError.ts
index 6757e5cf15..da7a1afa9c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfFiveStreamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfFiveStreamError.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type StreamErrorOneOfFiveStreamError = typeof StreamErrorOneOfFiveStreamError[keyof typeof StreamErrorOneOfFiveStreamError];
-
+export type StreamErrorOneOfFiveStreamError =
+ (typeof StreamErrorOneOfFiveStreamError)[keyof typeof StreamErrorOneOfFiveStreamError];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const StreamErrorOneOfFiveStreamError = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfNineStreamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfNineStreamError.ts
index 4eb5850b14..eaf9c87839 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfNineStreamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfNineStreamError.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type StreamErrorOneOfNineStreamError = typeof StreamErrorOneOfNineStreamError[keyof typeof StreamErrorOneOfNineStreamError];
-
+export type StreamErrorOneOfNineStreamError =
+ (typeof StreamErrorOneOfNineStreamError)[keyof typeof StreamErrorOneOfNineStreamError];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const StreamErrorOneOfNineStreamError = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfSevenStreamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfSevenStreamError.ts
index d473731a9e..0899b997cd 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfSevenStreamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfSevenStreamError.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type StreamErrorOneOfSevenStreamError = typeof StreamErrorOneOfSevenStreamError[keyof typeof StreamErrorOneOfSevenStreamError];
-
+export type StreamErrorOneOfSevenStreamError =
+ (typeof StreamErrorOneOfSevenStreamError)[keyof typeof StreamErrorOneOfSevenStreamError];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const StreamErrorOneOfSevenStreamError = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfStreamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfStreamError.ts
index 624b0b12ab..bc5a08be9a 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfStreamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfStreamError.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type StreamErrorOneOfStreamError = typeof StreamErrorOneOfStreamError[keyof typeof StreamErrorOneOfStreamError];
-
+export type StreamErrorOneOfStreamError =
+ (typeof StreamErrorOneOfStreamError)[keyof typeof StreamErrorOneOfStreamError];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const StreamErrorOneOfStreamError = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfThreeStreamError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfThreeStreamError.ts
index 088bb93538..5ca5904d8f 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfThreeStreamError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/streamErrorOneOfThreeStreamError.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type StreamErrorOneOfThreeStreamError = typeof StreamErrorOneOfThreeStreamError[keyof typeof StreamErrorOneOfThreeStreamError];
-
+export type StreamErrorOneOfThreeStreamError =
+ (typeof StreamErrorOneOfThreeStreamError)[keyof typeof StreamErrorOneOfThreeStreamError];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const StreamErrorOneOfThreeStreamError = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/summary.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/summary.ts
deleted file mode 100644
index e4d6429713..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/summary.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-import type { SummaryOneOf } from './summaryOneOf';
-import type { SummaryOneOfTwo } from './summaryOneOfTwo';
-
-export type Summary = SummaryOneOf | SummaryOneOfTwo;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOf.ts
deleted file mode 100644
index 3977b4565e..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOf.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-import type { DocumentSummary } from './documentSummary';
-
-export type SummaryOneOf = {
- Summary: DocumentSummary;
-};
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwo.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwo.ts
deleted file mode 100644
index 25f6f16f04..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwo.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-import type { SummaryOneOfTwoNoSummary } from './summaryOneOfTwoNoSummary';
-
-export type SummaryOneOfTwo = {
- NoSummary: SummaryOneOfTwoNoSummary;
-};
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwoNoSummary.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwoNoSummary.ts
deleted file mode 100644
index daf20a730f..0000000000
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/summaryOneOfTwoNoSummary.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * Document Cognition Service
- * OpenAPI spec version: 1.0.0
- */
-
-export type SummaryOneOfTwoNoSummary = {
- document_id: string;
-};
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessage.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessage.ts
index 390e8088dc..654948045b 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessage.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessage.ts
@@ -6,10 +6,17 @@
*/
import type { ToWebSocketMessageOneOf } from './toWebSocketMessageOneOf';
import type { ToWebSocketMessageOneOfFour } from './toWebSocketMessageOneOfFour';
-import type { ToWebSocketMessageOneOfSeven } from './toWebSocketMessageOneOfSeven';
-import type { ToWebSocketMessageOneOfOnezero } from './toWebSocketMessageOneOfOnezero';
-import type { ToWebSocketMessageOneOfOnethree } from './toWebSocketMessageOneOfOnethree';
-import type { ToWebSocketMessageOneOfOnesix } from './toWebSocketMessageOneOfOnesix';
import type { ToWebSocketMessageOneOfOnenine } from './toWebSocketMessageOneOfOnenine';
+import type { ToWebSocketMessageOneOfOnesix } from './toWebSocketMessageOneOfOnesix';
+import type { ToWebSocketMessageOneOfOnethree } from './toWebSocketMessageOneOfOnethree';
+import type { ToWebSocketMessageOneOfOnezero } from './toWebSocketMessageOneOfOnezero';
+import type { ToWebSocketMessageOneOfSeven } from './toWebSocketMessageOneOfSeven';
-export type ToWebSocketMessage = ToWebSocketMessageOneOf | ToWebSocketMessageOneOfFour | ToWebSocketMessageOneOfSeven | ToWebSocketMessageOneOfOnezero | ToWebSocketMessageOneOfOnethree | ToWebSocketMessageOneOfOnesix | ToWebSocketMessageOneOfOnenine;
+export type ToWebSocketMessage =
+ | ToWebSocketMessageOneOf
+ | ToWebSocketMessageOneOfFour
+ | ToWebSocketMessageOneOfSeven
+ | ToWebSocketMessageOneOfOnezero
+ | ToWebSocketMessageOneOfOnethree
+ | ToWebSocketMessageOneOfOnesix
+ | ToWebSocketMessageOneOfOnenine;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOf.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOf.ts
index a0aee2908b..023f8bcdc7 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOf.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOf.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfAllOf } from './toWebSocketMessageOneOfAllO
/**
* Initializes a new message in a chat for streaming
*/
-export type ToWebSocketMessageOneOf = SendChatMessagePayload & ToWebSocketMessageOneOfAllOf;
+export type ToWebSocketMessageOneOf = SendChatMessagePayload &
+ ToWebSocketMessageOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfAllOfType.ts
index 6a0cc9db67..0a08423343 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfAllOfType = typeof ToWebSocketMessageOneOfAllOfType[keyof typeof ToWebSocketMessageOneOfAllOfType];
-
+export type ToWebSocketMessageOneOfAllOfType =
+ (typeof ToWebSocketMessageOneOfAllOfType)[keyof typeof ToWebSocketMessageOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFour.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFour.ts
index 23a8f21efc..a36db3ae76 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFour.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFour.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfFourAllOf } from './toWebSocketMessageOneOf
/**
* Replace user message and restream response
*/
-export type ToWebSocketMessageOneOfFour = SendChatMessagePayload & ToWebSocketMessageOneOfFourAllOf;
+export type ToWebSocketMessageOneOfFour = SendChatMessagePayload &
+ ToWebSocketMessageOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFourAllOfType.ts
index 375ef07c7d..60423d36a0 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfFourAllOfType = typeof ToWebSocketMessageOneOfFourAllOfType[keyof typeof ToWebSocketMessageOneOfFourAllOfType];
-
+export type ToWebSocketMessageOneOfFourAllOfType =
+ (typeof ToWebSocketMessageOneOfFourAllOfType)[keyof typeof ToWebSocketMessageOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenine.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenine.ts
index eda37de569..b7c1046aa1 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenine.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenine.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfOnenineAllOf } from './toWebSocketMessageOn
/**
* stream a simple completion
*/
-export type ToWebSocketMessageOneOfOnenine = GetSimpleCompletionStreamPayload & ToWebSocketMessageOneOfOnenineAllOf;
+export type ToWebSocketMessageOneOfOnenine = GetSimpleCompletionStreamPayload &
+ ToWebSocketMessageOneOfOnenineAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenineAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenineAllOfType.ts
index 0a8b8ce0a6..20964cb070 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenineAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnenineAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfOnenineAllOfType = typeof ToWebSocketMessageOneOfOnenineAllOfType[keyof typeof ToWebSocketMessageOneOfOnenineAllOfType];
-
+export type ToWebSocketMessageOneOfOnenineAllOfType =
+ (typeof ToWebSocketMessageOneOfOnenineAllOfType)[keyof typeof ToWebSocketMessageOneOfOnenineAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfOnenineAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesix.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesix.ts
index cd5c3a6488..b9e2bf3d86 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesix.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesix.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfOnesixAllOf } from './toWebSocketMessageOne
/**
* pdf completion
*/
-export type ToWebSocketMessageOneOfOnesix = SendCompletionPayload & ToWebSocketMessageOneOfOnesixAllOf;
+export type ToWebSocketMessageOneOfOnesix = SendCompletionPayload &
+ ToWebSocketMessageOneOfOnesixAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesixAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesixAllOfType.ts
index c5c1c43372..3ac6df7898 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesixAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnesixAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfOnesixAllOfType = typeof ToWebSocketMessageOneOfOnesixAllOfType[keyof typeof ToWebSocketMessageOneOfOnesixAllOfType];
-
+export type ToWebSocketMessageOneOfOnesixAllOfType =
+ (typeof ToWebSocketMessageOneOfOnesixAllOfType)[keyof typeof ToWebSocketMessageOneOfOnesixAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfOnesixAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethree.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethree.ts
index f29b42b234..ba6cdcc56b 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethree.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethree.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfOnethreeAllOf } from './toWebSocketMessageO
/**
* Get extraction status for a given attachment
*/
-export type ToWebSocketMessageOneOfOnethree = ExtractionStatusPayload & ToWebSocketMessageOneOfOnethreeAllOf;
+export type ToWebSocketMessageOneOfOnethree = ExtractionStatusPayload &
+ ToWebSocketMessageOneOfOnethreeAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethreeAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethreeAllOfType.ts
index 9f5ac62c48..8128e871fb 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethreeAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnethreeAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfOnethreeAllOfType = typeof ToWebSocketMessageOneOfOnethreeAllOfType[keyof typeof ToWebSocketMessageOneOfOnethreeAllOfType];
-
+export type ToWebSocketMessageOneOfOnethreeAllOfType =
+ (typeof ToWebSocketMessageOneOfOnethreeAllOfType)[keyof typeof ToWebSocketMessageOneOfOnethreeAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfOnethreeAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezero.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezero.ts
index 7eb565edb8..feca0323a7 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezero.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezero.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfOnezeroAllOf } from './toWebSocketMessageOn
/**
* Select model for a given chat
*/
-export type ToWebSocketMessageOneOfOnezero = SelectModelPayload & ToWebSocketMessageOneOfOnezeroAllOf;
+export type ToWebSocketMessageOneOfOnezero = SelectModelPayload &
+ ToWebSocketMessageOneOfOnezeroAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezeroAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezeroAllOfType.ts
index 93999af2b7..dd4a96dd97 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezeroAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfOnezeroAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfOnezeroAllOfType = typeof ToWebSocketMessageOneOfOnezeroAllOfType[keyof typeof ToWebSocketMessageOneOfOnezeroAllOfType];
-
+export type ToWebSocketMessageOneOfOnezeroAllOfType =
+ (typeof ToWebSocketMessageOneOfOnezeroAllOfType)[keyof typeof ToWebSocketMessageOneOfOnezeroAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfOnezeroAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSeven.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSeven.ts
index a714f8a13b..7101c83b00 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSeven.ts
@@ -10,4 +10,5 @@ import type { ToWebSocketMessageOneOfSevenAllOf } from './toWebSocketMessageOneO
/**
* Stop streaming for a given message
*/
-export type ToWebSocketMessageOneOfSeven = StopChatMessagePayload & ToWebSocketMessageOneOfSevenAllOf;
+export type ToWebSocketMessageOneOfSeven = StopChatMessagePayload &
+ ToWebSocketMessageOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSevenAllOfType.ts
index 43473b60db..c3c6d87f39 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toWebSocketMessageOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToWebSocketMessageOneOfSevenAllOfType = typeof ToWebSocketMessageOneOfSevenAllOfType[keyof typeof ToWebSocketMessageOneOfSevenAllOfType];
-
+export type ToWebSocketMessageOneOfSevenAllOfType =
+ (typeof ToWebSocketMessageOneOfSevenAllOfType)[keyof typeof ToWebSocketMessageOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebSocketMessageOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemasResponse.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemas.ts
similarity index 84%
rename from js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemasResponse.ts
rename to js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemas.ts
index eac2473b46..f7f052bb1f 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemasResponse.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSchemas.ts
@@ -6,6 +6,6 @@
*/
import type { ToolSchema } from './toolSchema';
-export interface ToolSchemasResponse {
+export interface ToolSchemas {
schemas: ToolSchema[];
}
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfThreeType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfThreeType.ts
index e74fee0d55..52fb698a03 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToolSetOneOfThreeType = typeof ToolSetOneOfThreeType[keyof typeof ToolSetOneOfThreeType];
-
+export type ToolSetOneOfThreeType =
+ (typeof ToolSetOneOfThreeType)[keyof typeof ToolSetOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToolSetOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfType.ts
index 07f2b3eac2..c6de5f82b4 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/toolSetOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type ToolSetOneOfType = typeof ToolSetOneOfType[keyof typeof ToolSetOneOfType];
-
+export type ToolSetOneOfType =
+ (typeof ToolSetOneOfType)[keyof typeof ToolSetOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToolSetOneOfType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/updateOperation.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/updateOperation.ts
index 9c50864e9c..13986c016e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/updateOperation.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/updateOperation.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type UpdateOperation = typeof UpdateOperation[keyof typeof UpdateOperation];
-
+export type UpdateOperation =
+ (typeof UpdateOperation)[keyof typeof UpdateOperation];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UpdateOperation = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
index 5d4d8db019..d3a1dd84dc 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
@@ -9,4 +9,6 @@ import type { UpdateChannelSharePermission } from './updateChannelSharePermissio
/**
* Any channel share permissions to be created/updated/removed
*/
-export type UpdateSharePermissionRequestV2ChannelSharePermissions = UpdateChannelSharePermission[] | null;
+export type UpdateSharePermissionRequestV2ChannelSharePermissions =
+ | UpdateChannelSharePermission[]
+ | null;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
index 49160a75bd..5f7b0e8390 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
@@ -6,4 +6,5 @@
*/
import type { AccessLevel } from './accessLevel';
-export type UpdateSharePermissionRequestV2PublicAccessLevel = null | AccessLevel;
+export type UpdateSharePermissionRequestV2PublicAccessLevel =
+ null | AccessLevel;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketError.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketError.ts
index 9a9ba2075c..38b4e30d54 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketError.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketError.ts
@@ -6,15 +6,27 @@
*/
import type { WebSocketErrorOneOf } from './webSocketErrorOneOf';
import type { WebSocketErrorOneOfFour } from './webSocketErrorOneOfFour';
-import type { WebSocketErrorOneOfSeven } from './webSocketErrorOneOfSeven';
-import type { WebSocketErrorOneOfOnezero } from './webSocketErrorOneOfOnezero';
-import type { WebSocketErrorOneOfOnethree } from './webSocketErrorOneOfOnethree';
-import type { WebSocketErrorOneOfOnesix } from './webSocketErrorOneOfOnesix';
import type { WebSocketErrorOneOfOnenine } from './webSocketErrorOneOfOnenine';
-import type { WebSocketErrorOneOfTwotwo } from './webSocketErrorOneOfTwotwo';
-import type { WebSocketErrorOneOfTwofive } from './webSocketErrorOneOfTwofive';
-import type { WebSocketErrorOneOfTwoeight } from './webSocketErrorOneOfTwoeight';
-import type { WebSocketErrorOneOfThreezero } from './webSocketErrorOneOfThreezero';
+import type { WebSocketErrorOneOfOnesix } from './webSocketErrorOneOfOnesix';
+import type { WebSocketErrorOneOfOnethree } from './webSocketErrorOneOfOnethree';
+import type { WebSocketErrorOneOfOnezero } from './webSocketErrorOneOfOnezero';
+import type { WebSocketErrorOneOfSeven } from './webSocketErrorOneOfSeven';
import type { WebSocketErrorOneOfThreetwo } from './webSocketErrorOneOfThreetwo';
+import type { WebSocketErrorOneOfThreezero } from './webSocketErrorOneOfThreezero';
+import type { WebSocketErrorOneOfTwoeight } from './webSocketErrorOneOfTwoeight';
+import type { WebSocketErrorOneOfTwofive } from './webSocketErrorOneOfTwofive';
+import type { WebSocketErrorOneOfTwotwo } from './webSocketErrorOneOfTwotwo';
-export type WebSocketError = WebSocketErrorOneOf | WebSocketErrorOneOfFour | WebSocketErrorOneOfSeven | WebSocketErrorOneOfOnezero | WebSocketErrorOneOfOnethree | WebSocketErrorOneOfOnesix | WebSocketErrorOneOfOnenine | WebSocketErrorOneOfTwotwo | WebSocketErrorOneOfTwofive | WebSocketErrorOneOfTwoeight | WebSocketErrorOneOfThreezero | WebSocketErrorOneOfThreetwo;
+export type WebSocketError =
+ | WebSocketErrorOneOf
+ | WebSocketErrorOneOfFour
+ | WebSocketErrorOneOfSeven
+ | WebSocketErrorOneOfOnezero
+ | WebSocketErrorOneOfOnethree
+ | WebSocketErrorOneOfOnesix
+ | WebSocketErrorOneOfOnenine
+ | WebSocketErrorOneOfTwotwo
+ | WebSocketErrorOneOfTwofive
+ | WebSocketErrorOneOfTwoeight
+ | WebSocketErrorOneOfThreezero
+ | WebSocketErrorOneOfThreetwo;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfAllOfErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfAllOfErrorType.ts
index e37ab85e70..6c3b7f457b 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfAllOfErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfAllOfErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfAllOfErrorType = typeof WebSocketErrorOneOfAllOfErrorType[keyof typeof WebSocketErrorOneOfAllOfErrorType];
-
+export type WebSocketErrorOneOfAllOfErrorType =
+ (typeof WebSocketErrorOneOfAllOfErrorType)[keyof typeof WebSocketErrorOneOfAllOfErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfAllOfErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfFourErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfFourErrorType.ts
index 50689df223..871f3f40ad 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfFourErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfFourErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfFourErrorType = typeof WebSocketErrorOneOfFourErrorType[keyof typeof WebSocketErrorOneOfFourErrorType];
-
+export type WebSocketErrorOneOfFourErrorType =
+ (typeof WebSocketErrorOneOfFourErrorType)[keyof typeof WebSocketErrorOneOfFourErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfFourErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnenineErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnenineErrorType.ts
index 8c991de48e..bee6b7cae2 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnenineErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnenineErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfOnenineErrorType = typeof WebSocketErrorOneOfOnenineErrorType[keyof typeof WebSocketErrorOneOfOnenineErrorType];
-
+export type WebSocketErrorOneOfOnenineErrorType =
+ (typeof WebSocketErrorOneOfOnenineErrorType)[keyof typeof WebSocketErrorOneOfOnenineErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfOnenineErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesix.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesix.ts
index 4d4733393c..c23c5cb7d2 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesix.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesix.ts
@@ -7,4 +7,5 @@
import type { GenericErrorResponse } from './genericErrorResponse';
import type { WebSocketErrorOneOfOnesixAllOf } from './webSocketErrorOneOfOnesixAllOf';
-export type WebSocketErrorOneOfOnesix = GenericErrorResponse & WebSocketErrorOneOfOnesixAllOf;
+export type WebSocketErrorOneOfOnesix = GenericErrorResponse &
+ WebSocketErrorOneOfOnesixAllOf;
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesixAllOfErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesixAllOfErrorType.ts
index 1731ad9754..0275d6db7a 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesixAllOfErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnesixAllOfErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfOnesixAllOfErrorType = typeof WebSocketErrorOneOfOnesixAllOfErrorType[keyof typeof WebSocketErrorOneOfOnesixAllOfErrorType];
-
+export type WebSocketErrorOneOfOnesixAllOfErrorType =
+ (typeof WebSocketErrorOneOfOnesixAllOfErrorType)[keyof typeof WebSocketErrorOneOfOnesixAllOfErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfOnesixAllOfErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnethreeErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnethreeErrorType.ts
index 1ab0ce6596..3d33d80679 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnethreeErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnethreeErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfOnethreeErrorType = typeof WebSocketErrorOneOfOnethreeErrorType[keyof typeof WebSocketErrorOneOfOnethreeErrorType];
-
+export type WebSocketErrorOneOfOnethreeErrorType =
+ (typeof WebSocketErrorOneOfOnethreeErrorType)[keyof typeof WebSocketErrorOneOfOnethreeErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfOnethreeErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnezeroErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnezeroErrorType.ts
index 98f16d0b2f..f3dec2be0a 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnezeroErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfOnezeroErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfOnezeroErrorType = typeof WebSocketErrorOneOfOnezeroErrorType[keyof typeof WebSocketErrorOneOfOnezeroErrorType];
-
+export type WebSocketErrorOneOfOnezeroErrorType =
+ (typeof WebSocketErrorOneOfOnezeroErrorType)[keyof typeof WebSocketErrorOneOfOnezeroErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfOnezeroErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfSevenErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfSevenErrorType.ts
index e28c198cb8..ec9209839e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfSevenErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfSevenErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfSevenErrorType = typeof WebSocketErrorOneOfSevenErrorType[keyof typeof WebSocketErrorOneOfSevenErrorType];
-
+export type WebSocketErrorOneOfSevenErrorType =
+ (typeof WebSocketErrorOneOfSevenErrorType)[keyof typeof WebSocketErrorOneOfSevenErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfSevenErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreetwoErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreetwoErrorType.ts
index 80e9c11629..4f0792cba0 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreetwoErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreetwoErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfThreetwoErrorType = typeof WebSocketErrorOneOfThreetwoErrorType[keyof typeof WebSocketErrorOneOfThreetwoErrorType];
-
+export type WebSocketErrorOneOfThreetwoErrorType =
+ (typeof WebSocketErrorOneOfThreetwoErrorType)[keyof typeof WebSocketErrorOneOfThreetwoErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfThreetwoErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreezeroErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreezeroErrorType.ts
index 30b7df73bc..4c2ea35bf9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreezeroErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfThreezeroErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfThreezeroErrorType = typeof WebSocketErrorOneOfThreezeroErrorType[keyof typeof WebSocketErrorOneOfThreezeroErrorType];
-
+export type WebSocketErrorOneOfThreezeroErrorType =
+ (typeof WebSocketErrorOneOfThreezeroErrorType)[keyof typeof WebSocketErrorOneOfThreezeroErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfThreezeroErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwoeightErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwoeightErrorType.ts
index 06eebdb9ad..8288f523f8 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwoeightErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwoeightErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfTwoeightErrorType = typeof WebSocketErrorOneOfTwoeightErrorType[keyof typeof WebSocketErrorOneOfTwoeightErrorType];
-
+export type WebSocketErrorOneOfTwoeightErrorType =
+ (typeof WebSocketErrorOneOfTwoeightErrorType)[keyof typeof WebSocketErrorOneOfTwoeightErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfTwoeightErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwofiveErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwofiveErrorType.ts
index ecb8b38231..59e5f8bb94 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwofiveErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwofiveErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfTwofiveErrorType = typeof WebSocketErrorOneOfTwofiveErrorType[keyof typeof WebSocketErrorOneOfTwofiveErrorType];
-
+export type WebSocketErrorOneOfTwofiveErrorType =
+ (typeof WebSocketErrorOneOfTwofiveErrorType)[keyof typeof WebSocketErrorOneOfTwofiveErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfTwofiveErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwotwoErrorType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwotwoErrorType.ts
index f775aefb54..55a5a92f47 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwotwoErrorType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/webSocketErrorOneOfTwotwoErrorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 1.0.0
*/
-export type WebSocketErrorOneOfTwotwoErrorType = typeof WebSocketErrorOneOfTwotwoErrorType[keyof typeof WebSocketErrorOneOfTwotwoErrorType];
-
+export type WebSocketErrorOneOfTwotwoErrorType =
+ (typeof WebSocketErrorOneOfTwotwoErrorType)[keyof typeof WebSocketErrorOneOfTwotwoErrorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const WebSocketErrorOneOfTwotwoErrorType = {
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
index c27a871ef3..c61883ea4f 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
@@ -1,80 +1,485 @@
/* Generated by scripts/generate-ai-tools.ts
- * *DO NOT EDIT MANUALLY*
- *
-*/
+ * *DO NOT EDIT MANUALLY*
+ *
+ */
import { z } from 'zod';
-export const ContentSearch = z.object({ "entityTypes": z.array(z.enum(["documents","chats","emails","channels","projects"])).default([]), "query": z.string() }).strict()
+export const ContentSearch = z
+ .object({
+ entityTypes: z
+ .array(z.enum(['documents', 'chats', 'emails', 'channels', 'projects']))
+ .default([]),
+ query: z.string(),
+ })
+ .strict();
+export const SearchToolResponse = z.object({
+ results: z.array(
+ z.any().superRefine((x, ctx) => {
+ const schemas = [
+ z.object({
+ document_id: z.string().uuid(),
+ document_name: z.string(),
+ document_search_results: z.array(
+ z.object({
+ highlight: z.object({
+ bcc: z.array(z.string()).optional(),
+ cc: z.array(z.string()).optional(),
+ content: z.array(z.string()).optional(),
+ name: z.union([z.string(), z.null()]).optional(),
+ recipients: z.array(z.string()).optional(),
+ sender: z.union([z.string(), z.null()]).optional(),
+ user_id: z.union([z.string(), z.null()]).optional(),
+ }),
+ node_id: z.union([z.string(), z.null()]).optional(),
+ raw_content: z.union([z.string(), z.null()]).optional(),
+ score: z.union([z.number(), z.null()]).optional(),
+ })
+ ),
+ file_type: z.union([z.string(), z.null()]).optional(),
+ id: z.string().uuid(),
+ metadata: z
+ .union([
+ z.object({
+ created_at: z.number().int(),
+ deleted_at: z.union([z.number().int(), z.null()]).optional(),
+ project_id: z.union([z.string(), z.null()]).optional(),
+ updated_at: z.number().int(),
+ viewed_at: z.union([z.number().int(), z.null()]).optional(),
+ }),
+ z.null(),
+ ])
+ .optional(),
+ name: z.string(),
+ owner_id: z.string(),
+ sub_type: z.union([z.literal('task'), z.null()]).optional(),
+ type: z.literal('document'),
+ }),
+ z.object({
+ chat_id: z.string().uuid(),
+ chat_search_results: z.array(
+ z.object({
+ chat_message_id: z
+ .union([z.string().uuid(), z.null()])
+ .optional(),
+ highlight: z.object({
+ bcc: z.array(z.string()).optional(),
+ cc: z.array(z.string()).optional(),
+ content: z.array(z.string()).optional(),
+ name: z.union([z.string(), z.null()]).optional(),
+ recipients: z.array(z.string()).optional(),
+ sender: z.union([z.string(), z.null()]).optional(),
+ user_id: z.union([z.string(), z.null()]).optional(),
+ }),
+ role: z.union([z.string(), z.null()]).optional(),
+ score: z.union([z.number(), z.null()]).optional(),
+ })
+ ),
+ id: z.string().uuid(),
+ metadata: z
+ .union([
+ z.object({
+ created_at: z.number().int(),
+ deleted_at: z.union([z.number().int(), z.null()]).optional(),
+ project_id: z.union([z.string(), z.null()]).optional(),
+ updated_at: z.number().int(),
+ viewed_at: z.union([z.number().int(), z.null()]).optional(),
+ }),
+ z.null(),
+ ])
+ .optional(),
+ name: z.string(),
+ owner_id: z.string(),
+ type: z.literal('chat'),
+ user_id: z.string(),
+ }),
+ z.object({
+ created_at: z.number().int(),
+ email_message_search_results: z.array(
+ z.object({
+ bcc: z.array(z.string()),
+ cc: z.array(z.string()),
+ highlight: z.object({
+ bcc: z.array(z.string()).optional(),
+ cc: z.array(z.string()).optional(),
+ content: z.array(z.string()).optional(),
+ name: z.union([z.string(), z.null()]).optional(),
+ recipients: z.array(z.string()).optional(),
+ sender: z.union([z.string(), z.null()]).optional(),
+ user_id: z.union([z.string(), z.null()]).optional(),
+ }),
+ labels: z.array(z.string()),
+ message_id: z.union([z.string().uuid(), z.null()]).optional(),
+ pretty_sender: z.string(),
+ recipients: z.array(z.string()),
+ score: z.union([z.number(), z.null()]).optional(),
+ sender: z.string(),
+ sent_at: z.union([z.number().int(), z.null()]).optional(),
+ })
+ ),
+ id: z.string().uuid(),
+ name: z.union([z.string(), z.null()]).optional(),
+ owner_id: z.string(),
+ snippet: z.union([z.string(), z.null()]).optional(),
+ subject: z.union([z.string(), z.null()]).optional(),
+ thread_id: z.string().uuid(),
+ type: z.literal('email'),
+ updated_at: z.number().int(),
+ user_id: z.string(),
+ viewed_at: z.union([z.number().int(), z.null()]).optional(),
+ }),
+ z.object({
+ channel_id: z.string().uuid(),
+ channel_message_search_results: z.array(
+ z.object({
+ created_at: z.union([z.number().int(), z.null()]).optional(),
+ highlight: z.object({
+ bcc: z.array(z.string()).optional(),
+ cc: z.array(z.string()).optional(),
+ content: z.array(z.string()).optional(),
+ name: z.union([z.string(), z.null()]).optional(),
+ recipients: z.array(z.string()).optional(),
+ sender: z.union([z.string(), z.null()]).optional(),
+ user_id: z.union([z.string(), z.null()]).optional(),
+ }),
+ message_id: z.union([z.string().uuid(), z.null()]).optional(),
+ score: z.union([z.number(), z.null()]).optional(),
+ sender_id: z.union([z.string(), z.null()]).optional(),
+ thread_id: z.union([z.string().uuid(), z.null()]).optional(),
+ updated_at: z.union([z.number().int(), z.null()]).optional(),
+ })
+ ),
+ channel_type: z.string(),
+ id: z.string().uuid(),
+ metadata: z
+ .union([
+ z.object({
+ created_at: z.number().int(),
+ interacted_at: z.union([z.number().int(), z.null()]).optional(),
+ updated_at: z.number().int(),
+ viewed_at: z.union([z.number().int(), z.null()]).optional(),
+ }),
+ z.null(),
+ ])
+ .optional(),
+ owner_id: z.union([z.string(), z.null()]).optional(),
+ type: z.literal('channel'),
+ }),
+ z.object({
+ created_at: z.number().int(),
+ id: z.string().uuid(),
+ metadata: z
+ .union([
+ z.object({
+ created_at: z.number().int(),
+ deleted_at: z.union([z.number().int(), z.null()]).optional(),
+ parent_project_id: z.union([z.string(), z.null()]).optional(),
+ updated_at: z.number().int(),
+ viewed_at: z.union([z.number().int(), z.null()]).optional(),
+ }),
+ z.null(),
+ ])
+ .optional(),
+ name: z.string(),
+ owner_id: z.string(),
+ project_search_results: z.array(
+ z.object({
+ highlight: z.object({
+ bcc: z.array(z.string()).optional(),
+ cc: z.array(z.string()).optional(),
+ content: z.array(z.string()).optional(),
+ name: z.union([z.string(), z.null()]).optional(),
+ recipients: z.array(z.string()).optional(),
+ sender: z.union([z.string(), z.null()]).optional(),
+ user_id: z.union([z.string(), z.null()]).optional(),
+ }),
+ score: z.union([z.number(), z.null()]).optional(),
+ })
+ ),
+ type: z.literal('project'),
+ updated_at: z.number().int(),
+ }),
+ ];
+ const errors = schemas.reduce<z.ZodError[]>(
+ (errors, schema) =>
+ ((result) => (result.error ? [...errors, result.error] : errors))(
+ schema.safeParse(x)
+ ),
+ []
+ );
+ if (schemas.length - errors.length !== 1) {
+ ctx.addIssue({
+ path: ctx.path,
+ code: 'invalid_union',
+ unionErrors: errors,
+ message: 'Invalid input: Should pass single schema',
+ });
+ }
+ })
+ ),
+});
-export const SearchToolResponse = z.object({ "results": z.array(z.any().superRefine((x, ctx) => {
- const schemas = [z.object({ "document_id": z.string().uuid(), "document_name": z.string(), "document_search_results": z.array(z.object({ "highlight": z.object({ "bcc": z.array(z.string()).optional(), "cc": z.array(z.string()).optional(), "content": z.array(z.string()).optional(), "name": z.union([z.string(), z.null()]).optional(), "recipients": z.array(z.string()).optional(), "sender": z.union([z.string(), z.null()]).optional(), "user_id": z.union([z.string(), z.null()]).optional() }), "node_id": z.union([z.string(), z.null()]).optional(), "raw_content": z.union([z.string(), z.null()]).optional(), "score": z.union([z.number(), z.null()]).optional() })), "file_type": z.union([z.string(), z.null()]).optional(), "id": z.string().uuid(), "metadata": z.union([z.object({ "created_at": z.number().int(), "deleted_at": z.union([z.number().int(), z.null()]).optional(), "project_id": z.union([z.string(), z.null()]).optional(), "updated_at": z.number().int(), "viewed_at": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "name": z.string(), "owner_id": z.string(), "sub_type": z.union([z.literal("task"), z.null()]).optional(), "type": z.literal("document") }), z.object({ "chat_id": z.string().uuid(), "chat_search_results": z.array(z.object({ "chat_message_id": z.union([z.string().uuid(), z.null()]).optional(), "highlight": z.object({ "bcc": z.array(z.string()).optional(), "cc": z.array(z.string()).optional(), "content": z.array(z.string()).optional(), "name": z.union([z.string(), z.null()]).optional(), "recipients": z.array(z.string()).optional(), "sender": z.union([z.string(), z.null()]).optional(), "user_id": z.union([z.string(), z.null()]).optional() }), "role": z.union([z.string(), z.null()]).optional(), "score": z.union([z.number(), z.null()]).optional() })), "id": z.string().uuid(), "metadata": z.union([z.object({ "created_at": z.number().int(), "deleted_at": z.union([z.number().int(), z.null()]).optional(), "project_id": z.union([z.string(), z.null()]).optional(), "updated_at": z.number().int(), "viewed_at": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "name": z.string(), "owner_id": z.string(), "type": z.literal("chat"), "user_id": z.string() }), z.object({ "created_at": z.number().int(), "email_message_search_results": z.array(z.object({ "bcc": z.array(z.string()), "cc": z.array(z.string()), "highlight": z.object({ "bcc": z.array(z.string()).optional(), "cc": z.array(z.string()).optional(), "content": z.array(z.string()).optional(), "name": z.union([z.string(), z.null()]).optional(), "recipients": z.array(z.string()).optional(), "sender": z.union([z.string(), z.null()]).optional(), "user_id": z.union([z.string(), z.null()]).optional() }), "labels": z.array(z.string()), "message_id": z.union([z.string().uuid(), z.null()]).optional(), "pretty_sender": z.string(), "recipients": z.array(z.string()), "score": z.union([z.number(), z.null()]).optional(), "sender": z.string(), "sent_at": z.union([z.number().int(), z.null()]).optional() })), "id": z.string().uuid(), "name": z.union([z.string(), z.null()]).optional(), "owner_id": z.string(), "snippet": z.union([z.string(), z.null()]).optional(), "subject": z.union([z.string(), z.null()]).optional(), "thread_id": z.string().uuid(), "type": z.literal("email"), "updated_at": z.number().int(), "user_id": z.string(), "viewed_at": z.union([z.number().int(), z.null()]).optional() }), z.object({ "channel_id": z.string().uuid(), "channel_message_search_results": z.array(z.object({ "created_at": z.union([z.number().int(), z.null()]).optional(), "highlight": z.object({ "bcc": z.array(z.string()).optional(), "cc": z.array(z.string()).optional(), "content": z.array(z.string()).optional(), "name": z.union([z.string(), z.null()]).optional(), "recipients": z.array(z.string()).optional(), "sender": z.union([z.string(), z.null()]).optional(), "user_id": z.union([z.string(), z.null()]).optional() }), "message_id": z.union([z.string().uuid(), z.null()]).optional(), "score": z.union([z.number(), z.null()]).optional(), "sender_id": z.union([z.string(), z.null()]).optional(), "thread_id": z.union([z.string().uuid(), z.null()]).optional(), "updated_at": z.union([z.number().int(), z.null()]).optional() })), "channel_type": z.string(), "id": z.string().uuid(), "metadata": z.union([z.object({ "created_at": z.number().int(), "interacted_at": z.union([z.number().int(), z.null()]).optional(), "updated_at": z.number().int(), "viewed_at": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "owner_id": z.union([z.string(), z.null()]).optional(), "type": z.literal("channel") }), z.object({ "created_at": z.number().int(), "id": z.string().uuid(), "metadata": z.union([z.object({ "created_at": z.number().int(), "deleted_at": z.union([z.number().int(), z.null()]).optional(), "parent_project_id": z.union([z.string(), z.null()]).optional(), "updated_at": z.number().int(), "viewed_at": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "name": z.string(), "owner_id": z.string(), "project_search_results": z.array(z.object({ "highlight": z.object({ "bcc": z.array(z.string()).optional(), "cc": z.array(z.string()).optional(), "content": z.array(z.string()).optional(), "name": z.union([z.string(), z.null()]).optional(), "recipients": z.array(z.string()).optional(), "sender": z.union([z.string(), z.null()]).optional(), "user_id": z.union([z.string(), z.null()]).optional() }), "score": z.union([z.number(), z.null()]).optional() })), "type": z.literal("project"), "updated_at": z.number().int() })];
- const errors = schemas.reduce<z.ZodError[]>(
- (errors, schema) =>
- ((result) =>
- result.error ? [...errors, result.error] : errors)(
- schema.safeParse(x),
- ),
- [],
- );
- if (schemas.length - errors.length !== 1) {
- ctx.addIssue({
- path: ctx.path,
- code: "invalid_union",
- unionErrors: errors,
- message: "Invalid input: Should pass single schema",
- });
- }
- })) })
-
-
-export const ListDocuments = z.object({ "exhaustiveSearch": z.boolean().default(false), "fileTypes": z.union([z.array(z.string()), z.null()]), "minAccessLevel": z.union([z.literal("view"), z.literal("comment"), z.literal("edit"), z.literal("owner"), z.literal(null)]), "pageOffset": z.number().int().default(0), "pageSize": z.number().int().default(50) }).strict()
-
+export const ListDocuments = z
+ .object({
+ exhaustiveSearch: z.boolean().default(false),
+ fileTypes: z.union([z.array(z.string()), z.null()]),
+ minAccessLevel: z.union([
+ z.literal('view'),
+ z.literal('comment'),
+ z.literal('edit'),
+ z.literal('owner'),
+ z.literal(null),
+ ]),
+ pageOffset: z.number().int().default(0),
+ pageSize: z.number().int().default(50),
+ })
+ .strict();
-export const ListDocumentsResponse = z.object({ "results": z.array(z.object({ "access_level": z.enum(["view","comment","edit","owner"]), "created_at": z.string().datetime({ offset: true }), "deleted_at": z.union([z.string().datetime({ offset: true }), z.null()]).optional(), "document_id": z.string(), "document_name": z.string(), "file_type": z.union([z.string(), z.null()]).optional(), "owner": z.string(), "project_id": z.union([z.string(), z.null()]).optional(), "updated_at": z.string().datetime({ offset: true }) })), "resultsReturned": z.number().int().gte(0), "totalResults": z.number().int().gte(0) })
+export const ListDocumentsResponse = z.object({
+ results: z.array(
+ z.object({
+ access_level: z.enum(['view', 'comment', 'edit', 'owner']),
+ created_at: z.string().datetime({ offset: true }),
+ deleted_at: z
+ .union([z.string().datetime({ offset: true }), z.null()])
+ .optional(),
+ document_id: z.string(),
+ document_name: z.string(),
+ file_type: z.union([z.string(), z.null()]).optional(),
+ owner: z.string(),
+ project_id: z.union([z.string(), z.null()]).optional(),
+ updated_at: z.string().datetime({ offset: true }),
+ })
+ ),
+ resultsReturned: z.number().int().gte(0),
+ totalResults: z.number().int().gte(0),
+});
+export const ListEmails = z
+ .object({
+ cursor: z.union([z.string(), z.null()]).default(null),
+ limit: z.number().int().default(20),
+ sortMethod: z
+ .enum(['viewed_at', 'updated_at', 'created_at', 'viewed_updated'])
+ .default('viewed_at'),
+ view: z
+ .object({
+ standardLabel: z.union([
+ z.literal('Inbox'),
+ z.literal('Sent'),
+ z.literal('Drafts'),
+ z.literal('Starred'),
+ z.literal('All'),
+ z.literal('Important'),
+ z.literal('Other'),
+ z.literal(null),
+ ]),
+ userLabel: z.union([z.string(), z.null()]),
+ })
+ .strict()
+ .default({ standardLabel: null, userLabel: null }),
+ })
+ .strict();
-export const ListEmails = z.object({ "cursor": z.union([z.string(), z.null()]).default(null), "limit": z.number().int().default(20), "sortMethod": z.enum(["viewed_at","updated_at","created_at","viewed_updated"]).default("viewed_at"), "view": z.object({ "standardLabel": z.union([z.literal("Inbox"), z.literal("Sent"), z.literal("Drafts"), z.literal("Starred"), z.literal("All"), z.literal("Important"), z.literal("Other"), z.literal(null)]), "userLabel": z.union([z.string(), z.null()]) }).strict().default({"standardLabel":null,"userLabel":null}) }).strict()
+export const ApiPaginatedThreadCursor = z.object({
+ items: z.array(
+ z.object({
+ attachments: z.array(
+ z.object({
+ contentId: z.union([z.string(), z.null()]).optional(),
+ createdAt: z.number().int(),
+ filename: z.union([z.string(), z.null()]).optional(),
+ id: z.string().uuid(),
+ messageId: z.string().uuid(),
+ mimeType: z.union([z.string(), z.null()]).optional(),
+ providerAttachmentId: z.union([z.string(), z.null()]).optional(),
+ sizeBytes: z.union([z.number().int(), z.null()]).optional(),
+ })
+ ),
+ contacts: z.array(
+ z.object({
+ emailAddress: z.union([z.string(), z.null()]).optional(),
+ id: z.string().uuid(),
+ linkId: z.string().uuid(),
+ name: z.union([z.string(), z.null()]).optional(),
+ sfsPhotoUrl: z.union([z.string(), z.null()]).optional(),
+ })
+ ),
+ createdAt: z.number().int(),
+ frecencyScore: z.union([z.number(), z.null()]).optional(),
+ id: z.string().uuid(),
+ inboxVisible: z.boolean(),
+ isDraft: z.boolean(),
+ isImportant: z.boolean(),
+ isRead: z.boolean(),
+ labels: z.array(
+ z.object({
+ createdAt: z.string().datetime({ offset: true }),
+ id: z.string().uuid(),
+ labelListVisibility: z.enum([
+ 'LabelShow',
+ 'LabelShowIfUnread',
+ 'LabelHide',
+ ]),
+ linkId: z.string().uuid(),
+ messageListVisibility: z.enum(['Show', 'Hide']),
+ name: z.string(),
+ providerLabelId: z.string(),
+ type: z.enum(['System', 'User']),
+ })
+ ),
+ macroAttachments: z.array(
+ z.object({
+ dbId: z.string().uuid(),
+ itemId: z.string().uuid(),
+ itemType: z.string(),
+ messageId: z.string().uuid(),
+ })
+ ),
+ metadata: z.object({
+ calendar_invite: z.boolean(),
+ generic_sender: z.boolean(),
+ known_sender: z.boolean(),
+ tabular: z.boolean(),
+ }),
+ name: z.union([z.string(), z.null()]).optional(),
+ ownerId: z.string(),
+ providerId: z.union([z.string(), z.null()]).optional(),
+ senderEmail: z.union([z.string(), z.null()]).optional(),
+ senderName: z.union([z.string(), z.null()]).optional(),
+ senderPhotoUrl: z.union([z.string(), z.null()]).optional(),
+ snippet: z.union([z.string(), z.null()]).optional(),
+ sortTs: z.number().int(),
+ updatedAt: z.number().int(),
+ viewedAt: z.union([z.number().int(), z.null()]).optional(),
+ })
+ ),
+ next_cursor: z.union([z.string(), z.null()]).optional(),
+});
+export const MarkdownRewrite = z
+ .object({ instructions: z.string(), markdown_file_id: z.string() })
+ .strict();
-export const ApiPaginatedThreadCursor = z.object({ "items": z.array(z.object({ "attachments": z.array(z.object({ "contentId": z.union([z.string(), z.null()]).optional(), "createdAt": z.number().int(), "filename": z.union([z.string(), z.null()]).optional(), "id": z.string().uuid(), "messageId": z.string().uuid(), "mimeType": z.union([z.string(), z.null()]).optional(), "providerAttachmentId": z.union([z.string(), z.null()]).optional(), "sizeBytes": z.union([z.number().int(), z.null()]).optional() })), "contacts": z.array(z.object({ "emailAddress": z.union([z.string(), z.null()]).optional(), "id": z.string().uuid(), "linkId": z.string().uuid(), "name": z.union([z.string(), z.null()]).optional(), "sfsPhotoUrl": z.union([z.string(), z.null()]).optional() })), "createdAt": z.number().int(), "frecencyScore": z.union([z.number(), z.null()]).optional(), "id": z.string().uuid(), "inboxVisible": z.boolean(), "isDraft": z.boolean(), "isImportant": z.boolean(), "isRead": z.boolean(), "labels": z.array(z.object({ "createdAt": z.string().datetime({ offset: true }), "id": z.string().uuid(), "labelListVisibility": z.enum(["LabelShow","LabelShowIfUnread","LabelHide"]), "linkId": z.string().uuid(), "messageListVisibility": z.enum(["Show","Hide"]), "name": z.string(), "providerLabelId": z.string(), "type": z.enum(["System","User"]) })), "macroAttachments": z.array(z.object({ "dbId": z.string().uuid(), "itemId": z.string().uuid(), "itemType": z.string(), "messageId": z.string().uuid() })), "metadata": z.object({ "calendar_invite": z.boolean(), "generic_sender": z.boolean(), "known_sender": z.boolean(), "tabular": z.boolean() }), "name": z.union([z.string(), z.null()]).optional(), "ownerId": z.string(), "providerId": z.union([z.string(), z.null()]).optional(), "senderEmail": z.union([z.string(), z.null()]).optional(), "senderName": z.union([z.string(), z.null()]).optional(), "senderPhotoUrl": z.union([z.string(), z.null()]).optional(), "snippet": z.union([z.string(), z.null()]).optional(), "sortTs": z.number().int(), "updatedAt": z.number().int(), "viewedAt": z.union([z.number().int(), z.null()]).optional() })), "next_cursor": z.union([z.string(), z.null()]).optional() })
+export const AIDiffResponse = z
+ .object({
+ diffs: z.array(
+ z
+ .object({
+ markdown_text: z.string(),
+ node_key: z.string(),
+ operation: z.string(),
+ })
+ .strict()
+ ),
+ })
+ .strict();
+export const NameSearch = z
+ .object({
+ entityTypes: z
+ .array(z.enum(['documents', 'chats', 'emails', 'channels', 'projects']))
+ .default([]),
+ name: z.string(),
+ })
+ .strict();
-export const MarkdownRewrite = z.object({ "instructions": z.string(), "markdown_file_id": z.string() }).strict()
+export const Read = z
+ .object({
+ contentType: z.enum([
+ 'document',
+ 'channel',
+ 'channel-message',
+ 'chat-thread',
+ 'chat-message',
+ 'email-thread',
+ 'email-message',
+ 'project',
+ ]),
+ ids: z.array(z.string()),
+ messagesSince: z.union([z.string().datetime({ offset: true }), z.null()]),
+ })
+ .strict();
-
-export const AIDiffResponse = z.object({ "diffs": z.array(z.object({ "markdown_text": z.string(), "node_key": z.string(), "operation": z.string() }).strict()) }).strict()
-
-
-export const NameSearch = z.object({ "entityTypes": z.array(z.enum(["documents","chats","emails","channels","projects"])).default([]), "name": z.string() }).strict()
-
-
-export const Read = z.object({ "contentType": z.enum(["document","channel","channel-message","chat-thread","chat-message","email-thread","email-message","project"]), "ids": z.array(z.string()), "messagesSince": z.union([z.string().datetime({ offset: true }), z.null()]) }).strict()
-
-
-export const ReadResponse = z.object({ "content": z.any().superRefine((x, ctx) => {
- const schemas = [z.object({ "documents": z.array(z.object({ "formattedDocument": z.string() })), "type": z.literal("documents") }), z.object({ "channel_id": z.string(), "channel_name": z.union([z.string(), z.null()]).optional(), "transcript": z.string(), "type": z.literal("channel") }), z.object({ "conversation": z.array(z.object({ "chat_id": z.string(), "messages": z.array(z.object({ "attachmentIds": z.array(z.string()), "content": z.string(), "date": z.string().datetime({ offset: true }) })), "title": z.string() })), "type": z.literal("chat") }), z.object({ "messages": z.array(z.object({ "bcc": z.array(z.string()), "cc": z.array(z.string()), "content": z.string(), "messageId": z.string(), "recipients": z.array(z.string()), "sender": z.string(), "sentAt": z.union([z.string().datetime({ offset: true }), z.null()]).optional() })), "subject": z.union([z.string(), z.null()]).optional(), "thread_id": z.string(), "type": z.literal("email") }), z.object({ "formatted_preview": z.string(), "type": z.literal("itemPreviews") })];
+export const ReadResponse = z.object({
+ content: z.any().superRefine((x, ctx) => {
+ const schemas = [
+ z.object({
+ documents: z.array(z.object({ formattedDocument: z.string() })),
+ type: z.literal('documents'),
+ }),
+ z.object({
+ channel_id: z.string(),
+ channel_name: z.union([z.string(), z.null()]).optional(),
+ transcript: z.string(),
+ type: z.literal('channel'),
+ }),
+ z.object({
+ conversation: z.array(
+ z.object({
+ chat_id: z.string(),
+ messages: z.array(
+ z.object({
+ attachmentIds: z.array(z.string()),
+ content: z.string(),
+ date: z.string().datetime({ offset: true }),
+ })
+ ),
+ title: z.string(),
+ })
+ ),
+ type: z.literal('chat'),
+ }),
+ z.object({
+ messages: z.array(
+ z.object({
+ bcc: z.array(z.string()),
+ cc: z.array(z.string()),
+ content: z.string(),
+ messageId: z.string(),
+ recipients: z.array(z.string()),
+ sender: z.string(),
+ sentAt: z
+ .union([z.string().datetime({ offset: true }), z.null()])
+ .optional(),
+ })
+ ),
+ subject: z.union([z.string(), z.null()]).optional(),
+ thread_id: z.string(),
+ type: z.literal('email'),
+ }),
+ z.object({
+ formatted_preview: z.string(),
+ type: z.literal('itemPreviews'),
+ }),
+ ];
const errors = schemas.reduce<z.ZodError[]>(
(errors, schema) =>
- ((result) =>
- result.error ? [...errors, result.error] : errors)(
- schema.safeParse(x),
+ ((result) => (result.error ? [...errors, result.error] : errors))(
+ schema.safeParse(x)
),
- [],
+ []
);
if (schemas.length - errors.length !== 1) {
ctx.addIssue({
path: ctx.path,
- code: "invalid_union",
+ code: 'invalid_union',
unionErrors: errors,
- message: "Invalid input: Should pass single schema",
+ message: 'Invalid input: Should pass single schema',
});
}
- }) })
-
-
-export const WebSearchToolCall = z.object({ "query": z.string() })
-
+ }),
+});
-export const WebSearchResponse = z.object({ "content": z.array(z.object({ "title": z.string(), "type": z.literal("web_search_result"), "url": z.string() })), "tool_use_id": z.string() })
+export const WebSearchToolCall = z.object({ query: z.string() });
+export const WebSearchResponse = z.object({
+ content: z.array(
+ z.object({
+ title: z.string(),
+ type: z.literal('web_search_result'),
+ url: z.string(),
+ })
+ ),
+ tool_use_id: z.string(),
+});
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/tool.ts b/js/app/packages/service-clients/service-cognition/generated/tools/tool.ts
index 7d03516d64..9c3d56663d 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/tool.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/tool.ts
@@ -1,7 +1,7 @@
/* Generated by scripts/generate-ai-tools.ts
- * *DO NOT EDIT MANUALLY*
- *
-*/
+ * *DO NOT EDIT MANUALLY*
+ *
+ */
import { err, type MaybeResult, ok } from 'core/util/maybeResult';
import type { Component } from 'solid-js';
@@ -9,23 +9,56 @@ import * as schemas from './schemas';
import type * as types from './types';
type ToolParserMap = {
-ContentSearch: { call: types.ContentSearch, response: types.SearchToolResponse }
-ListDocuments: { call: types.ListDocuments, response: types.ListDocumentsResponse }
-ListEmails: { call: types.ListEmails, response: types.ApiPaginatedThreadCursor }
-MarkdownRewrite: { call: types.MarkdownRewrite, response: types.AIDiffResponse }
-NameSearch: { call: types.NameSearch, response: types.SearchToolResponse }
-Read: { call: types.Read, response: types.ReadResponse }
-web_search: { call: types.WebSearchToolCall, response: types.WebSearchResponse }
+ ContentSearch: {
+ call: types.ContentSearch;
+ response: types.SearchToolResponse;
+ };
+ ListDocuments: {
+ call: types.ListDocuments;
+ response: types.ListDocumentsResponse;
+ };
+ ListEmails: {
+ call: types.ListEmails;
+ response: types.ApiPaginatedThreadCursor;
+ };
+ MarkdownRewrite: {
+ call: types.MarkdownRewrite;
+ response: types.AIDiffResponse;
+ };
+ NameSearch: { call: types.NameSearch; response: types.SearchToolResponse };
+ Read: { call: types.Read; response: types.ReadResponse };
+ web_search: {
+ call: types.WebSearchToolCall;
+ response: types.WebSearchResponse;
+ };
};
const toolParserMap = {
-ContentSearch: { call: schemas.ContentSearch, response: schemas.SearchToolResponse },
-ListDocuments: { call: schemas.ListDocuments, response: schemas.ListDocumentsResponse },
-ListEmails: { call: schemas.ListEmails, response: schemas.ApiPaginatedThreadCursor },
-MarkdownRewrite: { call: schemas.MarkdownRewrite, response: schemas.AIDiffResponse },
-NameSearch: { call: schemas.NameSearch, response: schemas.SearchToolResponse },
-Read: { call: schemas.Read, response: schemas.ReadResponse },
-web_search: { call: schemas.WebSearchToolCall, response: schemas.WebSearchResponse }
+ ContentSearch: {
+ call: schemas.ContentSearch,
+ response: schemas.SearchToolResponse,
+ },
+ ListDocuments: {
+ call: schemas.ListDocuments,
+ response: schemas.ListDocumentsResponse,
+ },
+ ListEmails: {
+ call: schemas.ListEmails,
+ response: schemas.ApiPaginatedThreadCursor,
+ },
+ MarkdownRewrite: {
+ call: schemas.MarkdownRewrite,
+ response: schemas.AIDiffResponse,
+ },
+ NameSearch: {
+ call: schemas.NameSearch,
+ response: schemas.SearchToolResponse,
+ },
+ Read: { call: schemas.Read, response: schemas.ReadResponse },
+ web_search: {
+ call: schemas.WebSearchToolCall,
+ response: schemas.WebSearchResponse,
+ },
};
export type ToolName = keyof ToolParserMap;
@@ -37,13 +70,28 @@ type NamedRawTool = {
};
type ToolDataMap = {
-ContentSearch: { call: types.ContentSearch, response: types.SearchToolResponse };
-ListDocuments: { call: types.ListDocuments, response: types.ListDocumentsResponse };
-ListEmails: { call: types.ListEmails, response: types.ApiPaginatedThreadCursor };
-MarkdownRewrite: { call: types.MarkdownRewrite, response: types.AIDiffResponse };
-NameSearch: { call: types.NameSearch, response: types.SearchToolResponse };
-Read: { call: types.Read, response: types.ReadResponse };
-web_search: { call: types.WebSearchToolCall, response: types.WebSearchResponse };
+ ContentSearch: {
+ call: types.ContentSearch;
+ response: types.SearchToolResponse;
+ };
+ ListDocuments: {
+ call: types.ListDocuments;
+ response: types.ListDocumentsResponse;
+ };
+ ListEmails: {
+ call: types.ListEmails;
+ response: types.ApiPaginatedThreadCursor;
+ };
+ MarkdownRewrite: {
+ call: types.MarkdownRewrite;
+ response: types.AIDiffResponse;
+ };
+ NameSearch: { call: types.NameSearch; response: types.SearchToolResponse };
+ Read: { call: types.Read; response: types.ReadResponse };
+ web_search: {
+ call: types.WebSearchToolCall;
+ response: types.WebSearchResponse;
+ };
};
export type NamedTool<
@@ -99,9 +147,9 @@ export function deserializeToolResponse(
return deserializeTool(tool, 'response');
}
-export type ToolHandlerMap<RenderContext>= {
+export type ToolHandlerMap<RenderContext> = {
[K in ToolName]: {
- call: ToolHandler<NamedTool<K, 'call'>,RenderContext>;
+ call: ToolHandler<NamedTool<K, 'call'>, RenderContext>;
response: ToolHandler<NamedTool<K, 'response'>, RenderContext>;
};
};
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
index 62a0afe165..ee1aba4e88 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
@@ -1,7 +1,7 @@
/* Generated by scripts/generate-ai-tools.ts
- * *DO NOT EDIT MANUALLY*
- *
-*/
+ * *DO NOT EDIT MANUALLY*
+ *
+ */
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -23,7 +23,6 @@ export interface ContentSearch {
query: string;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -476,7 +475,6 @@ export interface SearchToolResponse {
)[];
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -510,7 +508,6 @@ export interface ListDocuments {
pageSize: number;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -570,7 +567,6 @@ export interface ListDocumentsResponse {
totalResults: number;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -602,7 +598,15 @@ export interface ListEmails {
/**
* Prefer important or all. Leave empty if using a user label
*/
- standardLabel: 'Inbox' | 'Sent' | 'Drafts' | 'Starred' | 'All' | 'Important' | 'Other' | null;
+ standardLabel:
+ | 'Inbox'
+ | 'Sent'
+ | 'Drafts'
+ | 'Starred'
+ | 'All'
+ | 'Important'
+ | 'Other'
+ | null;
/**
* Choose a custom user label to filter by (optional). Standard label will take precedence over user label if both are specified.
*/
@@ -610,7 +614,6 @@ export interface ListEmails {
};
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -692,7 +695,6 @@ export interface ApiPaginatedThreadCursor {
next_cursor?: string | null;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -715,7 +717,6 @@ export interface MarkdownRewrite {
markdown_file_id: string;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -731,7 +732,6 @@ export interface AIDiffResponse {
}[];
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -753,7 +753,6 @@ export interface NameSearch {
name: string;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -788,7 +787,6 @@ export interface Read {
messagesSince: string | null;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -842,7 +840,6 @@ export interface ReadResponse {
};
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -857,7 +854,6 @@ export interface WebSearchToolCall {
query: string;
}
-
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
@@ -885,4 +881,3 @@ export interface WebSearchResponse {
content: SearchResult[];
tool_use_id: string;
}
-
diff --git a/js/app/packages/service-clients/service-cognition/openapi.json b/js/app/packages/service-clients/service-cognition/openapi.json
index ef34d83722..499f81d8d2 100644
--- a/js/app/packages/service-clients/service-cognition/openapi.json
+++ b/js/app/packages/service-clients/service-cognition/openapi.json
@@ -4,7 +4,10 @@
"title": "Document Cognition Service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "Proprietary", "identifier": "Proprietary" },
+ "license": {
+ "name": "Proprietary",
+ "identifier": "Proprietary"
+ },
"version": "1.0.0"
},
"paths": {
@@ -35,15 +38,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -75,15 +96,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -98,7 +137,9 @@
"in": "path",
"description": "id of the attachment",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -114,15 +155,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -137,21 +196,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ChatsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ChatsResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -163,21 +242,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/StringIDResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/StringIDResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -193,7 +292,9 @@
"in": "path",
"description": "Chat ID to retrieve history for",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -201,17 +302,31 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ChatHistory" }
+ "schema": {
+ "$ref": "#/components/schemas/ChatHistory"
+ }
}
}
},
"404": {
"description": "Chat not found",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "Internal server error",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -236,21 +351,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ChatHistory" }
+ "schema": {
+ "$ref": "#/components/schemas/ChatHistory"
+ }
}
}
},
"403": {
"description": "Access denied to chat",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "Messages not found",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "Internal server error",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -266,7 +401,9 @@
"in": "path",
"description": "id of the chat",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -274,21 +411,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetChatResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetChatResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -302,7 +459,9 @@
"in": "path",
"description": "Chat id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -310,21 +469,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -339,13 +518,17 @@
"in": "path",
"description": "Chat id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CopyChatRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CopyChatRequest"
+ }
}
},
"required": true
@@ -355,21 +538,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/StringIDResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/StringIDResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -385,7 +588,9 @@
"in": "path",
"description": "Chat id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -393,21 +598,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -423,7 +648,9 @@
"in": "path",
"description": "Chat ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -431,7 +658,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -478,7 +707,9 @@
"in": "path",
"description": "id of the citation",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -486,17 +717,31 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/DocumentTextPart" }
+ "schema": {
+ "$ref": "#/components/schemas/DocumentTextPart"
+ }
}
}
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -508,7 +753,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetCompletionRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/GetCompletionRequest"
+ }
}
},
"required": true
@@ -526,19 +773,43 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"422": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -570,15 +841,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -593,30 +882,54 @@
"in": "path",
"description": "Id of the document to create text for",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateTextRequestBody" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateTextRequestBody"
+ }
}
},
"required": true
},
"responses": {
- "201": { "description": "" },
+ "201": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -629,7 +942,13 @@
"responses": {
"200": {
"description": "health",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -644,21 +963,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/MacrosResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/MacrosResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -668,7 +1007,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateMacroRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateMacroRequest"
+ }
}
},
"required": true
@@ -678,21 +1019,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/StringIDResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/StringIDResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -708,7 +1069,9 @@
"in": "path",
"description": "id of the macro",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -716,21 +1079,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetMacroResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetMacroResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -744,22 +1127,44 @@
"in": "path",
"description": "id of the macro",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -772,30 +1177,54 @@
"in": "path",
"description": "id of the macro",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchMacroRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchMacroRequest"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -811,7 +1240,9 @@
"in": "path",
"description": "id of the macro",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -827,11 +1258,23 @@
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -846,7 +1289,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetModelsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetModelsResponse"
+ }
}
}
}
@@ -880,11 +1325,23 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -899,26 +1356,14 @@
},
"500": {
"description": "Failed to connect to streaming websocket",
- "content": { "text/plain": { "schema": { "type": "string" } } }
- }
- }
- }
- },
- "/tools/schemas": {
- "get": {
- "tags": ["tools"],
- "summary": "Get all available tool schemas as JSON Schema definitions",
- "operationId": "get_tool_schemas",
- "responses": {
- "200": {
- "description": "Tool schemas retrieved successfully",
"content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ToolSchemasResponse" }
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
}
}
- },
- "500": { "description": "Internal server error" }
+ }
}
}
},
@@ -933,7 +1378,9 @@
"in": "path",
"description": "id of the chat",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -949,11 +1396,23 @@
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -965,9 +1424,15 @@
"type": "object",
"required": ["name", "provider", "metadata"],
"properties": {
- "metadata": { "$ref": "#/components/schemas/ModelMetadata" },
- "name": { "type": "string" },
- "provider": { "$ref": "#/components/schemas/Provider" }
+ "metadata": {
+ "$ref": "#/components/schemas/ModelMetadata"
+ },
+ "name": {
+ "type": "string"
+ },
+ "provider": {
+ "$ref": "#/components/schemas/Provider"
+ }
}
},
"AccessLevel": {
@@ -981,38 +1446,66 @@
"type": "object",
"required": ["text", "type"],
"properties": {
- "text": { "type": "string" },
- "type": { "type": "string", "enum": ["text"] }
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["text"]
+ }
}
},
{
"type": "object",
"required": ["name", "json", "id", "type"],
"properties": {
- "id": { "type": "string" },
+ "id": {
+ "type": "string"
+ },
"json": {},
- "name": { "type": "string" },
- "type": { "type": "string", "enum": ["toolCall"] }
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["toolCall"]
+ }
}
},
{
"type": "object",
"required": ["name", "json", "id", "type"],
"properties": {
- "id": { "type": "string" },
+ "id": {
+ "type": "string"
+ },
"json": {},
- "name": { "type": "string" },
- "type": { "type": "string", "enum": ["toolCallResponseJson"] }
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["toolCallResponseJson"]
+ }
}
},
{
"type": "object",
"required": ["name", "description", "id", "type"],
"properties": {
- "description": { "type": "string" },
- "id": { "type": "string" },
- "name": { "type": "string" },
- "type": { "type": "string", "enum": ["toolCallErr"] }
+ "description": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["toolCallErr"]
+ }
}
}
]
@@ -1031,15 +1524,23 @@
"$ref": "#/components/schemas/FileType",
"description": "Type of the document ['pdf' | 'docx' | 'md']"
},
- "type": { "type": "string", "enum": ["document"] }
+ "type": {
+ "type": "string",
+ "enum": ["document"]
+ }
}
},
{
"type": "object",
"required": ["project_name", "type"],
"properties": {
- "project_name": { "type": "string" },
- "type": { "type": "string", "enum": ["project"] }
+ "project_name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["project"]
+ }
}
},
{
@@ -1050,17 +1551,30 @@
"$ref": "#/components/schemas/FileType",
"description": "jpg | png | etc"
},
- "image_name": { "type": "string", "description": "image name" },
- "type": { "type": "string", "enum": ["image"] }
+ "image_name": {
+ "type": "string",
+ "description": "image name"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["image"]
+ }
}
},
{
"type": "object",
"required": ["channel_name", "channel_type", "type"],
"properties": {
- "channel_name": { "type": "string" },
- "channel_type": { "$ref": "#/components/schemas/ChannelType" },
- "type": { "type": "string", "enum": ["channel"] }
+ "channel_name": {
+ "type": "string"
+ },
+ "channel_type": {
+ "$ref": "#/components/schemas/ChannelType"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
},
{
@@ -1068,8 +1582,13 @@
"description": "an email thread",
"required": ["email_subject", "type"],
"properties": {
- "email_subject": { "type": "string" },
- "type": { "type": "string", "enum": ["email"] }
+ "email_subject": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["email"]
+ }
}
}
]
@@ -1087,7 +1606,10 @@
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for the channel"
},
- "channel_id": { "type": "string", "description": "The channel id" }
+ "channel_id": {
+ "type": "string",
+ "description": "The channel id"
+ }
}
},
"ChannelType": {
@@ -1116,18 +1638,29 @@
"format": "int64",
"description": "The time the chat was deleted"
},
- "id": { "type": "string", "description": "The chat uuid" },
- "isPersistent": { "type": "boolean" },
+ "id": {
+ "type": "string",
+ "description": "The chat uuid"
+ },
+ "isPersistent": {
+ "type": "boolean"
+ },
"model": {
"type": ["string", "null"],
"description": "The model used to generate the chat"
},
- "name": { "type": "string", "description": "The name of the chat" },
+ "name": {
+ "type": "string",
+ "description": "The name of the chat"
+ },
"projectId": {
"type": ["string", "null"],
"description": "The project id of the chat"
},
- "tokenCount": { "type": ["integer", "null"], "format": "int64" },
+ "tokenCount": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
"updatedAt": {
"type": "integer",
"format": "int64",
@@ -1183,7 +1716,9 @@
},
"metadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AttachmentMetadata",
"description": "Metadata about the attachment, depending on the type"
@@ -1198,7 +1733,9 @@
"properties": {
"conversation": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ConversationRecord" }
+ "items": {
+ "$ref": "#/components/schemas/ConversationRecord"
+ }
}
}
},
@@ -1206,7 +1743,12 @@
"type": "object",
"required": ["message_ids"],
"properties": {
- "message_ids": { "type": "array", "items": { "type": "string" } }
+ "message_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"ChatMessage": {
@@ -1217,7 +1759,10 @@
"$ref": "#/components/schemas/ChatMessageContent",
"description": "Message content"
},
- "id": { "type": "string", "description": "The chat message id" },
+ "id": {
+ "type": "string",
+ "description": "The chat message id"
+ },
"model": {
"type": ["string", "null"],
"description": "the model used to generate the message"
@@ -1230,10 +1775,14 @@
},
"ChatMessageContent": {
"oneOf": [
- { "type": "string" },
+ {
+ "type": "string"
+ },
{
"type": "array",
- "items": { "$ref": "#/components/schemas/AssistantMessagePart" }
+ "items": {
+ "$ref": "#/components/schemas/AssistantMessagePart"
+ }
}
]
},
@@ -1243,14 +1792,19 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChatAttachmentWithName" },
+ "items": {
+ "$ref": "#/components/schemas/ChatAttachmentWithName"
+ },
"description": "The ids of the attachments used to generate the message"
},
"content": {
"$ref": "#/components/schemas/ChatMessageContent",
"description": "Message content"
},
- "id": { "type": "string", "description": "The chat message id" },
+ "id": {
+ "type": "string",
+ "description": "The chat message id"
+ },
"model": {
"type": ["string", "null"],
"description": "The model used to generate the message"
@@ -1265,36 +1819,51 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/ChatPreviewData" },
+ {
+ "$ref": "#/components/schemas/ChatPreviewData"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["access"] }
+ "type": {
+ "type": "string",
+ "enum": ["access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithChatId" },
+ {
+ "$ref": "#/components/schemas/WithChatId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["no_access"] }
+ "type": {
+ "type": "string",
+ "enum": ["no_access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithChatId" },
+ {
+ "$ref": "#/components/schemas/WithChatId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["does_not_exist"] }
+ "type": {
+ "type": "string",
+ "enum": ["does_not_exist"]
+ }
}
}
]
@@ -1305,10 +1874,19 @@
"type": "object",
"required": ["chat_id", "chat_name", "owner", "updated_at"],
"properties": {
- "chat_id": { "type": "string" },
- "chat_name": { "type": "string" },
- "owner": { "type": "string" },
- "updated_at": { "type": "integer", "format": "int64" }
+ "chat_id": {
+ "type": "string"
+ },
+ "chat_name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"ChatResponse": {
@@ -1328,13 +1906,17 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChatAttachmentWithName" },
+ "items": {
+ "$ref": "#/components/schemas/ChatAttachmentWithName"
+ },
"description": "attachment context - attachments not attached to messages",
"deprecated": true
},
"availableModels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Model" },
+ "items": {
+ "$ref": "#/components/schemas/Model"
+ },
"description": "Available models for the chat"
},
"createdAt": {
@@ -1342,7 +1924,10 @@
"format": "int64",
"description": "The time the chat was created"
},
- "id": { "type": "string", "description": "The chat uuid" },
+ "id": {
+ "type": "string",
+ "description": "The chat uuid"
+ },
"isPersistent": {
"type": "boolean",
"description": "whether the chat is persistent or not"
@@ -1356,14 +1941,19 @@
},
"model": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/Model",
"description": "The model used to generate the chat"
}
]
},
- "name": { "type": "string", "description": "The name of the Chat" },
+ "name": {
+ "type": "string",
+ "description": "The name of the Chat"
+ },
"projectId": {
"type": ["string", "null"],
"description": "The project id the chat belongs to"
@@ -1388,18 +1978,30 @@
"type": "array",
"items": false,
"prefixItems": [
- { "type": "string" },
+ {
+ "type": "string"
+ },
{
"type": "array",
"items": {
"type": "object",
"required": ["url", "title"],
"properties": {
- "description": { "type": ["string", "null"] },
- "favicon_url": { "type": ["string", "null"] },
- "image_url": { "type": ["string", "null"] },
- "title": { "type": "string" },
- "url": { "type": "string" }
+ "description": {
+ "type": ["string", "null"]
+ },
+ "favicon_url": {
+ "type": ["string", "null"]
+ },
+ "image_url": {
+ "type": ["string", "null"]
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
}
}
}
@@ -1415,7 +2017,9 @@
"properties": {
"chats": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Chat" }
+ "items": {
+ "$ref": "#/components/schemas/Chat"
+ }
}
}
},
@@ -1423,59 +2027,98 @@
"type": "object",
"required": ["chat_id", "title", "messages"],
"properties": {
- "chat_id": { "type": "string" },
+ "chat_id": {
+ "type": "string"
+ },
"messages": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/MessageWithAttachmentSummary"
+ "$ref": "#/components/schemas/MessageWithAttachments"
}
},
- "title": { "type": "string" }
+ "title": {
+ "type": "string"
+ }
}
},
"CopyChatRequest": {
"type": "object",
"required": ["name"],
- "properties": { "name": { "type": "string" } }
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ }
},
"CreateChatRequest": {
"type": "object",
"properties": {
"attachments": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/NewAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/NewAttachment"
+ }
+ },
+ "isPersistent": {
+ "type": ["boolean", "null"]
},
- "isPersistent": { "type": ["boolean", "null"] },
"model": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Model" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Model"
+ }
]
},
- "name": { "type": ["string", "null"] },
- "projectId": { "type": ["string", "null"] }
+ "name": {
+ "type": ["string", "null"]
+ },
+ "projectId": {
+ "type": ["string", "null"]
+ }
}
},
"CreateMacroRequest": {
"type": "object",
"required": ["title", "prompt", "icon", "color"],
"properties": {
- "color": { "type": "string" },
- "icon": { "type": "string" },
- "prompt": { "type": "string" },
- "requiredDocs": { "type": ["integer", "null"], "format": "int32" },
- "title": { "type": "string" }
+ "color": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "prompt": {
+ "type": "string"
+ },
+ "requiredDocs": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "title": {
+ "type": "string"
+ }
}
},
"CreateTextRequestBody": {
"type": "object",
"required": ["content"],
- "properties": { "content": { "type": "string" } }
+ "properties": {
+ "content": {
+ "type": "string"
+ }
+ }
},
"CreateTextRequestParams": {
"type": "object",
"required": ["document_id"],
- "properties": { "document_id": { "type": "string" } }
+ "properties": {
+ "document_id": {
+ "type": "string"
+ }
+ }
},
"DocumentCognitionServiceApiVersion": {
"type": "string",
@@ -1485,34 +2128,36 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/UserPdfRect" },
+ {
+ "$ref": "#/components/schemas/UserPdfRect"
+ },
{
"type": "object",
"required": ["kind"],
- "properties": { "kind": { "type": "string", "enum": ["pdf"] } }
+ "properties": {
+ "kind": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
+ }
}
]
}
]
},
- "DocumentSummary": {
- "type": "object",
- "required": ["document_id", "summary", "version_id"],
- "properties": {
- "created_at": { "type": ["string", "null"], "format": "date-time" },
- "document_id": { "type": "string" },
- "id": { "type": ["string", "null"] },
- "summary": { "type": "string" },
- "version_id": { "type": "string" }
- }
- },
"DocumentTextPart": {
"type": "object",
"required": ["id", "document_id", "reference"],
"properties": {
- "document_id": { "type": "string" },
- "id": { "type": "string" },
- "reference": { "$ref": "#/components/schemas/DocumentReference" }
+ "document_id": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "reference": {
+ "$ref": "#/components/schemas/DocumentReference"
+ }
}
},
"EmptyResponse": {
@@ -1525,32 +2170,52 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["incomplete"] }
+ "type": {
+ "type": "string",
+ "enum": ["incomplete"]
+ }
}
},
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["empty"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["empty"]
+ }
+ }
},
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["insufficient"] }
+ "type": {
+ "type": "string",
+ "enum": ["insufficient"]
+ }
}
},
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["complete"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["complete"]
+ }
+ }
}
]
},
"ExtractionStatusPayload": {
"type": "object",
"required": ["attachment_id"],
- "properties": { "attachment_id": { "type": "string" } }
+ "properties": {
+ "attachment_id": {
+ "type": "string"
+ }
+ }
},
"FileType": {
"type": "string",
@@ -1740,6 +2405,7 @@
"rbi",
"rs",
"scss",
+ "sass",
"shader",
"sh",
"bash",
@@ -1991,7 +2657,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["error"] }
+ "type": {
+ "type": "string",
+ "enum": ["error"]
+ }
}
}
],
@@ -2002,9 +2671,16 @@
"description": "Acknowledges that a message has been received for processing",
"required": ["message_id", "chat_id", "type"],
"properties": {
- "chat_id": { "type": "string" },
- "message_id": { "type": "string" },
- "type": { "type": "string", "enum": ["chat_message_ack"] }
+ "chat_id": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["chat_message_ack"]
+ }
}
},
{
@@ -2018,13 +2694,22 @@
"type"
],
"properties": {
- "chat_id": { "type": "string" },
+ "chat_id": {
+ "type": "string"
+ },
"content": {
"$ref": "#/components/schemas/AssistantMessagePart"
},
- "message_id": { "type": "string" },
- "stream_id": { "type": "string" },
- "type": { "type": "string", "enum": ["chat_message_response"] }
+ "message_id": {
+ "type": "string"
+ },
+ "stream_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["chat_message_response"]
+ }
}
},
{
@@ -2032,10 +2717,19 @@
"description": "Indicates that a message has been finished",
"required": ["message_id", "chat_id", "user_message_id", "type"],
"properties": {
- "chat_id": { "type": "string" },
- "message_id": { "type": "string" },
- "type": { "type": "string", "enum": ["chat_message_finished"] },
- "user_message_id": { "type": "string" }
+ "chat_id": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["chat_message_finished"]
+ },
+ "user_message_id": {
+ "type": "string"
+ }
}
},
{
@@ -2043,10 +2737,19 @@
"description": "Indicates that a chat has been renamed",
"required": ["stream_id", "chat_id", "name", "type"],
"properties": {
- "chat_id": { "type": "string" },
- "name": { "type": "string" },
- "stream_id": { "type": "string" },
- "type": { "type": "string", "enum": ["chat_renamed"] }
+ "chat_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "stream_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["chat_renamed"]
+ }
}
},
{
@@ -2056,25 +2759,44 @@
"properties": {
"available_models": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Model" }
+ "items": {
+ "$ref": "#/components/schemas/Model"
+ }
+ },
+ "chat_id": {
+ "type": "string"
},
- "chat_id": { "type": "string" },
"new_model": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Model" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Model"
+ }
]
},
- "type": { "type": "string", "enum": ["model_selection_changed"] }
+ "type": {
+ "type": "string",
+ "enum": ["model_selection_changed"]
+ }
}
},
{
"type": "object",
"required": ["chat_id", "token_count", "type"],
"properties": {
- "chat_id": { "type": "string" },
- "token_count": { "type": "integer", "format": "int64" },
- "type": { "type": "string", "enum": ["token_count_changed"] }
+ "chat_id": {
+ "type": "string"
+ },
+ "token_count": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["token_count_changed"]
+ }
}
},
{
@@ -2082,9 +2804,15 @@
"description": "Status update",
"required": ["chat_id", "message_id", "message", "type"],
"properties": {
- "chat_id": { "type": "string" },
- "message": { "type": "string" },
- "message_id": { "type": "string" },
+ "chat_id": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": ["chat_message_status_update"]
@@ -2096,9 +2824,16 @@
"description": "Acknowledges the request to get extraction status\nif the `status` field is 'incomplete', we need to await the extraction status updates\nif the `status` field is 'empty', extraction is complete but text content is empty\nif the `status` field is 'complete', the extraction is already complete",
"required": ["attachment_id", "status", "type"],
"properties": {
- "attachment_id": { "type": "string" },
- "status": { "$ref": "#/components/schemas/ExtractionStatusEnum" },
- "type": { "type": "string", "enum": ["extraction_status_ack"] }
+ "attachment_id": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/components/schemas/ExtractionStatusEnum"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["extraction_status_ack"]
+ }
}
},
{
@@ -2106,43 +2841,78 @@
"description": "Status update for the extraction status",
"required": ["attachment_id", "status", "type"],
"properties": {
- "attachment_id": { "type": "string" },
- "status": { "$ref": "#/components/schemas/ExtractionStatusEnum" },
- "type": { "type": "string", "enum": ["extraction_status_update"] }
+ "attachment_id": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/components/schemas/ExtractionStatusEnum"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["extraction_status_update"]
+ }
}
},
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["pong"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["pong"]
+ }
+ }
},
{
"type": "object",
"description": "pdf completion",
"required": ["completion_id", "content", "done", "type"],
"properties": {
- "completion_id": { "type": "string" },
- "content": { "type": "string" },
- "done": { "type": "boolean" },
- "type": { "type": "string", "enum": ["completion_response"] }
+ "completion_id": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "done": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["completion_response"]
+ }
}
},
{
"type": "object",
"required": ["completion_id", "content", "done", "type"],
"properties": {
- "completion_id": { "type": "string" },
- "content": { "type": "string" },
- "done": { "type": "boolean" },
- "type": { "type": "string", "enum": ["completion_stream_chunk"] }
+ "completion_id": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "done": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["completion_stream_chunk"]
+ }
}
},
{
"type": "object",
"required": ["stream_id", "type"],
"properties": {
- "stream_id": { "type": "string" },
- "type": { "type": "string", "enum": ["stream_end"] }
+ "stream_id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["stream_end"]
+ }
}
}
]
@@ -2175,7 +2945,12 @@
"type": "object",
"required": ["chat_ids"],
"properties": {
- "chat_ids": { "type": "array", "items": { "type": "string" } }
+ "chat_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetBatchPreviewResponse": {
@@ -2184,28 +2959,40 @@
"properties": {
"previews": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChatPreview" }
+ "items": {
+ "$ref": "#/components/schemas/ChatPreview"
+ }
}
}
},
"GetChatPathParams": {
"type": "object",
"required": ["chat_id"],
- "properties": { "chat_id": { "type": "string" } }
+ "properties": {
+ "chat_id": {
+ "type": "string"
+ }
+ }
},
"GetChatPermissionsResponseV2": {
"type": "object",
"required": ["permissions"],
"properties": {
- "permissions": { "$ref": "#/components/schemas/SharePermissionV2" }
+ "permissions": {
+ "$ref": "#/components/schemas/SharePermissionV2"
+ }
}
},
"GetChatResponse": {
"type": "object",
"required": ["chat", "userAccessLevel"],
"properties": {
- "chat": { "$ref": "#/components/schemas/ChatResponse" },
- "userAccessLevel": { "$ref": "#/components/schemas/AccessLevel" }
+ "chat": {
+ "$ref": "#/components/schemas/ChatResponse"
+ },
+ "userAccessLevel": {
+ "$ref": "#/components/schemas/AccessLevel"
+ }
}
},
"GetChatsForAttachmentResponse": {
@@ -2214,12 +3001,18 @@
"properties": {
"all_chats": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Chat" }
+ "items": {
+ "$ref": "#/components/schemas/Chat"
+ }
},
"recent_chat": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Chat" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Chat"
+ }
]
}
}
@@ -2235,37 +3028,59 @@
},
"model": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Model" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Model"
+ }
]
},
- "prompt": { "type": "string" },
- "user_message": { "type": "string" }
+ "prompt": {
+ "type": "string"
+ },
+ "user_message": {
+ "type": "string"
+ }
}
},
"GetCompletionResponse": {
"type": "object",
"required": ["completion"],
- "properties": { "completion": { "type": "string" } }
+ "properties": {
+ "completion": {
+ "type": "string"
+ }
+ }
},
"GetMacroPathParams": {
"type": "object",
"required": ["macro_prompt_id"],
- "properties": { "macro_prompt_id": { "type": "string" } }
+ "properties": {
+ "macro_prompt_id": {
+ "type": "string"
+ }
+ }
},
"GetMacroPermissionsResponseV2": {
"type": "object",
"required": ["permissions"],
"properties": {
- "permissions": { "$ref": "#/components/schemas/SharePermissionV2" }
+ "permissions": {
+ "$ref": "#/components/schemas/SharePermissionV2"
+ }
}
},
"GetMacroResponse": {
"type": "object",
"required": ["macroItem", "userAccessLevel"],
"properties": {
- "macroItem": { "$ref": "#/components/schemas/MacroResponse" },
- "userAccessLevel": { "$ref": "#/components/schemas/AccessLevel" }
+ "macroItem": {
+ "$ref": "#/components/schemas/MacroResponse"
+ },
+ "userAccessLevel": {
+ "$ref": "#/components/schemas/AccessLevel"
+ }
}
},
"GetModelsForAttachmentsRequest": {
@@ -2274,13 +3089,19 @@
"properties": {
"active_model": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Model" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Model"
+ }
]
},
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/NewAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/NewAttachment"
+ }
}
}
},
@@ -2290,12 +3111,18 @@
"properties": {
"available_models": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Model" }
+ "items": {
+ "$ref": "#/components/schemas/Model"
+ }
},
"new_model": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Model" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Model"
+ }
]
}
}
@@ -2306,7 +3133,9 @@
"properties": {
"models": {
"type": "array",
- "items": { "$ref": "#/components/schemas/AIModel" }
+ "items": {
+ "$ref": "#/components/schemas/AIModel"
+ }
}
}
},
@@ -2320,7 +3149,9 @@
},
"content_document_ids": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Optional document ID to provide context"
},
"max_tokens": {
@@ -2333,14 +3164,24 @@
"type": ["string", "null"],
"description": "model to use for the completion"
},
- "prompt": { "type": "string", "description": "system prompt" },
- "user_request": { "type": "string", "description": "user request" }
+ "prompt": {
+ "type": "string",
+ "description": "system prompt"
+ },
+ "user_request": {
+ "type": "string",
+ "description": "user request"
+ }
}
},
"JwtPayload": {
"type": "object",
"required": ["token"],
- "properties": { "token": { "type": "string" } }
+ "properties": {
+ "token": {
+ "type": "string"
+ }
+ }
},
"Macro": {
"type": "object",
@@ -2364,8 +3205,14 @@
"format": "int64",
"description": "The time the macro was created"
},
- "icon": { "type": "string", "description": "The icon of the macro" },
- "id": { "type": "string", "description": "The macro uuid" },
+ "icon": {
+ "type": "string",
+ "description": "The icon of the macro"
+ },
+ "id": {
+ "type": "string",
+ "description": "The macro uuid"
+ },
"prompt": {
"type": "string",
"description": "The prompt used in the macro"
@@ -2412,8 +3259,14 @@
"format": "int64",
"description": "The time the macro was created"
},
- "icon": { "type": "string", "description": "The icon of the macro" },
- "id": { "type": "string", "description": "The macro uuid" },
+ "icon": {
+ "type": "string",
+ "description": "The icon of the macro"
+ },
+ "id": {
+ "type": "string",
+ "description": "The macro uuid"
+ },
"prompt": {
"type": "string",
"description": "The prompt used in the macro"
@@ -2444,20 +3297,29 @@
"properties": {
"macros": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Macro" }
+ "items": {
+ "$ref": "#/components/schemas/Macro"
+ }
}
}
},
- "MessageWithAttachmentSummary": {
+ "MessageWithAttachments": {
"type": "object",
- "required": ["content", "date", "attachment_summaries"],
+ "required": ["content", "date", "attachmentIds"],
"properties": {
- "attachment_summaries": {
+ "attachmentIds": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Summary" }
+ "items": {
+ "type": "string"
+ }
+ },
+ "content": {
+ "type": "string"
},
- "content": { "type": "string" },
- "date": { "type": "string", "format": "date-time" }
+ "date": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"Model": {
@@ -2473,28 +3335,35 @@
"gpt-4o-mini",
"o1",
"gpt-4o-search-preview",
- "gpt-4o-mini-search-preview",
"o3",
"claude-3-5-sonnet",
"claude-3-7-sonnet",
"claude-sonnet-4",
"claude-sonnet-4-5",
- "claude-haiku-4-5"
+ "claude-haiku-4-5",
+ "claude-opus-4-5"
]
},
"ModelMetadata": {
"type": "object",
"required": ["contextWindow"],
"properties": {
- "contextWindow": { "type": "integer", "format": "int32" }
+ "contextWindow": {
+ "type": "integer",
+ "format": "int32"
+ }
}
},
"NewAttachment": {
"type": "object",
"required": ["attachment_type", "attachment_id"],
"properties": {
- "attachment_id": { "type": "string" },
- "attachment_type": { "$ref": "#/components/schemas/AttachmentType" }
+ "attachment_id": {
+ "type": "string"
+ },
+ "attachment_type": {
+ "$ref": "#/components/schemas/AttachmentType"
+ }
}
},
"NewChatMessage": {
@@ -2503,14 +3372,19 @@
"properties": {
"attachments": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/NewAttachment" },
+ "items": {
+ "$ref": "#/components/schemas/NewAttachment"
+ },
"description": "The ids of the attachments used to generate the message"
},
"content": {
"$ref": "#/components/schemas/ChatMessageContent",
"description": "Content of the message"
},
- "createdAt": { "type": "string", "format": "date-time" },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
"model": {
"$ref": "#/components/schemas/Model",
"description": "The model used to generate the chat"
@@ -2519,36 +3393,61 @@
"$ref": "#/components/schemas/Role",
"description": "Whether the chat is from the user or system"
},
- "updatedAt": { "type": "string", "format": "date-time" }
+ "updatedAt": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"NewMessageAttachment": {
"type": "object",
"required": ["messageId", "attachmentType", "attachmentId"],
"properties": {
- "attachmentId": { "type": "string" },
- "attachmentType": { "$ref": "#/components/schemas/AttachmentType" },
- "messageId": { "type": "string" }
+ "attachmentId": {
+ "type": "string"
+ },
+ "attachmentType": {
+ "$ref": "#/components/schemas/AttachmentType"
+ },
+ "messageId": {
+ "type": "string"
+ }
}
},
"PatchChatRequest": {
"type": "object",
"properties": {
- "model": { "type": ["string", "null"] },
- "name": { "type": ["string", "null"] },
- "projectId": { "type": ["string", "null"] }
+ "model": {
+ "type": ["string", "null"]
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "projectId": {
+ "type": ["string", "null"]
+ }
}
},
"PatchChatRequestV2": {
"type": "object",
"properties": {
- "model": { "type": ["string", "null"] },
- "name": { "type": ["string", "null"] },
- "projectId": { "type": ["string", "null"] },
+ "model": {
+ "type": ["string", "null"]
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "projectId": {
+ "type": ["string", "null"]
+ },
"sharePermission": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/UpdateSharePermissionRequestV2" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/UpdateSharePermissionRequestV2"
+ }
]
}
}
@@ -2556,29 +3455,49 @@
"PatchMacroRequest": {
"type": "object",
"properties": {
- "color": { "type": ["string", "null"] },
- "icon": { "type": ["string", "null"] },
- "prompt": { "type": ["string", "null"] },
- "requiredDocs": { "type": ["integer", "null"], "format": "int32" },
- "title": { "type": ["string", "null"] }
+ "color": {
+ "type": ["string", "null"]
+ },
+ "icon": {
+ "type": ["string", "null"]
+ },
+ "prompt": {
+ "type": ["string", "null"]
+ },
+ "requiredDocs": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "title": {
+ "type": ["string", "null"]
+ }
}
},
"Provider": {
"type": "string",
"enum": ["openai", "google", "anthropic", "googleanthropic", "xai"]
},
- "Role": { "type": "string", "enum": ["user", "assistant", "system"] },
+ "Role": {
+ "type": "string",
+ "enum": ["user", "assistant", "system"]
+ },
"SelectModelPayload": {
"type": "object",
"required": ["chat_id", "model"],
"properties": {
- "chat_id": { "type": "string" },
- "model": { "type": "string" }
+ "chat_id": {
+ "type": "string"
+ },
+ "model": {
+ "type": "string"
+ }
}
},
"SendChatMessagePayload": {
"allOf": [
- { "$ref": "#/components/schemas/JwtPayload" },
+ {
+ "$ref": "#/components/schemas/JwtPayload"
+ },
{
"type": "object",
"required": ["stream_id", "content", "chat_id", "model"],
@@ -2646,18 +3565,28 @@
"properties": {
"channelSharePermissions": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/ChannelSharePermission" },
+ "items": {
+ "$ref": "#/components/schemas/ChannelSharePermission"
+ },
"description": "The channel share permissions for the item"
},
- "id": { "type": "string", "description": "The share permission id" },
+ "id": {
+ "type": "string",
+ "description": "The share permission id"
+ },
"isPublic": {
"type": "boolean",
"description": "If the item is publicly accessible"
},
- "owner": { "type": "string", "description": "The owner of the item" },
+ "owner": {
+ "type": "string",
+ "description": "The owner of the item"
+ },
"publicAccessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The level of public access"
@@ -2670,7 +3599,10 @@
"type": "object",
"required": ["stream_id"],
"properties": {
- "stream_id": { "type": "string", "description": "stream id" }
+ "stream_id": {
+ "type": "string",
+ "description": "stream id"
+ }
}
},
"StreamError": {
@@ -2679,9 +3611,16 @@
"type": "object",
"required": ["stream_id", "model", "stream_error"],
"properties": {
- "model": { "$ref": "#/components/schemas/Model" },
- "stream_error": { "type": "string", "enum": ["provider_error"] },
- "stream_id": { "type": "string" }
+ "model": {
+ "$ref": "#/components/schemas/Model"
+ },
+ "stream_error": {
+ "type": "string",
+ "enum": ["provider_error"]
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
@@ -2692,23 +3631,35 @@
"type": "string",
"enum": ["model_context_overflow"]
},
- "stream_id": { "type": "string" }
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"required": ["stream_id", "stream_error"],
"properties": {
- "stream_error": { "type": "string", "enum": ["internal_error"] },
- "stream_id": { "type": "string" }
+ "stream_error": {
+ "type": "string",
+ "enum": ["internal_error"]
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"required": ["stream_id", "stream_error"],
"properties": {
- "stream_error": { "type": "string", "enum": ["unauthorized"] },
- "stream_id": { "type": "string" }
+ "stream_error": {
+ "type": "string",
+ "enum": ["unauthorized"]
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
@@ -2719,7 +3670,9 @@
"type": "string",
"enum": ["payment_required"]
},
- "stream_id": { "type": "string" }
+ "stream_id": {
+ "type": "string"
+ }
}
}
]
@@ -2727,21 +3680,31 @@
"StringIDResponse": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
},
"StructedOutputCompletionRequest": {
"type": "object",
"required": ["prompt", "schema", "schema_name"],
"properties": {
- "prompt": { "type": "string" },
+ "prompt": {
+ "type": "string"
+ },
"schema": {},
- "schema_name": { "type": "string" }
+ "schema_name": {
+ "type": "string"
+ }
}
},
"StructedOutputCompletionResponse": {
"type": "object",
"required": ["completion"],
- "properties": { "completion": {} }
+ "properties": {
+ "completion": {}
+ }
},
"SuccessResponse": {
"type": "object",
@@ -2757,28 +3720,6 @@
}
}
},
- "Summary": {
- "oneOf": [
- {
- "type": "object",
- "required": ["Summary"],
- "properties": {
- "Summary": { "$ref": "#/components/schemas/DocumentSummary" }
- }
- },
- {
- "type": "object",
- "required": ["NoSummary"],
- "properties": {
- "NoSummary": {
- "type": "object",
- "required": ["document_id"],
- "properties": { "document_id": { "type": "string" } }
- }
- }
- }
- ]
- },
"ToWebSocketMessage": {
"oneOf": [
{
@@ -2791,7 +3732,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["send_chat_message"] }
+ "type": {
+ "type": "string",
+ "enum": ["send_chat_message"]
+ }
}
}
],
@@ -2807,7 +3751,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["edit_chat_message"] }
+ "type": {
+ "type": "string",
+ "enum": ["edit_chat_message"]
+ }
}
}
],
@@ -2823,7 +3770,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["stop_chat_message"] }
+ "type": {
+ "type": "string",
+ "enum": ["stop_chat_message"]
+ }
}
}
],
@@ -2858,7 +3808,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["extraction_status"] }
+ "type": {
+ "type": "string",
+ "enum": ["extraction_status"]
+ }
}
}
],
@@ -2874,7 +3827,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["send_completion"] }
+ "type": {
+ "type": "string",
+ "enum": ["send_completion"]
+ }
}
}
],
@@ -2906,17 +3862,21 @@
"required": ["name", "inputSchema", "outputSchema"],
"properties": {
"inputSchema": {},
- "name": { "type": "string" },
+ "name": {
+ "type": "string"
+ },
"outputSchema": {}
}
},
- "ToolSchemasResponse": {
+ "ToolSchemas": {
"type": "object",
"required": ["schemas"],
"properties": {
"schemas": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ToolSchema" }
+ "items": {
+ "$ref": "#/components/schemas/ToolSchema"
+ }
}
}
},
@@ -2925,12 +3885,22 @@
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["all"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["all"]
+ }
+ }
},
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["none"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["none"]
+ }
+ }
}
]
},
@@ -2940,14 +3910,19 @@
"properties": {
"accessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for the channel\nThis is required if the operation is add or replace"
}
]
},
- "channelId": { "type": "string", "description": "The channel id" },
+ "channelId": {
+ "type": "string",
+ "description": "The channel id"
+ },
"operation": {
"$ref": "#/components/schemas/UpdateOperation",
"description": "The type of operation to be performed on the chanel share permission\nYou can add, remove or replace and existing permission"
@@ -2974,7 +3949,9 @@
},
"publicAccessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The level of public access"
@@ -2988,37 +3965,68 @@
"description": "UserPdfRect is in UserSpace\n(0,0) top left\npercent page units\n1-based page index",
"required": ["page_index", "left", "top", "width", "height"],
"properties": {
- "height": { "type": "number", "format": "float" },
- "left": { "type": "number", "format": "float" },
- "page_index": { "type": "integer", "format": "int32", "minimum": 0 },
- "top": { "type": "number", "format": "float" },
- "width": { "type": "number", "format": "float" }
+ "height": {
+ "type": "number",
+ "format": "float"
+ },
+ "left": {
+ "type": "number",
+ "format": "float"
+ },
+ "page_index": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ },
+ "top": {
+ "type": "number",
+ "format": "float"
+ },
+ "width": {
+ "type": "number",
+ "format": "float"
+ }
}
},
"VerifyAttachmentsRequest": {
"type": "object",
"required": ["attachments"],
"properties": {
- "attachments": { "type": "array", "items": { "type": "string" } }
+ "attachments": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"VerifyAttachmentsResponse": {
"type": "object",
"required": ["attachments"],
"properties": {
- "attachments": { "type": "array", "items": { "type": "string" } }
+ "attachments": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"WebSocketError": {
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/StreamError" },
+ {
+ "$ref": "#/components/schemas/StreamError"
+ },
{
"type": "object",
"required": ["error_type"],
"properties": {
- "error_type": { "type": "string", "enum": ["stream_error"] }
+ "error_type": {
+ "type": "string",
+ "enum": ["stream_error"]
+ }
}
}
]
@@ -3027,34 +4035,50 @@
"type": "object",
"required": ["chat_id", "message_id", "stream_id", "error_type"],
"properties": {
- "chat_id": { "type": "string" },
- "details": { "type": ["string", "null"] },
+ "chat_id": {
+ "type": "string"
+ },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_send_chat_message"]
},
- "message_id": { "type": "string" },
- "stream_id": { "type": "string" }
+ "message_id": {
+ "type": "string"
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"required": ["chat_id", "stream_id", "error_type"],
"properties": {
- "chat_id": { "type": "string" },
- "details": { "type": ["string", "null"] },
+ "chat_id": {
+ "type": "string"
+ },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_rename_chat"]
},
- "stream_id": { "type": "string" }
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"required": ["error_type"],
"properties": {
- "details": { "type": ["string", "null"] },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_send_error_message"]
@@ -3065,23 +4089,34 @@
"type": "object",
"required": ["chat_id", "stream_id", "error_type"],
"properties": {
- "chat_id": { "type": "string" },
- "details": { "type": ["string", "null"] },
+ "chat_id": {
+ "type": "string"
+ },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_store_chat"]
},
- "stream_id": { "type": "string" }
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"allOf": [
- { "$ref": "#/components/schemas/GenericErrorResponse" },
+ {
+ "$ref": "#/components/schemas/GenericErrorResponse"
+ },
{
"type": "object",
"required": ["error_type"],
"properties": {
- "error_type": { "type": "string", "enum": ["generic"] }
+ "error_type": {
+ "type": "string",
+ "enum": ["generic"]
+ }
}
}
]
@@ -3090,7 +4125,9 @@
"type": "object",
"required": ["error_type"],
"properties": {
- "details": { "type": ["string", "null"] },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_send_websocket_message"]
@@ -3101,7 +4138,9 @@
"type": "object",
"required": ["error_type"],
"properties": {
- "details": { "type": ["string", "null"] },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_select_model"]
@@ -3112,21 +4151,31 @@
"type": "object",
"required": ["chat_id", "message_id", "stream_id", "error_type"],
"properties": {
- "chat_id": { "type": "string" },
- "details": { "type": ["string", "null"] },
+ "chat_id": {
+ "type": "string"
+ },
+ "details": {
+ "type": ["string", "null"]
+ },
"error_type": {
"type": "string",
"enum": ["failed_to_update_token_count"]
},
- "message_id": { "type": "string" },
- "stream_id": { "type": "string" }
+ "message_id": {
+ "type": "string"
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"required": ["attachment_id", "error_type"],
"properties": {
- "attachment_id": { "type": "string" },
+ "attachment_id": {
+ "type": "string"
+ },
"error_type": {
"type": "string",
"enum": ["extraction_status_failed"]
@@ -3139,7 +4188,9 @@
"properties": {
"attachment_ids": {
"type": "array",
- "items": { "type": "string" }
+ "items": {
+ "type": "string"
+ }
},
"error_type": {
"type": "string",
@@ -3155,8 +4206,12 @@
"type": "string",
"enum": ["failed_to_edit_message"]
},
- "reason": { "type": "string" },
- "stream_id": { "type": "string" }
+ "reason": {
+ "type": "string"
+ },
+ "stream_id": {
+ "type": "string"
+ }
}
}
]
@@ -3164,7 +4219,11 @@
"WithChatId": {
"type": "object",
"required": ["chat_id"],
- "properties": { "chat_id": { "type": "string" } }
+ "properties": {
+ "chat_id": {
+ "type": "string"
+ }
+ }
}
}
},
diff --git a/js/app/packages/service-clients/service-comms/generated/client.ts b/js/app/packages/service-clients/service-comms/generated/client.ts
index 5e1239f460..1a3bd5de76 100644
--- a/js/app/packages/service-clients/service-comms/generated/client.ts
+++ b/js/app/packages/service-clients/service-comms/generated/client.ts
@@ -34,1412 +34,1506 @@ import type {
PostMessageResponse,
PostReactionRequest,
PostTypingRequest,
- RemoveParticipantsRequest
+ RemoveParticipantsRequest,
} from './models';
export type getActivityResponse200 = {
- data: ApiActivity[]
- status: 200
-}
+ data: ApiActivity[];
+ status: 200;
+};
export type getActivityResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getActivityResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getActivityResponse500 = {
- data: string
- status: 500
-}
-
-export type getActivityResponseSuccess = (getActivityResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getActivityResponseSuccess = getActivityResponse200 & {
headers: Headers;
};
-export type getActivityResponseError = (getActivityResponse401 | getActivityResponse404 | getActivityResponse500) & {
+export type getActivityResponseError = (
+ | getActivityResponse401
+ | getActivityResponse404
+ | getActivityResponse500
+) & {
headers: Headers;
};
-export type getActivityResponse = (getActivityResponseSuccess | getActivityResponseError)
+export type getActivityResponse =
+ | getActivityResponseSuccess
+ | getActivityResponseError;
export const getGetActivityUrl = () => {
+ return `/activity`;
+};
-
-
-
- return `/activity`
-}
-
-export const getActivity = async ( options?: RequestInit): Promise<getActivityResponse> => {
-
- const res = await fetch(getGetActivityUrl(),
- {
+export const getActivity = async (
+ options?: RequestInit
+): Promise<getActivityResponse> => {
+ const res = await fetch(getGetActivityUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getActivityResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getActivityResponse
-}
-
+ const data: getActivityResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getActivityResponse;
+};
export type postActivityResponse200 = {
- data: Activity
- status: 200
-}
+ data: Activity;
+ status: 200;
+};
export type postActivityResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type postActivityResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type postActivityResponse500 = {
- data: string
- status: 500
-}
-
-export type postActivityResponseSuccess = (postActivityResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type postActivityResponseSuccess = postActivityResponse200 & {
headers: Headers;
};
-export type postActivityResponseError = (postActivityResponse401 | postActivityResponse404 | postActivityResponse500) & {
+export type postActivityResponseError = (
+ | postActivityResponse401
+ | postActivityResponse404
+ | postActivityResponse500
+) & {
headers: Headers;
};
-export type postActivityResponse = (postActivityResponseSuccess | postActivityResponseError)
+export type postActivityResponse =
+ | postActivityResponseSuccess
+ | postActivityResponseError;
export const getPostActivityUrl = () => {
+ return `/activity`;
+};
-
-
-
- return `/activity`
-}
-
-export const postActivity = async (postActivityRequest: PostActivityRequest, options?: RequestInit): Promise<postActivityResponse> => {
-
- const res = await fetch(getPostActivityUrl(),
- {
+export const postActivity = async (
+ postActivityRequest: PostActivityRequest,
+ options?: RequestInit
+): Promise<postActivityResponse> => {
+ const res = await fetch(getPostActivityUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- postActivityRequest,)
- }
-)
+ body: JSON.stringify(postActivityRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: postActivityResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as postActivityResponse
-}
-
+ const data: postActivityResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as postActivityResponse;
+};
export type getAttachmentReferencesResponse200 = {
- data: GetAttachmentReferencesResponse
- status: 200
-}
+ data: GetAttachmentReferencesResponse;
+ status: 200;
+};
export type getAttachmentReferencesResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getAttachmentReferencesResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getAttachmentReferencesResponse500 = {
- data: string
- status: 500
-}
-
-export type getAttachmentReferencesResponseSuccess = (getAttachmentReferencesResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getAttachmentReferencesResponseError = (getAttachmentReferencesResponse401 | getAttachmentReferencesResponse404 | getAttachmentReferencesResponse500) & {
+
+export type getAttachmentReferencesResponseSuccess =
+ getAttachmentReferencesResponse200 & {
+ headers: Headers;
+ };
+export type getAttachmentReferencesResponseError = (
+ | getAttachmentReferencesResponse401
+ | getAttachmentReferencesResponse404
+ | getAttachmentReferencesResponse500
+) & {
headers: Headers;
};
-export type getAttachmentReferencesResponse = (getAttachmentReferencesResponseSuccess | getAttachmentReferencesResponseError)
-
-export const getGetAttachmentReferencesUrl = (entityType: string,
- entityId: string,) => {
-
-
-
+export type getAttachmentReferencesResponse =
+ | getAttachmentReferencesResponseSuccess
+ | getAttachmentReferencesResponseError;
- return `/attachments/${entityType}/${entityId}/references`
-}
+export const getGetAttachmentReferencesUrl = (
+ entityType: string,
+ entityId: string
+) => {
+ return `/attachments/${entityType}/${entityId}/references`;
+};
-export const getAttachmentReferences = async (entityType: string,
- entityId: string, options?: RequestInit): Promise<getAttachmentReferencesResponse> => {
-
- const res = await fetch(getGetAttachmentReferencesUrl(entityType,entityId),
- {
+export const getAttachmentReferences = async (
+ entityType: string,
+ entityId: string,
+ options?: RequestInit
+): Promise<getAttachmentReferencesResponse> => {
+ const res = await fetch(getGetAttachmentReferencesUrl(entityType, entityId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getAttachmentReferencesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getAttachmentReferencesResponse
-}
-
+ const data: getAttachmentReferencesResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getAttachmentReferencesResponse;
+};
export type getChannelsResponse200 = {
- data: ApiChannelWithLatest[]
- status: 200
-}
+ data: ApiChannelWithLatest[];
+ status: 200;
+};
export type getChannelsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getChannelsResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChannelsResponse500 = {
- data: string
- status: 500
-}
-
-export type getChannelsResponseSuccess = (getChannelsResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getChannelsResponseSuccess = getChannelsResponse200 & {
headers: Headers;
};
-export type getChannelsResponseError = (getChannelsResponse401 | getChannelsResponse404 | getChannelsResponse500) & {
+export type getChannelsResponseError = (
+ | getChannelsResponse401
+ | getChannelsResponse404
+ | getChannelsResponse500
+) & {
headers: Headers;
};
-export type getChannelsResponse = (getChannelsResponseSuccess | getChannelsResponseError)
+export type getChannelsResponse =
+ | getChannelsResponseSuccess
+ | getChannelsResponseError;
export const getGetChannelsUrl = () => {
+ return `/channels`;
+};
-
-
-
- return `/channels`
-}
-
-export const getChannels = async ( options?: RequestInit): Promise<getChannelsResponse> => {
-
- const res = await fetch(getGetChannelsUrl(),
- {
+export const getChannels = async (
+ options?: RequestInit
+): Promise<getChannelsResponse> => {
+ const res = await fetch(getGetChannelsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChannelsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChannelsResponse
-}
-
+ const data: getChannelsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChannelsResponse;
+};
export type createChannelResponse201 = {
- data: CreateChannelResponse
- status: 201
-}
+ data: CreateChannelResponse;
+ status: 201;
+};
export type createChannelResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type createChannelResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type createChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type createChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type createChannelResponseSuccess = (createChannelResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type createChannelResponseSuccess = createChannelResponse201 & {
headers: Headers;
};
-export type createChannelResponseError = (createChannelResponse400 | createChannelResponse401 | createChannelResponse404 | createChannelResponse500) & {
+export type createChannelResponseError = (
+ | createChannelResponse400
+ | createChannelResponse401
+ | createChannelResponse404
+ | createChannelResponse500
+) & {
headers: Headers;
};
-export type createChannelResponse = (createChannelResponseSuccess | createChannelResponseError)
+export type createChannelResponse =
+ | createChannelResponseSuccess
+ | createChannelResponseError;
export const getCreateChannelUrl = () => {
+ return `/channels`;
+};
-
-
-
- return `/channels`
-}
-
-export const createChannel = async (createChannelRequest: CreateChannelRequest, options?: RequestInit): Promise<createChannelResponse> => {
-
- const res = await fetch(getCreateChannelUrl(),
- {
+export const createChannel = async (
+ createChannelRequest: CreateChannelRequest,
+ options?: RequestInit
+): Promise<createChannelResponse> => {
+ const res = await fetch(getCreateChannelUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createChannelRequest,)
- }
-)
+ body: JSON.stringify(createChannelRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createChannelResponse
-}
-
+ const data: createChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createChannelResponse;
+};
/**
* given a user and a recipient, either finds or creates a direct message channel
*/
export type getOrCreateDmResponse200 = {
- data: GetOrCreateDmResponse
- status: 200
-}
+ data: GetOrCreateDmResponse;
+ status: 200;
+};
export type getOrCreateDmResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type getOrCreateDmResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getOrCreateDmResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getOrCreateDmResponse500 = {
- data: string
- status: 500
-}
-
-export type getOrCreateDmResponseSuccess = (getOrCreateDmResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getOrCreateDmResponseSuccess = getOrCreateDmResponse200 & {
headers: Headers;
};
-export type getOrCreateDmResponseError = (getOrCreateDmResponse400 | getOrCreateDmResponse401 | getOrCreateDmResponse404 | getOrCreateDmResponse500) & {
+export type getOrCreateDmResponseError = (
+ | getOrCreateDmResponse400
+ | getOrCreateDmResponse401
+ | getOrCreateDmResponse404
+ | getOrCreateDmResponse500
+) & {
headers: Headers;
};
-export type getOrCreateDmResponse = (getOrCreateDmResponseSuccess | getOrCreateDmResponseError)
+export type getOrCreateDmResponse =
+ | getOrCreateDmResponseSuccess
+ | getOrCreateDmResponseError;
export const getGetOrCreateDmUrl = () => {
+ return `/channels/get_or_create_dm`;
+};
-
-
-
- return `/channels/get_or_create_dm`
-}
-
-export const getOrCreateDm = async (getOrCreateDmRequest: GetOrCreateDmRequest, options?: RequestInit): Promise<getOrCreateDmResponse> => {
-
- const res = await fetch(getGetOrCreateDmUrl(),
- {
+export const getOrCreateDm = async (
+ getOrCreateDmRequest: GetOrCreateDmRequest,
+ options?: RequestInit
+): Promise<getOrCreateDmResponse> => {
+ const res = await fetch(getGetOrCreateDmUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getOrCreateDmRequest,)
- }
-)
+ body: JSON.stringify(getOrCreateDmRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getOrCreateDmResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getOrCreateDmResponse
-}
-
+ const data: getOrCreateDmResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getOrCreateDmResponse;
+};
/**
* given a list of partiicpants, either fetch an existing private channel with the permtation or create a new one
*/
export type getOrCreatePrivateResponse200 = {
- data: GetOrCreatePrivateResponse
- status: 200
-}
+ data: GetOrCreatePrivateResponse;
+ status: 200;
+};
export type getOrCreatePrivateResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type getOrCreatePrivateResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getOrCreatePrivateResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getOrCreatePrivateResponse500 = {
- data: string
- status: 500
-}
-
-export type getOrCreatePrivateResponseSuccess = (getOrCreatePrivateResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getOrCreatePrivateResponseError = (getOrCreatePrivateResponse400 | getOrCreatePrivateResponse401 | getOrCreatePrivateResponse404 | getOrCreatePrivateResponse500) & {
+
+export type getOrCreatePrivateResponseSuccess =
+ getOrCreatePrivateResponse200 & {
+ headers: Headers;
+ };
+export type getOrCreatePrivateResponseError = (
+ | getOrCreatePrivateResponse400
+ | getOrCreatePrivateResponse401
+ | getOrCreatePrivateResponse404
+ | getOrCreatePrivateResponse500
+) & {
headers: Headers;
};
-export type getOrCreatePrivateResponse = (getOrCreatePrivateResponseSuccess | getOrCreatePrivateResponseError)
+export type getOrCreatePrivateResponse =
+ | getOrCreatePrivateResponseSuccess
+ | getOrCreatePrivateResponseError;
export const getGetOrCreatePrivateUrl = () => {
+ return `/channels/get_or_create_private`;
+};
-
-
-
- return `/channels/get_or_create_private`
-}
-
-export const getOrCreatePrivate = async (getOrCreatePrivateRequest: GetOrCreatePrivateRequest, options?: RequestInit): Promise<getOrCreatePrivateResponse> => {
-
- const res = await fetch(getGetOrCreatePrivateUrl(),
- {
+export const getOrCreatePrivate = async (
+ getOrCreatePrivateRequest: GetOrCreatePrivateRequest,
+ options?: RequestInit
+): Promise<getOrCreatePrivateResponse> => {
+ const res = await fetch(getGetOrCreatePrivateUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getOrCreatePrivateRequest,)
- }
-)
+ body: JSON.stringify(getOrCreatePrivateRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getOrCreatePrivateResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getOrCreatePrivateResponse
-}
-
+ const data: getOrCreatePrivateResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getOrCreatePrivateResponse;
+};
export type getMessageWithContextResponse200 = {
- data: GetMessageWithContextResponse
- status: 200
-}
+ data: GetMessageWithContextResponse;
+ status: 200;
+};
export type getMessageWithContextResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type getMessageWithContextResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getMessageWithContextResponse500 = {
- data: string
- status: 500
-}
-
-export type getMessageWithContextResponseSuccess = (getMessageWithContextResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getMessageWithContextResponseError = (getMessageWithContextResponse400 | getMessageWithContextResponse401 | getMessageWithContextResponse500) & {
+
+export type getMessageWithContextResponseSuccess =
+ getMessageWithContextResponse200 & {
+ headers: Headers;
+ };
+export type getMessageWithContextResponseError = (
+ | getMessageWithContextResponse400
+ | getMessageWithContextResponse401
+ | getMessageWithContextResponse500
+) & {
headers: Headers;
};
-export type getMessageWithContextResponse = (getMessageWithContextResponseSuccess | getMessageWithContextResponseError)
+export type getMessageWithContextResponse =
+ | getMessageWithContextResponseSuccess
+ | getMessageWithContextResponseError;
-export const getGetMessageWithContextUrl = (params: GetMessageWithContextParams,) => {
+export const getGetMessageWithContextUrl = (
+ params: GetMessageWithContextParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/channels/messages/context?${stringifiedParams}` : `/channels/messages/context`
-}
+ return stringifiedParams.length > 0
+ ? `/channels/messages/context?${stringifiedParams}`
+ : `/channels/messages/context`;
+};
-export const getMessageWithContext = async (params: GetMessageWithContextParams, options?: RequestInit): Promise<getMessageWithContextResponse> => {
-
- const res = await fetch(getGetMessageWithContextUrl(params),
- {
+export const getMessageWithContext = async (
+ params: GetMessageWithContextParams,
+ options?: RequestInit
+): Promise<getMessageWithContextResponse> => {
+ const res = await fetch(getGetMessageWithContextUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMessageWithContextResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMessageWithContextResponse
-}
-
+ const data: getMessageWithContextResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMessageWithContextResponse;
+};
export type getChannelResponse200 = {
- data: GetChannelResponse
- status: 200
-}
+ data: GetChannelResponse;
+ status: 200;
+};
export type getChannelResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type getChannelResponseSuccess = (getChannelResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getChannelResponseSuccess = getChannelResponse200 & {
headers: Headers;
};
-export type getChannelResponseError = (getChannelResponse401 | getChannelResponse404 | getChannelResponse500) & {
+export type getChannelResponseError = (
+ | getChannelResponse401
+ | getChannelResponse404
+ | getChannelResponse500
+) & {
headers: Headers;
};
-export type getChannelResponse = (getChannelResponseSuccess | getChannelResponseError)
+export type getChannelResponse =
+ | getChannelResponseSuccess
+ | getChannelResponseError;
-export const getGetChannelUrl = (channelId: string,
- params?: GetChannelParams,) => {
+export const getGetChannelUrl = (
+ channelId: string,
+ params?: GetChannelParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/channels/${channelId}?${stringifiedParams}` : `/channels/${channelId}`
-}
+ return stringifiedParams.length > 0
+ ? `/channels/${channelId}?${stringifiedParams}`
+ : `/channels/${channelId}`;
+};
-export const getChannel = async (channelId: string,
- params?: GetChannelParams, options?: RequestInit): Promise<getChannelResponse> => {
-
- const res = await fetch(getGetChannelUrl(channelId,params),
- {
+export const getChannel = async (
+ channelId: string,
+ params?: GetChannelParams,
+ options?: RequestInit
+): Promise<getChannelResponse> => {
+ const res = await fetch(getGetChannelUrl(channelId, params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getChannelResponse
-}
-
+ const data: getChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getChannelResponse;
+};
export type deleteChannelResponse204 = {
- data: string
- status: 204
-}
+ data: string;
+ status: 204;
+};
export type deleteChannelResponse400 = {
- data: string
- status: 400
-}
+ data: string;
+ status: 400;
+};
export type deleteChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type deleteChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type deleteChannelResponseSuccess = (deleteChannelResponse204) & {
+ data: string;
+ status: 500;
+};
+
+export type deleteChannelResponseSuccess = deleteChannelResponse204 & {
headers: Headers;
};
-export type deleteChannelResponseError = (deleteChannelResponse400 | deleteChannelResponse404 | deleteChannelResponse500) & {
+export type deleteChannelResponseError = (
+ | deleteChannelResponse400
+ | deleteChannelResponse404
+ | deleteChannelResponse500
+) & {
headers: Headers;
};
-export type deleteChannelResponse = (deleteChannelResponseSuccess | deleteChannelResponseError)
-
-export const getDeleteChannelUrl = (channelId: string,) => {
-
-
-
+export type deleteChannelResponse =
+ | deleteChannelResponseSuccess
+ | deleteChannelResponseError;
- return `/channels/${channelId}`
-}
+export const getDeleteChannelUrl = (channelId: string) => {
+ return `/channels/${channelId}`;
+};
-export const deleteChannel = async (channelId: string, options?: RequestInit): Promise<deleteChannelResponse> => {
-
- const res = await fetch(getDeleteChannelUrl(channelId),
- {
+export const deleteChannel = async (
+ channelId: string,
+ options?: RequestInit
+): Promise<deleteChannelResponse> => {
+ const res = await fetch(getDeleteChannelUrl(channelId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteChannelResponse
-}
-
+ const data: deleteChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteChannelResponse;
+};
export type patchChannelResponse200 = {
- data: string
- status: 200
-}
+ data: string;
+ status: 200;
+};
export type patchChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type patchChannelResponseSuccess = (patchChannelResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type patchChannelResponseSuccess = patchChannelResponse200 & {
headers: Headers;
};
-export type patchChannelResponseError = (patchChannelResponse500) & {
+export type patchChannelResponseError = patchChannelResponse500 & {
headers: Headers;
};
-export type patchChannelResponse = (patchChannelResponseSuccess | patchChannelResponseError)
-
-export const getPatchChannelUrl = (channelId: string,) => {
+export type patchChannelResponse =
+ | patchChannelResponseSuccess
+ | patchChannelResponseError;
+export const getPatchChannelUrl = (channelId: string) => {
+ return `/channels/${channelId}`;
+};
-
-
- return `/channels/${channelId}`
-}
-
-export const patchChannel = async (channelId: string,
- patchChannelOptions: PatchChannelOptions, options?: RequestInit): Promise<patchChannelResponse> => {
-
- const res = await fetch(getPatchChannelUrl(channelId),
- {
+export const patchChannel = async (
+ channelId: string,
+ patchChannelOptions: PatchChannelOptions,
+ options?: RequestInit
+): Promise<patchChannelResponse> => {
+ const res = await fetch(getPatchChannelUrl(channelId), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchChannelOptions,)
- }
-)
+ body: JSON.stringify(patchChannelOptions),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchChannelResponse
-}
-
+ const data: patchChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchChannelResponse;
+};
/**
* allows a user to attempt to join a channel
*/
export type joinChannelResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type joinChannelResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type joinChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type joinChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type joinChannelResponseSuccess = (joinChannelResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type joinChannelResponseSuccess = joinChannelResponse200 & {
headers: Headers;
};
-export type joinChannelResponseError = (joinChannelResponse401 | joinChannelResponse404 | joinChannelResponse500) & {
+export type joinChannelResponseError = (
+ | joinChannelResponse401
+ | joinChannelResponse404
+ | joinChannelResponse500
+) & {
headers: Headers;
};
-export type joinChannelResponse = (joinChannelResponseSuccess | joinChannelResponseError)
-
-export const getJoinChannelUrl = (channelId: string,) => {
-
+export type joinChannelResponse =
+ | joinChannelResponseSuccess
+ | joinChannelResponseError;
-
-
- return `/channels/${channelId}/join`
-}
+export const getJoinChannelUrl = (channelId: string) => {
+ return `/channels/${channelId}/join`;
+};
-export const joinChannel = async (channelId: string, options?: RequestInit): Promise<joinChannelResponse> => {
-
- const res = await fetch(getJoinChannelUrl(channelId),
- {
+export const joinChannel = async (
+ channelId: string,
+ options?: RequestInit
+): Promise<joinChannelResponse> => {
+ const res = await fetch(getJoinChannelUrl(channelId), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: joinChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as joinChannelResponse
-}
-
+ const data: joinChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as joinChannelResponse;
+};
/**
* allows a user to attempt to leave a channel
*/
export type leaveChannelResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type leaveChannelResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type leaveChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type leaveChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type leaveChannelResponseSuccess = (leaveChannelResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type leaveChannelResponseSuccess = leaveChannelResponse200 & {
headers: Headers;
};
-export type leaveChannelResponseError = (leaveChannelResponse401 | leaveChannelResponse404 | leaveChannelResponse500) & {
+export type leaveChannelResponseError = (
+ | leaveChannelResponse401
+ | leaveChannelResponse404
+ | leaveChannelResponse500
+) & {
headers: Headers;
};
-export type leaveChannelResponse = (leaveChannelResponseSuccess | leaveChannelResponseError)
-
-export const getLeaveChannelUrl = (channelId: string,) => {
-
-
-
+export type leaveChannelResponse =
+ | leaveChannelResponseSuccess
+ | leaveChannelResponseError;
- return `/channels/${channelId}/leave`
-}
+export const getLeaveChannelUrl = (channelId: string) => {
+ return `/channels/${channelId}/leave`;
+};
-export const leaveChannel = async (channelId: string, options?: RequestInit): Promise<leaveChannelResponse> => {
-
- const res = await fetch(getLeaveChannelUrl(channelId),
- {
+export const leaveChannel = async (
+ channelId: string,
+ options?: RequestInit
+): Promise<leaveChannelResponse> => {
+ const res = await fetch(getLeaveChannelUrl(channelId), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: leaveChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as leaveChannelResponse
-}
-
+ const data: leaveChannelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as leaveChannelResponse;
+};
export type getMentionsForChannelResponse200 = {
- data: GetMentionsResponse
- status: 200
-}
+ data: GetMentionsResponse;
+ status: 200;
+};
export type getMentionsForChannelResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getMentionsForChannelResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getMentionsForChannelResponse500 = {
- data: string
- status: 500
-}
-
-export type getMentionsForChannelResponseSuccess = (getMentionsForChannelResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type getMentionsForChannelResponseError = (getMentionsForChannelResponse401 | getMentionsForChannelResponse404 | getMentionsForChannelResponse500) & {
+
+export type getMentionsForChannelResponseSuccess =
+ getMentionsForChannelResponse200 & {
+ headers: Headers;
+ };
+export type getMentionsForChannelResponseError = (
+ | getMentionsForChannelResponse401
+ | getMentionsForChannelResponse404
+ | getMentionsForChannelResponse500
+) & {
headers: Headers;
};
-export type getMentionsForChannelResponse = (getMentionsForChannelResponseSuccess | getMentionsForChannelResponseError)
-
-export const getGetMentionsForChannelUrl = (channelId: string,) => {
-
-
-
+export type getMentionsForChannelResponse =
+ | getMentionsForChannelResponseSuccess
+ | getMentionsForChannelResponseError;
- return `/channels/${channelId}/mentions`
-}
+export const getGetMentionsForChannelUrl = (channelId: string) => {
+ return `/channels/${channelId}/mentions`;
+};
-export const getMentionsForChannel = async (channelId: string, options?: RequestInit): Promise<getMentionsForChannelResponse> => {
-
- const res = await fetch(getGetMentionsForChannelUrl(channelId),
- {
+export const getMentionsForChannel = async (
+ channelId: string,
+ options?: RequestInit
+): Promise<getMentionsForChannelResponse> => {
+ const res = await fetch(getGetMentionsForChannelUrl(channelId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMentionsForChannelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMentionsForChannelResponse
-}
-
+ const data: getMentionsForChannelResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMentionsForChannelResponse;
+};
export type postMessageResponse201 = {
- data: PostMessageResponse
- status: 201
-}
+ data: PostMessageResponse;
+ status: 201;
+};
export type postMessageResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type postMessageResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type postMessageResponse500 = {
- data: string
- status: 500
-}
-
-export type postMessageResponseSuccess = (postMessageResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type postMessageResponseSuccess = postMessageResponse201 & {
headers: Headers;
};
-export type postMessageResponseError = (postMessageResponse401 | postMessageResponse404 | postMessageResponse500) & {
+export type postMessageResponseError = (
+ | postMessageResponse401
+ | postMessageResponse404
+ | postMessageResponse500
+) & {
headers: Headers;
};
-export type postMessageResponse = (postMessageResponseSuccess | postMessageResponseError)
+export type postMessageResponse =
+ | postMessageResponseSuccess
+ | postMessageResponseError;
-export const getPostMessageUrl = (channelId: string,) => {
-
-
-
-
- return `/channels/${channelId}/message`
-}
+export const getPostMessageUrl = (channelId: string) => {
+ return `/channels/${channelId}/message`;
+};
-export const postMessage = async (channelId: string,
- postMessageRequest: PostMessageRequest, options?: RequestInit): Promise<postMessageResponse> => {
-
- const res = await fetch(getPostMessageUrl(channelId),
- {
+export const postMessage = async (
+ channelId: string,
+ postMessageRequest: PostMessageRequest,
+ options?: RequestInit
+): Promise<postMessageResponse> => {
+ const res = await fetch(getPostMessageUrl(channelId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- postMessageRequest,)
- }
-)
+ body: JSON.stringify(postMessageRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: postMessageResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as postMessageResponse
-}
-
+ const data: postMessageResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as postMessageResponse;
+};
export type deleteMessageResponse201 = {
- data: string
- status: 201
-}
+ data: string;
+ status: 201;
+};
export type deleteMessageResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type deleteMessageResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type deleteMessageResponse500 = {
- data: string
- status: 500
-}
-
-export type deleteMessageResponseSuccess = (deleteMessageResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type deleteMessageResponseSuccess = deleteMessageResponse201 & {
headers: Headers;
};
-export type deleteMessageResponseError = (deleteMessageResponse401 | deleteMessageResponse404 | deleteMessageResponse500) & {
+export type deleteMessageResponseError = (
+ | deleteMessageResponse401
+ | deleteMessageResponse404
+ | deleteMessageResponse500
+) & {
headers: Headers;
};
-export type deleteMessageResponse = (deleteMessageResponseSuccess | deleteMessageResponseError)
-
-export const getDeleteMessageUrl = (channelId: string,
- messageId: string,) => {
-
+export type deleteMessageResponse =
+ | deleteMessageResponseSuccess
+ | deleteMessageResponseError;
-
-
- return `/channels/${channelId}/message/${messageId}`
-}
+export const getDeleteMessageUrl = (channelId: string, messageId: string) => {
+ return `/channels/${channelId}/message/${messageId}`;
+};
-export const deleteMessage = async (channelId: string,
- messageId: string, options?: RequestInit): Promise<deleteMessageResponse> => {
-
- const res = await fetch(getDeleteMessageUrl(channelId,messageId),
- {
+export const deleteMessage = async (
+ channelId: string,
+ messageId: string,
+ options?: RequestInit
+): Promise<deleteMessageResponse> => {
+ const res = await fetch(getDeleteMessageUrl(channelId, messageId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteMessageResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteMessageResponse
-}
-
+ const data: deleteMessageResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteMessageResponse;
+};
export type patchMessageResponse201 = {
- data: string
- status: 201
-}
+ data: string;
+ status: 201;
+};
export type patchMessageResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type patchMessageResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type patchMessageResponse500 = {
- data: string
- status: 500
-}
-
-export type patchMessageResponseSuccess = (patchMessageResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type patchMessageResponseSuccess = patchMessageResponse201 & {
headers: Headers;
};
-export type patchMessageResponseError = (patchMessageResponse401 | patchMessageResponse404 | patchMessageResponse500) & {
+export type patchMessageResponseError = (
+ | patchMessageResponse401
+ | patchMessageResponse404
+ | patchMessageResponse500
+) & {
headers: Headers;
};
-export type patchMessageResponse = (patchMessageResponseSuccess | patchMessageResponseError)
-
-export const getPatchMessageUrl = (channelId: string,
- messageId: string,) => {
-
+export type patchMessageResponse =
+ | patchMessageResponseSuccess
+ | patchMessageResponseError;
-
-
- return `/channels/${channelId}/message/${messageId}`
-}
+export const getPatchMessageUrl = (channelId: string, messageId: string) => {
+ return `/channels/${channelId}/message/${messageId}`;
+};
-export const patchMessage = async (channelId: string,
- messageId: string,
- patchMessageRequest: PatchMessageRequest, options?: RequestInit): Promise<patchMessageResponse> => {
-
- const res = await fetch(getPatchMessageUrl(channelId,messageId),
- {
+export const patchMessage = async (
+ channelId: string,
+ messageId: string,
+ patchMessageRequest: PatchMessageRequest,
+ options?: RequestInit
+): Promise<patchMessageResponse> => {
+ const res = await fetch(getPatchMessageUrl(channelId, messageId), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchMessageRequest,)
- }
-)
+ body: JSON.stringify(patchMessageRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchMessageResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchMessageResponse
-}
-
+ const data: patchMessageResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchMessageResponse;
+};
/**
- * adds a list of participants to the channel, user must be an owner or an admin
+ * adds a list of participants to the channel, user must be a participant
*/
export type addParticipantsResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type addParticipantsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type addParticipantsResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type addParticipantsResponse500 = {
- data: string
- status: 500
-}
-
-export type addParticipantsResponseSuccess = (addParticipantsResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type addParticipantsResponseSuccess = addParticipantsResponse200 & {
headers: Headers;
};
-export type addParticipantsResponseError = (addParticipantsResponse401 | addParticipantsResponse404 | addParticipantsResponse500) & {
+export type addParticipantsResponseError = (
+ | addParticipantsResponse401
+ | addParticipantsResponse404
+ | addParticipantsResponse500
+) & {
headers: Headers;
};
-export type addParticipantsResponse = (addParticipantsResponseSuccess | addParticipantsResponseError)
-
-export const getAddParticipantsUrl = (channelId: string,) => {
-
+export type addParticipantsResponse =
+ | addParticipantsResponseSuccess
+ | addParticipantsResponseError;
-
-
- return `/channels/${channelId}/participants`
-}
+export const getAddParticipantsUrl = (channelId: string) => {
+ return `/channels/${channelId}/participants`;
+};
-export const addParticipants = async (channelId: string,
- addParticipantsRequest: AddParticipantsRequest, options?: RequestInit): Promise<addParticipantsResponse> => {
-
- const res = await fetch(getAddParticipantsUrl(channelId),
- {
+export const addParticipants = async (
+ channelId: string,
+ addParticipantsRequest: AddParticipantsRequest,
+ options?: RequestInit
+): Promise<addParticipantsResponse> => {
+ const res = await fetch(getAddParticipantsUrl(channelId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- addParticipantsRequest,)
- }
-)
+ body: JSON.stringify(addParticipantsRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: addParticipantsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as addParticipantsResponse
-}
-
+ const data: addParticipantsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as addParticipantsResponse;
+};
/**
- * removes a list of participants to the channel, user must be an owner or an admin
+ * removes a list of participants from the channel, user must be a participant
*/
export type removeParticipantsResponse200 = {
- data: void
- status: 200
-}
+ data: void;
+ status: 200;
+};
export type removeParticipantsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type removeParticipantsResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type removeParticipantsResponse500 = {
- data: string
- status: 500
-}
-
-export type removeParticipantsResponseSuccess = (removeParticipantsResponse200) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type removeParticipantsResponseError = (removeParticipantsResponse401 | removeParticipantsResponse404 | removeParticipantsResponse500) & {
+
+export type removeParticipantsResponseSuccess =
+ removeParticipantsResponse200 & {
+ headers: Headers;
+ };
+export type removeParticipantsResponseError = (
+ | removeParticipantsResponse401
+ | removeParticipantsResponse404
+ | removeParticipantsResponse500
+) & {
headers: Headers;
};
-export type removeParticipantsResponse = (removeParticipantsResponseSuccess | removeParticipantsResponseError)
-
-export const getRemoveParticipantsUrl = (channelId: string,) => {
+export type removeParticipantsResponse =
+ | removeParticipantsResponseSuccess
+ | removeParticipantsResponseError;
+export const getRemoveParticipantsUrl = (channelId: string) => {
+ return `/channels/${channelId}/participants`;
+};
-
-
- return `/channels/${channelId}/participants`
-}
-
-export const removeParticipants = async (channelId: string,
- removeParticipantsRequest: RemoveParticipantsRequest, options?: RequestInit): Promise<removeParticipantsResponse> => {
-
- const res = await fetch(getRemoveParticipantsUrl(channelId),
- {
+export const removeParticipants = async (
+ channelId: string,
+ removeParticipantsRequest: RemoveParticipantsRequest,
+ options?: RequestInit
+): Promise<removeParticipantsResponse> => {
+ const res = await fetch(getRemoveParticipantsUrl(channelId), {
...options,
method: 'DELETE',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- removeParticipantsRequest,)
- }
-)
+ body: JSON.stringify(removeParticipantsRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: removeParticipantsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as removeParticipantsResponse
-}
-
+ const data: removeParticipantsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as removeParticipantsResponse;
+};
export type postReactionResponse201 = {
- data: string
- status: 201
-}
+ data: string;
+ status: 201;
+};
export type postReactionResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type postReactionResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type postReactionResponse500 = {
- data: string
- status: 500
-}
-
-export type postReactionResponseSuccess = (postReactionResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type postReactionResponseSuccess = postReactionResponse201 & {
headers: Headers;
};
-export type postReactionResponseError = (postReactionResponse401 | postReactionResponse404 | postReactionResponse500) & {
+export type postReactionResponseError = (
+ | postReactionResponse401
+ | postReactionResponse404
+ | postReactionResponse500
+) & {
headers: Headers;
};
-export type postReactionResponse = (postReactionResponseSuccess | postReactionResponseError)
-
-export const getPostReactionUrl = (channelId: string,) => {
-
+export type postReactionResponse =
+ | postReactionResponseSuccess
+ | postReactionResponseError;
-
-
- return `/channels/${channelId}/reaction`
-}
+export const getPostReactionUrl = (channelId: string) => {
+ return `/channels/${channelId}/reaction`;
+};
-export const postReaction = async (channelId: string,
- postReactionRequest: PostReactionRequest, options?: RequestInit): Promise<postReactionResponse> => {
-
- const res = await fetch(getPostReactionUrl(channelId),
- {
+export const postReaction = async (
+ channelId: string,
+ postReactionRequest: PostReactionRequest,
+ options?: RequestInit
+): Promise<postReactionResponse> => {
+ const res = await fetch(getPostReactionUrl(channelId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- postReactionRequest,)
- }
-)
+ body: JSON.stringify(postReactionRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: postReactionResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as postReactionResponse
-}
-
+ const data: postReactionResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as postReactionResponse;
+};
export type postTypingResponse201 = {
- data: string
- status: 201
-}
+ data: string;
+ status: 201;
+};
export type postTypingResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type postTypingResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type postTypingResponse500 = {
- data: string
- status: 500
-}
-
-export type postTypingResponseSuccess = (postTypingResponse201) & {
+ data: string;
+ status: 500;
+};
+
+export type postTypingResponseSuccess = postTypingResponse201 & {
headers: Headers;
};
-export type postTypingResponseError = (postTypingResponse401 | postTypingResponse404 | postTypingResponse500) & {
+export type postTypingResponseError = (
+ | postTypingResponse401
+ | postTypingResponse404
+ | postTypingResponse500
+) & {
headers: Headers;
};
-export type postTypingResponse = (postTypingResponseSuccess | postTypingResponseError)
-
-export const getPostTypingUrl = (channelId: string,) => {
-
+export type postTypingResponse =
+ | postTypingResponseSuccess
+ | postTypingResponseError;
-
-
- return `/channels/${channelId}/typing`
-}
+export const getPostTypingUrl = (channelId: string) => {
+ return `/channels/${channelId}/typing`;
+};
-export const postTyping = async (channelId: string,
- postTypingRequest: PostTypingRequest, options?: RequestInit): Promise<postTypingResponse> => {
-
- const res = await fetch(getPostTypingUrl(channelId),
- {
+export const postTyping = async (
+ channelId: string,
+ postTypingRequest: PostTypingRequest,
+ options?: RequestInit
+): Promise<postTypingResponse> => {
+ const res = await fetch(getPostTypingUrl(channelId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- postTypingRequest,)
- }
-)
+ body: JSON.stringify(postTypingRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: postTypingResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as postTypingResponse
-}
-
+ const data: postTypingResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as postTypingResponse;
+};
export type createMentionHandlerResponse201 = {
- data: CreateEntityMentionResponse
- status: 201
-}
+ data: CreateEntityMentionResponse;
+ status: 201;
+};
export type createMentionHandlerResponse400 = {
- data: void
- status: 400
-}
+ data: void;
+ status: 400;
+};
export type createMentionHandlerResponse500 = {
- data: void
- status: 500
-}
-
-export type createMentionHandlerResponseSuccess = (createMentionHandlerResponse201) & {
- headers: Headers;
+ data: void;
+ status: 500;
};
-export type createMentionHandlerResponseError = (createMentionHandlerResponse400 | createMentionHandlerResponse500) & {
+
+export type createMentionHandlerResponseSuccess =
+ createMentionHandlerResponse201 & {
+ headers: Headers;
+ };
+export type createMentionHandlerResponseError = (
+ | createMentionHandlerResponse400
+ | createMentionHandlerResponse500
+) & {
headers: Headers;
};
-export type createMentionHandlerResponse = (createMentionHandlerResponseSuccess | createMentionHandlerResponseError)
+export type createMentionHandlerResponse =
+ | createMentionHandlerResponseSuccess
+ | createMentionHandlerResponseError;
export const getCreateMentionHandlerUrl = () => {
+ return `/mentions`;
+};
-
-
-
- return `/mentions`
-}
-
-export const createMentionHandler = async (createEntityMentionRequest: CreateEntityMentionRequest, options?: RequestInit): Promise<createMentionHandlerResponse> => {
-
- const res = await fetch(getCreateMentionHandlerUrl(),
- {
+export const createMentionHandler = async (
+ createEntityMentionRequest: CreateEntityMentionRequest,
+ options?: RequestInit
+): Promise<createMentionHandlerResponse> => {
+ const res = await fetch(getCreateMentionHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createEntityMentionRequest,)
- }
-)
+ body: JSON.stringify(createEntityMentionRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createMentionHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createMentionHandlerResponse
-}
-
+ const data: createMentionHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createMentionHandlerResponse;
+};
export type deleteMentionHandlerResponse200 = {
- data: DeleteEntityMentionResponse
- status: 200
-}
+ data: DeleteEntityMentionResponse;
+ status: 200;
+};
export type deleteMentionHandlerResponse400 = {
- data: void
- status: 400
-}
+ data: void;
+ status: 400;
+};
export type deleteMentionHandlerResponse403 = {
- data: void
- status: 403
-}
+ data: void;
+ status: 403;
+};
export type deleteMentionHandlerResponse404 = {
- data: void
- status: 404
-}
+ data: void;
+ status: 404;
+};
export type deleteMentionHandlerResponse500 = {
- data: void
- status: 500
-}
-
-export type deleteMentionHandlerResponseSuccess = (deleteMentionHandlerResponse200) & {
- headers: Headers;
+ data: void;
+ status: 500;
};
-export type deleteMentionHandlerResponseError = (deleteMentionHandlerResponse400 | deleteMentionHandlerResponse403 | deleteMentionHandlerResponse404 | deleteMentionHandlerResponse500) & {
+
+export type deleteMentionHandlerResponseSuccess =
+ deleteMentionHandlerResponse200 & {
+ headers: Headers;
+ };
+export type deleteMentionHandlerResponseError = (
+ | deleteMentionHandlerResponse400
+ | deleteMentionHandlerResponse403
+ | deleteMentionHandlerResponse404
+ | deleteMentionHandlerResponse500
+) & {
headers: Headers;
};
-export type deleteMentionHandlerResponse = (deleteMentionHandlerResponseSuccess | deleteMentionHandlerResponseError)
-
-export const getDeleteMentionHandlerUrl = (mentionId: string,) => {
-
+export type deleteMentionHandlerResponse =
+ | deleteMentionHandlerResponseSuccess
+ | deleteMentionHandlerResponseError;
-
-
- return `/mentions/${mentionId}`
-}
+export const getDeleteMentionHandlerUrl = (mentionId: string) => {
+ return `/mentions/${mentionId}`;
+};
-export const deleteMentionHandler = async (mentionId: string, options?: RequestInit): Promise<deleteMentionHandlerResponse> => {
-
- const res = await fetch(getDeleteMentionHandlerUrl(mentionId),
- {
+export const deleteMentionHandler = async (
+ mentionId: string,
+ options?: RequestInit
+): Promise<deleteMentionHandlerResponse> => {
+ const res = await fetch(getDeleteMentionHandlerUrl(mentionId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteMentionHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteMentionHandlerResponse
-}
-
+ const data: deleteMentionHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteMentionHandlerResponse;
+};
export type getBatchChannelPreviewResponse200 = {
- data: GetBatchChannelPreviewResponse
- status: 200
-}
+ data: GetBatchChannelPreviewResponse;
+ status: 200;
+};
export type getBatchChannelPreviewResponse401 = {
- data: GenericErrorResponse
- status: 401
-}
+ data: GenericErrorResponse;
+ status: 401;
+};
export type getBatchChannelPreviewResponse404 = {
- data: GenericErrorResponse
- status: 404
-}
+ data: GenericErrorResponse;
+ status: 404;
+};
export type getBatchChannelPreviewResponse500 = {
- data: GenericErrorResponse
- status: 500
-}
-
-export type getBatchChannelPreviewResponseSuccess = (getBatchChannelPreviewResponse200) & {
- headers: Headers;
+ data: GenericErrorResponse;
+ status: 500;
};
-export type getBatchChannelPreviewResponseError = (getBatchChannelPreviewResponse401 | getBatchChannelPreviewResponse404 | getBatchChannelPreviewResponse500) & {
+
+export type getBatchChannelPreviewResponseSuccess =
+ getBatchChannelPreviewResponse200 & {
+ headers: Headers;
+ };
+export type getBatchChannelPreviewResponseError = (
+ | getBatchChannelPreviewResponse401
+ | getBatchChannelPreviewResponse404
+ | getBatchChannelPreviewResponse500
+) & {
headers: Headers;
};
-export type getBatchChannelPreviewResponse = (getBatchChannelPreviewResponseSuccess | getBatchChannelPreviewResponseError)
+export type getBatchChannelPreviewResponse =
+ | getBatchChannelPreviewResponseSuccess
+ | getBatchChannelPreviewResponseError;
export const getGetBatchChannelPreviewUrl = () => {
+ return `/preview`;
+};
-
-
-
- return `/preview`
-}
-
-export const getBatchChannelPreview = async (getBatchChannelPreviewRequest: GetBatchChannelPreviewRequest, options?: RequestInit): Promise<getBatchChannelPreviewResponse> => {
-
- const res = await fetch(getGetBatchChannelPreviewUrl(),
- {
+export const getBatchChannelPreview = async (
+ getBatchChannelPreviewRequest: GetBatchChannelPreviewRequest,
+ options?: RequestInit
+): Promise<getBatchChannelPreviewResponse> => {
+ const res = await fetch(getGetBatchChannelPreviewUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getBatchChannelPreviewRequest,)
- }
-)
+ body: JSON.stringify(getBatchChannelPreviewRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getBatchChannelPreviewResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getBatchChannelPreviewResponse
-}
+
+ const data: getBatchChannelPreviewResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getBatchChannelPreviewResponse;
+};
diff --git a/js/app/packages/service-clients/service-comms/generated/models/activityType.ts b/js/app/packages/service-clients/service-comms/generated/models/activityType.ts
index 9616e6e9a9..022960b602 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/activityType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/activityType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ActivityType = typeof ActivityType[keyof typeof ActivityType];
-
+export type ActivityType = (typeof ActivityType)[keyof typeof ActivityType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ActivityType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/apiChannelWithLatest.ts b/js/app/packages/service-clients/service-comms/generated/models/apiChannelWithLatest.ts
index adc7dccd1c..51e27e0ce8 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/apiChannelWithLatest.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/apiChannelWithLatest.ts
@@ -4,8 +4,11 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
+
+import type { ApiChannelWithLatestAllOf } from './apiChannelWithLatestAllOf';
import type { ChannelWithParticipants } from './channelWithParticipants';
import type { LatestMessage } from './latestMessage';
-import type { ApiChannelWithLatestAllOf } from './apiChannelWithLatestAllOf';
-export type ApiChannelWithLatest = ChannelWithParticipants & LatestMessage & ApiChannelWithLatestAllOf;
+export type ApiChannelWithLatest = ChannelWithParticipants &
+ LatestMessage &
+ ApiChannelWithLatestAllOf;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channel.ts b/js/app/packages/service-clients/service-comms/generated/models/channel.ts
index 01333eae54..ddbc54bdd9 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channel.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channel.ts
@@ -4,9 +4,10 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { ChannelType } from './channelType';
+
import type { ChannelName } from './channelName';
import type { ChannelOrgId } from './channelOrgId';
+import type { ChannelType } from './channelType';
export interface Channel {
/** type of the channel */
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreview.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreview.ts
index f5a70e0190..328c46e4af 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreview.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreview.ts
@@ -8,4 +8,7 @@ import type { ChannelPreviewOneOf } from './channelPreviewOneOf';
import type { ChannelPreviewOneOfFour } from './channelPreviewOneOfFour';
import type { ChannelPreviewOneOfSeven } from './channelPreviewOneOfSeven';
-export type ChannelPreview = ChannelPreviewOneOf | ChannelPreviewOneOfFour | ChannelPreviewOneOfSeven;
+export type ChannelPreview =
+ | ChannelPreviewOneOf
+ | ChannelPreviewOneOfFour
+ | ChannelPreviewOneOfSeven;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfAllOfType.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfAllOfType.ts
index 0a602d7fa2..45534b366b 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelPreviewOneOfAllOfType = typeof ChannelPreviewOneOfAllOfType[keyof typeof ChannelPreviewOneOfAllOfType];
-
+export type ChannelPreviewOneOfAllOfType =
+ (typeof ChannelPreviewOneOfAllOfType)[keyof typeof ChannelPreviewOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelPreviewOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFour.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFour.ts
index e662c942b7..b3b06468d2 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFour.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFour.ts
@@ -4,7 +4,9 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithChannelId } from './withChannelId';
+
import type { ChannelPreviewOneOfFourAllOf } from './channelPreviewOneOfFourAllOf';
+import type { WithChannelId } from './withChannelId';
-export type ChannelPreviewOneOfFour = WithChannelId & ChannelPreviewOneOfFourAllOf;
+export type ChannelPreviewOneOfFour = WithChannelId &
+ ChannelPreviewOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFourAllOfType.ts
index 173500bb51..c6cbefb798 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelPreviewOneOfFourAllOfType = typeof ChannelPreviewOneOfFourAllOfType[keyof typeof ChannelPreviewOneOfFourAllOfType];
-
+export type ChannelPreviewOneOfFourAllOfType =
+ (typeof ChannelPreviewOneOfFourAllOfType)[keyof typeof ChannelPreviewOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelPreviewOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSeven.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSeven.ts
index a839624810..c93b405ab7 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSeven.ts
@@ -4,7 +4,9 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithChannelId } from './withChannelId';
+
import type { ChannelPreviewOneOfSevenAllOf } from './channelPreviewOneOfSevenAllOf';
+import type { WithChannelId } from './withChannelId';
-export type ChannelPreviewOneOfSeven = WithChannelId & ChannelPreviewOneOfSevenAllOf;
+export type ChannelPreviewOneOfSeven = WithChannelId &
+ ChannelPreviewOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSevenAllOfType.ts
index 0ea4762894..4494e6cd41 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelPreviewOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelPreviewOneOfSevenAllOfType = typeof ChannelPreviewOneOfSevenAllOfType[keyof typeof ChannelPreviewOneOfSevenAllOfType];
-
+export type ChannelPreviewOneOfSevenAllOfType =
+ (typeof ChannelPreviewOneOfSevenAllOfType)[keyof typeof ChannelPreviewOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelPreviewOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/channelType.ts b/js/app/packages/service-clients/service-comms/generated/models/channelType.ts
index 16bb2ce554..82eed3972f 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/channelType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/channelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
-
+export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/communicationServiceApiVersion.ts b/js/app/packages/service-clients/service-comms/generated/models/communicationServiceApiVersion.ts
index 0b1a5b47ca..d44ada5fcd 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/communicationServiceApiVersion.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/communicationServiceApiVersion.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type CommunicationServiceApiVersion = typeof CommunicationServiceApiVersion[keyof typeof CommunicationServiceApiVersion];
-
+export type CommunicationServiceApiVersion =
+ (typeof CommunicationServiceApiVersion)[keyof typeof CommunicationServiceApiVersion];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CommunicationServiceApiVersion = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfAllOfReferenceType.ts b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfAllOfReferenceType.ts
index c0f31c3587..035eabfdb4 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfAllOfReferenceType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfAllOfReferenceType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type EntityReferenceOneOfAllOfReferenceType = typeof EntityReferenceOneOfAllOfReferenceType[keyof typeof EntityReferenceOneOfAllOfReferenceType];
-
+export type EntityReferenceOneOfAllOfReferenceType =
+ (typeof EntityReferenceOneOfAllOfReferenceType)[keyof typeof EntityReferenceOneOfAllOfReferenceType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityReferenceOneOfAllOfReferenceType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFour.ts b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFour.ts
index a956545c1c..58800bcdc6 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFour.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFour.ts
@@ -4,10 +4,12 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { GenericReference } from './genericReference';
+
import type { EntityReferenceOneOfFourAllOf } from './entityReferenceOneOfFourAllOf';
+import type { GenericReference } from './genericReference';
/**
* An entity was referenced from anything but a channel
*/
-export type EntityReferenceOneOfFour = GenericReference & EntityReferenceOneOfFourAllOf;
+export type EntityReferenceOneOfFour = GenericReference &
+ EntityReferenceOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFourAllOfReferenceType.ts b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFourAllOfReferenceType.ts
index 249231d857..f7c56c5d02 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFourAllOfReferenceType.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/entityReferenceOneOfFourAllOfReferenceType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type EntityReferenceOneOfFourAllOfReferenceType = typeof EntityReferenceOneOfFourAllOfReferenceType[keyof typeof EntityReferenceOneOfFourAllOfReferenceType];
-
+export type EntityReferenceOneOfFourAllOfReferenceType =
+ (typeof EntityReferenceOneOfFourAllOfReferenceType)[keyof typeof EntityReferenceOneOfFourAllOfReferenceType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityReferenceOneOfFourAllOfReferenceType = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/getChannelParams.ts b/js/app/packages/service-clients/service-comms/generated/models/getChannelParams.ts
index 58ad99f4dd..e5357eb99c 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/getChannelParams.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/getChannelParams.ts
@@ -6,12 +6,12 @@
*/
export type GetChannelParams = {
-/**
- * ISO8601 timestamp to fetch messages since
- */
-since?: string;
-/**
- * Maximum number of messages to fetch
- */
-limit?: number;
+ /**
+ * ISO8601 timestamp to fetch messages since
+ */
+ since?: string;
+ /**
+ * Maximum number of messages to fetch
+ */
+ limit?: number;
};
diff --git a/js/app/packages/service-clients/service-comms/generated/models/getChannelResponse.ts b/js/app/packages/service-clients/service-comms/generated/models/getChannelResponse.ts
index 7e658f7d28..58cccee194 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/getChannelResponse.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/getChannelResponse.ts
@@ -4,13 +4,14 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { ParticipantAccess } from './participantAccess';
-import type { GetChannelResponseActivity } from './getChannelResponseActivity';
+
import type { Attachment } from './attachment';
import type { Channel } from './channel';
-import type { Message } from './message';
import type { ChannelParticipant } from './channelParticipant';
+import type { GetChannelResponseActivity } from './getChannelResponseActivity';
import type { GetChannelResponseReactions } from './getChannelResponseReactions';
+import type { Message } from './message';
+import type { ParticipantAccess } from './participantAccess';
export interface GetChannelResponse {
/** What kind of access the user has to the channel
diff --git a/js/app/packages/service-clients/service-comms/generated/models/getChannelResponseReactions.ts b/js/app/packages/service-clients/service-comms/generated/models/getChannelResponseReactions.ts
index 8211301ab1..58e4d86dd4 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/getChannelResponseReactions.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/getChannelResponseReactions.ts
@@ -9,4 +9,4 @@ import type { CountedReaction } from './countedReaction';
/**
* reactions grouped by message
*/
-export type GetChannelResponseReactions = {[key: string]: CountedReaction[]};
+export type GetChannelResponseReactions = { [key: string]: CountedReaction[] };
diff --git a/js/app/packages/service-clients/service-comms/generated/models/getMessageWithContextParams.ts b/js/app/packages/service-clients/service-comms/generated/models/getMessageWithContextParams.ts
index 80015bf47b..111607b5ea 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/getMessageWithContextParams.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/getMessageWithContextParams.ts
@@ -6,16 +6,16 @@
*/
export type GetMessageWithContextParams = {
-/**
- * ID of the message to get context around
- */
-message_id: string;
-/**
- * Number of messages to fetch before the target message (defaults to 0)
- */
-before: number;
-/**
- * Number of messages to fetch after the target message (defaults to 0)
- */
-after: number;
+ /**
+ * ID of the message to get context around
+ */
+ message_id: string;
+ /**
+ * Number of messages to fetch before the target message (defaults to 0)
+ */
+ before: number;
+ /**
+ * Number of messages to fetch after the target message (defaults to 0)
+ */
+ after: number;
};
diff --git a/js/app/packages/service-clients/service-comms/generated/models/getOrCreateAction.ts b/js/app/packages/service-clients/service-comms/generated/models/getOrCreateAction.ts
index 752af00fae..521e5b2dc3 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/getOrCreateAction.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/getOrCreateAction.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type GetOrCreateAction = typeof GetOrCreateAction[keyof typeof GetOrCreateAction];
-
+export type GetOrCreateAction =
+ (typeof GetOrCreateAction)[keyof typeof GetOrCreateAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const GetOrCreateAction = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/index.ts b/js/app/packages/service-clients/service-comms/generated/models/index.ts
index 7dcf3be7a4..abc1414c4a 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/index.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/index.ts
@@ -118,4 +118,4 @@ export * from './removeParticipantsRequest';
export * from './simpleMention';
export * from './stringIDResponse';
export * from './typingAction';
-export * from './withChannelId';
\ No newline at end of file
+export * from './withChannelId';
diff --git a/js/app/packages/service-clients/service-comms/generated/models/participantRole.ts b/js/app/packages/service-clients/service-comms/generated/models/participantRole.ts
index ae8dc4c598..fcb44d8751 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/participantRole.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/participantRole.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ParticipantRole = typeof ParticipantRole[keyof typeof ParticipantRole];
-
+export type ParticipantRole =
+ (typeof ParticipantRole)[keyof typeof ParticipantRole];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ParticipantRole = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/postMessageRequest.ts b/js/app/packages/service-clients/service-comms/generated/models/postMessageRequest.ts
index 08759c0354..e2fce060b4 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/postMessageRequest.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/postMessageRequest.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { NewAttachment } from './newAttachment';
-import type { SimpleMention } from './simpleMention';
import type { PostMessageRequestThreadId } from './postMessageRequestThreadId';
+import type { SimpleMention } from './simpleMention';
export interface PostMessageRequest {
attachments: NewAttachment[];
diff --git a/js/app/packages/service-clients/service-comms/generated/models/postTypingRequest.ts b/js/app/packages/service-clients/service-comms/generated/models/postTypingRequest.ts
index 5fd397d2b6..0e893a81fd 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/postTypingRequest.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/postTypingRequest.ts
@@ -4,8 +4,9 @@
* comms_service
* OpenAPI spec version: 0.1.0
*/
-import type { TypingAction } from './typingAction';
+
import type { PostTypingRequestThreadId } from './postTypingRequestThreadId';
+import type { TypingAction } from './typingAction';
export interface PostTypingRequest {
action: TypingAction;
diff --git a/js/app/packages/service-clients/service-comms/generated/models/reactionAction.ts b/js/app/packages/service-clients/service-comms/generated/models/reactionAction.ts
index 2bc13380ee..106858461d 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/reactionAction.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/reactionAction.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ReactionAction = typeof ReactionAction[keyof typeof ReactionAction];
-
+export type ReactionAction =
+ (typeof ReactionAction)[keyof typeof ReactionAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ReactionAction = {
diff --git a/js/app/packages/service-clients/service-comms/generated/models/typingAction.ts b/js/app/packages/service-clients/service-comms/generated/models/typingAction.ts
index 6f07162f74..dff7bd4bae 100644
--- a/js/app/packages/service-clients/service-comms/generated/models/typingAction.ts
+++ b/js/app/packages/service-clients/service-comms/generated/models/typingAction.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type TypingAction = typeof TypingAction[keyof typeof TypingAction];
-
+export type TypingAction = (typeof TypingAction)[keyof typeof TypingAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const TypingAction = {
diff --git a/js/app/packages/service-clients/service-comms/openapi.json b/js/app/packages/service-clients/service-comms/openapi.json
index fa4a8b1b08..7288d1fcd2 100644
--- a/js/app/packages/service-clients/service-comms/openapi.json
+++ b/js/app/packages/service-clients/service-comms/openapi.json
@@ -4,7 +4,9 @@
"title": "comms_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -19,22 +21,42 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiActivity" }
+ "items": {
+ "$ref": "#/components/schemas/ApiActivity"
+ }
}
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -44,7 +66,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostActivityRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PostActivityRequest"
+ }
}
},
"required": true
@@ -54,21 +78,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/Activity" }
+ "schema": {
+ "$ref": "#/components/schemas/Activity"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -83,14 +127,18 @@
"in": "path",
"description": "type of the attachment entity",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "entity_id",
"in": "path",
"description": "id of the attachment entity",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -106,15 +154,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -139,15 +205,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -157,7 +241,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateChannelRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateChannelRequest"
+ }
}
},
"required": true
@@ -175,19 +261,43 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -200,7 +310,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetOrCreateDmRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/GetOrCreateDmRequest"
+ }
}
},
"required": true
@@ -218,19 +330,43 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -263,19 +399,43 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -290,21 +450,29 @@
"in": "query",
"description": "ID of the message to get context around",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "before",
"in": "query",
"description": "Number of messages to fetch before the target message (defaults to 0)",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "after",
"in": "query",
"description": "Number of messages to fetch after the target message (defaults to 0)",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -320,15 +488,33 @@
},
"400": {
"description": "Invalid request parameters",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "Unauthorized",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "Internal server error",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -343,21 +529,28 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "since",
"in": "query",
"description": "ISO8601 timestamp to fetch messages since",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "limit",
"in": "query",
"description": "Maximum number of messages to fetch",
"required": false,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -365,21 +558,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetChannelResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetChannelResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -392,25 +605,51 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"204": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -423,13 +662,17 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchChannelOptions" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchChannelOptions"
+ }
}
},
"required": true
@@ -437,11 +680,23 @@
"responses": {
"200": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -457,22 +712,44 @@
"in": "path",
"description": "channel id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -488,22 +765,44 @@
"in": "path",
"description": "channel id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -518,7 +817,9 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -526,21 +827,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetMentionsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetMentionsResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -555,13 +876,17 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostMessageRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PostMessageRequest"
+ }
}
},
"required": true
@@ -571,21 +896,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostMessageResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/PostMessageResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -600,32 +945,60 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "message_id",
"in": "path",
"description": "id of the message",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"201": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -638,20 +1011,26 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "message_id",
"in": "path",
"description": "id of the message",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchMessageRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchMessageRequest"
+ }
}
},
"required": true
@@ -659,19 +1038,43 @@
"responses": {
"201": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -679,7 +1082,7 @@
"/channels/{channel_id}/participants": {
"post": {
"tags": ["channels"],
- "description": "adds a list of participants to the channel, user must be an owner or an admin",
+ "description": "adds a list of participants to the channel, user must be a participant",
"operationId": "add_participants",
"parameters": [
{
@@ -687,7 +1090,9 @@
"in": "path",
"description": "channel id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -701,24 +1106,44 @@
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
"delete": {
"tags": ["channels"],
- "description": "removes a list of participants to the channel, user must be an owner or an admin",
+ "description": "removes a list of participants from the channel, user must be a participant",
"operationId": "remove_participants",
"parameters": [
{
@@ -726,7 +1151,9 @@
"in": "path",
"description": "channel id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -740,18 +1167,38 @@
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -766,13 +1213,17 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostReactionRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PostReactionRequest"
+ }
}
},
"required": true
@@ -780,19 +1231,43 @@
"responses": {
"201": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -807,13 +1282,17 @@
"in": "path",
"description": "id of the channel",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostTypingRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PostTypingRequest"
+ }
}
},
"required": true
@@ -821,19 +1300,43 @@
"responses": {
"201": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -863,8 +1366,12 @@
}
}
},
- "400": { "description": "Invalid request parameters" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request parameters"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -878,7 +1385,9 @@
"in": "path",
"description": "UUID of the entity mention to delete",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -892,10 +1401,18 @@
}
}
},
- "400": { "description": "Invalid request parameters" },
- "403": { "description": "Insufficient permissions" },
- "404": { "description": "Entity mention not found" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request parameters"
+ },
+ "403": {
+ "description": "Insufficient permissions"
+ },
+ "404": {
+ "description": "Entity mention not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -965,16 +1482,30 @@
"description": "Represents a user's activity in a channel",
"required": ["id", "user_id", "channel_id", "created_at", "updated_at"],
"properties": {
- "channel_id": { "type": "string", "format": "uuid" },
- "created_at": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
+ "channel_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
"interacted_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "the last time the user intereacted with the channel\neg. reacting, replying, sending a message"
},
- "updated_at": { "type": "string", "format": "date-time" },
- "user_id": { "type": "string" },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "user_id": {
+ "type": "string"
+ },
"viewed_at": {
"type": ["string", "null"],
"format": "date-time",
@@ -982,28 +1513,50 @@
}
}
},
- "ActivityType": { "type": "string", "enum": ["view", "interact"] },
+ "ActivityType": {
+ "type": "string",
+ "enum": ["view", "interact"]
+ },
"AddParticipantsRequest": {
"type": "object",
"required": ["participants"],
"properties": {
- "participants": { "type": "array", "items": { "type": "string" } }
+ "participants": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"ApiActivity": {
"type": "object",
"required": ["id", "user_id", "channel_id", "created_at", "updated_at"],
"properties": {
- "channel_id": { "type": "string", "format": "uuid" },
- "created_at": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
+ "channel_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
"interacted_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "the last time the user intereacted with the channel\neg. reacting, replying, sending a message"
},
- "updated_at": { "type": "string", "format": "date-time" },
- "user_id": { "type": "string" },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "user_id": {
+ "type": "string"
+ },
"viewed_at": {
"type": ["string", "null"],
"format": "date-time",
@@ -1013,8 +1566,12 @@
},
"ApiChannelWithLatest": {
"allOf": [
- { "$ref": "#/components/schemas/ChannelWithParticipants" },
- { "$ref": "#/components/schemas/LatestMessage" },
+ {
+ "$ref": "#/components/schemas/ChannelWithParticipants"
+ },
+ {
+ "$ref": "#/components/schemas/LatestMessage"
+ },
{
"type": "object",
"properties": {
@@ -1026,7 +1583,10 @@
"type": ["string", "null"],
"format": "date-time"
},
- "viewed_at": { "type": ["string", "null"], "format": "date-time" }
+ "viewed_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ }
}
}
]
@@ -1042,13 +1602,32 @@
"created_at"
],
"properties": {
- "channel_id": { "type": "string", "format": "uuid" },
- "created_at": { "type": "string", "format": "date-time" },
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
- "height": { "type": ["integer", "null"], "format": "int32" },
- "id": { "type": "string", "format": "uuid" },
- "message_id": { "type": "string", "format": "uuid" },
+ "channel_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
+ "height": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "message_id": {
+ "type": "string",
+ "format": "uuid"
+ },
"width": {
"type": ["integer", "null"],
"format": "int32",
@@ -1112,18 +1691,39 @@
"mentions"
],
"properties": {
- "content": { "type": "string" },
- "created_at": { "type": "string", "format": "date-time" },
- "deleted_at": { "type": ["string", "null"], "format": "date-time" },
+ "content": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "deleted_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`"
},
- "message_id": { "type": "string", "format": "uuid" },
- "sender_id": { "type": "string" },
- "thread_id": { "type": ["string", "null"], "format": "uuid" },
- "updated_at": { "type": "string", "format": "date-time" }
+ "message_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "sender_id": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"ChannelParticipant": {
@@ -1149,43 +1749,61 @@
"$ref": "#/components/schemas/ParticipantRole",
"description": "type of the participant"
},
- "user_id": { "type": "string", "description": "id of the user" }
+ "user_id": {
+ "type": "string",
+ "description": "id of the user"
+ }
}
},
"ChannelPreview": {
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/ChannelPreviewData" },
+ {
+ "$ref": "#/components/schemas/ChannelPreviewData"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["access"] }
+ "type": {
+ "type": "string",
+ "enum": ["access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithChannelId" },
+ {
+ "$ref": "#/components/schemas/WithChannelId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["no_access"] }
+ "type": {
+ "type": "string",
+ "enum": ["no_access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithChannelId" },
+ {
+ "$ref": "#/components/schemas/WithChannelId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["does_not_exist"] }
+ "type": {
+ "type": "string",
+ "enum": ["does_not_exist"]
+ }
}
}
]
@@ -1196,9 +1814,15 @@
"type": "object",
"required": ["channel_id", "channel_name", "channel_type"],
"properties": {
- "channel_id": { "type": "string" },
- "channel_name": { "type": "string" },
- "channel_type": { "$ref": "#/components/schemas/ChannelType" }
+ "channel_id": {
+ "type": "string"
+ },
+ "channel_name": {
+ "type": "string"
+ },
+ "channel_type": {
+ "$ref": "#/components/schemas/ChannelType"
+ }
}
},
"ChannelReference": {
@@ -1258,26 +1882,40 @@
},
"ChannelWithParticipants": {
"allOf": [
- { "$ref": "#/components/schemas/Channel" },
+ {
+ "$ref": "#/components/schemas/Channel"
+ },
{
"type": "object",
"required": ["participants"],
"properties": {
"participants": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChannelParticipant" }
+ "items": {
+ "$ref": "#/components/schemas/ChannelParticipant"
+ }
}
}
}
]
},
- "CommunicationServiceApiVersion": { "type": "string", "enum": ["v1"] },
+ "CommunicationServiceApiVersion": {
+ "type": "string",
+ "enum": ["v1"]
+ },
"CountedReaction": {
"type": "object",
"required": ["emoji", "users"],
"properties": {
- "emoji": { "type": "string" },
- "users": { "type": "array", "items": { "type": "string" } }
+ "emoji": {
+ "type": "string"
+ },
+ "users": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"CreateChannelRequest": {
@@ -1294,7 +1932,9 @@
},
"participants": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "list of participants not including the owner"
}
}
@@ -1302,7 +1942,11 @@
"CreateChannelResponse": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
},
"CreateEntityMentionRequest": {
"type": "object",
@@ -1313,10 +1957,18 @@
"entity_id"
],
"properties": {
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
- "source_entity_id": { "type": "string" },
- "source_entity_type": { "type": "string" }
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
+ "source_entity_id": {
+ "type": "string"
+ },
+ "source_entity_type": {
+ "type": "string"
+ }
}
},
"CreateEntityMentionResponse": {
@@ -1330,31 +1982,58 @@
"created_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
- "id": { "type": "string" },
- "source_entity_id": { "type": "string" },
- "source_entity_type": { "type": "string" },
- "user_id": { "type": ["string", "null"] }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "source_entity_id": {
+ "type": "string"
+ },
+ "source_entity_type": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": ["string", "null"]
+ }
}
},
"DeleteEntityMentionRequest": {
"type": "object",
"required": ["entity_mention_id"],
- "properties": { "entity_mention_id": { "type": "string" } }
+ "properties": {
+ "entity_mention_id": {
+ "type": "string"
+ }
+ }
},
"DeleteEntityMentionResponse": {
"type": "object",
"required": ["deleted"],
- "properties": { "deleted": { "type": "boolean" } }
+ "properties": {
+ "deleted": {
+ "type": "boolean"
+ }
+ }
},
"DeleteMessageParams": {
"type": "object",
"required": ["channel_id", "message_id"],
"properties": {
- "channel_id": { "type": "string" },
- "message_id": { "type": "string" }
+ "channel_id": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ }
}
},
"EntityMention": {
@@ -1368,13 +2047,29 @@
"created_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
- "source_entity_id": { "type": "string" },
- "source_entity_type": { "type": "string" },
- "user_id": { "type": ["string", "null"] }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "source_entity_id": {
+ "type": "string"
+ },
+ "source_entity_type": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": ["string", "null"]
+ }
}
},
"EntityReference": {
@@ -1389,7 +2084,10 @@
"type": "object",
"required": ["reference_type"],
"properties": {
- "reference_type": { "type": "string", "enum": ["channel"] }
+ "reference_type": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
}
],
@@ -1405,7 +2103,10 @@
"type": "object",
"required": ["reference_type"],
"properties": {
- "reference_type": { "type": "string", "enum": ["generic"] }
+ "reference_type": {
+ "type": "string",
+ "enum": ["generic"]
+ }
}
}
],
@@ -1474,7 +2175,9 @@
"properties": {
"references": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EntityReference" }
+ "items": {
+ "$ref": "#/components/schemas/EntityReference"
+ }
}
}
},
@@ -1482,7 +2185,12 @@
"type": "object",
"required": ["channel_ids"],
"properties": {
- "channel_ids": { "type": "array", "items": { "type": "string" } }
+ "channel_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetBatchChannelPreviewResponse": {
@@ -1491,7 +2199,9 @@
"properties": {
"previews": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChannelPreview" }
+ "items": {
+ "$ref": "#/components/schemas/ChannelPreview"
+ }
}
}
},
@@ -1512,7 +2222,9 @@
},
"activity": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/Activity",
"description": "the last activity for the given user on this channel"
@@ -1521,7 +2233,9 @@
},
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Attachment" },
+ "items": {
+ "$ref": "#/components/schemas/Attachment"
+ },
"description": "Attachments that are linked to messages in this channel"
},
"channel": {
@@ -1530,12 +2244,16 @@
},
"messages": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Message" },
+ "items": {
+ "$ref": "#/components/schemas/Message"
+ },
"description": "messages"
},
"participants": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChannelParticipant" },
+ "items": {
+ "$ref": "#/components/schemas/ChannelParticipant"
+ },
"description": "list of participants"
},
"reactions": {
@@ -1543,9 +2261,13 @@
"description": "reactions grouped by message",
"additionalProperties": {
"type": "array",
- "items": { "$ref": "#/components/schemas/CountedReaction" }
+ "items": {
+ "$ref": "#/components/schemas/CountedReaction"
+ }
},
- "propertyNames": { "type": "string" }
+ "propertyNames": {
+ "type": "string"
+ }
}
}
},
@@ -1555,7 +2277,9 @@
"properties": {
"mentions": {
"type": "array",
- "items": { "$ref": "#/components/schemas/MessageMention" }
+ "items": {
+ "$ref": "#/components/schemas/MessageMention"
+ }
}
}
},
@@ -1565,37 +2289,59 @@
"properties": {
"messages": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Message" }
+ "items": {
+ "$ref": "#/components/schemas/Message"
+ }
}
}
},
- "GetOrCreateAction": { "type": "string", "enum": ["get", "create"] },
+ "GetOrCreateAction": {
+ "type": "string",
+ "enum": ["get", "create"]
+ },
"GetOrCreateDmRequest": {
"type": "object",
"required": ["recipient_id"],
- "properties": { "recipient_id": { "type": "string" } }
+ "properties": {
+ "recipient_id": {
+ "type": "string"
+ }
+ }
},
"GetOrCreateDmResponse": {
"type": "object",
"required": ["channel_id", "action"],
"properties": {
- "action": { "$ref": "#/components/schemas/GetOrCreateAction" },
- "channel_id": { "type": "string" }
+ "action": {
+ "$ref": "#/components/schemas/GetOrCreateAction"
+ },
+ "channel_id": {
+ "type": "string"
+ }
}
},
"GetOrCreatePrivateRequest": {
"type": "object",
"required": ["recipients"],
"properties": {
- "recipients": { "type": "array", "items": { "type": "string" } }
+ "recipients": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetOrCreatePrivateResponse": {
"type": "object",
"required": ["channel_id", "action"],
"properties": {
- "action": { "$ref": "#/components/schemas/GetOrCreateAction" },
- "channel_id": { "type": "string" }
+ "action": {
+ "$ref": "#/components/schemas/GetOrCreateAction"
+ },
+ "channel_id": {
+ "type": "string"
+ }
}
},
"LatestMessage": {
@@ -1603,14 +2349,22 @@
"properties": {
"latest_message": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ChannelMessage" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ChannelMessage"
+ }
]
},
"latest_non_thread_message": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ChannelMessage" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ChannelMessage"
+ }
]
}
}
@@ -1626,39 +2380,81 @@
"updated_at"
],
"properties": {
- "channel_id": { "type": "string", "format": "uuid" },
- "content": { "type": "string" },
- "created_at": { "type": "string", "format": "date-time" },
- "deleted_at": { "type": ["string", "null"], "format": "date-time" },
- "edited_at": { "type": ["string", "null"], "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
- "sender_id": { "type": "string" },
- "thread_id": { "type": ["string", "null"], "format": "uuid" },
- "updated_at": { "type": "string", "format": "date-time" }
+ "channel_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "content": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "deleted_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "edited_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "sender_id": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"MessageMention": {
"type": "object",
"required": ["message_id", "entity_type", "entity_id", "created_at"],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
- "message_id": { "type": "string", "format": "uuid" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"NewAttachment": {
"type": "object",
"required": ["entity_type", "entity_id"],
"properties": {
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ },
"height": {
"type": ["integer", "null"],
"format": "int32",
"description": "dimensions of image/video"
},
- "width": { "type": ["integer", "null"], "format": "int32" }
+ "width": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ }
}
},
"ParticipantAccess": {
@@ -1671,12 +2467,17 @@
"type": "object",
"required": ["role"],
"properties": {
- "role": { "$ref": "#/components/schemas/ParticipantRole" }
+ "role": {
+ "$ref": "#/components/schemas/ParticipantRole"
+ }
}
}
}
},
- { "type": "string", "enum": ["NoAccess"] }
+ {
+ "type": "string",
+ "enum": ["NoAccess"]
+ }
]
},
"ParticipantRole": {
@@ -1685,14 +2486,22 @@
},
"PatchChannelOptions": {
"type": "object",
- "properties": { "channel_name": { "type": ["string", "null"] } }
+ "properties": {
+ "channel_name": {
+ "type": ["string", "null"]
+ }
+ }
},
"PatchMessageParams": {
"type": "object",
"required": ["channel_id", "message_id"],
"properties": {
- "channel_id": { "type": "string" },
- "message_id": { "type": "string" }
+ "channel_id": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ }
}
},
"PatchMessageRequest": {
@@ -1700,17 +2509,25 @@
"properties": {
"attachment_ids_to_delete": {
"type": ["array", "null"],
- "items": { "type": "string" }
+ "items": {
+ "type": "string"
+ }
},
- "content": { "type": ["string", "null"] }
+ "content": {
+ "type": ["string", "null"]
+ }
}
},
"PostActivityRequest": {
"type": "object",
"required": ["channel_id", "activity_type"],
"properties": {
- "activity_type": { "$ref": "#/components/schemas/ActivityType" },
- "channel_id": { "type": "string" }
+ "activity_type": {
+ "$ref": "#/components/schemas/ActivityType"
+ },
+ "channel_id": {
+ "type": "string"
+ }
}
},
"PostMessageRequest": {
@@ -1719,76 +2536,137 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/NewAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/NewAttachment"
+ }
+ },
+ "content": {
+ "type": "string"
},
- "content": { "type": "string" },
"mentions": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SimpleMention" }
+ "items": {
+ "$ref": "#/components/schemas/SimpleMention"
+ }
},
- "thread_id": { "type": ["string", "null"], "format": "uuid" }
+ "thread_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ }
}
},
"PostMessageResponse": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
},
"PostReactionRequest": {
"type": "object",
"required": ["emoji", "message_id", "action"],
"properties": {
- "action": { "$ref": "#/components/schemas/ReactionAction" },
- "emoji": { "type": "string" },
- "message_id": { "type": "string" }
+ "action": {
+ "$ref": "#/components/schemas/ReactionAction"
+ },
+ "emoji": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ }
}
},
"PostTypingRequest": {
"type": "object",
"required": ["action"],
"properties": {
- "action": { "$ref": "#/components/schemas/TypingAction" },
- "thread_id": { "type": ["string", "null"] }
+ "action": {
+ "$ref": "#/components/schemas/TypingAction"
+ },
+ "thread_id": {
+ "type": ["string", "null"]
+ }
}
},
"Reaction": {
"type": "object",
"required": ["message_id", "user_id", "emoji", "created_at"],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "emoji": { "type": "string" },
- "message_id": { "type": "string", "format": "uuid" },
- "user_id": { "type": "string" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "emoji": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
- "ReactionAction": { "type": "string", "enum": ["Add", "Remove"] },
+ "ReactionAction": {
+ "type": "string",
+ "enum": ["Add", "Remove"]
+ },
"RemoveParticipantsRequest": {
"type": "object",
"required": ["participants"],
"properties": {
- "participants": { "type": "array", "items": { "type": "string" } }
+ "participants": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"SimpleMention": {
"type": "object",
"required": ["entity_type", "entity_id"],
"properties": {
- "entity_id": { "type": "string" },
- "entity_type": { "type": "string" }
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "type": "string"
+ }
}
},
"StringIDResponse": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
+ },
+ "TypingAction": {
+ "type": "string",
+ "enum": ["start", "stop"]
},
- "TypingAction": { "type": "string", "enum": ["start", "stop"] },
"WithChannelId": {
"type": "object",
"required": ["channel_id"],
- "properties": { "channel_id": { "type": "string" } }
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ }
+ }
}
}
},
- "tags": [{ "name": "macro comms service", "description": "Comms Service" }]
+ "tags": [
+ {
+ "name": "macro comms service",
+ "description": "Comms Service"
+ }
+ ]
}
diff --git a/js/app/packages/service-clients/service-connection/generated/client.ts b/js/app/packages/service-clients/service-connection/generated/client.ts
index 50c2128501..b63c00b24a 100644
--- a/js/app/packages/service-clients/service-connection/generated/client.ts
+++ b/js/app/packages/service-clients/service-connection/generated/client.ts
@@ -7,163 +7,177 @@
import type {
BatchSendMessageBody,
SendMessageBody,
- SendMessageResponse
+ SendMessageResponse,
} from './schemas';
export type batchSendMessageHandlerResponse200 = {
- data: SendMessageResponse
- status: 200
-}
+ data: SendMessageResponse;
+ status: 200;
+};
export type batchSendMessageHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type batchSendMessageHandlerResponseSuccess = (batchSendMessageHandlerResponse200) & {
- headers: Headers;
-};
-export type batchSendMessageHandlerResponseError = (batchSendMessageHandlerResponse500) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type batchSendMessageHandlerResponse = (batchSendMessageHandlerResponseSuccess | batchSendMessageHandlerResponseError)
-
-export const getBatchSendMessageHandlerUrl = () => {
+export type batchSendMessageHandlerResponseSuccess =
+ batchSendMessageHandlerResponse200 & {
+ headers: Headers;
+ };
+export type batchSendMessageHandlerResponseError =
+ batchSendMessageHandlerResponse500 & {
+ headers: Headers;
+ };
+export type batchSendMessageHandlerResponse =
+ | batchSendMessageHandlerResponseSuccess
+ | batchSendMessageHandlerResponseError;
-
-
- return `/batch_send`
-}
+export const getBatchSendMessageHandlerUrl = () => {
+ return `/batch_send`;
+};
-export const batchSendMessageHandler = async (batchSendMessageBody: BatchSendMessageBody, options?: RequestInit): Promise<batchSendMessageHandlerResponse> => {
-
- const res = await fetch(getBatchSendMessageHandlerUrl(),
- {
+export const batchSendMessageHandler = async (
+ batchSendMessageBody: BatchSendMessageBody,
+ options?: RequestInit
+): Promise<batchSendMessageHandlerResponse> => {
+ const res = await fetch(getBatchSendMessageHandlerUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- batchSendMessageBody,)
- }
-)
+ body: JSON.stringify(batchSendMessageBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: batchSendMessageHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as batchSendMessageHandlerResponse
-}
-
+ const data: batchSendMessageHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as batchSendMessageHandlerResponse;
+};
export type sendMessageHandlerResponse201 = {
- data: SendMessageResponse
- status: 201
-}
+ data: SendMessageResponse;
+ status: 201;
+};
export type sendMessageHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type sendMessageHandlerResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type sendMessageHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type sendMessageHandlerResponseSuccess = (sendMessageHandlerResponse201) & {
- headers: Headers;
+ data: string;
+ status: 500;
};
-export type sendMessageHandlerResponseError = (sendMessageHandlerResponse401 | sendMessageHandlerResponse404 | sendMessageHandlerResponse500) & {
+
+export type sendMessageHandlerResponseSuccess =
+ sendMessageHandlerResponse201 & {
+ headers: Headers;
+ };
+export type sendMessageHandlerResponseError = (
+ | sendMessageHandlerResponse401
+ | sendMessageHandlerResponse404
+ | sendMessageHandlerResponse500
+) & {
headers: Headers;
};
-export type sendMessageHandlerResponse = (sendMessageHandlerResponseSuccess | sendMessageHandlerResponseError)
+export type sendMessageHandlerResponse =
+ | sendMessageHandlerResponseSuccess
+ | sendMessageHandlerResponseError;
-export const getSendMessageHandlerUrl = (entityType: string,
- entityId: string,) => {
-
-
-
-
- return `/message/send/${entityType}/${entityId}`
-}
+export const getSendMessageHandlerUrl = (
+ entityType: string,
+ entityId: string
+) => {
+ return `/message/send/${entityType}/${entityId}`;
+};
-export const sendMessageHandler = async (entityType: string,
- entityId: string,
- sendMessageBody: SendMessageBody, options?: RequestInit): Promise<sendMessageHandlerResponse> => {
-
- const res = await fetch(getSendMessageHandlerUrl(entityType,entityId),
- {
+export const sendMessageHandler = async (
+ entityType: string,
+ entityId: string,
+ sendMessageBody: SendMessageBody,
+ options?: RequestInit
+): Promise<sendMessageHandlerResponse> => {
+ const res = await fetch(getSendMessageHandlerUrl(entityType, entityId), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- sendMessageBody,)
- }
-)
+ body: JSON.stringify(sendMessageBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: sendMessageHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as sendMessageHandlerResponse
-}
-
+ const data: sendMessageHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as sendMessageHandlerResponse;
+};
export type getEntityHandlerResponse200 = {
- data: string[]
- status: 200
-}
+ data: string[];
+ status: 200;
+};
export type getEntityHandlerResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getEntityHandlerResponse500 = {
- data: string
- status: 500
-}
-
-export type getEntityHandlerResponseSuccess = (getEntityHandlerResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getEntityHandlerResponseSuccess = getEntityHandlerResponse200 & {
headers: Headers;
};
-export type getEntityHandlerResponseError = (getEntityHandlerResponse401 | getEntityHandlerResponse500) & {
+export type getEntityHandlerResponseError = (
+ | getEntityHandlerResponse401
+ | getEntityHandlerResponse500
+) & {
headers: Headers;
};
-export type getEntityHandlerResponse = (getEntityHandlerResponseSuccess | getEntityHandlerResponseError)
-
-export const getGetEntityHandlerUrl = (entityType: string,
- entityId: string,) => {
-
+export type getEntityHandlerResponse =
+ | getEntityHandlerResponseSuccess
+ | getEntityHandlerResponseError;
-
-
- return `/track/${entityType}/${entityId}`
-}
+export const getGetEntityHandlerUrl = (
+ entityType: string,
+ entityId: string
+) => {
+ return `/track/${entityType}/${entityId}`;
+};
-export const getEntityHandler = async (entityType: string,
- entityId: string, options?: RequestInit): Promise<getEntityHandlerResponse> => {
-
- const res = await fetch(getGetEntityHandlerUrl(entityType,entityId),
- {
+export const getEntityHandler = async (
+ entityType: string,
+ entityId: string,
+ options?: RequestInit
+): Promise<getEntityHandlerResponse> => {
+ const res = await fetch(getGetEntityHandlerUrl(entityType, entityId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getEntityHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getEntityHandlerResponse
-}
+
+ const data: getEntityHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getEntityHandlerResponse;
+};
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts
index 231ff97941..3ea163c3c4 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts
@@ -8,8 +8,7 @@
/**
* The type of an entity in Macro
*/
-export type EntityType = typeof EntityType[keyof typeof EntityType];
-
+export type EntityType = (typeof EntityType)[keyof typeof EntityType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityType = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/index.ts b/js/app/packages/service-clients/service-connection/generated/schemas/index.ts
index 9ba7c3c0df..8fad3cb08a 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/index.ts
@@ -30,4 +30,4 @@ export * from './uploadFolderStatusUpdateOneOfSeven';
export * from './uploadFolderStatusUpdateOneOfSevenStatus';
export * from './uploadFolderStatusUpdateOneOfStatus';
export * from './uploadFolderStatusUpdateOneOfThree';
-export * from './uploadFolderStatusUpdateOneOfThreeStatus';
\ No newline at end of file
+export * from './uploadFolderStatusUpdateOneOfThreeStatus';
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOf.ts b/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOf.ts
index 44bec787c0..970b58db97 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOf.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOf.ts
@@ -4,7 +4,9 @@
* connection_gateway
* OpenAPI spec version: 0.1.0
*/
-import type { TrackEntityMessage } from './trackEntityMessage';
+
import type { ToWebsocketMessageOneOfAllOf } from './toWebsocketMessageOneOfAllOf';
+import type { TrackEntityMessage } from './trackEntityMessage';
-export type ToWebsocketMessageOneOf = TrackEntityMessage & ToWebsocketMessageOneOfAllOf;
+export type ToWebsocketMessageOneOf = TrackEntityMessage &
+ ToWebsocketMessageOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOfAllOfType.ts b/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOfAllOfType.ts
index 57d5c8d925..020f3e636d 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/toWebsocketMessageOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ToWebsocketMessageOneOfAllOfType = typeof ToWebsocketMessageOneOfAllOfType[keyof typeof ToWebsocketMessageOneOfAllOfType];
-
+export type ToWebsocketMessageOneOfAllOfType =
+ (typeof ToWebsocketMessageOneOfAllOfType)[keyof typeof ToWebsocketMessageOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ToWebsocketMessageOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/trackAction.ts b/js/app/packages/service-clients/service-connection/generated/schemas/trackAction.ts
index 43e1677ce2..518c24618f 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/trackAction.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/trackAction.ts
@@ -8,8 +8,7 @@
/**
* The type of action that can occur on an [Entity]
*/
-export type TrackAction = typeof TrackAction[keyof typeof TrackAction];
-
+export type TrackAction = (typeof TrackAction)[keyof typeof TrackAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const TrackAction = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdate.ts b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdate.ts
index d96acd2d76..34dfd587dc 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdate.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdate.ts
@@ -5,8 +5,12 @@
* OpenAPI spec version: 0.1.0
*/
import type { UploadFolderStatusUpdateOneOf } from './uploadFolderStatusUpdateOneOf';
-import type { UploadFolderStatusUpdateOneOfThree } from './uploadFolderStatusUpdateOneOfThree';
import type { UploadFolderStatusUpdateOneOfFive } from './uploadFolderStatusUpdateOneOfFive';
import type { UploadFolderStatusUpdateOneOfSeven } from './uploadFolderStatusUpdateOneOfSeven';
+import type { UploadFolderStatusUpdateOneOfThree } from './uploadFolderStatusUpdateOneOfThree';
-export type UploadFolderStatusUpdate = UploadFolderStatusUpdateOneOf | UploadFolderStatusUpdateOneOfThree | UploadFolderStatusUpdateOneOfFive | UploadFolderStatusUpdateOneOfSeven;
+export type UploadFolderStatusUpdate =
+ | UploadFolderStatusUpdateOneOf
+ | UploadFolderStatusUpdateOneOfThree
+ | UploadFolderStatusUpdateOneOfFive
+ | UploadFolderStatusUpdateOneOfSeven;
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfFiveStatus.ts b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfFiveStatus.ts
index 92963b3a9a..f25d406080 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfFiveStatus.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfFiveStatus.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UploadFolderStatusUpdateOneOfFiveStatus = typeof UploadFolderStatusUpdateOneOfFiveStatus[keyof typeof UploadFolderStatusUpdateOneOfFiveStatus];
-
+export type UploadFolderStatusUpdateOneOfFiveStatus =
+ (typeof UploadFolderStatusUpdateOneOfFiveStatus)[keyof typeof UploadFolderStatusUpdateOneOfFiveStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UploadFolderStatusUpdateOneOfFiveStatus = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfSevenStatus.ts b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfSevenStatus.ts
index 9267dbaaab..9be78eee8f 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfSevenStatus.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfSevenStatus.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UploadFolderStatusUpdateOneOfSevenStatus = typeof UploadFolderStatusUpdateOneOfSevenStatus[keyof typeof UploadFolderStatusUpdateOneOfSevenStatus];
-
+export type UploadFolderStatusUpdateOneOfSevenStatus =
+ (typeof UploadFolderStatusUpdateOneOfSevenStatus)[keyof typeof UploadFolderStatusUpdateOneOfSevenStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UploadFolderStatusUpdateOneOfSevenStatus = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfStatus.ts b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfStatus.ts
index bf56c99aff..0fa6218705 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfStatus.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfStatus.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UploadFolderStatusUpdateOneOfStatus = typeof UploadFolderStatusUpdateOneOfStatus[keyof typeof UploadFolderStatusUpdateOneOfStatus];
-
+export type UploadFolderStatusUpdateOneOfStatus =
+ (typeof UploadFolderStatusUpdateOneOfStatus)[keyof typeof UploadFolderStatusUpdateOneOfStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UploadFolderStatusUpdateOneOfStatus = {
diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfThreeStatus.ts b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfThreeStatus.ts
index 56b6bb6330..5c0e622c7e 100644
--- a/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfThreeStatus.ts
+++ b/js/app/packages/service-clients/service-connection/generated/schemas/uploadFolderStatusUpdateOneOfThreeStatus.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UploadFolderStatusUpdateOneOfThreeStatus = typeof UploadFolderStatusUpdateOneOfThreeStatus[keyof typeof UploadFolderStatusUpdateOneOfThreeStatus];
-
+export type UploadFolderStatusUpdateOneOfThreeStatus =
+ (typeof UploadFolderStatusUpdateOneOfThreeStatus)[keyof typeof UploadFolderStatusUpdateOneOfThreeStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UploadFolderStatusUpdateOneOfThreeStatus = {
diff --git a/js/app/packages/service-clients/service-connection/openapi.json b/js/app/packages/service-clients/service-connection/openapi.json
index cdfe6465e3..5cd9fd938c 100644
--- a/js/app/packages/service-clients/service-connection/openapi.json
+++ b/js/app/packages/service-clients/service-connection/openapi.json
@@ -4,7 +4,9 @@
"title": "connection_gateway",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -15,7 +17,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/BatchSendMessageBody" }
+ "schema": {
+ "$ref": "#/components/schemas/BatchSendMessageBody"
+ }
}
},
"required": true
@@ -25,13 +29,21 @@
"description": "Message sent successfully",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SendMessageResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SendMessageResponse"
+ }
}
}
},
"500": {
"description": "Internal server error",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -46,20 +58,26 @@
"in": "path",
"description": "the type of the entity to send the msssage to e.g. \"user\" | \"channel\" | \"document\" etc...",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "entity_id",
"in": "path",
"description": "the id of the entity to send the message to",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SendMessageBody" }
+ "schema": {
+ "$ref": "#/components/schemas/SendMessageBody"
+ }
}
},
"required": true
@@ -69,21 +87,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SendMessageResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SendMessageResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -98,14 +136,18 @@
"in": "path",
"description": "the type of the entity to send the msssage to e.g. \"user\" | \"channel\" | \"document\" etc...",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "entity_id",
"in": "path",
"description": "the id of the entity to send the message to",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -113,17 +155,34 @@
"description": "",
"content": {
"application/json": {
- "schema": { "type": "array", "items": { "type": "string" } }
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -137,10 +196,14 @@
"properties": {
"entities": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Entity" },
+ "items": {
+ "$ref": "#/components/schemas/Entity"
+ },
"description": "all entities to send the message to"
},
- "message": { "description": "the message to send" },
+ "message": {
+ "description": "the message to send"
+ },
"message_type": {
"type": "string",
"description": "the type of the message we are sending"
@@ -213,7 +276,12 @@
"SendMessageBody": {
"type": "object",
"required": ["message", "message_type"],
- "properties": { "message": {}, "message_type": { "type": "string" } }
+ "properties": {
+ "message": {},
+ "message_type": {
+ "type": "string"
+ }
+ }
},
"SendMessageResponse": {
"type": "object",
@@ -221,7 +289,9 @@
"properties": {
"receipts": {
"type": "array",
- "items": { "$ref": "#/components/schemas/MessageReceipt" }
+ "items": {
+ "$ref": "#/components/schemas/MessageReceipt"
+ }
}
}
},
@@ -237,8 +307,12 @@
"user_id"
],
"properties": {
- "PK": { "type": "string" },
- "SK": { "type": "string" },
+ "PK": {
+ "type": "string"
+ },
+ "SK": {
+ "type": "string"
+ },
"connection_id": {
"type": "string",
"description": "id of the connection"
@@ -249,7 +323,10 @@
"description": "timestamp when the connection was initiated",
"minimum": 0
},
- "entity_id": { "type": "string", "description": "id of the entity" },
+ "entity_id": {
+ "type": "string",
+ "description": "id of the entity"
+ },
"entity_type": {
"$ref": "#/components/schemas/EntityType",
"description": "type of the entity"
@@ -269,18 +346,27 @@
"StringIDResponse": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
},
"ToWebsocketMessage": {
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/TrackEntityMessage" },
+ {
+ "$ref": "#/components/schemas/TrackEntityMessage"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["track_entity"] }
+ "type": {
+ "type": "string",
+ "enum": ["track_entity"]
+ }
}
}
]
@@ -294,12 +380,16 @@
},
"TrackEntityMessage": {
"allOf": [
- { "$ref": "#/components/schemas/Entity" },
+ {
+ "$ref": "#/components/schemas/Entity"
+ },
{
"type": "object",
"required": ["action"],
"properties": {
- "action": { "$ref": "#/components/schemas/TrackAction" }
+ "action": {
+ "$ref": "#/components/schemas/TrackAction"
+ }
}
}
]
@@ -310,34 +400,58 @@
"type": "object",
"required": ["requestId", "projectId", "status"],
"properties": {
- "projectId": { "type": "string" },
- "requestId": { "type": "string" },
- "status": { "type": "string", "enum": ["completed"] }
+ "projectId": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["completed"]
+ }
}
},
{
"type": "object",
"required": ["requestId", "projectId", "status"],
"properties": {
- "projectId": { "type": "string" },
- "requestId": { "type": "string" },
- "status": { "type": "string", "enum": ["partially_completed"] }
+ "projectId": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["partially_completed"]
+ }
}
},
{
"type": "object",
"required": ["requestId", "status"],
"properties": {
- "requestId": { "type": "string" },
- "status": { "type": "string", "enum": ["failed"] }
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["failed"]
+ }
}
},
{
"type": "object",
"required": ["requestId", "status"],
"properties": {
- "requestId": { "type": "string" },
- "status": { "type": "string", "enum": ["unknown"] }
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["unknown"]
+ }
}
}
]
@@ -345,6 +459,9 @@
}
},
"tags": [
- { "name": "connection gateway", "description": "Connection gateway API" }
+ {
+ "name": "connection gateway",
+ "description": "Connection gateway API"
+ }
]
}
diff --git a/js/app/packages/service-clients/service-contacts/generated/client.ts b/js/app/packages/service-clients/service-contacts/generated/client.ts
index 0849aae239..2a4ac291a7 100644
--- a/js/app/packages/service-clients/service-contacts/generated/client.ts
+++ b/js/app/packages/service-clients/service-contacts/generated/client.ts
@@ -4,60 +4,61 @@
* contacts_service
* OpenAPI spec version: 0.1.0
*/
-import type {
- GetContactsResponse
-} from './schemas';
+import type { GetContactsResponse } from './schemas';
export type getContactsResponse200 = {
- data: GetContactsResponse
- status: 200
-}
+ data: GetContactsResponse;
+ status: 200;
+};
export type getContactsResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getContactsResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getContactsResponse500 = {
- data: string
- status: 500
-}
-
-export type getContactsResponseSuccess = (getContactsResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getContactsResponseSuccess = getContactsResponse200 & {
headers: Headers;
};
-export type getContactsResponseError = (getContactsResponse401 | getContactsResponse404 | getContactsResponse500) & {
+export type getContactsResponseError = (
+ | getContactsResponse401
+ | getContactsResponse404
+ | getContactsResponse500
+) & {
headers: Headers;
};
-export type getContactsResponse = (getContactsResponseSuccess | getContactsResponseError)
+export type getContactsResponse =
+ | getContactsResponseSuccess
+ | getContactsResponseError;
export const getGetContactsUrl = () => {
+ return `/contacts`;
+};
-
-
-
- return `/contacts`
-}
-
-export const getContacts = async ( options?: RequestInit): Promise<getContactsResponse> => {
-
- const res = await fetch(getGetContactsUrl(),
- {
+export const getContacts = async (
+ options?: RequestInit
+): Promise<getContactsResponse> => {
+ const res = await fetch(getGetContactsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getContactsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getContactsResponse
-}
+
+ const data: getContactsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getContactsResponse;
+};
diff --git a/js/app/packages/service-clients/service-contacts/generated/schemas/index.ts b/js/app/packages/service-clients/service-contacts/generated/schemas/index.ts
index faefbb0dc5..6ca8ee4f8b 100644
--- a/js/app/packages/service-clients/service-contacts/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-contacts/generated/schemas/index.ts
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
-export * from './getContactsResponse';
\ No newline at end of file
+export * from './getContactsResponse';
diff --git a/js/app/packages/service-clients/service-contacts/openapi.json b/js/app/packages/service-clients/service-contacts/openapi.json
index 8cc290a0f9..9e24767f4b 100644
--- a/js/app/packages/service-clients/service-contacts/openapi.json
+++ b/js/app/packages/service-clients/service-contacts/openapi.json
@@ -4,7 +4,9 @@
"title": "contacts_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -17,21 +19,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetContactsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetContactsResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -43,12 +65,20 @@
"type": "object",
"required": ["contacts"],
"properties": {
- "contacts": { "type": "array", "items": { "type": "string" } }
+ "contacts": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
}
}
},
"tags": [
- { "name": "macro contacts service", "description": "Contacts Service" }
+ {
+ "name": "macro contacts service",
+ "description": "Contacts Service"
+ }
]
}
diff --git a/js/app/packages/service-clients/service-email/generated/client.ts b/js/app/packages/service-clients/service-email/generated/client.ts
index 485d44208d..6f492520f8 100644
--- a/js/app/packages/service-clients/service-email/generated/client.ts
+++ b/js/app/packages/service-clients/service-email/generated/client.ts
@@ -5,6 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type {
+ AddDraftAttachmentRequest,
+ AddDraftAttachmentResponse,
ApiPaginatedThreadCursor,
ArchiveThreadRequest,
CancelBackfillParams,
@@ -24,6 +26,7 @@ import type {
InitResponse,
ListContactsResponse,
ListLabelsResponse,
+ ListLinksParams,
ListLinksResponse,
ParsedMessage,
PatchSettingsRequest,
@@ -32,1597 +35,1840 @@ import type {
SendMessageRequest,
SendMessageResponse,
UpdateLabelBatchRequest,
- UpdateLabelBatchResponse
+ UpdateLabelBatchResponse,
} from './schemas';
/**
* @summary Get an attachment by ID.
*/
export type getAttachmentResponse200 = {
- data: GetAttachmentResponse
- status: 200
-}
+ data: GetAttachmentResponse;
+ status: 200;
+};
export type getAttachmentResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getAttachmentResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getAttachmentResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getAttachmentResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getAttachmentResponseSuccess = (getAttachmentResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getAttachmentResponseSuccess = getAttachmentResponse200 & {
headers: Headers;
};
-export type getAttachmentResponseError = (getAttachmentResponse400 | getAttachmentResponse401 | getAttachmentResponse404 | getAttachmentResponse500) & {
+export type getAttachmentResponseError = (
+ | getAttachmentResponse400
+ | getAttachmentResponse401
+ | getAttachmentResponse404
+ | getAttachmentResponse500
+) & {
headers: Headers;
};
-export type getAttachmentResponse = (getAttachmentResponseSuccess | getAttachmentResponseError)
+export type getAttachmentResponse =
+ | getAttachmentResponseSuccess
+ | getAttachmentResponseError;
-export const getGetAttachmentUrl = (id: string,) => {
-
-
-
-
- return `/email/attachments/${id}`
-}
+export const getGetAttachmentUrl = (id: string) => {
+ return `/email/attachments/${id}`;
+};
-export const getAttachment = async (id: string, options?: RequestInit): Promise<getAttachmentResponse> => {
-
- const res = await fetch(getGetAttachmentUrl(id),
- {
+export const getAttachment = async (
+ id: string,
+ options?: RequestInit
+): Promise<getAttachmentResponse> => {
+ const res = await fetch(getGetAttachmentUrl(id), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getAttachmentResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getAttachmentResponse
-}
-
+ const data: getAttachmentResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getAttachmentResponse;
+};
/**
* @summary Get the Macro document id for an email attachment, uploading it if it doesn't already exist.
*/
export type getAttachmentDocumentIdResponse200 = {
- data: GetAttachmentDocumentIDResponse
- status: 200
-}
+ data: GetAttachmentDocumentIDResponse;
+ status: 200;
+};
export type getAttachmentDocumentIdResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getAttachmentDocumentIdResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getAttachmentDocumentIdResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getAttachmentDocumentIdResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getAttachmentDocumentIdResponseSuccess = (getAttachmentDocumentIdResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getAttachmentDocumentIdResponseError = (getAttachmentDocumentIdResponse400 | getAttachmentDocumentIdResponse401 | getAttachmentDocumentIdResponse404 | getAttachmentDocumentIdResponse500) & {
+
+export type getAttachmentDocumentIdResponseSuccess =
+ getAttachmentDocumentIdResponse200 & {
+ headers: Headers;
+ };
+export type getAttachmentDocumentIdResponseError = (
+ | getAttachmentDocumentIdResponse400
+ | getAttachmentDocumentIdResponse401
+ | getAttachmentDocumentIdResponse404
+ | getAttachmentDocumentIdResponse500
+) & {
headers: Headers;
};
-export type getAttachmentDocumentIdResponse = (getAttachmentDocumentIdResponseSuccess | getAttachmentDocumentIdResponseError)
-
-export const getGetAttachmentDocumentIdUrl = (id: string,) => {
-
+export type getAttachmentDocumentIdResponse =
+ | getAttachmentDocumentIdResponseSuccess
+ | getAttachmentDocumentIdResponseError;
-
-
- return `/email/attachments/${id}/document_id`
-}
+export const getGetAttachmentDocumentIdUrl = (id: string) => {
+ return `/email/attachments/${id}/document_id`;
+};
-export const getAttachmentDocumentId = async (id: string, options?: RequestInit): Promise<getAttachmentDocumentIdResponse> => {
-
- const res = await fetch(getGetAttachmentDocumentIdUrl(id),
- {
+export const getAttachmentDocumentId = async (
+ id: string,
+ options?: RequestInit
+): Promise<getAttachmentDocumentIdResponse> => {
+ const res = await fetch(getGetAttachmentDocumentIdUrl(id), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getAttachmentDocumentIdResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getAttachmentDocumentIdResponse
-}
-
+ const data: getAttachmentDocumentIdResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getAttachmentDocumentIdResponse;
+};
/**
* @summary Cancel a backfill job.
*/
export type cancelBackfillGmailResponse201 = {
- data: EmptyResponse
- status: 201
-}
+ data: EmptyResponse;
+ status: 201;
+};
export type cancelBackfillGmailResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type cancelBackfillGmailResponse429 = {
- data: ErrorResponse
- status: 429
-}
+ data: ErrorResponse;
+ status: 429;
+};
export type cancelBackfillGmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type cancelBackfillGmailResponseSuccess = (cancelBackfillGmailResponse201) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type cancelBackfillGmailResponseError = (cancelBackfillGmailResponse404 | cancelBackfillGmailResponse429 | cancelBackfillGmailResponse500) & {
+
+export type cancelBackfillGmailResponseSuccess =
+ cancelBackfillGmailResponse201 & {
+ headers: Headers;
+ };
+export type cancelBackfillGmailResponseError = (
+ | cancelBackfillGmailResponse404
+ | cancelBackfillGmailResponse429
+ | cancelBackfillGmailResponse500
+) & {
headers: Headers;
};
-export type cancelBackfillGmailResponse = (cancelBackfillGmailResponseSuccess | cancelBackfillGmailResponseError)
+export type cancelBackfillGmailResponse =
+ | cancelBackfillGmailResponseSuccess
+ | cancelBackfillGmailResponseError;
export const getCancelBackfillGmailUrl = () => {
+ return `/email/backfill/gmail`;
+};
-
-
-
- return `/email/backfill/gmail`
-}
-
-export const cancelBackfillGmail = async (cancelBackfillParams: CancelBackfillParams, options?: RequestInit): Promise<cancelBackfillGmailResponse> => {
-
- const res = await fetch(getCancelBackfillGmailUrl(),
- {
+export const cancelBackfillGmail = async (
+ cancelBackfillParams: CancelBackfillParams,
+ options?: RequestInit
+): Promise<cancelBackfillGmailResponse> => {
+ const res = await fetch(getCancelBackfillGmailUrl(), {
...options,
method: 'DELETE',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- cancelBackfillParams,)
- }
-)
+ body: JSON.stringify(cancelBackfillParams),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: cancelBackfillGmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as cancelBackfillGmailResponse
-}
-
+ const data: cancelBackfillGmailResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as cancelBackfillGmailResponse;
+};
/**
* @summary Get any active backfill job for the user.
*/
export type getBackfillGmailActiveResponse200 = {
- data: GetActiveBackfillJobResponse
- status: 200
-}
+ data: GetActiveBackfillJobResponse;
+ status: 200;
+};
export type getBackfillGmailActiveResponse204 = {
- data: EmptyResponse
- status: 204
-}
+ data: EmptyResponse;
+ status: 204;
+};
export type getBackfillGmailActiveResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getBackfillGmailActiveResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getBackfillGmailActiveResponseSuccess = (getBackfillGmailActiveResponse200 | getBackfillGmailActiveResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getBackfillGmailActiveResponseSuccess = (
+ | getBackfillGmailActiveResponse200
+ | getBackfillGmailActiveResponse204
+) & {
headers: Headers;
};
-export type getBackfillGmailActiveResponseError = (getBackfillGmailActiveResponse401 | getBackfillGmailActiveResponse500) & {
+export type getBackfillGmailActiveResponseError = (
+ | getBackfillGmailActiveResponse401
+ | getBackfillGmailActiveResponse500
+) & {
headers: Headers;
};
-export type getBackfillGmailActiveResponse = (getBackfillGmailActiveResponseSuccess | getBackfillGmailActiveResponseError)
+export type getBackfillGmailActiveResponse =
+ | getBackfillGmailActiveResponseSuccess
+ | getBackfillGmailActiveResponseError;
export const getGetBackfillGmailActiveUrl = () => {
+ return `/email/backfill/gmail/active`;
+};
-
-
-
- return `/email/backfill/gmail/active`
-}
-
-export const getBackfillGmailActive = async ( options?: RequestInit): Promise<getBackfillGmailActiveResponse> => {
-
- const res = await fetch(getGetBackfillGmailActiveUrl(),
- {
+export const getBackfillGmailActive = async (
+ options?: RequestInit
+): Promise<getBackfillGmailActiveResponse> => {
+ const res = await fetch(getGetBackfillGmailActiveUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getBackfillGmailActiveResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getBackfillGmailActiveResponse
-}
-
+ const data: getBackfillGmailActiveResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getBackfillGmailActiveResponse;
+};
/**
* @summary Get a backfill job.
*/
export type getBackfillGmailResponse200 = {
- data: GetBackfillJobResponse
- status: 200
-}
+ data: GetBackfillJobResponse;
+ status: 200;
+};
export type getBackfillGmailResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getBackfillGmailResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getBackfillGmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getBackfillGmailResponseSuccess = (getBackfillGmailResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getBackfillGmailResponseSuccess = getBackfillGmailResponse200 & {
headers: Headers;
};
-export type getBackfillGmailResponseError = (getBackfillGmailResponse401 | getBackfillGmailResponse404 | getBackfillGmailResponse500) & {
+export type getBackfillGmailResponseError = (
+ | getBackfillGmailResponse401
+ | getBackfillGmailResponse404
+ | getBackfillGmailResponse500
+) & {
headers: Headers;
};
-export type getBackfillGmailResponse = (getBackfillGmailResponseSuccess | getBackfillGmailResponseError)
-
-export const getGetBackfillGmailUrl = (id: string,) => {
-
-
-
+export type getBackfillGmailResponse =
+ | getBackfillGmailResponseSuccess
+ | getBackfillGmailResponseError;
- return `/email/backfill/gmail/${id}`
-}
+export const getGetBackfillGmailUrl = (id: string) => {
+ return `/email/backfill/gmail/${id}`;
+};
-export const getBackfillGmail = async (id: string, options?: RequestInit): Promise<getBackfillGmailResponse> => {
-
- const res = await fetch(getGetBackfillGmailUrl(id),
- {
+export const getBackfillGmail = async (
+ id: string,
+ options?: RequestInit
+): Promise<getBackfillGmailResponse> => {
+ const res = await fetch(getGetBackfillGmailUrl(id), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getBackfillGmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getBackfillGmailResponse
-}
-
+ const data: getBackfillGmailResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getBackfillGmailResponse;
+};
/**
* @summary List all contacts belonging to the user, grouped by link.
*/
export type listContactsResponse200 = {
- data: ListContactsResponse
- status: 200
-}
+ data: ListContactsResponse;
+ status: 200;
+};
export type listContactsResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type listContactsResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type listContactsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type listContactsResponseSuccess = (listContactsResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type listContactsResponseSuccess = listContactsResponse200 & {
headers: Headers;
};
-export type listContactsResponseError = (listContactsResponse401 | listContactsResponse404 | listContactsResponse500) & {
+export type listContactsResponseError = (
+ | listContactsResponse401
+ | listContactsResponse404
+ | listContactsResponse500
+) & {
headers: Headers;
};
-export type listContactsResponse = (listContactsResponseSuccess | listContactsResponseError)
+export type listContactsResponse =
+ | listContactsResponseSuccess
+ | listContactsResponseError;
export const getListContactsUrl = () => {
+ return `/email/contacts`;
+};
-
-
-
- return `/email/contacts`
-}
-
-export const listContacts = async ( options?: RequestInit): Promise<listContactsResponse> => {
-
- const res = await fetch(getListContactsUrl(),
- {
+export const listContacts = async (
+ options?: RequestInit
+): Promise<listContactsResponse> => {
+ const res = await fetch(getListContactsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: listContactsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as listContactsResponse
-}
-
+ const data: listContactsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as listContactsResponse;
+};
/**
* @summary Create a draft.
*/
export type createDraftResponse201 = {
- data: CreateDraftResponse
- status: 201
-}
+ data: CreateDraftResponse;
+ status: 201;
+};
export type createDraftResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createDraftResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type createDraftResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createDraftResponseSuccess = (createDraftResponse201) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type createDraftResponseSuccess = createDraftResponse201 & {
headers: Headers;
};
-export type createDraftResponseError = (createDraftResponse400 | createDraftResponse401 | createDraftResponse500) & {
+export type createDraftResponseError = (
+ | createDraftResponse400
+ | createDraftResponse401
+ | createDraftResponse500
+) & {
headers: Headers;
};
-export type createDraftResponse = (createDraftResponseSuccess | createDraftResponseError)
+export type createDraftResponse =
+ | createDraftResponseSuccess
+ | createDraftResponseError;
export const getCreateDraftUrl = () => {
+ return `/email/drafts`;
+};
-
-
-
- return `/email/drafts`
-}
-
-export const createDraft = async (createDraftRequest: CreateDraftRequest, options?: RequestInit): Promise<createDraftResponse> => {
-
- const res = await fetch(getCreateDraftUrl(),
- {
+export const createDraft = async (
+ createDraftRequest: CreateDraftRequest,
+ options?: RequestInit
+): Promise<createDraftResponse> => {
+ const res = await fetch(getCreateDraftUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createDraftRequest,)
- }
-)
+ body: JSON.stringify(createDraftRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createDraftResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createDraftResponse
-}
-
+ const data: createDraftResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createDraftResponse;
+};
/**
* @summary Delete a draft.
*/
export type deleteDraftResponse204 = {
- data: EmptyResponse
- status: 204
-}
+ data: EmptyResponse;
+ status: 204;
+};
export type deleteDraftResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type deleteDraftResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type deleteDraftResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type deleteDraftResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type deleteDraftResponseSuccess = (deleteDraftResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type deleteDraftResponseSuccess = deleteDraftResponse204 & {
headers: Headers;
};
-export type deleteDraftResponseError = (deleteDraftResponse400 | deleteDraftResponse401 | deleteDraftResponse404 | deleteDraftResponse500) & {
+export type deleteDraftResponseError = (
+ | deleteDraftResponse400
+ | deleteDraftResponse401
+ | deleteDraftResponse404
+ | deleteDraftResponse500
+) & {
headers: Headers;
};
-export type deleteDraftResponse = (deleteDraftResponseSuccess | deleteDraftResponseError)
+export type deleteDraftResponse =
+ | deleteDraftResponseSuccess
+ | deleteDraftResponseError;
+
+export const getDeleteDraftUrl = (id: string) => {
+ return `/email/drafts/${id}`;
+};
+
+export const deleteDraft = async (
+ id: string,
+ options?: RequestInit
+): Promise<deleteDraftResponse> => {
+ const res = await fetch(getDeleteDraftUrl(id), {
+ ...options,
+ method: 'DELETE',
+ });
+
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-export const getDeleteDraftUrl = (id: string,) => {
+ const data: deleteDraftResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteDraftResponse;
+};
+/**
+ * @summary Add an attachment to a draft.
+ */
+export type addDraftAttachmentResponse201 = {
+ data: AddDraftAttachmentResponse;
+ status: 201;
+};
+
+export type addDraftAttachmentResponse400 = {
+ data: ErrorResponse;
+ status: 400;
+};
+
+export type addDraftAttachmentResponse401 = {
+ data: ErrorResponse;
+ status: 401;
+};
+
+export type addDraftAttachmentResponse404 = {
+ data: ErrorResponse;
+ status: 404;
+};
+
+export type addDraftAttachmentResponse500 = {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type addDraftAttachmentResponseSuccess =
+ addDraftAttachmentResponse201 & {
+ headers: Headers;
+ };
+export type addDraftAttachmentResponseError = (
+ | addDraftAttachmentResponse400
+ | addDraftAttachmentResponse401
+ | addDraftAttachmentResponse404
+ | addDraftAttachmentResponse500
+) & {
+ headers: Headers;
+};
-
+export type addDraftAttachmentResponse =
+ | addDraftAttachmentResponseSuccess
+ | addDraftAttachmentResponseError;
- return `/email/drafts/${id}`
-}
+export const getAddDraftAttachmentUrl = (id: string) => {
+ return `/email/drafts/${id}/attachments`;
+};
-export const deleteDraft = async (id: string, options?: RequestInit): Promise<deleteDraftResponse> => {
-
- const res = await fetch(getDeleteDraftUrl(id),
- {
+export const addDraftAttachment = async (
+ id: string,
+ addDraftAttachmentRequest: AddDraftAttachmentRequest,
+ options?: RequestInit
+): Promise<addDraftAttachmentResponse> => {
+ const res = await fetch(getAddDraftAttachmentUrl(id), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(addDraftAttachmentRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteDraftResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteDraftResponse
-}
+ const data: addDraftAttachmentResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as addDraftAttachmentResponse;
+};
+
+/**
+ * @summary Remove an attachment from a draft.
+ */
+export type removeDraftAttachmentResponse201 = {
+ data: EmptyResponse;
+ status: 201;
+};
+
+export type removeDraftAttachmentResponse400 = {
+ data: ErrorResponse;
+ status: 400;
+};
+export type removeDraftAttachmentResponse401 = {
+ data: ErrorResponse;
+ status: 401;
+};
+
+export type removeDraftAttachmentResponse404 = {
+ data: ErrorResponse;
+ status: 404;
+};
+
+export type removeDraftAttachmentResponse500 = {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type removeDraftAttachmentResponseSuccess =
+ removeDraftAttachmentResponse201 & {
+ headers: Headers;
+ };
+export type removeDraftAttachmentResponseError = (
+ | removeDraftAttachmentResponse400
+ | removeDraftAttachmentResponse401
+ | removeDraftAttachmentResponse404
+ | removeDraftAttachmentResponse500
+) & {
+ headers: Headers;
+};
+
+export type removeDraftAttachmentResponse =
+ | removeDraftAttachmentResponseSuccess
+ | removeDraftAttachmentResponseError;
+
+export const getRemoveDraftAttachmentUrl = (
+ id: string,
+ attachmentId: string
+) => {
+ return `/email/drafts/${id}/attachments/${attachmentId}`;
+};
+
+export const removeDraftAttachment = async (
+ id: string,
+ attachmentId: string,
+ options?: RequestInit
+): Promise<removeDraftAttachmentResponse> => {
+ const res = await fetch(getRemoveDraftAttachmentUrl(id, attachmentId), {
+ ...options,
+ method: 'DELETE',
+ });
+
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
+
+ const data: removeDraftAttachmentResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as removeDraftAttachmentResponse;
+};
/**
* @summary Initialize email functionality for the user. Populates initial threads and enables inbox syncing.
*/
export type initUserResponse200 = {
- data: InitResponse
- status: 200
-}
+ data: InitResponse;
+ status: 200;
+};
export type initUserResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type initUserResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type initUserResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type initUserResponseSuccess = (initUserResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type initUserResponseSuccess = initUserResponse200 & {
headers: Headers;
};
-export type initUserResponseError = (initUserResponse400 | initUserResponse401 | initUserResponse500) & {
+export type initUserResponseError = (
+ | initUserResponse400
+ | initUserResponse401
+ | initUserResponse500
+) & {
headers: Headers;
};
-export type initUserResponse = (initUserResponseSuccess | initUserResponseError)
+export type initUserResponse = initUserResponseSuccess | initUserResponseError;
export const getInitUserUrl = () => {
+ return `/email/init`;
+};
-
-
-
- return `/email/init`
-}
-
-export const initUser = async ( options?: RequestInit): Promise<initUserResponse> => {
-
- const res = await fetch(getInitUserUrl(),
- {
+export const initUser = async (
+ options?: RequestInit
+): Promise<initUserResponse> => {
+ const res = await fetch(getInitUserUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: initUserResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as initUserResponse
-}
-
+ const data: initUserResponse['data'] = body ? JSON.parse(body) : {};
+ return { data, status: res.status, headers: res.headers } as initUserResponse;
+};
/**
* @summary List user labels.
*/
export type listLabelsResponse200 = {
- data: ListLabelsResponse
- status: 200
-}
+ data: ListLabelsResponse;
+ status: 200;
+};
export type listLabelsResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type listLabelsResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type listLabelsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type listLabelsResponseSuccess = (listLabelsResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type listLabelsResponseSuccess = listLabelsResponse200 & {
headers: Headers;
};
-export type listLabelsResponseError = (listLabelsResponse400 | listLabelsResponse401 | listLabelsResponse500) & {
+export type listLabelsResponseError = (
+ | listLabelsResponse400
+ | listLabelsResponse401
+ | listLabelsResponse500
+) & {
headers: Headers;
};
-export type listLabelsResponse = (listLabelsResponseSuccess | listLabelsResponseError)
+export type listLabelsResponse =
+ | listLabelsResponseSuccess
+ | listLabelsResponseError;
export const getListLabelsUrl = () => {
+ return `/email/labels`;
+};
-
-
-
- return `/email/labels`
-}
-
-export const listLabels = async ( options?: RequestInit): Promise<listLabelsResponse> => {
-
- const res = await fetch(getListLabelsUrl(),
- {
+export const listLabels = async (
+ options?: RequestInit
+): Promise<listLabelsResponse> => {
+ const res = await fetch(getListLabelsUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: listLabelsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as listLabelsResponse
-}
-
+ const data: listLabelsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as listLabelsResponse;
+};
/**
* @summary Create a label.
*/
export type createLabelResponse201 = {
- data: CreateLabelResponse
- status: 201
-}
+ data: CreateLabelResponse;
+ status: 201;
+};
export type createLabelResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type createLabelResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type createLabelResponse409 = {
- data: ErrorResponse
- status: 409
-}
+ data: ErrorResponse;
+ status: 409;
+};
export type createLabelResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type createLabelResponseSuccess = (createLabelResponse201) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type createLabelResponseSuccess = createLabelResponse201 & {
headers: Headers;
};
-export type createLabelResponseError = (createLabelResponse400 | createLabelResponse401 | createLabelResponse409 | createLabelResponse500) & {
+export type createLabelResponseError = (
+ | createLabelResponse400
+ | createLabelResponse401
+ | createLabelResponse409
+ | createLabelResponse500
+) & {
headers: Headers;
};
-export type createLabelResponse = (createLabelResponseSuccess | createLabelResponseError)
+export type createLabelResponse =
+ | createLabelResponseSuccess
+ | createLabelResponseError;
export const getCreateLabelUrl = () => {
+ return `/email/labels`;
+};
-
-
-
- return `/email/labels`
-}
-
-export const createLabel = async (createLabelRequest: CreateLabelRequest, options?: RequestInit): Promise<createLabelResponse> => {
-
- const res = await fetch(getCreateLabelUrl(),
- {
+export const createLabel = async (
+ createLabelRequest: CreateLabelRequest,
+ options?: RequestInit
+): Promise<createLabelResponse> => {
+ const res = await fetch(getCreateLabelUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createLabelRequest,)
- }
-)
+ body: JSON.stringify(createLabelRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createLabelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createLabelResponse
-}
-
+ const data: createLabelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createLabelResponse;
+};
/**
* @summary Delete a label.
*/
export type deleteLabelResponse204 = {
- data: EmptyResponse
- status: 204
-}
+ data: EmptyResponse;
+ status: 204;
+};
export type deleteLabelResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type deleteLabelResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type deleteLabelResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type deleteLabelResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type deleteLabelResponseSuccess = (deleteLabelResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type deleteLabelResponseSuccess = deleteLabelResponse204 & {
headers: Headers;
};
-export type deleteLabelResponseError = (deleteLabelResponse400 | deleteLabelResponse401 | deleteLabelResponse404 | deleteLabelResponse500) & {
+export type deleteLabelResponseError = (
+ | deleteLabelResponse400
+ | deleteLabelResponse401
+ | deleteLabelResponse404
+ | deleteLabelResponse500
+) & {
headers: Headers;
};
-export type deleteLabelResponse = (deleteLabelResponseSuccess | deleteLabelResponseError)
-
-export const getDeleteLabelUrl = (id: string,) => {
-
+export type deleteLabelResponse =
+ | deleteLabelResponseSuccess
+ | deleteLabelResponseError;
-
-
- return `/email/labels/${id}`
-}
+export const getDeleteLabelUrl = (id: string) => {
+ return `/email/labels/${id}`;
+};
-export const deleteLabel = async (id: string, options?: RequestInit): Promise<deleteLabelResponse> => {
-
- const res = await fetch(getDeleteLabelUrl(id),
- {
+export const deleteLabel = async (
+ id: string,
+ options?: RequestInit
+): Promise<deleteLabelResponse> => {
+ const res = await fetch(getDeleteLabelUrl(id), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteLabelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteLabelResponse
-}
-
+ const data: deleteLabelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteLabelResponse;
+};
/**
* @summary List all links belonging to the user.
*/
export type listLinksResponse200 = {
- data: ListLinksResponse
- status: 200
-}
+ data: ListLinksResponse;
+ status: 200;
+};
export type listLinksResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type listLinksResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type listLinksResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type listLinksResponseSuccess = (listLinksResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type listLinksResponseSuccess = listLinksResponse200 & {
headers: Headers;
};
-export type listLinksResponseError = (listLinksResponse401 | listLinksResponse404 | listLinksResponse500) & {
+export type listLinksResponseError = (
+ | listLinksResponse401
+ | listLinksResponse404
+ | listLinksResponse500
+) & {
headers: Headers;
};
-export type listLinksResponse = (listLinksResponseSuccess | listLinksResponseError)
+export type listLinksResponse =
+ | listLinksResponseSuccess
+ | listLinksResponseError;
-export const getListLinksUrl = () => {
+export const getListLinksUrl = (params?: ListLinksParams) => {
+ 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 `/email/links`
-}
+ return stringifiedParams.length > 0
+ ? `/email/links?${stringifiedParams}`
+ : `/email/links`;
+};
-export const listLinks = async ( options?: RequestInit): Promise<listLinksResponse> => {
-
- const res = await fetch(getListLinksUrl(),
- {
+export const listLinks = async (
+ params?: ListLinksParams,
+ options?: RequestInit
+): Promise<listLinksResponse> => {
+ const res = await fetch(getListLinksUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: listLinksResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as listLinksResponse
-}
-
+ const data: listLinksResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as listLinksResponse;
+};
/**
* @summary Send an email message.
*/
export type sendMessageResponse201 = {
- data: SendMessageResponse
- status: 201
-}
+ data: SendMessageResponse;
+ status: 201;
+};
export type sendMessageResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type sendMessageResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type sendMessageResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type sendMessageResponseSuccess = (sendMessageResponse201) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type sendMessageResponseSuccess = sendMessageResponse201 & {
headers: Headers;
};
-export type sendMessageResponseError = (sendMessageResponse400 | sendMessageResponse401 | sendMessageResponse500) & {
+export type sendMessageResponseError = (
+ | sendMessageResponse400
+ | sendMessageResponse401
+ | sendMessageResponse500
+) & {
headers: Headers;
};
-export type sendMessageResponse = (sendMessageResponseSuccess | sendMessageResponseError)
+export type sendMessageResponse =
+ | sendMessageResponseSuccess
+ | sendMessageResponseError;
export const getSendMessageUrl = () => {
+ return `/email/messages`;
+};
-
-
-
- return `/email/messages`
-}
-
-export const sendMessage = async (sendMessageRequest: SendMessageRequest, options?: RequestInit): Promise<sendMessageResponse> => {
-
- const res = await fetch(getSendMessageUrl(),
- {
+export const sendMessage = async (
+ sendMessageRequest: SendMessageRequest,
+ options?: RequestInit
+): Promise<sendMessageResponse> => {
+ const res = await fetch(getSendMessageUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- sendMessageRequest,)
- }
-)
+ body: JSON.stringify(sendMessageRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: sendMessageResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as sendMessageResponse
-}
-
+ const data: sendMessageResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as sendMessageResponse;
+};
export type getMessagesBatchResponse200 = {
- data: ParsedMessage[]
- status: 200
-}
+ data: ParsedMessage[];
+ status: 200;
+};
export type getMessagesBatchResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getMessagesBatchResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getMessagesBatchResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getMessagesBatchResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getMessagesBatchResponseSuccess = (getMessagesBatchResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getMessagesBatchResponseSuccess = getMessagesBatchResponse200 & {
headers: Headers;
};
-export type getMessagesBatchResponseError = (getMessagesBatchResponse400 | getMessagesBatchResponse401 | getMessagesBatchResponse404 | getMessagesBatchResponse500) & {
+export type getMessagesBatchResponseError = (
+ | getMessagesBatchResponse400
+ | getMessagesBatchResponse401
+ | getMessagesBatchResponse404
+ | getMessagesBatchResponse500
+) & {
headers: Headers;
};
-export type getMessagesBatchResponse = (getMessagesBatchResponseSuccess | getMessagesBatchResponseError)
+export type getMessagesBatchResponse =
+ | getMessagesBatchResponseSuccess
+ | getMessagesBatchResponseError;
export const getGetMessagesBatchUrl = () => {
+ return `/email/messages/batch`;
+};
-
-
-
- return `/email/messages/batch`
-}
-
-export const getMessagesBatch = async (getMessagesBatchBody: string[], options?: RequestInit): Promise<getMessagesBatchResponse> => {
-
- const res = await fetch(getGetMessagesBatchUrl(),
- {
+export const getMessagesBatch = async (
+ getMessagesBatchBody: string[],
+ options?: RequestInit
+): Promise<getMessagesBatchResponse> => {
+ const res = await fetch(getGetMessagesBatchUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getMessagesBatchBody,)
- }
-)
+ body: JSON.stringify(getMessagesBatchBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMessagesBatchResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMessagesBatchResponse
-}
-
+ const data: getMessagesBatchResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMessagesBatchResponse;
+};
/**
* @summary Add or remove a label from a batch of messages
*/
export type addRemoveLabelResponse200 = {
- data: UpdateLabelBatchResponse
- status: 200
-}
+ data: UpdateLabelBatchResponse;
+ status: 200;
+};
export type addRemoveLabelResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type addRemoveLabelResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type addRemoveLabelResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type addRemoveLabelResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type addRemoveLabelResponseSuccess = (addRemoveLabelResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type addRemoveLabelResponseSuccess = addRemoveLabelResponse200 & {
headers: Headers;
};
-export type addRemoveLabelResponseError = (addRemoveLabelResponse400 | addRemoveLabelResponse401 | addRemoveLabelResponse404 | addRemoveLabelResponse500) & {
+export type addRemoveLabelResponseError = (
+ | addRemoveLabelResponse400
+ | addRemoveLabelResponse401
+ | addRemoveLabelResponse404
+ | addRemoveLabelResponse500
+) & {
headers: Headers;
};
-export type addRemoveLabelResponse = (addRemoveLabelResponseSuccess | addRemoveLabelResponseError)
+export type addRemoveLabelResponse =
+ | addRemoveLabelResponseSuccess
+ | addRemoveLabelResponseError;
export const getAddRemoveLabelUrl = () => {
+ return `/email/messages/labels`;
+};
-
-
-
- return `/email/messages/labels`
-}
-
-export const addRemoveLabel = async (updateLabelBatchRequest: UpdateLabelBatchRequest, options?: RequestInit): Promise<addRemoveLabelResponse> => {
-
- const res = await fetch(getAddRemoveLabelUrl(),
- {
+export const addRemoveLabel = async (
+ updateLabelBatchRequest: UpdateLabelBatchRequest,
+ options?: RequestInit
+): Promise<addRemoveLabelResponse> => {
+ const res = await fetch(getAddRemoveLabelUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- updateLabelBatchRequest,)
- }
-)
+ body: JSON.stringify(updateLabelBatchRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: addRemoveLabelResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as addRemoveLabelResponse
-}
-
+ const data: addRemoveLabelResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as addRemoveLabelResponse;
+};
export type getMessageResponse200 = {
- data: ParsedMessage
- status: 200
-}
+ data: ParsedMessage;
+ status: 200;
+};
export type getMessageResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getMessageResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getMessageResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getMessageResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getMessageResponseSuccess = (getMessageResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getMessageResponseSuccess = getMessageResponse200 & {
headers: Headers;
};
-export type getMessageResponseError = (getMessageResponse400 | getMessageResponse401 | getMessageResponse404 | getMessageResponse500) & {
+export type getMessageResponseError = (
+ | getMessageResponse400
+ | getMessageResponse401
+ | getMessageResponse404
+ | getMessageResponse500
+) & {
headers: Headers;
};
-export type getMessageResponse = (getMessageResponseSuccess | getMessageResponseError)
-
-export const getGetMessageUrl = (id: string,) => {
+export type getMessageResponse =
+ | getMessageResponseSuccess
+ | getMessageResponseError;
+export const getGetMessageUrl = (id: string) => {
+ return `/email/messages/${id}`;
+};
-
-
- return `/email/messages/${id}`
-}
-
-export const getMessage = async (id: string, options?: RequestInit): Promise<getMessageResponse> => {
-
- const res = await fetch(getGetMessageUrl(id),
- {
+export const getMessage = async (
+ id: string,
+ options?: RequestInit
+): Promise<getMessageResponse> => {
+ const res = await fetch(getGetMessageUrl(id), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getMessageResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getMessageResponse
-}
-
+ const data: getMessageResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getMessageResponse;
+};
/**
* @summary Patch user settings.
*/
export type patchSettingsResponse200 = {
- data: PatchSettingsResponse
- status: 200
-}
+ data: PatchSettingsResponse;
+ status: 200;
+};
export type patchSettingsResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type patchSettingsResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type patchSettingsResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type patchSettingsResponseSuccess = (patchSettingsResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type patchSettingsResponseSuccess = patchSettingsResponse200 & {
headers: Headers;
};
-export type patchSettingsResponseError = (patchSettingsResponse400 | patchSettingsResponse401 | patchSettingsResponse500) & {
+export type patchSettingsResponseError = (
+ | patchSettingsResponse400
+ | patchSettingsResponse401
+ | patchSettingsResponse500
+) & {
headers: Headers;
};
-export type patchSettingsResponse = (patchSettingsResponseSuccess | patchSettingsResponseError)
+export type patchSettingsResponse =
+ | patchSettingsResponseSuccess
+ | patchSettingsResponseError;
export const getPatchSettingsUrl = () => {
+ return `/email/settings`;
+};
-
-
-
- return `/email/settings`
-}
-
-export const patchSettings = async (patchSettingsRequest: PatchSettingsRequest, options?: RequestInit): Promise<patchSettingsResponse> => {
-
- const res = await fetch(getPatchSettingsUrl(),
- {
+export const patchSettings = async (
+ patchSettingsRequest: PatchSettingsRequest,
+ options?: RequestInit
+): Promise<patchSettingsResponse> => {
+ const res = await fetch(getPatchSettingsUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- patchSettingsRequest,)
- }
-)
+ body: JSON.stringify(patchSettingsRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: patchSettingsResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as patchSettingsResponse
-}
-
+ const data: patchSettingsResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as patchSettingsResponse;
+};
/**
* @summary Enables inbox syncing for user.
*/
export type enableSyncResponse201 = {
- data: EmptyResponse
- status: 201
-}
+ data: EmptyResponse;
+ status: 201;
+};
export type enableSyncResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type enableSyncResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type enableSyncResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type enableSyncResponseSuccess = (enableSyncResponse201) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type enableSyncResponseSuccess = enableSyncResponse201 & {
headers: Headers;
};
-export type enableSyncResponseError = (enableSyncResponse400 | enableSyncResponse401 | enableSyncResponse500) & {
+export type enableSyncResponseError = (
+ | enableSyncResponse400
+ | enableSyncResponse401
+ | enableSyncResponse500
+) & {
headers: Headers;
};
-export type enableSyncResponse = (enableSyncResponseSuccess | enableSyncResponseError)
+export type enableSyncResponse =
+ | enableSyncResponseSuccess
+ | enableSyncResponseError;
export const getEnableSyncUrl = () => {
+ return `/email/sync`;
+};
-
-
-
- return `/email/sync`
-}
-
-export const enableSync = async ( options?: RequestInit): Promise<enableSyncResponse> => {
-
- const res = await fetch(getEnableSyncUrl(),
- {
+export const enableSync = async (
+ options?: RequestInit
+): Promise<enableSyncResponse> => {
+ const res = await fetch(getEnableSyncUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: enableSyncResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as enableSyncResponse
-}
-
+ const data: enableSyncResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as enableSyncResponse;
+};
/**
* @summary Disables inbox syncing for user.
*/
export type disableSyncResponse204 = {
- data: EmptyResponse
- status: 204
-}
+ data: EmptyResponse;
+ status: 204;
+};
export type disableSyncResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type disableSyncResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type disableSyncResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type disableSyncResponseSuccess = (disableSyncResponse204) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type disableSyncResponseSuccess = disableSyncResponse204 & {
headers: Headers;
};
-export type disableSyncResponseError = (disableSyncResponse400 | disableSyncResponse401 | disableSyncResponse500) & {
+export type disableSyncResponseError = (
+ | disableSyncResponse400
+ | disableSyncResponse401
+ | disableSyncResponse500
+) & {
headers: Headers;
};
-export type disableSyncResponse = (disableSyncResponseSuccess | disableSyncResponseError)
+export type disableSyncResponse =
+ | disableSyncResponseSuccess
+ | disableSyncResponseError;
export const getDisableSyncUrl = () => {
+ return `/email/sync`;
+};
-
-
-
- return `/email/sync`
-}
-
-export const disableSync = async ( options?: RequestInit): Promise<disableSyncResponse> => {
-
- const res = await fetch(getDisableSyncUrl(),
- {
+export const disableSync = async (
+ options?: RequestInit
+): Promise<disableSyncResponse> => {
+ const res = await fetch(getDisableSyncUrl(), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: disableSyncResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as disableSyncResponse
-}
-
+ const data: disableSyncResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as disableSyncResponse;
+};
/**
* @summary Get paginated thread previews with cursor-based pagination.
*/
export type previewsInboxCursorResponse200 = {
- data: ApiPaginatedThreadCursor
- status: 200
-}
+ data: ApiPaginatedThreadCursor;
+ status: 200;
+};
export type previewsInboxCursorResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type previewsInboxCursorResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type previewsInboxCursorResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type previewsInboxCursorResponseSuccess = (previewsInboxCursorResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type previewsInboxCursorResponseError = (previewsInboxCursorResponse400 | previewsInboxCursorResponse401 | previewsInboxCursorResponse500) & {
+
+export type previewsInboxCursorResponseSuccess =
+ previewsInboxCursorResponse200 & {
+ headers: Headers;
+ };
+export type previewsInboxCursorResponseError = (
+ | previewsInboxCursorResponse400
+ | previewsInboxCursorResponse401
+ | previewsInboxCursorResponse500
+) & {
headers: Headers;
};
-export type previewsInboxCursorResponse = (previewsInboxCursorResponseSuccess | previewsInboxCursorResponseError)
+export type previewsInboxCursorResponse =
+ | previewsInboxCursorResponseSuccess
+ | previewsInboxCursorResponseError;
-export const getPreviewsInboxCursorUrl = (view: string,
- params?: PreviewsInboxCursorParams,) => {
+export const getPreviewsInboxCursorUrl = (
+ view: string,
+ params?: PreviewsInboxCursorParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/email/threads/previews/cursor/${view}?${stringifiedParams}` : `/email/threads/previews/cursor/${view}`
-}
+ return stringifiedParams.length > 0
+ ? `/email/threads/previews/cursor/${view}?${stringifiedParams}`
+ : `/email/threads/previews/cursor/${view}`;
+};
-export const previewsInboxCursor = async (view: string,
- params?: PreviewsInboxCursorParams, options?: RequestInit): Promise<previewsInboxCursorResponse> => {
-
- const res = await fetch(getPreviewsInboxCursorUrl(view,params),
- {
+export const previewsInboxCursor = async (
+ view: string,
+ params?: PreviewsInboxCursorParams,
+ options?: RequestInit
+): Promise<previewsInboxCursorResponse> => {
+ const res = await fetch(getPreviewsInboxCursorUrl(view, params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: previewsInboxCursorResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as previewsInboxCursorResponse
-}
-
+ const data: previewsInboxCursorResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as previewsInboxCursorResponse;
+};
/**
* @summary Get a thread with a paginated number of messages.
*/
export type getThreadResponse200 = {
- data: GetThreadResponse
- status: 200
-}
+ data: GetThreadResponse;
+ status: 200;
+};
export type getThreadResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getThreadResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getThreadResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getThreadResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getThreadResponseSuccess = (getThreadResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getThreadResponseSuccess = getThreadResponse200 & {
headers: Headers;
};
-export type getThreadResponseError = (getThreadResponse400 | getThreadResponse401 | getThreadResponse404 | getThreadResponse500) & {
+export type getThreadResponseError = (
+ | getThreadResponse400
+ | getThreadResponse401
+ | getThreadResponse404
+ | getThreadResponse500
+) & {
headers: Headers;
};
-export type getThreadResponse = (getThreadResponseSuccess | getThreadResponseError)
+export type getThreadResponse =
+ | getThreadResponseSuccess
+ | getThreadResponseError;
-export const getGetThreadUrl = (id: string,
- params: GetThreadParams,) => {
+export const getGetThreadUrl = (id: string, params: GetThreadParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/email/threads/${id}?${stringifiedParams}` : `/email/threads/${id}`
-}
+ return stringifiedParams.length > 0
+ ? `/email/threads/${id}?${stringifiedParams}`
+ : `/email/threads/${id}`;
+};
-export const getThread = async (id: string,
- params: GetThreadParams, options?: RequestInit): Promise<getThreadResponse> => {
-
- const res = await fetch(getGetThreadUrl(id,params),
- {
+export const getThread = async (
+ id: string,
+ params: GetThreadParams,
+ options?: RequestInit
+): Promise<getThreadResponse> => {
+ const res = await fetch(getGetThreadUrl(id, params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getThreadResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getThreadResponse
-}
-
+ const data: getThreadResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getThreadResponse;
+};
/**
* @summary Change the archived status of a thread.
*/
export type archiveThreadResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type archiveThreadResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type archiveThreadResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type archiveThreadResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type archiveThreadResponseSuccess = (archiveThreadResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type archiveThreadResponseSuccess = archiveThreadResponse200 & {
headers: Headers;
};
-export type archiveThreadResponseError = (archiveThreadResponse401 | archiveThreadResponse404 | archiveThreadResponse500) & {
+export type archiveThreadResponseError = (
+ | archiveThreadResponse401
+ | archiveThreadResponse404
+ | archiveThreadResponse500
+) & {
headers: Headers;
};
-export type archiveThreadResponse = (archiveThreadResponseSuccess | archiveThreadResponseError)
+export type archiveThreadResponse =
+ | archiveThreadResponseSuccess
+ | archiveThreadResponseError;
-export const getArchiveThreadUrl = (id: string,) => {
-
-
-
-
- return `/email/threads/${id}/archived`
-}
+export const getArchiveThreadUrl = (id: string) => {
+ return `/email/threads/${id}/archived`;
+};
-export const archiveThread = async (id: string,
- archiveThreadRequest: ArchiveThreadRequest, options?: RequestInit): Promise<archiveThreadResponse> => {
-
- const res = await fetch(getArchiveThreadUrl(id),
- {
+export const archiveThread = async (
+ id: string,
+ archiveThreadRequest: ArchiveThreadRequest,
+ options?: RequestInit
+): Promise<archiveThreadResponse> => {
+ const res = await fetch(getArchiveThreadUrl(id), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- archiveThreadRequest,)
- }
-)
+ body: JSON.stringify(archiveThreadRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: archiveThreadResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as archiveThreadResponse
-}
-
+ const data: archiveThreadResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as archiveThreadResponse;
+};
export type getThreadMessagesHandlerResponse200 = {
- data: ParsedMessage[]
- status: 200
-}
+ data: ParsedMessage[];
+ status: 200;
+};
export type getThreadMessagesHandlerResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getThreadMessagesHandlerResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getThreadMessagesHandlerResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type getThreadMessagesHandlerResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getThreadMessagesHandlerResponseSuccess = (getThreadMessagesHandlerResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getThreadMessagesHandlerResponseError = (getThreadMessagesHandlerResponse400 | getThreadMessagesHandlerResponse401 | getThreadMessagesHandlerResponse404 | getThreadMessagesHandlerResponse500) & {
+
+export type getThreadMessagesHandlerResponseSuccess =
+ getThreadMessagesHandlerResponse200 & {
+ headers: Headers;
+ };
+export type getThreadMessagesHandlerResponseError = (
+ | getThreadMessagesHandlerResponse400
+ | getThreadMessagesHandlerResponse401
+ | getThreadMessagesHandlerResponse404
+ | getThreadMessagesHandlerResponse500
+) & {
headers: Headers;
};
-export type getThreadMessagesHandlerResponse = (getThreadMessagesHandlerResponseSuccess | getThreadMessagesHandlerResponseError)
+export type getThreadMessagesHandlerResponse =
+ | getThreadMessagesHandlerResponseSuccess
+ | getThreadMessagesHandlerResponseError;
-export const getGetThreadMessagesHandlerUrl = (id: string,
- params?: GetThreadMessagesHandlerParams,) => {
+export const getGetThreadMessagesHandlerUrl = (
+ id: string,
+ params?: GetThreadMessagesHandlerParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/email/threads/${id}/messages?${stringifiedParams}` : `/email/threads/${id}/messages`
-}
+ return stringifiedParams.length > 0
+ ? `/email/threads/${id}/messages?${stringifiedParams}`
+ : `/email/threads/${id}/messages`;
+};
-export const getThreadMessagesHandler = async (id: string,
- params?: GetThreadMessagesHandlerParams, options?: RequestInit): Promise<getThreadMessagesHandlerResponse> => {
-
- const res = await fetch(getGetThreadMessagesHandlerUrl(id,params),
- {
+export const getThreadMessagesHandler = async (
+ id: string,
+ params?: GetThreadMessagesHandlerParams,
+ options?: RequestInit
+): Promise<getThreadMessagesHandlerResponse> => {
+ const res = await fetch(getGetThreadMessagesHandlerUrl(id, params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getThreadMessagesHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getThreadMessagesHandlerResponse
-}
-
+ const data: getThreadMessagesHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getThreadMessagesHandlerResponse;
+};
/**
* @summary Called by FE when the user has seen a thread.
*/
export type threadSeenResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type threadSeenResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type threadSeenResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type threadSeenResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type threadSeenResponseSuccess = (threadSeenResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type threadSeenResponseSuccess = threadSeenResponse200 & {
headers: Headers;
};
-export type threadSeenResponseError = (threadSeenResponse401 | threadSeenResponse404 | threadSeenResponse500) & {
+export type threadSeenResponseError = (
+ | threadSeenResponse401
+ | threadSeenResponse404
+ | threadSeenResponse500
+) & {
headers: Headers;
};
-export type threadSeenResponse = (threadSeenResponseSuccess | threadSeenResponseError)
-
-export const getThreadSeenUrl = (id: string,) => {
+export type threadSeenResponse =
+ | threadSeenResponseSuccess
+ | threadSeenResponseError;
+export const getThreadSeenUrl = (id: string) => {
+ return `/email/threads/${id}/seen`;
+};
-
-
- return `/email/threads/${id}/seen`
-}
-
-export const threadSeen = async (id: string, options?: RequestInit): Promise<threadSeenResponse> => {
-
- const res = await fetch(getThreadSeenUrl(id),
- {
+export const threadSeen = async (
+ id: string,
+ options?: RequestInit
+): Promise<threadSeenResponse> => {
+ const res = await fetch(getThreadSeenUrl(id), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: threadSeenResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as threadSeenResponse
-}
-
+ const data: threadSeenResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as threadSeenResponse;
+};
/**
* @summary Health check
*/
export type healthHandlerResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type healthHandlerResponseSuccess = (healthHandlerResponse200) & {
+ data: EmptyResponse;
+ status: 200;
+};
+
+export type healthHandlerResponseSuccess = healthHandlerResponse200 & {
headers: Headers;
};
-;
-export type healthHandlerResponse = (healthHandlerResponseSuccess)
+export type healthHandlerResponse = healthHandlerResponseSuccess;
export const getHealthHandlerUrl = () => {
+ return `/health`;
+};
-
-
-
- return `/health`
-}
-
-export const healthHandler = async ( options?: RequestInit): Promise<healthHandlerResponse> => {
-
- const res = await fetch(getHealthHandlerUrl(),
- {
+export const healthHandler = async (
+ options?: RequestInit
+): Promise<healthHandlerResponse> => {
+ const res = await fetch(getHealthHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as healthHandlerResponse
-}
+
+ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as healthHandlerResponse;
+};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/aPIThread.ts b/js/app/packages/service-clients/service-email/generated/schemas/aPIThread.ts
index 4c1e357334..44b2f6e933 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/aPIThread.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/aPIThread.ts
@@ -9,8 +9,8 @@ import type { APIThreadDbId } from './aPIThreadDbId';
import type { APIThreadLatestInboundMessageTs } from './aPIThreadLatestInboundMessageTs';
import type { APIThreadLatestNonSpamMessageTs } from './aPIThreadLatestNonSpamMessageTs';
import type { APIThreadLatestOutboundMessageTs } from './aPIThreadLatestOutboundMessageTs';
-import type { MessageWithBodyReplyless } from './messageWithBodyReplyless';
import type { APIThreadProviderId } from './aPIThreadProviderId';
+import type { MessageWithBodyReplyless } from './messageWithBodyReplyless';
/**
* Thread object exposed to the FE in Get Threads Call
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/accessLevel.ts b/js/app/packages/service-clients/service-email/generated/schemas/accessLevel.ts
index 0e2d3acbed..c39dbdc78f 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/accessLevel.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/accessLevel.ts
@@ -8,8 +8,7 @@
/**
* Ordered from least to most access top -> bottom
*/
-export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
-
+export type AccessLevel = (typeof AccessLevel)[keyof typeof AccessLevel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AccessLevel = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentRequest.ts b/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentRequest.ts
new file mode 100644
index 0000000000..91ca30ec9f
--- /dev/null
+++ b/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentRequest.ts
@@ -0,0 +1,18 @@
+/**
+ * Generated by orval v7.13.0 🍺
+ * Do not edit manually.
+ * email_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * The request passed to send a message
+ */
+export interface AddDraftAttachmentRequest {
+ /** The name of the file being uploaded. */
+ file_name: string;
+ /** The SHA256 hash of the file being uploaded. */
+ sha: string;
+ /** The size of the file in bytes. */
+ size: number;
+}
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentResponse.ts b/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentResponse.ts
new file mode 100644
index 0000000000..9b051fca42
--- /dev/null
+++ b/js/app/packages/service-clients/service-email/generated/schemas/addDraftAttachmentResponse.ts
@@ -0,0 +1,15 @@
+/**
+ * Generated by orval v7.13.0 🍺
+ * Do not edit manually.
+ * email_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export interface AddDraftAttachmentResponse {
+ /** The ID of the attachment in the database. */
+ attachment_id: string;
+ /** The MIME type of the attachment. */
+ content_type: string;
+ /** The URL to upload the attachment to. */
+ upload_url: string;
+}
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiLabel.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiLabel.ts
index e73ce7ebb7..c65c9a5416 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiLabel.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiLabel.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { ApiLabelListVisibility } from './apiLabelListVisibility';
-import type { ApiMessageListVisibility } from './apiMessageListVisibility';
import type { ApiLabelType } from './apiLabelType';
+import type { ApiMessageListVisibility } from './apiMessageListVisibility';
export interface ApiLabel {
createdAt: string;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiLabelListVisibility.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiLabelListVisibility.ts
index 95dc6154b4..581ed901d9 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiLabelListVisibility.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiLabelListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ApiLabelListVisibility = typeof ApiLabelListVisibility[keyof typeof ApiLabelListVisibility];
-
+export type ApiLabelListVisibility =
+ (typeof ApiLabelListVisibility)[keyof typeof ApiLabelListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ApiLabelListVisibility = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiLabelType.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiLabelType.ts
index 8acbda0494..c46f0dfa07 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiLabelType.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiLabelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ApiLabelType = typeof ApiLabelType[keyof typeof ApiLabelType];
-
+export type ApiLabelType = (typeof ApiLabelType)[keyof typeof ApiLabelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ApiLabelType = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiMessageListVisibility.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiMessageListVisibility.ts
index 3c29259781..68b2bed605 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiMessageListVisibility.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiMessageListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ApiMessageListVisibility = typeof ApiMessageListVisibility[keyof typeof ApiMessageListVisibility];
-
+export type ApiMessageListVisibility =
+ (typeof ApiMessageListVisibility)[keyof typeof ApiMessageListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ApiMessageListVisibility = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiPaginatedThreadCursor.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiPaginatedThreadCursor.ts
index e8513de473..03992a2670 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiPaginatedThreadCursor.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiPaginatedThreadCursor.ts
@@ -4,8 +4,9 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
-import type { ApiThreadPreviewCursor } from './apiThreadPreviewCursor';
+
import type { ApiPaginatedThreadCursorNextCursor } from './apiPaginatedThreadCursorNextCursor';
+import type { ApiThreadPreviewCursor } from './apiThreadPreviewCursor';
export interface ApiPaginatedThreadCursor {
items: ApiThreadPreviewCursor[];
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiSortMethod.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiSortMethod.ts
index 1fd3ff4008..0f7f144c55 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiSortMethod.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiSortMethod.ts
@@ -8,8 +8,7 @@
/**
* common types of sorts based on timestamps
*/
-export type ApiSortMethod = typeof ApiSortMethod[keyof typeof ApiSortMethod];
-
+export type ApiSortMethod = (typeof ApiSortMethod)[keyof typeof ApiSortMethod];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ApiSortMethod = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursor.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursor.ts
index 024be66229..7eed3a205d 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursor.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursor.ts
@@ -4,7 +4,9 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
-import type { ApiThreadPreviewCursorInner } from './apiThreadPreviewCursorInner';
+
import type { ApiThreadPreviewCursorAllOf } from './apiThreadPreviewCursorAllOf';
+import type { ApiThreadPreviewCursorInner } from './apiThreadPreviewCursorInner';
-export type ApiThreadPreviewCursor = ApiThreadPreviewCursorInner & ApiThreadPreviewCursorAllOf;
+export type ApiThreadPreviewCursor = ApiThreadPreviewCursorInner &
+ ApiThreadPreviewCursorAllOf;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursorAllOf.ts b/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursorAllOf.ts
index e9c64271b4..b3b6682193 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursorAllOf.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/apiThreadPreviewCursorAllOf.ts
@@ -4,12 +4,13 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
+
+import type { APIEmailThreadPreviewMetadata } from './aPIEmailThreadPreviewMetadata';
import type { ApiAttachment } from './apiAttachment';
+import type { ApiAttachmentMacro } from './apiAttachmentMacro';
import type { ApiContact } from './apiContact';
-import type { ApiThreadPreviewCursorAllOfFrecencyScore } from './apiThreadPreviewCursorAllOfFrecencyScore';
import type { ApiLabel } from './apiLabel';
-import type { ApiAttachmentMacro } from './apiAttachmentMacro';
-import type { APIEmailThreadPreviewMetadata } from './aPIEmailThreadPreviewMetadata';
+import type { ApiThreadPreviewCursorAllOfFrecencyScore } from './apiThreadPreviewCursorAllOfFrecencyScore';
export type ApiThreadPreviewCursorAllOf = {
attachments: ApiAttachment[];
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/attachmentDraft.ts b/js/app/packages/service-clients/service-email/generated/schemas/attachmentDraft.ts
new file mode 100644
index 0000000000..3f8166703d
--- /dev/null
+++ b/js/app/packages/service-clients/service-email/generated/schemas/attachmentDraft.ts
@@ -0,0 +1,23 @@
+/**
+ * Generated by orval v7.13.0 🍺
+ * Do not edit manually.
+ * email_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export interface AttachmentDraft {
+ /** MIME type of the attachment (e.g., "application/pdf", "image/png"). */
+ content_type: string;
+ /** The ID of the draft message this attachment belongs to. */
+ draft_id: string;
+ /** Original file name of the attachment. */
+ file_name: string;
+ /** Unique identifier for the attachment. */
+ id: string;
+ /** S3 object key where the attachment content is stored. */
+ s3_key: string;
+ /** SHA-256 hash of the file content for integrity verification. */
+ sha: string;
+ /** File size in bytes. */
+ size: number;
+}
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/attachmentToSend.ts b/js/app/packages/service-clients/service-email/generated/schemas/attachmentToSend.ts
new file mode 100644
index 0000000000..959d7dbdbc
--- /dev/null
+++ b/js/app/packages/service-clients/service-email/generated/schemas/attachmentToSend.ts
@@ -0,0 +1,15 @@
+/**
+ * Generated by orval v7.13.0 🍺
+ * Do not edit manually.
+ * email_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * The attachment data we need to include when sending a message to a provider.
+ */
+export interface AttachmentToSend {
+ content_type: string;
+ data: number[];
+ file_name: string;
+}
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/backfillJobStatus.ts b/js/app/packages/service-clients/service-email/generated/schemas/backfillJobStatus.ts
index f8cf6258b7..77b4dae14a 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/backfillJobStatus.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/backfillJobStatus.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type BackfillJobStatus = typeof BackfillJobStatus[keyof typeof BackfillJobStatus];
-
+export type BackfillJobStatus =
+ (typeof BackfillJobStatus)[keyof typeof BackfillJobStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const BackfillJobStatus = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/contactInfoWithInteraction.ts b/js/app/packages/service-clients/service-email/generated/schemas/contactInfoWithInteraction.ts
index d519f41b7e..901578c638 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/contactInfoWithInteraction.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/contactInfoWithInteraction.ts
@@ -7,4 +7,5 @@
import type { ContactInfoLegacy } from './contactInfoLegacy';
import type { ContactInfoWithInteractionAllOf } from './contactInfoWithInteractionAllOf';
-export type ContactInfoWithInteraction = ContactInfoLegacy & ContactInfoWithInteractionAllOf;
+export type ContactInfoWithInteraction = ContactInfoLegacy &
+ ContactInfoWithInteractionAllOf;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-email/generated/schemas/emptyResponse.ts
index ed1b543399..1935a89335 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/getThreadMessagesHandlerParams.ts b/js/app/packages/service-clients/service-email/generated/schemas/getThreadMessagesHandlerParams.ts
index dbfd5b78f3..ce003b3bda 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/getThreadMessagesHandlerParams.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/getThreadMessagesHandlerParams.ts
@@ -6,12 +6,12 @@
*/
export type GetThreadMessagesHandlerParams = {
-/**
- * Filter messages after this date
- */
-since?: string;
-/**
- * Limit number of messages returned
- */
-limit?: number;
+ /**
+ * Filter messages after this date
+ */
+ since?: string;
+ /**
+ * Limit number of messages returned
+ */
+ limit?: number;
};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/getThreadParams.ts b/js/app/packages/service-clients/service-email/generated/schemas/getThreadParams.ts
index 3e3b60b94a..d367d93311 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/getThreadParams.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/getThreadParams.ts
@@ -6,12 +6,12 @@
*/
export type GetThreadParams = {
-/**
- * Offset for message pagination. Default is 0.
- */
-offset: number;
-/**
- * Limit for message pagination. Default is 5.
- */
-limit: number;
+ /**
+ * Offset for message pagination. Default is 0.
+ */
+ offset: number;
+ /**
+ * Limit for message pagination. Default is 5.
+ */
+ limit: number;
};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/index.ts b/js/app/packages/service-clients/service-email/generated/schemas/index.ts
index 32eaab0dac..b5c721d979 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/index.ts
@@ -5,6 +5,9 @@
* OpenAPI spec version: 0.1.0
*/
+export * from './accessLevel';
+export * from './addDraftAttachmentRequest';
+export * from './addDraftAttachmentResponse';
export * from './aPIEmailThreadPreviewMetadata';
export * from './aPIThread';
export * from './aPIThreadDbId';
@@ -12,7 +15,6 @@ export * from './aPIThreadLatestInboundMessageTs';
export * from './aPIThreadLatestNonSpamMessageTs';
export * from './aPIThreadLatestOutboundMessageTs';
export * from './aPIThreadProviderId';
-export * from './accessLevel';
export * from './apiAttachment';
export * from './apiAttachmentContentId';
export * from './apiAttachmentFilename';
@@ -47,6 +49,7 @@ export * from './attachment';
export * from './attachmentContentId';
export * from './attachmentDataUrl';
export * from './attachmentDbId';
+export * from './attachmentDraft';
export * from './attachmentFilename';
export * from './attachmentMacro';
export * from './attachmentMacroDbId';
@@ -55,6 +58,7 @@ export * from './attachmentMimeType';
export * from './attachmentProviderId';
export * from './attachmentSfsId';
export * from './attachmentSizeBytes';
+export * from './attachmentToSend';
export * from './backfillJob';
export * from './backfillJobLinkId';
export * from './backfillJobStatus';
@@ -105,6 +109,7 @@ export * from './linkSignature';
export * from './listContactsResponse';
export * from './listContactsResponseContacts';
export * from './listLabelsResponse';
+export * from './listLinksParams';
export * from './listLinksResponse';
export * from './message';
export * from './messageBodyHtmlSanitized';
@@ -152,9 +157,9 @@ export * from './parsedMessageInternalDateTs';
export * from './parsedMessageSubject';
export * from './patchSettingsRequest';
export * from './patchSettingsResponse';
+export * from './previewsInboxCursorParams';
export * from './previewView';
export * from './previewViewStandardLabel';
-export * from './previewsInboxCursorParams';
export * from './sendMessageRequest';
export * from './sendMessageResponse';
export * from './settings';
@@ -179,4 +184,4 @@ export * from './threadSummary';
export * from './updateLabelBatchRequest';
export * from './updateLabelBatchResponse';
export * from './userProvider';
-export * from './value';
\ No newline at end of file
+export * from './value';
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/labelListVisibility.ts b/js/app/packages/service-clients/service-email/generated/schemas/labelListVisibility.ts
index 69738750ae..0a7b34b0aa 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/labelListVisibility.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/labelListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type LabelListVisibility = typeof LabelListVisibility[keyof typeof LabelListVisibility];
-
+export type LabelListVisibility =
+ (typeof LabelListVisibility)[keyof typeof LabelListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const LabelListVisibility = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/labelType.ts b/js/app/packages/service-clients/service-email/generated/schemas/labelType.ts
index fadf2e5673..05bf2ff452 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/labelType.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/labelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type LabelType = typeof LabelType[keyof typeof LabelType];
-
+export type LabelType = (typeof LabelType)[keyof typeof LabelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const LabelType = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/link.ts b/js/app/packages/service-clients/service-email/generated/schemas/link.ts
index 0fbfdd4784..fa15e74a76 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/link.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/link.ts
@@ -4,9 +4,10 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
-import type { UserProvider } from './userProvider';
-import type { Settings } from './settings';
+
import type { LinkSignature } from './linkSignature';
+import type { Settings } from './settings';
+import type { UserProvider } from './userProvider';
export interface Link {
created_at: string;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/listContactsResponseContacts.ts b/js/app/packages/service-clients/service-email/generated/schemas/listContactsResponseContacts.ts
index dbccc8835c..ee2d2f86e8 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/listContactsResponseContacts.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/listContactsResponseContacts.ts
@@ -9,4 +9,6 @@ import type { ContactInfoWithInteraction } from './contactInfoWithInteraction';
/**
* the thread, with messages inside
*/
-export type ListContactsResponseContacts = {[key: string]: ContactInfoWithInteraction[]};
+export type ListContactsResponseContacts = {
+ [key: string]: ContactInfoWithInteraction[];
+};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/listLinksParams.ts b/js/app/packages/service-clients/service-email/generated/schemas/listLinksParams.ts
new file mode 100644
index 0000000000..a23ddb6903
--- /dev/null
+++ b/js/app/packages/service-clients/service-email/generated/schemas/listLinksParams.ts
@@ -0,0 +1,13 @@
+/**
+ * Generated by orval v7.13.0 🍺
+ * Do not edit manually.
+ * email_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export type ListLinksParams = {
+ /**
+ * If the user's gmail signature should be included in the response. Defaults to false.
+ */
+ include_signature?: boolean;
+};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/message.ts b/js/app/packages/service-clients/service-email/generated/schemas/message.ts
index 7fb95e1c76..3fbdd4cbf0 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/message.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/message.ts
@@ -5,8 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { Attachment } from './attachment';
+import type { AttachmentDraft } from './attachmentDraft';
import type { AttachmentMacro } from './attachmentMacro';
import type { ContactInfo } from './contactInfo';
+import type { Label } from './label';
import type { MessageBodyHtmlSanitized } from './messageBodyHtmlSanitized';
import type { MessageBodyMacro } from './messageBodyMacro';
import type { MessageBodyText } from './messageBodyText';
@@ -15,7 +17,6 @@ import type { MessageFrom } from './messageFrom';
import type { MessageGlobalId } from './messageGlobalId';
import type { MessageHeadersJson } from './messageHeadersJson';
import type { MessageInternalDateTs } from './messageInternalDateTs';
-import type { Label } from './label';
import type { MessageProviderHistoryId } from './messageProviderHistoryId';
import type { MessageProviderId } from './messageProviderId';
import type { MessageProviderThreadId } from './messageProviderThreadId';
@@ -29,6 +30,8 @@ import type { MessageThreadDbId } from './messageThreadDbId';
export interface Message {
attachments: Attachment[];
+ /** Uploaded file attachments for the message, if it is a draft */
+ attachments_draft: AttachmentDraft[];
attachments_macro: AttachmentMacro[];
bcc: ContactInfo[];
body_html_sanitized?: MessageBodyHtmlSanitized;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/messageListVisibility.ts b/js/app/packages/service-clients/service-email/generated/schemas/messageListVisibility.ts
index 102de32fa9..c59921e0be 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/messageListVisibility.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/messageListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type MessageListVisibility = typeof MessageListVisibility[keyof typeof MessageListVisibility];
-
+export type MessageListVisibility =
+ (typeof MessageListVisibility)[keyof typeof MessageListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const MessageListVisibility = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/messageToSendAttachments.ts b/js/app/packages/service-clients/service-email/generated/schemas/messageToSendAttachments.ts
index 2314baa4e7..99659e6568 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/messageToSendAttachments.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/messageToSendAttachments.ts
@@ -4,6 +4,6 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
-import type { Attachment } from './attachment';
+import type { AttachmentToSend } from './attachmentToSend';
-export type MessageToSendAttachments = Attachment[] | null;
+export type MessageToSendAttachments = AttachmentToSend[] | null;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/parsedMessage.ts b/js/app/packages/service-clients/service-email/generated/schemas/parsedMessage.ts
index 350d1f11dd..cfffd41ef9 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/parsedMessage.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/parsedMessage.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { ContactInfo } from './contactInfo';
+import type { LabelInfo } from './labelInfo';
import type { ParsedMessageBodyParsed } from './parsedMessageBodyParsed';
import type { ParsedMessageFrom } from './parsedMessageFrom';
import type { ParsedMessageInternalDateTs } from './parsedMessageInternalDateTs';
-import type { LabelInfo } from './labelInfo';
import type { ParsedMessageSubject } from './parsedMessageSubject';
export interface ParsedMessage {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/previewView.ts b/js/app/packages/service-clients/service-email/generated/schemas/previewView.ts
index da8636ab1f..aeffcbee4f 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/previewView.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/previewView.ts
@@ -8,4 +8,12 @@
/**
* View type. Supported values include standard labels and a custom user label user:<label>
*/
-export type PreviewView = 'inbox' | 'sent' | 'drafts' | 'starred' | 'all' | 'important' | 'other' | string;
+export type PreviewView =
+ | 'inbox'
+ | 'sent'
+ | 'drafts'
+ | 'starred'
+ | 'all'
+ | 'important'
+ | 'other'
+ | string;
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/previewViewStandardLabel.ts b/js/app/packages/service-clients/service-email/generated/schemas/previewViewStandardLabel.ts
index b7b33357cb..f5acbfe98f 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/previewViewStandardLabel.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/previewViewStandardLabel.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PreviewViewStandardLabel = typeof PreviewViewStandardLabel[keyof typeof PreviewViewStandardLabel];
-
+export type PreviewViewStandardLabel =
+ (typeof PreviewViewStandardLabel)[keyof typeof PreviewViewStandardLabel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PreviewViewStandardLabel = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/previewsInboxCursorParams.ts b/js/app/packages/service-clients/service-email/generated/schemas/previewsInboxCursorParams.ts
index 9889c71906..332f5135af 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/previewsInboxCursorParams.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/previewsInboxCursorParams.ts
@@ -7,17 +7,17 @@
import type { ApiSortMethod } from './apiSortMethod';
export type PreviewsInboxCursorParams = {
-/**
- * Limit for pagination. Default is 20. Max is 500.
- * @minimum 0
- */
-limit?: number;
-/**
- * Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_updated.
- */
-sort_method?: ApiSortMethod;
-/**
- * Cursor value. Base64 encoded timestamp and item id, separated by |.
- */
-cursor?: string;
+ /**
+ * Limit for pagination. Default is 20. Max is 500.
+ * @minimum 0
+ */
+ limit?: number;
+ /**
+ * Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_updated.
+ */
+ sort_method?: ApiSortMethod;
+ /**
+ * Cursor value. Base64 encoded timestamp and item id, separated by |.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/thread.ts b/js/app/packages/service-clients/service-email/generated/schemas/thread.ts
index 497a5570c8..d22f53ef09 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/thread.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/thread.ts
@@ -4,11 +4,12 @@
* email_service
* OpenAPI spec version: 0.1.0
*/
+
+import type { Message } from './message';
import type { ThreadDbId } from './threadDbId';
import type { ThreadLatestInboundMessageTs } from './threadLatestInboundMessageTs';
import type { ThreadLatestNonSpamMessageTs } from './threadLatestNonSpamMessageTs';
import type { ThreadLatestOutboundMessageTs } from './threadLatestOutboundMessageTs';
-import type { Message } from './message';
import type { ThreadProviderId } from './threadProviderId';
export interface Thread {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/threadPreviewCursor.ts b/js/app/packages/service-clients/service-email/generated/schemas/threadPreviewCursor.ts
index c5d58289ab..9665d581f4 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/threadPreviewCursor.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/threadPreviewCursor.ts
@@ -6,8 +6,8 @@
*/
import type { Attachment } from './attachment';
import type { AttachmentMacro } from './attachmentMacro';
-import type { ThreadPreviewCursorName } from './threadPreviewCursorName';
import type { Contact } from './contact';
+import type { ThreadPreviewCursorName } from './threadPreviewCursorName';
import type { ThreadPreviewCursorProviderId } from './threadPreviewCursorProviderId';
import type { ThreadPreviewCursorSenderEmail } from './threadPreviewCursorSenderEmail';
import type { ThreadPreviewCursorSenderName } from './threadPreviewCursorSenderName';
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/userProvider.ts b/js/app/packages/service-clients/service-email/generated/schemas/userProvider.ts
index 949d16ba29..a4d3bfff3e 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/userProvider.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/userProvider.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type UserProvider = typeof UserProvider[keyof typeof UserProvider];
-
+export type UserProvider = (typeof UserProvider)[keyof typeof UserProvider];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UserProvider = {
diff --git a/js/app/packages/service-clients/service-email/generated/schemas/value.ts b/js/app/packages/service-clients/service-email/generated/schemas/value.ts
index 7df83478e5..1163e6ceec 100644
--- a/js/app/packages/service-clients/service-email/generated/schemas/value.ts
+++ b/js/app/packages/service-clients/service-email/generated/schemas/value.ts
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
-export interface Value {}
+export type Value = {};
diff --git a/js/app/packages/service-clients/service-email/openapi.json b/js/app/packages/service-clients/service-email/openapi.json
index 670134f598..ffa7d943b7 100644
--- a/js/app/packages/service-clients/service-email/openapi.json
+++ b/js/app/packages/service-clients/service-email/openapi.json
@@ -4,7 +4,9 @@
"title": "email_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -19,7 +21,10 @@
"in": "path",
"description": "Attachment ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -37,7 +42,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -45,7 +52,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -53,7 +62,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -61,7 +72,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -79,7 +92,10 @@
"in": "path",
"description": "Attachment ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -97,7 +113,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -105,7 +123,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -113,7 +133,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -121,7 +143,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -136,7 +160,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CancelBackfillParams" }
+ "schema": {
+ "$ref": "#/components/schemas/CancelBackfillParams"
+ }
}
},
"required": true
@@ -146,7 +172,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -154,7 +182,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -162,7 +192,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -170,7 +202,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -197,7 +231,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -205,7 +241,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -213,7 +251,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -231,7 +271,10 @@
"in": "path",
"description": "Job ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -249,7 +292,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -257,7 +302,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -265,7 +312,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -292,7 +341,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -300,7 +351,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -308,7 +361,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -323,7 +378,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateDraftRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateDraftRequest"
+ }
}
},
"required": true
@@ -333,7 +390,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateDraftResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateDraftResponse"
+ }
}
}
},
@@ -341,7 +400,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -349,7 +410,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -357,7 +420,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -375,7 +440,10 @@
"in": "path",
"description": "Draft ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -383,7 +451,171 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/email/drafts/{id}/attachments": {
+ "post": {
+ "tags": ["Drafts"],
+ "summary": "Add an attachment to a draft.",
+ "operationId": "add_draft_attachment",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "The ID of the draft to add the attachment to.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddDraftAttachmentRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddDraftAttachmentResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/email/drafts/{id}/attachments/{attachment_id}": {
+ "delete": {
+ "tags": ["Drafts"],
+ "summary": "Remove an attachment from a draft.",
+ "operationId": "remove_draft_attachment",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "The ID of the draft to remove the attachment from.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
+ },
+ {
+ "name": "attachment_id",
+ "in": "path",
+ "description": "The ID of the attachment to remove.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -391,7 +623,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -399,7 +633,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -407,7 +643,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -415,7 +653,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -432,7 +672,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/InitResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/InitResponse"
+ }
}
}
},
@@ -440,7 +682,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -448,7 +692,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -456,7 +702,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -473,7 +721,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ListLabelsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ListLabelsResponse"
+ }
}
}
},
@@ -481,7 +731,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -489,7 +741,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -497,7 +751,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -510,7 +766,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateLabelRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateLabelRequest"
+ }
}
},
"required": true
@@ -520,7 +778,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateLabelResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateLabelResponse"
+ }
}
}
},
@@ -528,7 +788,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -536,7 +798,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -544,7 +808,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -552,7 +818,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -570,7 +838,10 @@
"in": "path",
"description": "Label ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -578,7 +849,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -586,7 +859,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -594,7 +869,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -602,7 +879,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -610,7 +889,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -622,12 +903,25 @@
"tags": ["Links"],
"summary": "List all links belonging to the user.",
"operationId": "list_links",
+ "parameters": [
+ {
+ "name": "include_signature",
+ "in": "query",
+ "description": "If the user's gmail signature should be included in the response. Defaults to false.",
+ "required": false,
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ ],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ListLinksResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ListLinksResponse"
+ }
}
}
},
@@ -635,7 +929,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -643,7 +939,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -651,7 +949,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -666,8 +966,10 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SendMessageRequest" }
- }
+ "schema": {
+ "$ref": "#/components/schemas/SendMessageRequest"
+ }
+ }
},
"required": true
},
@@ -676,7 +978,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SendMessageResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SendMessageResponse"
+ }
}
}
},
@@ -684,7 +988,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -692,7 +998,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -700,7 +1008,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -716,7 +1026,10 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
},
@@ -729,7 +1042,9 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ParsedMessage" }
+ "items": {
+ "$ref": "#/components/schemas/ParsedMessage"
+ }
}
}
}
@@ -738,7 +1053,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -746,7 +1063,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -754,7 +1073,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -762,7 +1083,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -799,7 +1122,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -807,7 +1132,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -815,7 +1142,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -823,7 +1152,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -840,7 +1171,10 @@
"in": "path",
"description": "Message ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -848,7 +1182,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ParsedMessage" }
+ "schema": {
+ "$ref": "#/components/schemas/ParsedMessage"
+ }
}
}
},
@@ -856,7 +1192,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -864,7 +1202,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -872,7 +1212,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -880,7 +1222,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -895,7 +1239,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchSettingsRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchSettingsRequest"
+ }
}
},
"required": true
@@ -915,7 +1261,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -923,7 +1271,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -931,7 +1281,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -948,7 +1300,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -956,7 +1310,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -964,7 +1320,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -972,7 +1330,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -987,7 +1347,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -995,7 +1357,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1003,7 +1367,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1011,7 +1377,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1029,28 +1397,38 @@
"in": "query",
"description": "Limit for pagination. Default is 20. Max is 500.",
"required": false,
- "schema": { "type": "integer", "format": "int32", "minimum": 0 }
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ }
},
{
"name": "sort_method",
"in": "query",
"description": "Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_updated.",
"required": false,
- "schema": { "$ref": "#/components/schemas/ApiSortMethod" }
+ "schema": {
+ "$ref": "#/components/schemas/ApiSortMethod"
+ }
},
{
"name": "view",
"in": "path",
"description": "View type. Supported values: inbox, sent, drafts, starred, all, important, other, user:<label>",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Cursor value. Base64 encoded timestamp and item id, separated by |.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1068,7 +1446,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1076,7 +1456,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1084,7 +1466,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1102,21 +1486,30 @@
"in": "path",
"description": "Thread ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
},
{
"name": "offset",
"in": "query",
"description": "Offset for message pagination. Default is 0.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "limit",
"in": "query",
"description": "Limit for message pagination. Default is 5.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -1124,7 +1517,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetThreadResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetThreadResponse"
+ }
}
}
},
@@ -1132,7 +1527,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1140,7 +1537,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1148,7 +1547,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1156,7 +1557,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1173,13 +1576,18 @@
"name": "id",
"in": "path",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ArchiveThreadRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/ArchiveThreadRequest"
+ }
}
},
"required": true
@@ -1189,7 +1597,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1197,7 +1607,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1205,7 +1617,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1213,7 +1627,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1230,21 +1646,29 @@
"in": "path",
"description": "Thread ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "since",
"in": "query",
"description": "Filter messages after this date",
"required": false,
- "schema": { "type": "string", "format": "date-time" }
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
},
{
"name": "limit",
"in": "query",
"description": "Limit number of messages returned",
"required": false,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -1254,7 +1678,9 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ParsedMessage" }
+ "items": {
+ "$ref": "#/components/schemas/ParsedMessage"
+ }
}
}
}
@@ -1263,7 +1689,9 @@
"description": "Bad Request",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1271,7 +1699,9 @@
"description": "Unauthorized",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1279,7 +1709,9 @@
"description": "Not Found",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1287,7 +1719,9 @@
"description": "Internal Server Error",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1305,7 +1739,10 @@
"in": "path",
"description": "Thread ID.",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -1313,7 +1750,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -1321,7 +1760,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1329,7 +1770,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -1337,7 +1780,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -1354,7 +1799,9 @@
"description": "Health",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -1404,11 +1851,23 @@
"messages"
],
"properties": {
- "access_level": { "$ref": "#/components/schemas/AccessLevel" },
- "created_at": { "type": "string", "format": "date-time" },
- "db_id": { "type": ["string", "null"], "format": "uuid" },
- "inbox_visible": { "type": "boolean" },
- "is_read": { "type": "boolean" },
+ "access_level": {
+ "$ref": "#/components/schemas/AccessLevel"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "inbox_visible": {
+ "type": "boolean"
+ },
+ "is_read": {
+ "type": "boolean"
+ },
"latest_inbound_message_ts": {
"type": ["string", "null"],
"format": "date-time"
@@ -1421,13 +1880,23 @@
"type": ["string", "null"],
"format": "date-time"
},
- "link_id": { "type": "string", "format": "uuid" },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
"messages": {
"type": "array",
- "items": { "$ref": "#/components/schemas/MessageWithBodyReplyless" }
+ "items": {
+ "$ref": "#/components/schemas/MessageWithBodyReplyless"
+ }
},
- "provider_id": { "type": ["string", "null"] },
- "updated_at": { "type": "string", "format": "date-time" }
+ "provider_id": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"AccessLevel": {
@@ -1435,39 +1904,121 @@
"description": "Ordered from least to most access top -> bottom",
"enum": ["view", "comment", "edit", "owner"]
},
+ "AddDraftAttachmentRequest": {
+ "type": "object",
+ "description": "The request passed to send a message",
+ "required": ["file_name", "sha", "size"],
+ "properties": {
+ "file_name": {
+ "type": "string",
+ "description": "The name of the file being uploaded."
+ },
+ "sha": {
+ "type": "string",
+ "description": "The SHA256 hash of the file being uploaded."
+ },
+ "size": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The size of the file in bytes."
+ }
+ }
+ },
+ "AddDraftAttachmentResponse": {
+ "type": "object",
+ "required": ["attachment_id", "upload_url", "content_type"],
+ "properties": {
+ "attachment_id": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The ID of the attachment in the database."
+ },
+ "content_type": {
+ "type": "string",
+ "description": "The MIME type of the attachment."
+ },
+ "upload_url": {
+ "type": "string",
+ "description": "The URL to upload the attachment to."
+ }
+ }
+ },
"ApiAttachment": {
"type": "object",
"required": ["id", "messageId", "createdAt"],
"properties": {
- "contentId": { "type": ["string", "null"] },
- "createdAt": { "type": "integer", "format": "int64" },
- "filename": { "type": ["string", "null"] },
- "id": { "type": "string", "format": "uuid" },
- "messageId": { "type": "string", "format": "uuid" },
- "mimeType": { "type": ["string", "null"] },
- "providerAttachmentId": { "type": ["string", "null"] },
- "sizeBytes": { "type": ["integer", "null"], "format": "int64" }
+ "contentId": {
+ "type": ["string", "null"]
+ },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "filename": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "messageId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "mimeType": {
+ "type": ["string", "null"]
+ },
+ "providerAttachmentId": {
+ "type": ["string", "null"]
+ },
+ "sizeBytes": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ApiAttachmentMacro": {
"type": "object",
"required": ["dbId", "messageId", "itemId", "itemType"],
"properties": {
- "dbId": { "type": "string", "format": "uuid" },
- "itemId": { "type": "string", "format": "uuid" },
- "itemType": { "type": "string" },
- "messageId": { "type": "string", "format": "uuid" }
+ "dbId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "itemId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "itemType": {
+ "type": "string"
+ },
+ "messageId": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"ApiContact": {
"type": "object",
"required": ["id", "linkId"],
"properties": {
- "emailAddress": { "type": ["string", "null"] },
- "id": { "type": "string", "format": "uuid" },
- "linkId": { "type": "string", "format": "uuid" },
- "name": { "type": ["string", "null"] },
- "sfsPhotoUrl": { "type": ["string", "null"] }
+ "emailAddress": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "linkId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "sfsPhotoUrl": {
+ "type": ["string", "null"]
+ }
}
},
"ApiLabel": {
@@ -1483,25 +2034,43 @@
"type"
],
"properties": {
- "createdAt": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
"labelListVisibility": {
"$ref": "#/components/schemas/ApiLabelListVisibility"
},
- "linkId": { "type": "string", "format": "uuid" },
+ "linkId": {
+ "type": "string",
+ "format": "uuid"
+ },
"messageListVisibility": {
"$ref": "#/components/schemas/ApiMessageListVisibility"
},
- "name": { "type": "string" },
- "providerLabelId": { "type": "string" },
- "type": { "$ref": "#/components/schemas/ApiLabelType" }
+ "name": {
+ "type": "string"
+ },
+ "providerLabelId": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/components/schemas/ApiLabelType"
+ }
}
},
"ApiLabelListVisibility": {
"type": "string",
"enum": ["LabelShow", "LabelShowIfUnread", "LabelHide"]
},
- "ApiLabelType": { "type": "string", "enum": ["System", "User"] },
+ "ApiLabelType": {
+ "type": "string",
+ "enum": ["System", "User"]
+ },
"ApiMessageListVisibility": {
"type": "string",
"enum": ["Show", "Hide"]
@@ -1512,9 +2081,13 @@
"properties": {
"items": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiThreadPreviewCursor" }
+ "items": {
+ "$ref": "#/components/schemas/ApiThreadPreviewCursor"
+ }
},
- "next_cursor": { "type": ["string", "null"] }
+ "next_cursor": {
+ "type": ["string", "null"]
+ }
}
},
"ApiSortMethod": {
@@ -1524,7 +2097,9 @@
},
"ApiThreadPreviewCursor": {
"allOf": [
- { "$ref": "#/components/schemas/ApiThreadPreviewCursorInner" },
+ {
+ "$ref": "#/components/schemas/ApiThreadPreviewCursorInner"
+ },
{
"type": "object",
"required": [
@@ -1537,11 +2112,15 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/ApiAttachment"
+ }
},
"contacts": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiContact" }
+ "items": {
+ "$ref": "#/components/schemas/ApiContact"
+ }
},
"frecencyScore": {
"type": ["number", "null"],
@@ -1549,11 +2128,15 @@
},
"labels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiLabel" }
+ "items": {
+ "$ref": "#/components/schemas/ApiLabel"
+ }
},
"macroAttachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ApiAttachmentMacro" }
+ "items": {
+ "$ref": "#/components/schemas/ApiAttachmentMacro"
+ }
},
"metadata": {
"$ref": "#/components/schemas/APIEmailThreadPreviewMetadata"
@@ -1577,128 +2160,325 @@
"viewedAt"
],
"properties": {
- "createdAt": { "type": "integer", "format": "int64" },
- "id": { "type": "string", "format": "uuid" },
- "inboxVisible": { "type": "boolean" },
- "isDraft": { "type": "boolean" },
- "isImportant": { "type": "boolean" },
- "isRead": { "type": "boolean" },
- "name": { "type": ["string", "null"] },
- "ownerId": { "type": "string" },
- "providerId": { "type": ["string", "null"] },
- "senderEmail": { "type": ["string", "null"] },
- "senderName": { "type": ["string", "null"] },
- "senderPhotoUrl": { "type": ["string", "null"] },
- "snippet": { "type": ["string", "null"] },
- "sortTs": { "type": "integer", "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" },
- "viewedAt": { "type": ["integer", "null"], "format": "int64" }
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "inboxVisible": {
+ "type": "boolean"
+ },
+ "isDraft": {
+ "type": "boolean"
+ },
+ "isImportant": {
+ "type": "boolean"
+ },
+ "isRead": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "ownerId": {
+ "type": "string"
+ },
+ "providerId": {
+ "type": ["string", "null"]
+ },
+ "senderEmail": {
+ "type": ["string", "null"]
+ },
+ "senderName": {
+ "type": ["string", "null"]
+ },
+ "senderPhotoUrl": {
+ "type": ["string", "null"]
+ },
+ "snippet": {
+ "type": ["string", "null"]
+ },
+ "sortTs": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ArchiveThreadRequest": {
"type": "object",
"required": ["value"],
- "properties": { "value": { "type": "boolean" } }
- },
- "Attachment": {
- "type": "object",
- "description": "Attachments of a message, as sent to us by the provider.",
"properties": {
- "content_id": { "type": ["string", "null"] },
- "data_url": { "type": ["string", "null"] },
- "db_id": { "type": ["string", "null"], "format": "uuid" },
- "filename": { "type": ["string", "null"] },
- "mime_type": { "type": ["string", "null"] },
- "provider_id": { "type": ["string", "null"] },
- "sfs_id": { "type": ["string", "null"], "format": "uuid" },
- "size_bytes": { "type": ["integer", "null"], "format": "int64" }
+ "value": {
+ "type": "boolean"
+ }
}
},
- "AttachmentMacro": {
+ "Attachment": {
"type": "object",
- "description": "Attachments of a message created when sending a message/draft through Macro FE. references\na macro item (document, canvas, etc). These don't actually get sent to the provider when\nsending a message, but we store them so we can display the pills for the Macro objects in the FE\nwhen displaying the message.",
- "required": ["item_id", "item_type"],
+ "description": "Attachments of a message, as sent to us by the provider.",
"properties": {
- "db_id": { "type": ["string", "null"], "format": "uuid" },
- "item_id": { "type": "string", "format": "uuid" },
- "item_type": { "type": "string" },
- "message_id": { "type": ["string", "null"], "format": "uuid" }
+ "content_id": {
+ "type": ["string", "null"]
+ },
+ "data_url": {
+ "type": ["string", "null"]
+ },
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "filename": {
+ "type": ["string", "null"]
+ },
+ "mime_type": {
+ "type": ["string", "null"]
+ },
+ "provider_id": {
+ "type": ["string", "null"]
+ },
+ "sfs_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "size_bytes": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
- "BackfillJob": {
+ "AttachmentDraft": {
"type": "object",
"required": [
"id",
- "fusionauth_user_id",
- "total_threads",
- "status",
- "threads_retrieved_count",
- "created_at",
- "updated_at"
+ "draft_id",
+ "file_name",
+ "content_type",
+ "sha",
+ "size",
+ "s3_key"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "fusionauth_user_id": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
- "link_id": { "type": ["string", "null"], "format": "uuid" },
- "status": { "$ref": "#/components/schemas/BackfillJobStatus" },
- "threads_requested_limit": {
- "type": ["integer", "null"],
- "format": "int32"
+ "content_type": {
+ "type": "string",
+ "description": "MIME type of the attachment (e.g., \"application/pdf\", \"image/png\")."
},
- "threads_retrieved_count": { "type": "integer", "format": "int32" },
- "total_threads": { "type": "integer", "format": "int32" },
- "updated_at": { "type": "string", "format": "date-time" }
- }
- },
- "BackfillJobStatus": {
- "type": "string",
- "enum": ["Init", "InProgress", "Complete", "Cancelled", "Failed"]
- },
+ "draft_id": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The ID of the draft message this attachment belongs to."
+ },
+ "file_name": {
+ "type": "string",
+ "description": "Original file name of the attachment."
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid",
+ "description": "Unique identifier for the attachment."
+ },
+ "s3_key": {
+ "type": "string",
+ "description": "S3 object key where the attachment content is stored."
+ },
+ "sha": {
+ "type": "string",
+ "description": "SHA-256 hash of the file content for integrity verification."
+ },
+ "size": {
+ "type": "integer",
+ "format": "int32",
+ "description": "File size in bytes."
+ }
+ }
+ },
+ "AttachmentMacro": {
+ "type": "object",
+ "description": "Attachments of a message created when sending a message/draft through Macro FE. references\na macro item (document, canvas, etc). These don't actually get sent to the provider when\nsending a message, but we store them so we can display the pills for the Macro objects in the FE\nwhen displaying the message.",
+ "required": ["item_id", "item_type"],
+ "properties": {
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "item_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "item_type": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ }
+ }
+ },
+ "AttachmentToSend": {
+ "type": "object",
+ "description": "The attachment data we need to include when sending a message to a provider.",
+ "required": ["file_name", "content_type", "data"],
+ "properties": {
+ "content_type": {
+ "type": "string"
+ },
+ "data": {
+ "type": "array",
+ "items": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ }
+ },
+ "file_name": {
+ "type": "string"
+ }
+ }
+ },
+ "BackfillJob": {
+ "type": "object",
+ "required": [
+ "id",
+ "fusionauth_user_id",
+ "total_threads",
+ "status",
+ "threads_retrieved_count",
+ "created_at",
+ "updated_at"
+ ],
+ "properties": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "fusionauth_user_id": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "link_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "status": {
+ "$ref": "#/components/schemas/BackfillJobStatus"
+ },
+ "threads_requested_limit": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "threads_retrieved_count": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "total_threads": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ },
+ "BackfillJobStatus": {
+ "type": "string",
+ "enum": ["Init", "InProgress", "Complete", "Cancelled", "Failed"]
+ },
"CancelBackfillParams": {
"type": "object",
"required": ["job_id"],
- "properties": { "job_id": { "type": "string", "format": "uuid" } }
+ "properties": {
+ "job_id": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
},
"Contact": {
"type": "object",
"required": ["link_id"],
"properties": {
- "email_address": { "type": ["string", "null"] },
- "id": { "type": ["string", "null"], "format": "uuid" },
- "link_id": { "type": "string", "format": "uuid" },
- "name": { "type": ["string", "null"] },
- "original_photo_url": { "type": ["string", "null"] },
- "sfs_photo_url": { "type": ["string", "null"] }
+ "email_address": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "original_photo_url": {
+ "type": ["string", "null"]
+ },
+ "sfs_photo_url": {
+ "type": ["string", "null"]
+ }
}
},
"ContactInfo": {
"type": "object",
"required": ["email"],
"properties": {
- "email": { "type": "string" },
- "name": { "type": ["string", "null"] },
- "photo_url": { "type": ["string", "null"] }
+ "email": {
+ "type": "string"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "photo_url": {
+ "type": ["string", "null"]
+ }
}
},
"ContactInfoLegacy": {
"type": "object",
"required": ["email", "email_address"],
"properties": {
- "email": { "type": "string" },
- "email_address": { "type": "string" },
- "name": { "type": ["string", "null"] },
- "photo_url": { "type": ["string", "null"] }
+ "email": {
+ "type": "string"
+ },
+ "email_address": {
+ "type": "string"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "photo_url": {
+ "type": ["string", "null"]
+ }
}
},
"ContactInfoWithInteraction": {
"allOf": [
- { "$ref": "#/components/schemas/ContactInfoLegacy" },
+ {
+ "$ref": "#/components/schemas/ContactInfoLegacy"
+ },
{
"type": "object",
"required": ["last_interaction"],
"properties": {
- "last_interaction": { "type": "string", "format": "date-time" }
+ "last_interaction": {
+ "type": "string",
+ "format": "date-time"
+ }
}
}
]
@@ -1708,20 +2488,28 @@
"description": "The request passed to send a message",
"required": ["draft"],
"properties": {
- "draft": { "$ref": "#/components/schemas/MessageToSend" }
+ "draft": {
+ "$ref": "#/components/schemas/MessageToSend"
+ }
}
},
"CreateDraftResponse": {
"type": "object",
"required": ["draft"],
"properties": {
- "draft": { "$ref": "#/components/schemas/MessageToSend" }
+ "draft": {
+ "$ref": "#/components/schemas/MessageToSend"
+ }
}
},
"CreateLabelRequest": {
"type": "object",
"required": ["label_name"],
- "properties": { "label_name": { "type": "string" } }
+ "properties": {
+ "label_name": {
+ "type": "string"
+ }
+ }
},
"CreateLabelResponse": {
"type": "object",
@@ -1753,15 +2541,24 @@
"type": "object",
"description": "The response returned from the get backfill job endpoint",
"required": ["job"],
- "properties": { "job": { "$ref": "#/components/schemas/BackfillJob" } }
+ "properties": {
+ "job": {
+ "$ref": "#/components/schemas/BackfillJob"
+ }
+ }
},
"GetAttachmentDocumentIDResponse": {
"type": "object",
"description": "The response returned from the get attachment endpoint",
"required": ["attachment_id", "document_id"],
"properties": {
- "attachment_id": { "type": "string", "format": "uuid" },
- "document_id": { "type": "string" }
+ "attachment_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "document_id": {
+ "type": "string"
+ }
}
},
"GetAttachmentResponse": {
@@ -1769,14 +2566,20 @@
"description": "The response returned from the get attachment endpoint",
"required": ["attachment"],
"properties": {
- "attachment": { "$ref": "#/components/schemas/Attachment" }
+ "attachment": {
+ "$ref": "#/components/schemas/Attachment"
+ }
}
},
"GetBackfillJobResponse": {
"type": "object",
"description": "The response returned from the get backfill job endpoint",
"required": ["job"],
- "properties": { "job": { "$ref": "#/components/schemas/BackfillJob" } }
+ "properties": {
+ "job": {
+ "$ref": "#/components/schemas/BackfillJob"
+ }
+ }
},
"GetPreviewsCursorParams": {
"type": "object",
@@ -1790,7 +2593,9 @@
},
"sort_method": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ApiSortMethod",
"description": "Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_updated."
@@ -1814,35 +2619,66 @@
"type": "object",
"required": ["link_id", "backfill_job_id"],
"properties": {
- "backfill_job_id": { "type": "string", "format": "uuid" },
- "link_id": { "type": "string", "format": "uuid" }
+ "backfill_job_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"Label": {
"type": "object",
"required": ["link_id", "provider_label_id", "created_at"],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "id": { "type": ["string", "null"], "format": "uuid" },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
"label_list_visibility": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/LabelListVisibility" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/LabelListVisibility"
+ }
]
},
- "link_id": { "type": "string", "format": "uuid" },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
"message_list_visibility": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/MessageListVisibility" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/MessageListVisibility"
+ }
]
},
- "name": { "type": ["string", "null"] },
- "provider_label_id": { "type": "string" },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "provider_label_id": {
+ "type": "string"
+ },
"type_": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/LabelType" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/LabelType"
+ }
]
}
}
@@ -1851,15 +2687,22 @@
"type": "object",
"required": ["provider_id", "name"],
"properties": {
- "name": { "type": "string" },
- "provider_id": { "type": "string" }
+ "name": {
+ "type": "string"
+ },
+ "provider_id": {
+ "type": "string"
+ }
}
},
"LabelListVisibility": {
"type": "string",
"enum": ["LabelShow", "LabelShowIfUnread", "LabelHide"]
},
- "LabelType": { "type": "string", "enum": ["System", "User"] },
+ "LabelType": {
+ "type": "string",
+ "enum": ["System", "User"]
+ },
"Link": {
"type": "object",
"required": [
@@ -1874,16 +2717,39 @@
"updated_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "email_address": { "type": "string" },
- "fusionauth_user_id": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
- "is_sync_active": { "type": "boolean" },
- "macro_id": { "type": "string" },
- "provider": { "$ref": "#/components/schemas/UserProvider" },
- "settings": { "$ref": "#/components/schemas/Settings" },
- "signature": { "type": ["string", "null"] },
- "updated_at": { "type": "string", "format": "date-time" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "email_address": {
+ "type": "string"
+ },
+ "fusionauth_user_id": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "is_sync_active": {
+ "type": "boolean"
+ },
+ "macro_id": {
+ "type": "string"
+ },
+ "provider": {
+ "$ref": "#/components/schemas/UserProvider"
+ },
+ "settings": {
+ "$ref": "#/components/schemas/Settings"
+ },
+ "signature": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"ListContactsResponse": {
@@ -1899,7 +2765,10 @@
"$ref": "#/components/schemas/ContactInfoWithInteraction"
}
},
- "propertyNames": { "type": "string", "format": "uuid" }
+ "propertyNames": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
},
@@ -1909,7 +2778,9 @@
"properties": {
"labels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Label" }
+ "items": {
+ "$ref": "#/components/schemas/Label"
+ }
}
}
},
@@ -1920,7 +2791,9 @@
"properties": {
"links": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Link" },
+ "items": {
+ "$ref": "#/components/schemas/Link"
+ },
"description": "the thread, with messages inside"
}
}
@@ -1940,131 +2813,259 @@
"labels",
"attachments",
"attachments_macro",
+ "attachments_draft",
"created_at",
"updated_at"
],
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Attachment" }
+ "items": {
+ "$ref": "#/components/schemas/Attachment"
+ }
+ },
+ "attachments_draft": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/AttachmentDraft"
+ },
+ "description": "Uploaded file attachments for the message, if it is a draft"
},
"attachments_macro": {
"type": "array",
- "items": { "$ref": "#/components/schemas/AttachmentMacro" }
+ "items": {
+ "$ref": "#/components/schemas/AttachmentMacro"
+ }
},
"bcc": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "body_html_sanitized": {
+ "type": ["string", "null"]
+ },
+ "body_macro": {
+ "type": ["string", "null"]
+ },
+ "body_text": {
+ "type": ["string", "null"]
},
- "body_html_sanitized": { "type": ["string", "null"] },
- "body_macro": { "type": ["string", "null"] },
- "body_text": { "type": ["string", "null"] },
"cc": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
},
- "created_at": { "type": "string", "format": "date-time" },
- "db_id": { "type": ["string", "null"], "format": "uuid" },
"from": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ContactInfo" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
]
},
"global_id": {
"type": ["string", "null"],
"description": "The globally unique Message-ID header value created by the sender to uniquely identify this email\nUsed for threading across all providers (In-Reply-To header, References header)"
},
- "has_attachments": { "type": "boolean" },
+ "has_attachments": {
+ "type": "boolean"
+ },
"headers_json": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Value" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Value"
+ }
]
},
"internal_date_ts": {
"type": ["string", "null"],
"format": "date-time"
},
- "is_draft": { "type": "boolean" },
- "is_read": { "type": "boolean" },
- "is_sent": { "type": "boolean" },
- "is_starred": { "type": "boolean" },
+ "is_draft": {
+ "type": "boolean"
+ },
+ "is_read": {
+ "type": "boolean"
+ },
+ "is_sent": {
+ "type": "boolean"
+ },
+ "is_starred": {
+ "type": "boolean"
+ },
"labels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Label" }
+ "items": {
+ "$ref": "#/components/schemas/Label"
+ }
+ },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "provider_history_id": {
+ "type": ["string", "null"]
+ },
+ "provider_id": {
+ "type": ["string", "null"]
+ },
+ "provider_thread_id": {
+ "type": ["string", "null"]
+ },
+ "replying_to_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
},
- "link_id": { "type": "string", "format": "uuid" },
- "provider_history_id": { "type": ["string", "null"] },
- "provider_id": { "type": ["string", "null"] },
- "provider_thread_id": { "type": ["string", "null"] },
- "replying_to_id": { "type": ["string", "null"], "format": "uuid" },
"scheduled_send_time": {
"type": ["string", "null"],
"format": "date-time"
},
- "sent_at": { "type": ["string", "null"], "format": "date-time" },
- "size_estimate": { "type": ["integer", "null"], "format": "int64" },
- "snippet": { "type": ["string", "null"] },
- "subject": { "type": ["string", "null"] },
- "thread_db_id": { "type": ["string", "null"], "format": "uuid" },
+ "sent_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "size_estimate": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "snippet": {
+ "type": ["string", "null"]
+ },
+ "subject": {
+ "type": ["string", "null"]
+ },
+ "thread_db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
"to": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
},
- "updated_at": { "type": "string", "format": "date-time" }
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
- "MessageListVisibility": { "type": "string", "enum": ["Show", "Hide"] },
+ "MessageListVisibility": {
+ "type": "string",
+ "enum": ["Show", "Hide"]
+ },
"MessageToSend": {
"type": "object",
"required": ["link_id", "subject"],
"properties": {
"attachments": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/Attachment" }
+ "items": {
+ "$ref": "#/components/schemas/AttachmentToSend"
+ }
},
"attachments_macro": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/AttachmentMacro" }
+ "items": {
+ "$ref": "#/components/schemas/AttachmentMacro"
+ }
},
"bcc": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "body_html": {
+ "type": ["string", "null"]
+ },
+ "body_macro": {
+ "type": ["string", "null"]
+ },
+ "body_text": {
+ "type": ["string", "null"]
},
- "body_html": { "type": ["string", "null"] },
- "body_macro": { "type": ["string", "null"] },
- "body_text": { "type": ["string", "null"] },
"cc": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
},
- "db_id": { "type": ["string", "null"], "format": "uuid" },
"headers_json": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Value" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Value"
+ }
]
},
- "link_id": { "type": "string", "format": "uuid" },
- "provider_id": { "type": ["string", "null"] },
- "provider_thread_id": { "type": ["string", "null"] },
- "replying_to_id": { "type": ["string", "null"], "format": "uuid" },
- "send_time": { "type": ["string", "null"], "format": "date-time" },
- "subject": { "type": "string" },
- "thread_db_id": { "type": ["string", "null"], "format": "uuid" },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "provider_id": {
+ "type": ["string", "null"]
+ },
+ "provider_thread_id": {
+ "type": ["string", "null"]
+ },
+ "replying_to_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "send_time": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "thread_db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
"to": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
}
}
},
"MessageWithBodyReplyless": {
"allOf": [
- { "$ref": "#/components/schemas/Message" },
+ {
+ "$ref": "#/components/schemas/Message"
+ },
{
"type": "object",
- "properties": { "body_replyless": { "type": ["string", "null"] } }
+ "properties": {
+ "body_replyless": {
+ "type": ["string", "null"]
+ }
+ }
}
]
},
@@ -2082,18 +3083,31 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "body_parsed": {
+ "type": ["string", "null"]
},
- "body_parsed": { "type": ["string", "null"] },
"cc": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
+ },
+ "db_id": {
+ "type": "string",
+ "format": "uuid"
},
- "db_id": { "type": "string", "format": "uuid" },
"from": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ContactInfo" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
]
},
"internal_date_ts": {
@@ -2102,14 +3116,26 @@
},
"labels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/LabelInfo" }
+ "items": {
+ "$ref": "#/components/schemas/LabelInfo"
+ }
+ },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "subject": {
+ "type": ["string", "null"]
+ },
+ "thread_db_id": {
+ "type": "string",
+ "format": "uuid"
},
- "link_id": { "type": "string", "format": "uuid" },
- "subject": { "type": ["string", "null"] },
- "thread_db_id": { "type": "string", "format": "uuid" },
"to": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ContactInfo" }
+ "items": {
+ "$ref": "#/components/schemas/ContactInfo"
+ }
}
}
},
@@ -2117,14 +3143,18 @@
"type": "object",
"required": ["settings"],
"properties": {
- "settings": { "$ref": "#/components/schemas/Settings" }
+ "settings": {
+ "$ref": "#/components/schemas/Settings"
+ }
}
},
"PatchSettingsResponse": {
"type": "object",
"required": ["settings"],
"properties": {
- "settings": { "$ref": "#/components/schemas/Settings" }
+ "settings": {
+ "$ref": "#/components/schemas/Settings"
+ }
}
},
"PreviewView": {
@@ -2141,7 +3171,10 @@
"other"
]
},
- { "type": "string", "format": "user:<label>" }
+ {
+ "type": "string",
+ "format": "user:<label>"
+ }
],
"description": "View type. Supported values include standard labels and a custom user label user:<label>"
},
@@ -2162,20 +3195,26 @@
"description": "The request passed to send a message",
"required": ["message"],
"properties": {
- "message": { "$ref": "#/components/schemas/MessageToSend" }
+ "message": {
+ "$ref": "#/components/schemas/MessageToSend"
+ }
}
},
"SendMessageResponse": {
"type": "object",
"required": ["message"],
"properties": {
- "message": { "$ref": "#/components/schemas/MessageToSend" }
+ "message": {
+ "$ref": "#/components/schemas/MessageToSend"
+ }
}
},
"Settings": {
"type": "object",
"properties": {
- "signature_on_replies_forwards": { "type": ["boolean", "null"] }
+ "signature_on_replies_forwards": {
+ "type": ["boolean", "null"]
+ }
}
},
"Thread": {
@@ -2189,10 +3228,20 @@
"messages"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "db_id": { "type": ["string", "null"], "format": "uuid" },
- "inbox_visible": { "type": "boolean" },
- "is_read": { "type": "boolean" },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "db_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "inbox_visible": {
+ "type": "boolean"
+ },
+ "is_read": {
+ "type": "boolean"
+ },
"latest_inbound_message_ts": {
"type": ["string", "null"],
"format": "date-time"
@@ -2205,23 +3254,37 @@
"type": ["string", "null"],
"format": "date-time"
},
- "link_id": { "type": "string", "format": "uuid" },
+ "link_id": {
+ "type": "string",
+ "format": "uuid"
+ },
"messages": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Message" }
+ "items": {
+ "$ref": "#/components/schemas/Message"
+ }
+ },
+ "provider_id": {
+ "type": ["string", "null"]
},
- "provider_id": { "type": ["string", "null"] },
- "updated_at": { "type": "string", "format": "date-time" }
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"ThreadList": {
"type": "object",
"required": ["threads"],
"properties": {
- "next_page_token": { "type": ["string", "null"] },
+ "next_page_token": {
+ "type": ["string", "null"]
+ },
"threads": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ThreadSummary" }
+ "items": {
+ "$ref": "#/components/schemas/ThreadSummary"
+ }
}
}
},
@@ -2246,49 +3309,104 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Attachment" }
+ "items": {
+ "$ref": "#/components/schemas/Attachment"
+ }
},
"attachmentsMacro": {
"type": "array",
- "items": { "$ref": "#/components/schemas/AttachmentMacro" }
- },
- "createdAt": { "type": "integer", "format": "int64" },
- "id": { "type": "string", "format": "uuid" },
- "inboxVisible": { "type": "boolean" },
- "isDraft": { "type": "boolean" },
- "isImportant": { "type": "boolean" },
- "isRead": { "type": "boolean" },
- "name": { "type": ["string", "null"] },
- "ownerId": { "type": "string" },
+ "items": {
+ "$ref": "#/components/schemas/AttachmentMacro"
+ }
+ },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "inboxVisible": {
+ "type": "boolean"
+ },
+ "isDraft": {
+ "type": "boolean"
+ },
+ "isImportant": {
+ "type": "boolean"
+ },
+ "isRead": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "ownerId": {
+ "type": "string"
+ },
"participants": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Contact" }
+ "items": {
+ "$ref": "#/components/schemas/Contact"
+ }
+ },
+ "providerId": {
+ "type": ["string", "null"]
+ },
+ "senderEmail": {
+ "type": ["string", "null"]
},
- "providerId": { "type": ["string", "null"] },
- "senderEmail": { "type": ["string", "null"] },
- "senderName": { "type": ["string", "null"] },
- "senderPhotoUrl": { "type": ["string", "null"] },
- "snippet": { "type": ["string", "null"] },
- "sortTs": { "type": "integer", "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" },
- "viewedAt": { "type": ["integer", "null"], "format": "int64" }
+ "senderName": {
+ "type": ["string", "null"]
+ },
+ "senderPhotoUrl": {
+ "type": ["string", "null"]
+ },
+ "snippet": {
+ "type": ["string", "null"]
+ },
+ "sortTs": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ThreadSummary": {
"type": "object",
"required": ["provider_id"],
- "properties": { "provider_id": { "type": "string" } }
+ "properties": {
+ "provider_id": {
+ "type": "string"
+ }
+ }
},
"UpdateLabelBatchRequest": {
"type": "object",
"required": ["message_ids", "label_id", "value"],
"properties": {
- "label_id": { "type": "string", "format": "uuid" },
+ "label_id": {
+ "type": "string",
+ "format": "uuid"
+ },
"message_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
},
- "value": { "type": "boolean" }
+ "value": {
+ "type": "boolean"
+ }
}
},
"UpdateLabelBatchResponse": {
@@ -2297,21 +3415,38 @@
"properties": {
"failed_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
},
"missing_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
},
"successful_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
},
- "UserProvider": { "type": "string", "enum": ["GMAIL"] },
+ "UserProvider": {
+ "type": "string",
+ "enum": ["GMAIL"]
+ },
"Value": {}
}
},
- "tags": [{ "name": "Email Service", "description": "Macro Email Service" }]
+ "tags": [
+ {
+ "name": "Email Service",
+ "description": "Macro Email Service"
+ }
+ ]
}
diff --git a/js/app/packages/service-clients/service-notification/generated/client.ts b/js/app/packages/service-clients/service-notification/generated/client.ts
index 8f15d599d2..49744190de 100644
--- a/js/app/packages/service-clients/service-notification/generated/client.ts
+++ b/js/app/packages/service-clients/service-notification/generated/client.ts
@@ -16,1035 +16,1158 @@ import type {
GetUserNotificationsByEventItemIdParams,
Notification,
NotificationBulkRequest,
- UserUnsubscribe
+ UserNotification,
+ UserUnsubscribe,
} from './schemas';
/**
* @summary Register a user device for push notifications.
*/
export type registerDeviceResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type registerDeviceResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type registerDeviceResponse500 = {
- data: ErrorResponse
- status: 500
-}
+ data: ErrorResponse;
+ status: 500;
+};
export type registerDeviceResponse501 = {
- data: ErrorResponse
- status: 501
-}
-
-export type registerDeviceResponseSuccess = (registerDeviceResponse200) & {
+ data: ErrorResponse;
+ status: 501;
+};
+
+export type registerDeviceResponseSuccess = registerDeviceResponse200 & {
headers: Headers;
};
-export type registerDeviceResponseError = (registerDeviceResponse401 | registerDeviceResponse500 | registerDeviceResponse501) & {
+export type registerDeviceResponseError = (
+ | registerDeviceResponse401
+ | registerDeviceResponse500
+ | registerDeviceResponse501
+) & {
headers: Headers;
};
-export type registerDeviceResponse = (registerDeviceResponseSuccess | registerDeviceResponseError)
+export type registerDeviceResponse =
+ | registerDeviceResponseSuccess
+ | registerDeviceResponseError;
export const getRegisterDeviceUrl = () => {
+ return `/device/register`;
+};
-
-
-
- return `/device/register`
-}
-
-export const registerDevice = async (deviceRequest: DeviceRequest, options?: RequestInit): Promise<registerDeviceResponse> => {
-
- const res = await fetch(getRegisterDeviceUrl(),
- {
+export const registerDevice = async (
+ deviceRequest: DeviceRequest,
+ options?: RequestInit
+): Promise<registerDeviceResponse> => {
+ const res = await fetch(getRegisterDeviceUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- deviceRequest,)
- }
-)
+ body: JSON.stringify(deviceRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: registerDeviceResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as registerDeviceResponse
-}
-
+ const data: registerDeviceResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as registerDeviceResponse;
+};
/**
* @summary Unregister a device from receiving push notifications.
*/
export type unregisterDeviceResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type unregisterDeviceResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type unregisterDeviceResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type unregisterDeviceResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type unregisterDeviceResponseSuccess = (unregisterDeviceResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type unregisterDeviceResponseSuccess = unregisterDeviceResponse200 & {
headers: Headers;
};
-export type unregisterDeviceResponseError = (unregisterDeviceResponse401 | unregisterDeviceResponse404 | unregisterDeviceResponse500) & {
+export type unregisterDeviceResponseError = (
+ | unregisterDeviceResponse401
+ | unregisterDeviceResponse404
+ | unregisterDeviceResponse500
+) & {
headers: Headers;
};
-export type unregisterDeviceResponse = (unregisterDeviceResponseSuccess | unregisterDeviceResponseError)
+export type unregisterDeviceResponse =
+ | unregisterDeviceResponseSuccess
+ | unregisterDeviceResponseError;
export const getUnregisterDeviceUrl = () => {
+ return `/device/unregister`;
+};
-
-
-
- return `/device/unregister`
-}
-
-export const unregisterDevice = async (deviceRequest: DeviceRequest, options?: RequestInit): Promise<unregisterDeviceResponse> => {
-
- const res = await fetch(getUnregisterDeviceUrl(),
- {
+export const unregisterDevice = async (
+ deviceRequest: DeviceRequest,
+ options?: RequestInit
+): Promise<unregisterDeviceResponse> => {
+ const res = await fetch(getUnregisterDeviceUrl(), {
...options,
method: 'DELETE',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- deviceRequest,)
- }
-)
+ body: JSON.stringify(deviceRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: unregisterDeviceResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as unregisterDeviceResponse
-}
-
+ const data: unregisterDeviceResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as unregisterDeviceResponse;
+};
/**
* @summary Health check
*/
export type healthHandlerResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type healthHandlerResponseSuccess = (healthHandlerResponse200) & {
+ data: EmptyResponse;
+ status: 200;
+};
+
+export type healthHandlerResponseSuccess = healthHandlerResponse200 & {
headers: Headers;
};
-;
-export type healthHandlerResponse = (healthHandlerResponseSuccess)
+export type healthHandlerResponse = healthHandlerResponseSuccess;
export const getHealthHandlerUrl = () => {
+ return `/health`;
+};
-
-
-
- return `/health`
-}
-
-export const healthHandler = async ( options?: RequestInit): Promise<healthHandlerResponse> => {
-
- const res = await fetch(getHealthHandlerUrl(),
- {
+export const healthHandler = async (
+ options?: RequestInit
+): Promise<healthHandlerResponse> => {
+ const res = await fetch(getHealthHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as healthHandlerResponse
-}
-
+ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as healthHandlerResponse;
+};
/**
* @summary Creates a notification.
Will generate an id for the notification.
*/
export type createNotificationResponse200 = {
- data: Notification
- status: 200
-}
-
-export type createNotificationResponseSuccess = (createNotificationResponse200) & {
- headers: Headers;
+ data: Notification;
+ status: 200;
};
-;
-
-export type createNotificationResponse = (createNotificationResponseSuccess)
-
-export const getCreateNotificationUrl = () => {
+export type createNotificationResponseSuccess =
+ createNotificationResponse200 & {
+ headers: Headers;
+ };
-
+export type createNotificationResponse = createNotificationResponseSuccess;
- return `/notifications`
-}
+export const getCreateNotificationUrl = () => {
+ return `/notifications`;
+};
-export const createNotification = async (createNotification: CreateNotification, options?: RequestInit): Promise<createNotificationResponse> => {
-
- const res = await fetch(getCreateNotificationUrl(),
- {
+export const createNotification = async (
+ createNotification: CreateNotification,
+ options?: RequestInit
+): Promise<createNotificationResponse> => {
+ const res = await fetch(getCreateNotificationUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- createNotification,)
- }
-)
+ body: JSON.stringify(createNotification),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: createNotificationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as createNotificationResponse
-}
-
+ const data: createNotificationResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as createNotificationResponse;
+};
/**
* @summary Gets the users unsubscribe items.
*/
export type getUnsubscribesResponse200 = {
- data: UserUnsubscribe[]
- status: 200
-}
+ data: UserUnsubscribe[];
+ status: 200;
+};
export type getUnsubscribesResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getUnsubscribesResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUnsubscribesResponseSuccess = (getUnsubscribesResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUnsubscribesResponseSuccess = getUnsubscribesResponse200 & {
headers: Headers;
};
-export type getUnsubscribesResponseError = (getUnsubscribesResponse401 | getUnsubscribesResponse500) & {
+export type getUnsubscribesResponseError = (
+ | getUnsubscribesResponse401
+ | getUnsubscribesResponse500
+) & {
headers: Headers;
};
-export type getUnsubscribesResponse = (getUnsubscribesResponseSuccess | getUnsubscribesResponseError)
+export type getUnsubscribesResponse =
+ | getUnsubscribesResponseSuccess
+ | getUnsubscribesResponseError;
export const getGetUnsubscribesUrl = () => {
+ return `/unsubscribe`;
+};
-
-
-
- return `/unsubscribe`
-}
-
-export const getUnsubscribes = async ( options?: RequestInit): Promise<getUnsubscribesResponse> => {
-
- const res = await fetch(getGetUnsubscribesUrl(),
- {
+export const getUnsubscribes = async (
+ options?: RequestInit
+): Promise<getUnsubscribesResponse> => {
+ const res = await fetch(getGetUnsubscribesUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUnsubscribesResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUnsubscribesResponse
-}
-
+ const data: getUnsubscribesResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUnsubscribesResponse;
+};
/**
* @summary Unsubscribes a user from receiving emails
*/
export type unsubscribeEmailResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type unsubscribeEmailResponse404 = {
- data: ErrorResponse
- status: 404
-}
+ data: ErrorResponse;
+ status: 404;
+};
export type unsubscribeEmailResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type unsubscribeEmailResponseSuccess = (unsubscribeEmailResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type unsubscribeEmailResponseSuccess = unsubscribeEmailResponse200 & {
headers: Headers;
};
-export type unsubscribeEmailResponseError = (unsubscribeEmailResponse404 | unsubscribeEmailResponse500) & {
+export type unsubscribeEmailResponseError = (
+ | unsubscribeEmailResponse404
+ | unsubscribeEmailResponse500
+) & {
headers: Headers;
};
-export type unsubscribeEmailResponse = (unsubscribeEmailResponseSuccess | unsubscribeEmailResponseError)
+export type unsubscribeEmailResponse =
+ | unsubscribeEmailResponseSuccess
+ | unsubscribeEmailResponseError;
export const getUnsubscribeEmailUrl = () => {
+ return `/unsubscribe/email`;
+};
-
-
-
- return `/unsubscribe/email`
-}
-
-export const unsubscribeEmail = async ( options?: RequestInit): Promise<unsubscribeEmailResponse> => {
-
- const res = await fetch(getUnsubscribeEmailUrl(),
- {
+export const unsubscribeEmail = async (
+ options?: RequestInit
+): Promise<unsubscribeEmailResponse> => {
+ const res = await fetch(getUnsubscribeEmailUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: unsubscribeEmailResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as unsubscribeEmailResponse
-}
-
+ const data: unsubscribeEmailResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as unsubscribeEmailResponse;
+};
/**
* @summary Unsubscribes a user from a given item for notifications.
*/
export type unsubscribeItemResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type unsubscribeItemResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type unsubscribeItemResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type unsubscribeItemResponseSuccess = (unsubscribeItemResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type unsubscribeItemResponseSuccess = unsubscribeItemResponse200 & {
headers: Headers;
};
-export type unsubscribeItemResponseError = (unsubscribeItemResponse401 | unsubscribeItemResponse500) & {
+export type unsubscribeItemResponseError = (
+ | unsubscribeItemResponse401
+ | unsubscribeItemResponse500
+) & {
headers: Headers;
};
-export type unsubscribeItemResponse = (unsubscribeItemResponseSuccess | unsubscribeItemResponseError)
+export type unsubscribeItemResponse =
+ | unsubscribeItemResponseSuccess
+ | unsubscribeItemResponseError;
export const getUnsubscribeItemUrl = () => {
+ return `/unsubscribe/item/:item_type/:item_id`;
+};
-
-
-
- return `/unsubscribe/item/:item_type/:item_id`
-}
-
-export const unsubscribeItem = async ( options?: RequestInit): Promise<unsubscribeItemResponse> => {
-
- const res = await fetch(getUnsubscribeItemUrl(),
- {
+export const unsubscribeItem = async (
+ options?: RequestInit
+): Promise<unsubscribeItemResponse> => {
+ const res = await fetch(getUnsubscribeItemUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: unsubscribeItemResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as unsubscribeItemResponse
-}
-
+ const data: unsubscribeItemResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as unsubscribeItemResponse;
+};
/**
* @summary Removes a unsubscribe item for a user.
*/
export type removeUnsubscribeItemResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type removeUnsubscribeItemResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type removeUnsubscribeItemResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type removeUnsubscribeItemResponseSuccess = (removeUnsubscribeItemResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type removeUnsubscribeItemResponseError = (removeUnsubscribeItemResponse401 | removeUnsubscribeItemResponse500) & {
+
+export type removeUnsubscribeItemResponseSuccess =
+ removeUnsubscribeItemResponse200 & {
+ headers: Headers;
+ };
+export type removeUnsubscribeItemResponseError = (
+ | removeUnsubscribeItemResponse401
+ | removeUnsubscribeItemResponse500
+) & {
headers: Headers;
};
-export type removeUnsubscribeItemResponse = (removeUnsubscribeItemResponseSuccess | removeUnsubscribeItemResponseError)
+export type removeUnsubscribeItemResponse =
+ | removeUnsubscribeItemResponseSuccess
+ | removeUnsubscribeItemResponseError;
export const getRemoveUnsubscribeItemUrl = () => {
+ return `/unsubscribe/item/:item_type/:item_id`;
+};
-
-
-
- return `/unsubscribe/item/:item_type/:item_id`
-}
-
-export const removeUnsubscribeItem = async ( options?: RequestInit): Promise<removeUnsubscribeItemResponse> => {
-
- const res = await fetch(getRemoveUnsubscribeItemUrl(),
- {
+export const removeUnsubscribeItem = async (
+ options?: RequestInit
+): Promise<removeUnsubscribeItemResponse> => {
+ const res = await fetch(getRemoveUnsubscribeItemUrl(), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: removeUnsubscribeItemResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as removeUnsubscribeItemResponse
-}
-
+ const data: removeUnsubscribeItemResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as removeUnsubscribeItemResponse;
+};
/**
* @summary Unsubscribes user from all notifications.
*/
export type unsubscribeAllResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type unsubscribeAllResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type unsubscribeAllResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type unsubscribeAllResponseSuccess = (unsubscribeAllResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type unsubscribeAllResponseSuccess = unsubscribeAllResponse200 & {
headers: Headers;
};
-export type unsubscribeAllResponseError = (unsubscribeAllResponse401 | unsubscribeAllResponse500) & {
+export type unsubscribeAllResponseError = (
+ | unsubscribeAllResponse401
+ | unsubscribeAllResponse500
+) & {
headers: Headers;
};
-export type unsubscribeAllResponse = (unsubscribeAllResponseSuccess | unsubscribeAllResponseError)
+export type unsubscribeAllResponse =
+ | unsubscribeAllResponseSuccess
+ | unsubscribeAllResponseError;
export const getUnsubscribeAllUrl = () => {
+ return `/unsubscribe/mute`;
+};
-
-
-
- return `/unsubscribe/mute`
-}
-
-export const unsubscribeAll = async ( options?: RequestInit): Promise<unsubscribeAllResponse> => {
-
- const res = await fetch(getUnsubscribeAllUrl(),
- {
+export const unsubscribeAll = async (
+ options?: RequestInit
+): Promise<unsubscribeAllResponse> => {
+ const res = await fetch(getUnsubscribeAllUrl(), {
...options,
- method: 'POST'
-
-
- }
-)
+ method: 'POST',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: unsubscribeAllResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as unsubscribeAllResponse
-}
-
+ const data: unsubscribeAllResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as unsubscribeAllResponse;
+};
/**
* @summary Unmutes all notifications.
Existing notifications that were muted manually will remain muted.
*/
export type removeUnsubscribeAllResponse200 = {
- data: EmptyResponse
- status: 200
-}
+ data: EmptyResponse;
+ status: 200;
+};
export type removeUnsubscribeAllResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type removeUnsubscribeAllResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type removeUnsubscribeAllResponseSuccess = (removeUnsubscribeAllResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type removeUnsubscribeAllResponseError = (removeUnsubscribeAllResponse401 | removeUnsubscribeAllResponse500) & {
+
+export type removeUnsubscribeAllResponseSuccess =
+ removeUnsubscribeAllResponse200 & {
+ headers: Headers;
+ };
+export type removeUnsubscribeAllResponseError = (
+ | removeUnsubscribeAllResponse401
+ | removeUnsubscribeAllResponse500
+) & {
headers: Headers;
};
-export type removeUnsubscribeAllResponse = (removeUnsubscribeAllResponseSuccess | removeUnsubscribeAllResponseError)
+export type removeUnsubscribeAllResponse =
+ | removeUnsubscribeAllResponseSuccess
+ | removeUnsubscribeAllResponseError;
export const getRemoveUnsubscribeAllUrl = () => {
+ return `/unsubscribe/mute`;
+};
-
-
-
- return `/unsubscribe/mute`
-}
-
-export const removeUnsubscribeAll = async ( options?: RequestInit): Promise<removeUnsubscribeAllResponse> => {
-
- const res = await fetch(getRemoveUnsubscribeAllUrl(),
- {
+export const removeUnsubscribeAll = async (
+ options?: RequestInit
+): Promise<removeUnsubscribeAllResponse> => {
+ const res = await fetch(getRemoveUnsubscribeAllUrl(), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: removeUnsubscribeAllResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as removeUnsubscribeAllResponse
-}
-
+ const data: removeUnsubscribeAllResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as removeUnsubscribeAllResponse;
+};
/**
* @summary Gets the user's unseen notifications in a paginated format.
*/
export type getUserNotificationResponse200 = {
- data: GetAllUserNotificationsResponse
- status: 200
-}
+ data: GetAllUserNotificationsResponse;
+ status: 200;
+};
export type getUserNotificationResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getUserNotificationResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getUserNotificationResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserNotificationResponseSuccess = (getUserNotificationResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getUserNotificationResponseError = (getUserNotificationResponse400 | getUserNotificationResponse401 | getUserNotificationResponse500) & {
+
+export type getUserNotificationResponseSuccess =
+ getUserNotificationResponse200 & {
+ headers: Headers;
+ };
+export type getUserNotificationResponseError = (
+ | getUserNotificationResponse400
+ | getUserNotificationResponse401
+ | getUserNotificationResponse500
+) & {
headers: Headers;
};
-export type getUserNotificationResponse = (getUserNotificationResponseSuccess | getUserNotificationResponseError)
+export type getUserNotificationResponse =
+ | getUserNotificationResponseSuccess
+ | getUserNotificationResponseError;
-export const getGetUserNotificationUrl = (params: GetUserNotificationParams,) => {
+export const getGetUserNotificationUrl = (
+ params: GetUserNotificationParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user_notifications?${stringifiedParams}` : `/user_notifications`
-}
+ return stringifiedParams.length > 0
+ ? `/user_notifications?${stringifiedParams}`
+ : `/user_notifications`;
+};
-export const getUserNotification = async (params: GetUserNotificationParams, options?: RequestInit): Promise<getUserNotificationResponse> => {
-
- const res = await fetch(getGetUserNotificationUrl(params),
- {
+export const getUserNotification = async (
+ params: GetUserNotificationParams,
+ options?: RequestInit
+): Promise<getUserNotificationResponse> => {
+ const res = await fetch(getGetUserNotificationUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserNotificationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserNotificationResponse
-}
-
+ const data: getUserNotificationResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNotificationResponse;
+};
/**
* @summary Marks the user's notifications as deleted
*/
export type bulkDeleteUserNotificationResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkDeleteUserNotificationResponseSuccess = (bulkDeleteUserNotificationResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-
-export type bulkDeleteUserNotificationResponse = (bulkDeleteUserNotificationResponseSuccess)
-
-export const getBulkDeleteUserNotificationUrl = () => {
+export type bulkDeleteUserNotificationResponseSuccess =
+ bulkDeleteUserNotificationResponse200 & {
+ headers: Headers;
+ };
-
+export type bulkDeleteUserNotificationResponse =
+ bulkDeleteUserNotificationResponseSuccess;
- return `/user_notifications/bulk`
-}
+export const getBulkDeleteUserNotificationUrl = () => {
+ return `/user_notifications/bulk`;
+};
-export const bulkDeleteUserNotification = async (notificationBulkRequest: NotificationBulkRequest, options?: RequestInit): Promise<bulkDeleteUserNotificationResponse> => {
-
- const res = await fetch(getBulkDeleteUserNotificationUrl(),
- {
+export const bulkDeleteUserNotification = async (
+ notificationBulkRequest: NotificationBulkRequest,
+ options?: RequestInit
+): Promise<bulkDeleteUserNotificationResponse> => {
+ const res = await fetch(getBulkDeleteUserNotificationUrl(), {
...options,
method: 'DELETE',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- notificationBulkRequest,)
- }
-)
+ body: JSON.stringify(notificationBulkRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkDeleteUserNotificationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkDeleteUserNotificationResponse
-}
-
+ const data: bulkDeleteUserNotificationResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkDeleteUserNotificationResponse;
+};
/**
* @summary Marks the user's notifications as done
*/
export type bulkMarkUserNotificationDoneResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkMarkUserNotificationDoneResponseSuccess = (bulkMarkUserNotificationDoneResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-
-export type bulkMarkUserNotificationDoneResponse = (bulkMarkUserNotificationDoneResponseSuccess)
-
-export const getBulkMarkUserNotificationDoneUrl = () => {
+export type bulkMarkUserNotificationDoneResponseSuccess =
+ bulkMarkUserNotificationDoneResponse200 & {
+ headers: Headers;
+ };
-
+export type bulkMarkUserNotificationDoneResponse =
+ bulkMarkUserNotificationDoneResponseSuccess;
- return `/user_notifications/bulk/done`
-}
+export const getBulkMarkUserNotificationDoneUrl = () => {
+ return `/user_notifications/bulk/done`;
+};
-export const bulkMarkUserNotificationDone = async (notificationBulkRequest: NotificationBulkRequest, options?: RequestInit): Promise<bulkMarkUserNotificationDoneResponse> => {
-
- const res = await fetch(getBulkMarkUserNotificationDoneUrl(),
- {
+export const bulkMarkUserNotificationDone = async (
+ notificationBulkRequest: NotificationBulkRequest,
+ options?: RequestInit
+): Promise<bulkMarkUserNotificationDoneResponse> => {
+ const res = await fetch(getBulkMarkUserNotificationDoneUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- notificationBulkRequest,)
- }
-)
+ body: JSON.stringify(notificationBulkRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkMarkUserNotificationDoneResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationDoneResponse
-}
-
+ const data: bulkMarkUserNotificationDoneResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkMarkUserNotificationDoneResponse;
+};
/**
* @summary Marks the user's notifications as seen
*/
export type bulkMarkUserNotificationSeenResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkMarkUserNotificationSeenResponseSuccess = (bulkMarkUserNotificationSeenResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-export type bulkMarkUserNotificationSeenResponse = (bulkMarkUserNotificationSeenResponseSuccess)
+export type bulkMarkUserNotificationSeenResponseSuccess =
+ bulkMarkUserNotificationSeenResponse200 & {
+ headers: Headers;
+ };
-export const getBulkMarkUserNotificationSeenUrl = () => {
+export type bulkMarkUserNotificationSeenResponse =
+ bulkMarkUserNotificationSeenResponseSuccess;
+export const getBulkMarkUserNotificationSeenUrl = () => {
+ return `/user_notifications/bulk/seen`;
+};
-
-
- return `/user_notifications/bulk/seen`
-}
-
-export const bulkMarkUserNotificationSeen = async (notificationBulkRequest: NotificationBulkRequest, options?: RequestInit): Promise<bulkMarkUserNotificationSeenResponse> => {
-
- const res = await fetch(getBulkMarkUserNotificationSeenUrl(),
- {
+export const bulkMarkUserNotificationSeen = async (
+ notificationBulkRequest: NotificationBulkRequest,
+ options?: RequestInit
+): Promise<bulkMarkUserNotificationSeenResponse> => {
+ const res = await fetch(getBulkMarkUserNotificationSeenUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- notificationBulkRequest,)
- }
-)
+ body: JSON.stringify(notificationBulkRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkMarkUserNotificationSeenResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationSeenResponse
-}
-
+ const data: bulkMarkUserNotificationSeenResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkMarkUserNotificationSeenResponse;
+};
/**
* @summary Marks the user's notifications as undone.
*/
export type bulkMarkUserNotificationUndoneResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkMarkUserNotificationUndoneResponseSuccess = (bulkMarkUserNotificationUndoneResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-
-export type bulkMarkUserNotificationUndoneResponse = (bulkMarkUserNotificationUndoneResponseSuccess)
-export const getBulkMarkUserNotificationUndoneUrl = () => {
+export type bulkMarkUserNotificationUndoneResponseSuccess =
+ bulkMarkUserNotificationUndoneResponse200 & {
+ headers: Headers;
+ };
+export type bulkMarkUserNotificationUndoneResponse =
+ bulkMarkUserNotificationUndoneResponseSuccess;
-
-
- return `/user_notifications/bulk/undone`
-}
+export const getBulkMarkUserNotificationUndoneUrl = () => {
+ return `/user_notifications/bulk/undone`;
+};
-export const bulkMarkUserNotificationUndone = async (notificationBulkRequest: NotificationBulkRequest, options?: RequestInit): Promise<bulkMarkUserNotificationUndoneResponse> => {
-
- const res = await fetch(getBulkMarkUserNotificationUndoneUrl(),
- {
+export const bulkMarkUserNotificationUndone = async (
+ notificationBulkRequest: NotificationBulkRequest,
+ options?: RequestInit
+): Promise<bulkMarkUserNotificationUndoneResponse> => {
+ const res = await fetch(getBulkMarkUserNotificationUndoneUrl(), {
...options,
method: 'PATCH',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- notificationBulkRequest,)
- }
-)
+ body: JSON.stringify(notificationBulkRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkMarkUserNotificationUndoneResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationUndoneResponse
-}
-
+ const data: bulkMarkUserNotificationUndoneResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkMarkUserNotificationUndoneResponse;
+};
/**
* @summary Gets the user's notifications for a provided event item ids in a paginated format.
This will only return unseen notifications.
*/
export type bulkGetUserNotificationsByEventItemIdResponse200 = {
- data: GetAllUserNotificationsResponse
- status: 200
-}
+ data: GetAllUserNotificationsResponse;
+ status: 200;
+};
export type bulkGetUserNotificationsByEventItemIdResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type bulkGetUserNotificationsByEventItemIdResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type bulkGetUserNotificationsByEventItemIdResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type bulkGetUserNotificationsByEventItemIdResponseSuccess = (bulkGetUserNotificationsByEventItemIdResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type bulkGetUserNotificationsByEventItemIdResponseError = (bulkGetUserNotificationsByEventItemIdResponse400 | bulkGetUserNotificationsByEventItemIdResponse401 | bulkGetUserNotificationsByEventItemIdResponse500) & {
+
+export type bulkGetUserNotificationsByEventItemIdResponseSuccess =
+ bulkGetUserNotificationsByEventItemIdResponse200 & {
+ headers: Headers;
+ };
+export type bulkGetUserNotificationsByEventItemIdResponseError = (
+ | bulkGetUserNotificationsByEventItemIdResponse400
+ | bulkGetUserNotificationsByEventItemIdResponse401
+ | bulkGetUserNotificationsByEventItemIdResponse500
+) & {
headers: Headers;
};
-export type bulkGetUserNotificationsByEventItemIdResponse = (bulkGetUserNotificationsByEventItemIdResponseSuccess | bulkGetUserNotificationsByEventItemIdResponseError)
+export type bulkGetUserNotificationsByEventItemIdResponse =
+ | bulkGetUserNotificationsByEventItemIdResponseSuccess
+ | bulkGetUserNotificationsByEventItemIdResponseError;
-export const getBulkGetUserNotificationsByEventItemIdUrl = (params: BulkGetUserNotificationsByEventItemIdParams,) => {
+export const getBulkGetUserNotificationsByEventItemIdUrl = (
+ params: BulkGetUserNotificationsByEventItemIdParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user_notifications/item/bulk?${stringifiedParams}` : `/user_notifications/item/bulk`
-}
+ return stringifiedParams.length > 0
+ ? `/user_notifications/item/bulk?${stringifiedParams}`
+ : `/user_notifications/item/bulk`;
+};
-export const bulkGetUserNotificationsByEventItemId = async (bulkGetUserNotificationsByEventItemIdRequest: BulkGetUserNotificationsByEventItemIdRequest,
- params: BulkGetUserNotificationsByEventItemIdParams, options?: RequestInit): Promise<bulkGetUserNotificationsByEventItemIdResponse> => {
-
- const res = await fetch(getBulkGetUserNotificationsByEventItemIdUrl(params),
- {
+export const bulkGetUserNotificationsByEventItemId = async (
+ bulkGetUserNotificationsByEventItemIdRequest: BulkGetUserNotificationsByEventItemIdRequest,
+ params: BulkGetUserNotificationsByEventItemIdParams,
+ options?: RequestInit
+): Promise<bulkGetUserNotificationsByEventItemIdResponse> => {
+ const res = await fetch(getBulkGetUserNotificationsByEventItemIdUrl(params), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- bulkGetUserNotificationsByEventItemIdRequest,)
- }
-)
+ body: JSON.stringify(bulkGetUserNotificationsByEventItemIdRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkGetUserNotificationsByEventItemIdResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkGetUserNotificationsByEventItemIdResponse
-}
-
+ const data: bulkGetUserNotificationsByEventItemIdResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkGetUserNotificationsByEventItemIdResponse;
+};
/**
* @summary Gets the user's notifications for a given event item id in a paginated format.
*/
export type getUserNotificationsByEventItemIdResponse200 = {
- data: GetAllUserNotificationsResponse
- status: 200
-}
+ data: GetAllUserNotificationsResponse;
+ status: 200;
+};
export type getUserNotificationsByEventItemIdResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type getUserNotificationsByEventItemIdResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type getUserNotificationsByEventItemIdResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type getUserNotificationsByEventItemIdResponseSuccess = (getUserNotificationsByEventItemIdResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type getUserNotificationsByEventItemIdResponseError = (getUserNotificationsByEventItemIdResponse400 | getUserNotificationsByEventItemIdResponse401 | getUserNotificationsByEventItemIdResponse500) & {
+
+export type getUserNotificationsByEventItemIdResponseSuccess =
+ getUserNotificationsByEventItemIdResponse200 & {
+ headers: Headers;
+ };
+export type getUserNotificationsByEventItemIdResponseError = (
+ | getUserNotificationsByEventItemIdResponse400
+ | getUserNotificationsByEventItemIdResponse401
+ | getUserNotificationsByEventItemIdResponse500
+) & {
headers: Headers;
};
-export type getUserNotificationsByEventItemIdResponse = (getUserNotificationsByEventItemIdResponseSuccess | getUserNotificationsByEventItemIdResponseError)
+export type getUserNotificationsByEventItemIdResponse =
+ | getUserNotificationsByEventItemIdResponseSuccess
+ | getUserNotificationsByEventItemIdResponseError;
-export const getGetUserNotificationsByEventItemIdUrl = (eventItemId: string,
- params: GetUserNotificationsByEventItemIdParams,) => {
+export const getGetUserNotificationsByEventItemIdUrl = (
+ eventItemId: string,
+ params: GetUserNotificationsByEventItemIdParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/user_notifications/item/${eventItemId}?${stringifiedParams}` : `/user_notifications/item/${eventItemId}`
-}
+ return stringifiedParams.length > 0
+ ? `/user_notifications/item/${eventItemId}?${stringifiedParams}`
+ : `/user_notifications/item/${eventItemId}`;
+};
-export const getUserNotificationsByEventItemId = async (eventItemId: string,
- params: GetUserNotificationsByEventItemIdParams, options?: RequestInit): Promise<getUserNotificationsByEventItemIdResponse> => {
-
- const res = await fetch(getGetUserNotificationsByEventItemIdUrl(eventItemId,params),
- {
- ...options,
- method: 'GET'
-
-
- }
-)
+export const getUserNotificationsByEventItemId = async (
+ eventItemId: string,
+ params: GetUserNotificationsByEventItemIdParams,
+ options?: RequestInit
+): Promise<getUserNotificationsByEventItemIdResponse> => {
+ const res = await fetch(
+ getGetUserNotificationsByEventItemIdUrl(eventItemId, params),
+ {
+ ...options,
+ method: 'GET',
+ }
+ );
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUserNotificationsByEventItemIdResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUserNotificationsByEventItemIdResponse
-}
-
+ const data: getUserNotificationsByEventItemIdResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNotificationsByEventItemIdResponse;
+};
/**
* @summary Marks the user's notification as done for a given event item id and type.
*/
export type bulkMarkUserNotificationDoneByEventResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkMarkUserNotificationDoneByEventResponseSuccess = (bulkMarkUserNotificationDoneByEventResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-
-export type bulkMarkUserNotificationDoneByEventResponse = (bulkMarkUserNotificationDoneByEventResponseSuccess)
-export const getBulkMarkUserNotificationDoneByEventUrl = (eventItemId: string,) => {
+export type bulkMarkUserNotificationDoneByEventResponseSuccess =
+ bulkMarkUserNotificationDoneByEventResponse200 & {
+ headers: Headers;
+ };
+export type bulkMarkUserNotificationDoneByEventResponse =
+ bulkMarkUserNotificationDoneByEventResponseSuccess;
-
-
- return `/user_notifications/item/${eventItemId}/done`
-}
+export const getBulkMarkUserNotificationDoneByEventUrl = (
+ eventItemId: string
+) => {
+ return `/user_notifications/item/${eventItemId}/done`;
+};
-export const bulkMarkUserNotificationDoneByEvent = async (eventItemId: string, options?: RequestInit): Promise<bulkMarkUserNotificationDoneByEventResponse> => {
-
- const res = await fetch(getBulkMarkUserNotificationDoneByEventUrl(eventItemId),
- {
- ...options,
- method: 'PATCH'
-
-
- }
-)
+export const bulkMarkUserNotificationDoneByEvent = async (
+ eventItemId: string,
+ options?: RequestInit
+): Promise<bulkMarkUserNotificationDoneByEventResponse> => {
+ const res = await fetch(
+ getBulkMarkUserNotificationDoneByEventUrl(eventItemId),
+ {
+ ...options,
+ method: 'PATCH',
+ }
+ );
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkMarkUserNotificationDoneByEventResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationDoneByEventResponse
-}
-
+ const data: bulkMarkUserNotificationDoneByEventResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkMarkUserNotificationDoneByEventResponse;
+};
/**
* @summary Marks the user's notification as seen for a given event item id and type.
*/
export type bulkMarkUserNotificationSeenByEventResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type bulkMarkUserNotificationSeenByEventResponseSuccess = (bulkMarkUserNotificationSeenByEventResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-export type bulkMarkUserNotificationSeenByEventResponse = (bulkMarkUserNotificationSeenByEventResponseSuccess)
+export type bulkMarkUserNotificationSeenByEventResponseSuccess =
+ bulkMarkUserNotificationSeenByEventResponse200 & {
+ headers: Headers;
+ };
-export const getBulkMarkUserNotificationSeenByEventUrl = (eventItemId: string,) => {
+export type bulkMarkUserNotificationSeenByEventResponse =
+ bulkMarkUserNotificationSeenByEventResponseSuccess;
+export const getBulkMarkUserNotificationSeenByEventUrl = (
+ eventItemId: string
+) => {
+ return `/user_notifications/item/${eventItemId}/seen`;
+};
-
+export const bulkMarkUserNotificationSeenByEvent = async (
+ eventItemId: string,
+ options?: RequestInit
+): Promise<bulkMarkUserNotificationSeenByEventResponse> => {
+ const res = await fetch(
+ getBulkMarkUserNotificationSeenByEventUrl(eventItemId),
+ {
+ ...options,
+ method: 'PATCH',
+ }
+ );
- return `/user_notifications/item/${eventItemId}/seen`
-}
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-export const bulkMarkUserNotificationSeenByEvent = async (eventItemId: string, options?: RequestInit): Promise<bulkMarkUserNotificationSeenByEventResponse> => {
-
- const res = await fetch(getBulkMarkUserNotificationSeenByEventUrl(eventItemId),
- {
+ const data: bulkMarkUserNotificationSeenByEventResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as bulkMarkUserNotificationSeenByEventResponse;
+};
+
+/**
+ * @summary Gets a single user notification by id.
+ */
+export type getUserNotificationByIdResponse200 = {
+ data: UserNotification;
+ status: 200;
+};
+
+export type getUserNotificationByIdResponse400 = {
+ data: ErrorResponse;
+ status: 400;
+};
+
+export type getUserNotificationByIdResponse401 = {
+ data: ErrorResponse;
+ status: 401;
+};
+
+export type getUserNotificationByIdResponse404 = {
+ data: ErrorResponse;
+ status: 404;
+};
+
+export type getUserNotificationByIdResponse500 = {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type getUserNotificationByIdResponseSuccess =
+ getUserNotificationByIdResponse200 & {
+ headers: Headers;
+ };
+export type getUserNotificationByIdResponseError = (
+ | getUserNotificationByIdResponse400
+ | getUserNotificationByIdResponse401
+ | getUserNotificationByIdResponse404
+ | getUserNotificationByIdResponse500
+) & {
+ headers: Headers;
+};
+
+export type getUserNotificationByIdResponse =
+ | getUserNotificationByIdResponseSuccess
+ | getUserNotificationByIdResponseError;
+
+export const getGetUserNotificationByIdUrl = (notificationId: string) => {
+ return `/user_notifications/${notificationId}`;
+};
+
+export const getUserNotificationById = async (
+ notificationId: string,
+ options?: RequestInit
+): Promise<getUserNotificationByIdResponse> => {
+ const res = await fetch(getGetUserNotificationByIdUrl(notificationId), {
...options,
- method: 'PATCH'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: bulkMarkUserNotificationSeenByEventResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationSeenByEventResponse
-}
-
+ const data: getUserNotificationByIdResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUserNotificationByIdResponse;
+};
/**
* @summary Marks the user's notification as deleted.
*/
export type deleteUserNotificationResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type deleteUserNotificationResponseSuccess = (deleteUserNotificationResponse200) & {
- headers: Headers;
+ data: EmptyResponse;
+ status: 200;
};
-;
-
-export type deleteUserNotificationResponse = (deleteUserNotificationResponseSuccess)
-export const getDeleteUserNotificationUrl = (notificationId: string,) => {
+export type deleteUserNotificationResponseSuccess =
+ deleteUserNotificationResponse200 & {
+ headers: Headers;
+ };
+export type deleteUserNotificationResponse =
+ deleteUserNotificationResponseSuccess;
-
-
- return `/user_notifications/${notificationId}`
-}
+export const getDeleteUserNotificationUrl = (notificationId: string) => {
+ return `/user_notifications/${notificationId}`;
+};
-export const deleteUserNotification = async (notificationId: string, options?: RequestInit): Promise<deleteUserNotificationResponse> => {
-
- const res = await fetch(getDeleteUserNotificationUrl(notificationId),
- {
+export const deleteUserNotification = async (
+ notificationId: string,
+ options?: RequestInit
+): Promise<deleteUserNotificationResponse> => {
+ const res = await fetch(getDeleteUserNotificationUrl(notificationId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: deleteUserNotificationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as deleteUserNotificationResponse
-}
+
+ const data: deleteUserNotificationResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as deleteUserNotificationResponse;
+};
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/bulkGetUserNotificationsByEventItemIdParams.ts b/js/app/packages/service-clients/service-notification/generated/schemas/bulkGetUserNotificationsByEventItemIdParams.ts
index 89f5b75e0a..77ad189f3e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/bulkGetUserNotificationsByEventItemIdParams.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/bulkGetUserNotificationsByEventItemIdParams.ts
@@ -6,13 +6,13 @@
*/
export type BulkGetUserNotificationsByEventItemIdParams = {
-/**
- * Size limit per page. Default 20, max 500.
- * @minimum 0
- */
-limit: number;
-/**
- * Cursor value. Base64 encoded timestamp and item id, separated by |.
- */
-cursor?: string;
+ /**
+ * Size limit per page. Default 20, max 500.
+ * @minimum 0
+ */
+ limit: number;
+ /**
+ * Cursor value. Base64 encoded timestamp and item id, separated by |.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/channelInviteMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/channelInviteMetadata.ts
index 201e2747d2..a111e60cb4 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/channelInviteMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/channelInviteMetadata.ts
@@ -4,10 +4,12 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { CommonChannelMetadata } from './commonChannelMetadata';
+
import type { ChannelInviteMetadataAllOf } from './channelInviteMetadataAllOf';
+import type { CommonChannelMetadata } from './commonChannelMetadata';
/**
* Metadata for when a user is invited to a channel
*/
-export type ChannelInviteMetadata = CommonChannelMetadata & ChannelInviteMetadataAllOf;
+export type ChannelInviteMetadata = CommonChannelMetadata &
+ ChannelInviteMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/channelMentionMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/channelMentionMetadata.ts
index 2336dd37e9..8b7578e49c 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/channelMentionMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/channelMentionMetadata.ts
@@ -4,7 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { CommonChannelMetadata } from './commonChannelMetadata';
+
import type { ChannelMentionMetadataAllOf } from './channelMentionMetadataAllOf';
+import type { CommonChannelMetadata } from './commonChannelMetadata';
-export type ChannelMentionMetadata = CommonChannelMetadata & ChannelMentionMetadataAllOf;
+export type ChannelMentionMetadata = CommonChannelMetadata &
+ ChannelMentionMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/channelMessageSendMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/channelMessageSendMetadata.ts
index 41ebe18a12..d69d25c28a 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/channelMessageSendMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/channelMessageSendMetadata.ts
@@ -4,7 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { CommonChannelMetadata } from './commonChannelMetadata';
+
import type { ChannelMessageSendMetadataAllOf } from './channelMessageSendMetadataAllOf';
+import type { CommonChannelMetadata } from './commonChannelMetadata';
-export type ChannelMessageSendMetadata = CommonChannelMetadata & ChannelMessageSendMetadataAllOf;
+export type ChannelMessageSendMetadata = CommonChannelMetadata &
+ ChannelMessageSendMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/channelReplyMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/channelReplyMetadata.ts
index 8a6bc3e69a..27677618c2 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/channelReplyMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/channelReplyMetadata.ts
@@ -4,7 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { CommonChannelMetadata } from './commonChannelMetadata';
+
import type { ChannelReplyMetadataAllOf } from './channelReplyMetadataAllOf';
+import type { CommonChannelMetadata } from './commonChannelMetadata';
-export type ChannelReplyMetadata = CommonChannelMetadata & ChannelReplyMetadataAllOf;
+export type ChannelReplyMetadata = CommonChannelMetadata &
+ ChannelReplyMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/channelType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/channelType.ts
index bf6eba27c4..022c206fef 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/channelType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/channelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
-
+export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/createNotification.ts b/js/app/packages/service-clients/service-notification/generated/schemas/createNotification.ts
index 4ff98a2a08..ee533c48aa 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/createNotification.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/createNotification.ts
@@ -4,7 +4,8 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { Entity } from './entity';
+
import type { CreateNotificationAllOf } from './createNotificationAllOf';
+import type { Entity } from './entity';
export type CreateNotification = Entity & CreateNotificationAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/deviceType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/deviceType.ts
index 7c8df8e242..ce08e37996 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/deviceType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/deviceType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type DeviceType = typeof DeviceType[keyof typeof DeviceType];
-
+export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DeviceType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-notification/generated/schemas/emptyResponse.ts
index b9199e67ee..beb6ef3659 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts
index 32873e70cb..4a5c324a24 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts
@@ -8,8 +8,7 @@
/**
* The type of an entity in Macro
*/
-export type EntityType = typeof EntityType[keyof typeof EntityType];
-
+export type EntityType = (typeof EntityType)[keyof typeof EntityType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/getAllUserNotificationsResponse.ts b/js/app/packages/service-clients/service-notification/generated/schemas/getAllUserNotificationsResponse.ts
index e57764ca95..2aff286bf6 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/getAllUserNotificationsResponse.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/getAllUserNotificationsResponse.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { UserNotification } from './userNotification';
+
import type { GetAllUserNotificationsResponseNextCursor } from './getAllUserNotificationsResponseNextCursor';
+import type { UserNotification } from './userNotification';
export interface GetAllUserNotificationsResponse {
items: UserNotification[];
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationParams.ts b/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationParams.ts
index d3e47919c9..0dfd33e025 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationParams.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationParams.ts
@@ -6,12 +6,12 @@
*/
export type GetUserNotificationParams = {
-/**
- * Size limit per page. Default 20, max 500.
- */
-limit: number;
-/**
- * Base 64 encoded cursor
- */
-cursor?: string;
+ /**
+ * Size limit per page. Default 20, max 500.
+ */
+ limit: number;
+ /**
+ * Base 64 encoded cursor
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationsByEventItemIdParams.ts b/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationsByEventItemIdParams.ts
index 313ffef49b..91e8d2ce2c 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationsByEventItemIdParams.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/getUserNotificationsByEventItemIdParams.ts
@@ -6,12 +6,12 @@
*/
export type GetUserNotificationsByEventItemIdParams = {
-/**
- * Size limit per page. Default 20, max 500.
- */
-limit: number;
-/**
- * Cursor value. Base64 encoded timestamp and item id, separated by |.
- */
-cursor?: string;
+ /**
+ * Size limit per page. Default 20, max 500.
+ */
+ limit: number;
+ /**
+ * Cursor value. Base64 encoded timestamp and item id, separated by |.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/index.ts b/js/app/packages/service-clients/service-notification/generated/schemas/index.ts
index 7106d719c4..e9036e6ef8 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/index.ts
@@ -88,4 +88,4 @@ export * from './unsubscribeItemPathParams';
export * from './userNotification';
export * from './userNotificationAllOf';
export * from './userNotificationAllOfSenderId';
-export * from './userUnsubscribe';
\ No newline at end of file
+export * from './userUnsubscribe';
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedMetadata.ts
index 25d724e191..5026cd7c6e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedMetadata.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { ItemSharedMetadataItemName } from './itemSharedMetadataItemName';
+
import type { EntityType } from './entityType';
+import type { ItemSharedMetadataItemName } from './itemSharedMetadataItemName';
import type { ItemSharedMetadataPermissionLevel } from './itemSharedMetadataPermissionLevel';
/**
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedOrganizationMetadata.ts b/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedOrganizationMetadata.ts
index 336d8a4e72..d3e023505b 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedOrganizationMetadata.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/itemSharedOrganizationMetadata.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { ItemSharedOrganizationMetadataItemName } from './itemSharedOrganizationMetadataItemName';
+
import type { EntityType } from './entityType';
+import type { ItemSharedOrganizationMetadataItemName } from './itemSharedOrganizationMetadataItemName';
import type { ItemSharedOrganizationMetadataPermissionLevel } from './itemSharedOrganizationMetadataPermissionLevel';
/**
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notification.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notification.ts
index 7ba0d0e679..5dab3666f3 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notification.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notification.ts
@@ -5,8 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
import type { Entity } from './entity';
-import type { NotificationTemporalData } from './notificationTemporalData';
-import type { NotificationEvent } from './notificationEvent';
import type { NotificationAllOf } from './notificationAllOf';
+import type { NotificationEvent } from './notificationEvent';
+import type { NotificationTemporalData } from './notificationTemporalData';
-export type Notification = Entity & NotificationTemporalData & NotificationEvent & NotificationAllOf;
+export type Notification = Entity &
+ NotificationTemporalData &
+ NotificationEvent &
+ NotificationAllOf;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEvent.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEvent.ts
index c629d218ef..cfa8025312 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEvent.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEvent.ts
@@ -5,16 +5,31 @@
* OpenAPI spec version: 0.1.0
*/
import type { NotificationEventOneOf } from './notificationEventOneOf';
-import type { NotificationEventOneOfThree } from './notificationEventOneOfThree';
import type { NotificationEventOneOfFive } from './notificationEventOneOfFive';
-import type { NotificationEventOneOfSeven } from './notificationEventOneOfSeven';
import type { NotificationEventOneOfNine } from './notificationEventOneOfNine';
-import type { NotificationEventOneOfOneone } from './notificationEventOneOfOneone';
-import type { NotificationEventOneOfOnethree } from './notificationEventOneOfOnethree';
import type { NotificationEventOneOfOnefive } from './notificationEventOneOfOnefive';
-import type { NotificationEventOneOfOneseven } from './notificationEventOneOfOneseven';
import type { NotificationEventOneOfOnenine } from './notificationEventOneOfOnenine';
+import type { NotificationEventOneOfOneone } from './notificationEventOneOfOneone';
+import type { NotificationEventOneOfOneseven } from './notificationEventOneOfOneseven';
+import type { NotificationEventOneOfOnethree } from './notificationEventOneOfOnethree';
+import type { NotificationEventOneOfSeven } from './notificationEventOneOfSeven';
+import type { NotificationEventOneOfThree } from './notificationEventOneOfThree';
import type { NotificationEventOneOfTwoone } from './notificationEventOneOfTwoone';
import type { NotificationEventOneOfTwothree } from './notificationEventOneOfTwothree';
-export type NotificationEvent = NotificationEventOneOf | NotificationEventOneOfThree | NotificationEventOneOfFive | NotificationEventOneOfSeven | NotificationEventOneOfNine | NotificationEventOneOfOneone | NotificationEventOneOfOnethree | NotificationEventOneOfOnefive | NotificationEventOneOfOneseven | NotificationEventOneOfOnenine | NotificationEventOneOfTwoone | NotificationEventOneOfTwothree;
+/**
+ * The types of events that the notification system is aware of
+ */
+export type NotificationEvent =
+ | NotificationEventOneOf
+ | NotificationEventOneOfThree
+ | NotificationEventOneOfFive
+ | NotificationEventOneOfSeven
+ | NotificationEventOneOfNine
+ | NotificationEventOneOfOneone
+ | NotificationEventOneOfOnethree
+ | NotificationEventOneOfOnefive
+ | NotificationEventOneOfOneseven
+ | NotificationEventOneOfOnenine
+ | NotificationEventOneOfTwoone
+ | NotificationEventOneOfTwothree;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOf.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOf.ts
index 68b8e1398a..e4baeadac1 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOf.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOf.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfNotificationEventType } from './notificationEventOneOfNotificationEventType';
+
import type { ItemSharedMetadata } from './itemSharedMetadata';
+import type { NotificationEventOneOfNotificationEventType } from './notificationEventOneOfNotificationEventType';
/**
* An Item was shared with a specific user
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFive.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFive.ts
index ade2d2963b..b69981ca1c 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFive.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFive.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfFiveNotificationEventType } from './notificationEventOneOfFiveNotificationEventType';
+
import type { ChannelMentionMetadata } from './channelMentionMetadata';
+import type { NotificationEventOneOfFiveNotificationEventType } from './notificationEventOneOfFiveNotificationEventType';
/**
* Someone mentioned you in a channel
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFiveNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFiveNotificationEventType.ts
index b2edc9d719..7246b9db84 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFiveNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfFiveNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfFiveNotificationEventType = typeof NotificationEventOneOfFiveNotificationEventType[keyof typeof NotificationEventOneOfFiveNotificationEventType];
-
+export type NotificationEventOneOfFiveNotificationEventType =
+ (typeof NotificationEventOneOfFiveNotificationEventType)[keyof typeof NotificationEventOneOfFiveNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfFiveNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNine.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNine.ts
index 09d4e7fb04..a6bef09306 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNine.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNine.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfNineNotificationEventType } from './notificationEventOneOfNineNotificationEventType';
+
import type { ChannelInviteMetadata } from './channelInviteMetadata';
+import type { NotificationEventOneOfNineNotificationEventType } from './notificationEventOneOfNineNotificationEventType';
/**
* The user was invited to a channel
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNineNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNineNotificationEventType.ts
index fe5e7c3a55..547f826176 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNineNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNineNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfNineNotificationEventType = typeof NotificationEventOneOfNineNotificationEventType[keyof typeof NotificationEventOneOfNineNotificationEventType];
-
+export type NotificationEventOneOfNineNotificationEventType =
+ (typeof NotificationEventOneOfNineNotificationEventType)[keyof typeof NotificationEventOneOfNineNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfNineNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNotificationEventType.ts
index 2db2f0daea..695e24867e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfNotificationEventType = typeof NotificationEventOneOfNotificationEventType[keyof typeof NotificationEventOneOfNotificationEventType];
-
+export type NotificationEventOneOfNotificationEventType =
+ (typeof NotificationEventOneOfNotificationEventType)[keyof typeof NotificationEventOneOfNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefive.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefive.ts
index b4be1b82fb..f6b602f292 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefive.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefive.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfOnefiveNotificationEventType } from './notificationEventOneOfOnefiveNotificationEventType';
+
import type { DocumentMentionMetadata } from './documentMentionMetadata';
+import type { NotificationEventOneOfOnefiveNotificationEventType } from './notificationEventOneOfOnefiveNotificationEventType';
/**
* If a document is included via mention or attachment on a message
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefiveNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefiveNotificationEventType.ts
index 438f7616b5..59e4a074d9 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefiveNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnefiveNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfOnefiveNotificationEventType = typeof NotificationEventOneOfOnefiveNotificationEventType[keyof typeof NotificationEventOneOfOnefiveNotificationEventType];
-
+export type NotificationEventOneOfOnefiveNotificationEventType =
+ (typeof NotificationEventOneOfOnefiveNotificationEventType)[keyof typeof NotificationEventOneOfOnefiveNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfOnefiveNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenine.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenine.ts
index c67b6ea1f1..4fd2118fce 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenine.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenine.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfOnenineNotificationEventType } from './notificationEventOneOfOnenineNotificationEventType';
+
import type { InviteToTeamMetadata } from './inviteToTeamMetadata';
+import type { NotificationEventOneOfOnenineNotificationEventType } from './notificationEventOneOfOnenineNotificationEventType';
/**
* A user was invited to a team
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenineNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenineNotificationEventType.ts
index 8ce456126a..33870f4548 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenineNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnenineNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfOnenineNotificationEventType = typeof NotificationEventOneOfOnenineNotificationEventType[keyof typeof NotificationEventOneOfOnenineNotificationEventType];
-
+export type NotificationEventOneOfOnenineNotificationEventType =
+ (typeof NotificationEventOneOfOnenineNotificationEventType)[keyof typeof NotificationEventOneOfOnenineNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfOnenineNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneone.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneone.ts
index 604e46c4ce..b7994d26bb 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneone.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneone.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfOneoneNotificationEventType } from './notificationEventOneOfOneoneNotificationEventType';
+
import type { ChannelMessageSendMetadata } from './channelMessageSendMetadata';
+import type { NotificationEventOneOfOneoneNotificationEventType } from './notificationEventOneOfOneoneNotificationEventType';
/**
* A user sent a message in a channel
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneoneNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneoneNotificationEventType.ts
index 76305a196b..c43b8f7540 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneoneNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneoneNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfOneoneNotificationEventType = typeof NotificationEventOneOfOneoneNotificationEventType[keyof typeof NotificationEventOneOfOneoneNotificationEventType];
-
+export type NotificationEventOneOfOneoneNotificationEventType =
+ (typeof NotificationEventOneOfOneoneNotificationEventType)[keyof typeof NotificationEventOneOfOneoneNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfOneoneNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneseven.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneseven.ts
index bd9a230b82..7a8566457a 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneseven.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOneseven.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfOnesevenNotificationEventType } from './notificationEventOneOfOnesevenNotificationEventType';
+
import type { NewEmailMetadata } from './newEmailMetadata';
+import type { NotificationEventOneOfOnesevenNotificationEventType } from './notificationEventOneOfOnesevenNotificationEventType';
/**
* A new email has been sent to the user
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnesevenNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnesevenNotificationEventType.ts
index 8c876a0bb6..92309eb75e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnesevenNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnesevenNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfOnesevenNotificationEventType = typeof NotificationEventOneOfOnesevenNotificationEventType[keyof typeof NotificationEventOneOfOnesevenNotificationEventType];
-
+export type NotificationEventOneOfOnesevenNotificationEventType =
+ (typeof NotificationEventOneOfOnesevenNotificationEventType)[keyof typeof NotificationEventOneOfOnesevenNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfOnesevenNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethree.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethree.ts
index c74301268b..655d644ce3 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethree.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethree.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfOnethreeNotificationEventType } from './notificationEventOneOfOnethreeNotificationEventType';
+
import type { ChannelReplyMetadata } from './channelReplyMetadata';
+import type { NotificationEventOneOfOnethreeNotificationEventType } from './notificationEventOneOfOnethreeNotificationEventType';
/**
* Someone replied to a thread in a channel that the user is part of
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethreeNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethreeNotificationEventType.ts
index 029116f9de..6cbcda196c 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethreeNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfOnethreeNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfOnethreeNotificationEventType = typeof NotificationEventOneOfOnethreeNotificationEventType[keyof typeof NotificationEventOneOfOnethreeNotificationEventType];
-
+export type NotificationEventOneOfOnethreeNotificationEventType =
+ (typeof NotificationEventOneOfOnethreeNotificationEventType)[keyof typeof NotificationEventOneOfOnethreeNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfOnethreeNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSeven.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSeven.ts
index 949d622189..fce0f3ddb2 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSeven.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfSevenNotificationEventType } from './notificationEventOneOfSevenNotificationEventType';
+
import type { DocumentMentionMetadata } from './documentMentionMetadata';
+import type { NotificationEventOneOfSevenNotificationEventType } from './notificationEventOneOfSevenNotificationEventType';
/**
* Someone mentioned you in a document
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSevenNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSevenNotificationEventType.ts
index 5c9bc7bae0..ec893ffc7e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSevenNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfSevenNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfSevenNotificationEventType = typeof NotificationEventOneOfSevenNotificationEventType[keyof typeof NotificationEventOneOfSevenNotificationEventType];
-
+export type NotificationEventOneOfSevenNotificationEventType =
+ (typeof NotificationEventOneOfSevenNotificationEventType)[keyof typeof NotificationEventOneOfSevenNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfSevenNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThree.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThree.ts
index 4b9201a23e..315a05d3a2 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThree.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThree.ts
@@ -4,8 +4,9 @@
* notification_service
* OpenAPI spec version: 0.1.0
*/
-import type { NotificationEventOneOfThreeNotificationEventType } from './notificationEventOneOfThreeNotificationEventType';
+
import type { ItemSharedOrganizationMetadata } from './itemSharedOrganizationMetadata';
+import type { NotificationEventOneOfThreeNotificationEventType } from './notificationEventOneOfThreeNotificationEventType';
/**
* A item was shared with an organization
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThreeNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThreeNotificationEventType.ts
index 4f9078c39a..b4b535973e 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThreeNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfThreeNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfThreeNotificationEventType = typeof NotificationEventOneOfThreeNotificationEventType[keyof typeof NotificationEventOneOfThreeNotificationEventType];
-
+export type NotificationEventOneOfThreeNotificationEventType =
+ (typeof NotificationEventOneOfThreeNotificationEventType)[keyof typeof NotificationEventOneOfThreeNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfThreeNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwooneNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwooneNotificationEventType.ts
index 0d37a56240..92dc7dc93f 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwooneNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwooneNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfTwooneNotificationEventType = typeof NotificationEventOneOfTwooneNotificationEventType[keyof typeof NotificationEventOneOfTwooneNotificationEventType];
-
+export type NotificationEventOneOfTwooneNotificationEventType =
+ (typeof NotificationEventOneOfTwooneNotificationEventType)[keyof typeof NotificationEventOneOfTwooneNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfTwooneNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwothreeNotificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwothreeNotificationEventType.ts
index 71f67197a5..0a8530219d 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwothreeNotificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventOneOfTwothreeNotificationEventType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationEventOneOfTwothreeNotificationEventType = typeof NotificationEventOneOfTwothreeNotificationEventType[keyof typeof NotificationEventOneOfTwothreeNotificationEventType];
-
+export type NotificationEventOneOfTwothreeNotificationEventType =
+ (typeof NotificationEventOneOfTwothreeNotificationEventType)[keyof typeof NotificationEventOneOfTwothreeNotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventOneOfTwothreeNotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventType.ts
index 0641937dbb..bdb4e2293b 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventType.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationEventType.ts
@@ -8,8 +8,8 @@
/**
* Auto-generated discriminant enum variants
*/
-export type NotificationEventType = typeof NotificationEventType[keyof typeof NotificationEventType];
-
+export type NotificationEventType =
+ (typeof NotificationEventType)[keyof typeof NotificationEventType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationEventType = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/notificationServiceApiVersion.ts b/js/app/packages/service-clients/service-notification/generated/schemas/notificationServiceApiVersion.ts
index 292506ac32..695373e568 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/notificationServiceApiVersion.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/notificationServiceApiVersion.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type NotificationServiceApiVersion = typeof NotificationServiceApiVersion[keyof typeof NotificationServiceApiVersion];
-
+export type NotificationServiceApiVersion =
+ (typeof NotificationServiceApiVersion)[keyof typeof NotificationServiceApiVersion];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationServiceApiVersion = {
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/pushNotificationDataAllOf.ts b/js/app/packages/service-clients/service-notification/generated/schemas/pushNotificationDataAllOf.ts
index fdd1f28258..20086d04b1 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/pushNotificationDataAllOf.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/pushNotificationDataAllOf.ts
@@ -7,6 +7,8 @@
import type { PushNotificationDataAllOfSenderId } from './pushNotificationDataAllOfSenderId';
export type PushNotificationDataAllOf = {
+ /** The id of the notification record (UserNotification.id) */
+ notificationId: string;
/** The route to open the notification in the app
example: /channel/{channel_id} */
openRoute: string;
diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/userNotification.ts b/js/app/packages/service-clients/service-notification/generated/schemas/userNotification.ts
index faf8b73db8..05575280fe 100644
--- a/js/app/packages/service-clients/service-notification/generated/schemas/userNotification.ts
+++ b/js/app/packages/service-clients/service-notification/generated/schemas/userNotification.ts
@@ -5,8 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
import type { Entity } from './entity';
-import type { NotificationTemporalData } from './notificationTemporalData';
import type { NotificationEvent } from './notificationEvent';
+import type { NotificationTemporalData } from './notificationTemporalData';
import type { UserNotificationAllOf } from './userNotificationAllOf';
-export type UserNotification = Entity & NotificationTemporalData & NotificationEvent & UserNotificationAllOf;
+export type UserNotification = Entity &
+ NotificationTemporalData &
+ NotificationEvent &
+ UserNotificationAllOf;
diff --git a/js/app/packages/service-clients/service-notification/openapi.json b/js/app/packages/service-clients/service-notification/openapi.json
index 02bb342852..ef5ad61239 100644
--- a/js/app/packages/service-clients/service-notification/openapi.json
+++ b/js/app/packages/service-clients/service-notification/openapi.json
@@ -4,7 +4,9 @@
"title": "notification_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -16,7 +18,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/DeviceRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/DeviceRequest"
+ }
}
},
"required": true
@@ -26,7 +30,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -34,7 +40,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -42,7 +50,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -50,7 +60,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -65,7 +77,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/DeviceRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/DeviceRequest"
+ }
}
},
"required": true
@@ -75,7 +89,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -83,7 +99,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -91,7 +109,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -99,7 +119,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -116,7 +138,9 @@
"description": "health",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -131,7 +155,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateNotification" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateNotification"
+ }
}
},
"required": true
@@ -141,7 +167,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/Notification" }
+ "schema": {
+ "$ref": "#/components/schemas/Notification"
+ }
}
}
}
@@ -160,7 +188,9 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/UserUnsubscribe" }
+ "items": {
+ "$ref": "#/components/schemas/UserUnsubscribe"
+ }
}
}
}
@@ -169,7 +199,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -177,7 +209,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -194,7 +228,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -202,7 +238,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -210,7 +248,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -227,7 +267,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -235,7 +277,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -243,7 +287,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -258,7 +304,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -266,7 +314,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -274,7 +324,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -291,7 +343,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -299,7 +353,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -307,7 +363,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -322,7 +380,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -330,7 +390,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -338,7 +400,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -356,14 +420,19 @@
"in": "query",
"description": "Size limit per page. Default 20, max 500.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Base 64 encoded cursor",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -381,7 +450,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -389,7 +460,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -397,7 +470,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -424,7 +499,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -451,7 +528,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -478,7 +557,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -505,7 +586,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -525,14 +608,20 @@
"in": "query",
"description": "Size limit per page. Default 20, max 500.",
"required": true,
- "schema": { "type": "integer", "format": "int32", "minimum": 0 }
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Cursor value. Base64 encoded timestamp and item id, separated by |.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -560,7 +649,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -568,7 +659,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -576,7 +669,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -594,21 +689,28 @@
"in": "path",
"description": "The event item id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "limit",
"in": "query",
"description": "Size limit per page. Default 20, max 500.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Cursor value. Base64 encoded timestamp and item id, separated by |.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -626,7 +728,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -634,7 +738,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -642,7 +748,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -662,7 +770,9 @@
"in": "path",
"description": "ID of the event item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -670,7 +780,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -690,7 +802,9 @@
"in": "path",
"description": "ID of the event item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -698,7 +812,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -706,6 +822,74 @@
}
},
"/user_notifications/{notification_id}": {
+ "get": {
+ "tags": ["user_notification::get_user_notification_by_id"],
+ "summary": "Gets a single user notification by id.",
+ "operationId": "get_user_notification_by_id",
+ "parameters": [
+ {
+ "name": "notification_id",
+ "in": "path",
+ "description": "ID of the notification",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserNotification"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
"delete": {
"tags": ["user_notification::delete_user_notification"],
"summary": "Marks the user's notification as deleted.",
@@ -716,7 +900,9 @@
"in": "path",
"description": "ID of the notification",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -724,7 +910,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -738,23 +926,36 @@
"type": "object",
"required": ["eventItemIds"],
"properties": {
- "eventItemIds": { "type": "array", "items": { "type": "string" } }
+ "eventItemIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"ChannelInviteMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/CommonChannelMetadata" },
+ {
+ "$ref": "#/components/schemas/CommonChannelMetadata"
+ },
{
"type": "object",
"required": ["invitedBy"],
- "properties": { "invitedBy": { "type": "string" } }
+ "properties": {
+ "invitedBy": {
+ "type": "string"
+ }
+ }
}
],
"description": "Metadata for when a user is invited to a channel"
},
"ChannelMentionMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/CommonChannelMetadata" },
+ {
+ "$ref": "#/components/schemas/CommonChannelMetadata"
+ },
{
"type": "object",
"required": ["messageId", "messageContent"],
@@ -780,7 +981,9 @@
},
"ChannelMessageSendMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/CommonChannelMetadata" },
+ {
+ "$ref": "#/components/schemas/CommonChannelMetadata"
+ },
{
"type": "object",
"required": ["sender", "messageId"],
@@ -803,7 +1006,9 @@
},
"ChannelReplyMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/CommonChannelMetadata" },
+ {
+ "$ref": "#/components/schemas/CommonChannelMetadata"
+ },
{
"type": "object",
"required": ["threadId", "messageId", "userId", "messageContent"],
@@ -837,8 +1042,12 @@
"description": "Common metadata for notifications on channels",
"required": ["channelType"],
"properties": {
- "channelName": { "type": "string" },
- "channelType": { "$ref": "#/components/schemas/ChannelType" }
+ "channelName": {
+ "type": "string"
+ },
+ "channelType": {
+ "$ref": "#/components/schemas/ChannelType"
+ }
}
},
"CreateNotification": {
@@ -870,11 +1079,18 @@
"type": "object",
"required": ["deviceType", "token"],
"properties": {
- "deviceType": { "$ref": "#/components/schemas/DeviceType" },
- "token": { "type": "string" }
+ "deviceType": {
+ "$ref": "#/components/schemas/DeviceType"
+ },
+ "token": {
+ "type": "string"
+ }
}
},
- "DeviceType": { "type": "string", "enum": ["ios", "android"] },
+ "DeviceType": {
+ "type": "string",
+ "enum": ["ios", "android"]
+ },
"DocumentMentionMetadata": {
"allOf": [
{},
@@ -948,9 +1164,13 @@
"properties": {
"items": {
"type": "array",
- "items": { "$ref": "#/components/schemas/UserNotification" }
+ "items": {
+ "$ref": "#/components/schemas/UserNotification"
+ }
},
- "next_cursor": { "type": ["string", "null"] }
+ "next_cursor": {
+ "type": ["string", "null"]
+ }
}
},
"InviteToTeamMetadata": {
@@ -996,10 +1216,14 @@
"type": ["string", "null"],
"description": "Permission level granted (read, write, admin, etc.)"
},
- "sharedBy": { "type": "string" },
+ "sharedBy": {
+ "type": "string"
+ },
"userIds": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "List of user IDs that the item is shared with"
}
}
@@ -1023,7 +1247,9 @@
},
"orgUserIds": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "List of user IDs that the item is shared with"
},
"permissionLevel": {
@@ -1040,25 +1266,48 @@
"type": "object",
"required": ["toEmail", "threadId", "subject", "snippet"],
"properties": {
- "sender": { "type": ["string", "null"] },
- "snippet": { "type": "string" },
- "subject": { "type": "string" },
- "threadId": { "type": "string" },
- "toEmail": { "type": "string" }
+ "sender": {
+ "type": ["string", "null"]
+ },
+ "snippet": {
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "threadId": {
+ "type": "string"
+ },
+ "toEmail": {
+ "type": "string"
+ }
}
},
"Notification": {
"allOf": [
- { "$ref": "#/components/schemas/Entity" },
- { "$ref": "#/components/schemas/NotificationTemporalData" },
- { "$ref": "#/components/schemas/NotificationEvent" },
+ {
+ "$ref": "#/components/schemas/Entity"
+ },
+ {
+ "$ref": "#/components/schemas/NotificationTemporalData"
+ },
+ {
+ "$ref": "#/components/schemas/NotificationEvent"
+ },
{
"type": "object",
"required": ["id", "serviceSender"],
"properties": {
- "id": { "type": "string", "format": "uuid" },
- "senderId": { "type": ["string", "null"] },
- "serviceSender": { "type": "string" }
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "senderId": {
+ "type": ["string", "null"]
+ },
+ "serviceSender": {
+ "type": "string"
+ }
}
}
]
@@ -1069,7 +1318,10 @@
"properties": {
"notificationIds": {
"type": "array",
- "items": { "type": "string", "format": "uuid" },
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ },
"description": "The ids of the notifications to handle"
}
}
@@ -1252,7 +1504,8 @@
}
}
}
- ]
+ ],
+ "description": "The types of events that the notification system is aware of"
},
"NotificationEventType": {
"type": "string",
@@ -1272,24 +1525,46 @@
"task_assigned"
]
},
- "NotificationServiceApiVersion": { "type": "string", "enum": ["v1"] },
+ "NotificationServiceApiVersion": {
+ "type": "string",
+ "enum": ["v1"]
+ },
"NotificationTemporalData": {
"type": "object",
"required": ["createdAt", "viewedAt", "updatedAt", "deletedAt"],
"properties": {
- "createdAt": { "type": "integer", "format": "int64" },
- "deletedAt": { "type": ["integer", "null"], "format": "int64" },
- "updatedAt": { "type": ["integer", "null"], "format": "int64" },
- "viewedAt": { "type": ["integer", "null"], "format": "int64" }
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deletedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "viewedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"PushNotificationData": {
"allOf": [
- { "$ref": "#/components/schemas/Entity" },
+ {
+ "$ref": "#/components/schemas/Entity"
+ },
{
"type": "object",
- "required": ["openRoute"],
+ "required": ["notificationId", "openRoute"],
"properties": {
+ "notificationId": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The id of the notification record (UserNotification.id)"
+ },
"openRoute": {
"type": "string",
"description": "The route to open the notification in the app\nexample: /channel/{channel_id}"
@@ -1325,15 +1600,25 @@
"type": "object",
"required": ["item_type", "item_id"],
"properties": {
- "item_id": { "type": "string" },
- "item_type": { "type": "string" }
+ "item_id": {
+ "type": "string"
+ },
+ "item_type": {
+ "type": "string"
+ }
}
},
"UserNotification": {
"allOf": [
- { "$ref": "#/components/schemas/Entity" },
- { "$ref": "#/components/schemas/NotificationTemporalData" },
- { "$ref": "#/components/schemas/NotificationEvent" },
+ {
+ "$ref": "#/components/schemas/Entity"
+ },
+ {
+ "$ref": "#/components/schemas/NotificationTemporalData"
+ },
+ {
+ "$ref": "#/components/schemas/NotificationEvent"
+ },
{
"type": "object",
"required": ["id", "sent", "done"],
@@ -1363,8 +1648,14 @@
"type": "object",
"required": ["item_id", "item_type"],
"properties": {
- "item_id": { "type": "string", "description": "The item id" },
- "item_type": { "type": "string", "description": "The item type" }
+ "item_id": {
+ "type": "string",
+ "description": "The item id"
+ },
+ "item_type": {
+ "type": "string",
+ "description": "The item type"
+ }
}
}
}
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/accessLevel.ts b/js/app/packages/service-clients/service-organization/generated/schemas/accessLevel.ts
index 5cb478b58e..a9c3ad7a0a 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/accessLevel.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/accessLevel.ts
@@ -8,8 +8,7 @@
/**
* Ordered from least to most access top -> bottom
*/
-export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
-
+export type AccessLevel = (typeof AccessLevel)[keyof typeof AccessLevel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AccessLevel = {
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-organization/generated/schemas/emptyResponse.ts
index d8dfcdf694..55493c920a 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/getUsersHandlerParams.ts b/js/app/packages/service-clients/service-organization/generated/schemas/getUsersHandlerParams.ts
index 26e1d519a9..cd095425c9 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/getUsersHandlerParams.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/getUsersHandlerParams.ts
@@ -6,12 +6,12 @@
*/
export type GetUsersHandlerParams = {
-/**
- * The maximum number of users to retreive. Default 10, max 100.
- */
-limit: number;
-/**
- * The offset to start from. Default 0.
- */
-offset: number;
+ /**
+ * The maximum number of users to retreive. Default 10, max 100.
+ */
+ limit: number;
+ /**
+ * The offset to start from. Default 0.
+ */
+ offset: number;
};
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/index.ts b/js/app/packages/service-clients/service-organization/generated/schemas/index.ts
index 0b3a39aa6c..8a918a4c11 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/index.ts
@@ -25,4 +25,4 @@ export * from './patchOrganizationSettingsRequestRemoveDefaultSharePermission';
export * from './patchOrganizationSettingsRequestRemoveRetentionDays';
export * from './patchOrganizationSettingsRequestRetentionDays';
export * from './patchUserRoleRequest';
-export * from './user';
\ No newline at end of file
+export * from './user';
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionOrganizationAccessLevel.ts b/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionOrganizationAccessLevel.ts
index 1e4a05a0f8..00bac08b94 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionOrganizationAccessLevel.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionOrganizationAccessLevel.ts
@@ -6,4 +6,5 @@
*/
import type { AccessLevel } from './accessLevel';
-export type OrganizationDefaultSharePermissionOrganizationAccessLevel = null | AccessLevel;
+export type OrganizationDefaultSharePermissionOrganizationAccessLevel =
+ null | AccessLevel;
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionPublicAccessLevel.ts b/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionPublicAccessLevel.ts
index 6e3f65b9a3..c63aed700c 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionPublicAccessLevel.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/organizationDefaultSharePermissionPublicAccessLevel.ts
@@ -6,4 +6,5 @@
*/
import type { AccessLevel } from './accessLevel';
-export type OrganizationDefaultSharePermissionPublicAccessLevel = null | AccessLevel;
+export type OrganizationDefaultSharePermissionPublicAccessLevel =
+ null | AccessLevel;
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/organizationSettingsResponse.ts b/js/app/packages/service-clients/service-organization/generated/schemas/organizationSettingsResponse.ts
index 32195ee1d0..7731191f90 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/organizationSettingsResponse.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/organizationSettingsResponse.ts
@@ -4,8 +4,9 @@
* organization_service
* OpenAPI spec version: 0.1.0
*/
-import type { OrganizationShareType } from './organizationShareType';
+
import type { OrganizationSettingsResponseRetentionDays } from './organizationSettingsResponseRetentionDays';
+import type { OrganizationShareType } from './organizationShareType';
export interface OrganizationSettingsResponse {
/** The default share permission for the organization */
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/organizationShareType.ts b/js/app/packages/service-clients/service-organization/generated/schemas/organizationShareType.ts
index e4aec3123a..2c0759f6be 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/organizationShareType.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/organizationShareType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type OrganizationShareType = typeof OrganizationShareType[keyof typeof OrganizationShareType];
-
+export type OrganizationShareType =
+ (typeof OrganizationShareType)[keyof typeof OrganizationShareType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const OrganizationShareType = {
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/organizationUserRole.ts b/js/app/packages/service-clients/service-organization/generated/schemas/organizationUserRole.ts
index 8b7c9c6be5..7a6b4246a8 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/organizationUserRole.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/organizationUserRole.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type OrganizationUserRole = typeof OrganizationUserRole[keyof typeof OrganizationUserRole];
-
+export type OrganizationUserRole =
+ (typeof OrganizationUserRole)[keyof typeof OrganizationUserRole];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const OrganizationUserRole = {
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveDefaultSharePermission.ts b/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveDefaultSharePermission.ts
index 00cc95d812..11840e56ef 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveDefaultSharePermission.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveDefaultSharePermission.ts
@@ -8,4 +8,6 @@
/**
* Removes the default share permission you currently have set
*/
-export type PatchOrganizationSettingsRequestRemoveDefaultSharePermission = boolean | null;
+export type PatchOrganizationSettingsRequestRemoveDefaultSharePermission =
+ | boolean
+ | null;
diff --git a/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveRetentionDays.ts b/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveRetentionDays.ts
index 7fcb9fb752..6b9c9f6b3a 100644
--- a/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveRetentionDays.ts
+++ b/js/app/packages/service-clients/service-organization/generated/schemas/patchOrganizationSettingsRequestRemoveRetentionDays.ts
@@ -8,4 +8,6 @@
/**
* Removes the retention policy you currently have set
*/
-export type PatchOrganizationSettingsRequestRemoveRetentionDays = boolean | null;
+export type PatchOrganizationSettingsRequestRemoveRetentionDays =
+ | boolean
+ | null;
diff --git a/js/app/packages/service-clients/service-organization/generated/zod.ts b/js/app/packages/service-clients/service-organization/generated/zod.ts
index c89a3a272e..f7aeb6e779 100644
--- a/js/app/packages/service-clients/service-organization/generated/zod.ts
+++ b/js/app/packages/service-clients/service-organization/generated/zod.ts
@@ -4,90 +4,109 @@
* organization_service
* OpenAPI spec version: 0.1.0
*/
-import {
- z as zod
-} from 'zod';
-
+import { z as zod } from 'zod';
/**
* @summary Gets the organizations settings
*/
export const getSettingsHandlerResponse = zod.object({
- "default_share_permission": zod.enum(['public', 'organization', 'private']),
- "name": zod.string().describe('The name of the organization'),
- "retention_days": zod.number().nullish().describe('The number of days an item can go unopened for before it is automatically deleted')
-})
-
+ default_share_permission: zod.enum(['public', 'organization', 'private']),
+ name: zod.string().describe('The name of the organization'),
+ retention_days: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The number of days an item can go unopened for before it is automatically deleted'
+ ),
+});
/**
* @summary Patches the organization settings
*/
export const patchOrganizationSettingsHandlerBody = zod.object({
- "remove_default_share_permission": zod.boolean().nullish().describe('Removes the default share permission you currently have set'),
- "remove_retention_days": zod.boolean().nullish().describe('Removes the retention policy you currently have set'),
- "retention_days": zod.number().nullish().describe('The new retention policy you want to set\n\n Note: This will get ignored if you have pass in **any value** for remove_retention_days')
-})
-
+ remove_default_share_permission: zod
+ .boolean()
+ .nullish()
+ .describe('Removes the default share permission you currently have set'),
+ remove_retention_days: zod
+ .boolean()
+ .nullish()
+ .describe('Removes the retention policy you currently have set'),
+ retention_days: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The new retention policy you want to set\n\n Note: This will get ignored if you have pass in **any value** for remove_retention_days'
+ ),
+});
/**
* @summary Gets all users currently in your organization
*/
export const getUsersHandlerQueryParams = zod.object({
- "limit": zod.number().describe('The maximum number of users to retreive. Default 10, max 100.'),
- "offset": zod.number().describe('The offset to start from. Default 0.')
-})
+ limit: zod
+ .number()
+ .describe('The maximum number of users to retreive. Default 10, max 100.'),
+ offset: zod.number().describe('The offset to start from. Default 0.'),
+});
export const getUsersHandlerResponse = zod.object({
- "next_offset": zod.number().nullish().describe('The next offset to be used if there is one'),
- "total": zod.number().describe('The total number of documents the user has'),
- "users": zod.array(zod.object({
- "email": zod.string().describe('The email of the user'),
- "id": zod.string().describe('The id of the user'),
- "is_it_admin": zod.boolean().describe('If the user is an it admin or not')
-})).describe('The users in your organization returned from the query')
-})
-
+ next_offset: zod
+ .number()
+ .nullish()
+ .describe('The next offset to be used if there is one'),
+ total: zod.number().describe('The total number of documents the user has'),
+ users: zod
+ .array(
+ zod.object({
+ email: zod.string().describe('The email of the user'),
+ id: zod.string().describe('The id of the user'),
+ is_it_admin: zod
+ .boolean()
+ .describe('If the user is an it admin or not'),
+ })
+ )
+ .describe('The users in your organization returned from the query'),
+});
/**
* @summary Deletes the user. This action cannot be undone as it queues the user for deletion.
*/
export const deleteUserHandlerBody = zod.object({
- "user_id": zod.string().describe('The user id who we are deleting')
-})
-
+ user_id: zod.string().describe('The user id who we are deleting'),
+});
/**
* @summary Invites a user to an organization
*/
export const inviteUserHandlerBody = zod.object({
- "email": zod.string().describe('The email of the user to invite')
-})
-
+ email: zod.string().describe('The email of the user to invite'),
+});
/**
* If the user is `allow_list_only` we will also remove the `OrganizationEmailMatch`
* @summary Removes the users invitation from OrganizationInvitation
*/
export const revokeUserInviteHandlerBody = zod.object({
- "email": zod.string().describe('The email of the user to invite')
-})
-
+ email: zod.string().describe('The email of the user to invite'),
+});
/**
* @summary Gets all invited users for your organization
*/
export const getInvitedUsersHandlerResponse = zod.object({
- "invited_users": zod.array(zod.string()).describe('The invited users in your organization')
-})
-
+ invited_users: zod
+ .array(zod.string())
+ .describe('The invited users in your organization'),
+});
/**
* @summary Patches the requested users role. Updating whether they have organization_it role or
not.
*/
export const patchUserRoleHandlerBody = zod.object({
- "organization_user_role": zod.enum(['owner', 'member']),
- "user_id": zod.string().describe('The user id who we are updating the role for')
-})
-
-
+ organization_user_role: zod.enum(['owner', 'member']),
+ user_id: zod
+ .string()
+ .describe('The user id who we are updating the role for'),
+});
diff --git a/js/app/packages/service-clients/service-organization/openapi.json b/js/app/packages/service-clients/service-organization/openapi.json
index 1dca412fc0..f528c91903 100644
--- a/js/app/packages/service-clients/service-organization/openapi.json
+++ b/js/app/packages/service-clients/service-organization/openapi.json
@@ -4,7 +4,9 @@
"title": "organization_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -16,7 +18,13 @@
"responses": {
"200": {
"description": "health",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -39,15 +47,33 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -66,18 +92,38 @@
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -93,14 +139,20 @@
"in": "query",
"description": "The maximum number of users to retreive. Default 10, max 100.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "offset",
"in": "query",
"description": "The offset to start from. Default 0.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -108,21 +160,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetUsersResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetUsersResponse"
+ }
}
}
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -133,28 +205,56 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/DeleteUserRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/DeleteUserRequest"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -167,28 +267,56 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/InviteUserRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/InviteUserRequest"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
},
@@ -200,28 +328,56 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/InviteUserRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/InviteUserRequest"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -244,15 +400,33 @@
},
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -265,28 +439,56 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchUserRoleRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchUserRoleRequest"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"400": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -319,7 +521,9 @@
"properties": {
"invited_users": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The invited users in your organization"
}
}
@@ -340,7 +544,9 @@
},
"users": {
"type": "array",
- "items": { "$ref": "#/components/schemas/User" },
+ "items": {
+ "$ref": "#/components/schemas/User"
+ },
"description": "The users in your organization returned from the query"
}
}
@@ -369,7 +575,9 @@
},
"organization_access_level": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for users if the item is accessible by organization"
@@ -378,7 +586,9 @@
},
"public_access_level": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for users if the item is publicly accessible"
@@ -410,7 +620,10 @@
"type": "string",
"enum": ["public", "organization", "private"]
},
- "OrganizationUserRole": { "type": "string", "enum": ["owner", "member"] },
+ "OrganizationUserRole": {
+ "type": "string",
+ "enum": ["owner", "member"]
+ },
"PatchOrganizationSettingsRequest": {
"type": "object",
"properties": {
@@ -447,8 +660,14 @@
"type": "object",
"required": ["id", "email", "is_it_admin"],
"properties": {
- "email": { "type": "string", "description": "The email of the user" },
- "id": { "type": "string", "description": "The id of the user" },
+ "email": {
+ "type": "string",
+ "description": "The email of the user"
+ },
+ "id": {
+ "type": "string",
+ "description": "The id of the user"
+ },
"is_it_admin": {
"type": "boolean",
"description": "If the user is an it admin or not"
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequest.ts b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequest.ts
index 4c7adde8e3..d2ee40e2a1 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequest.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequest.ts
@@ -10,4 +10,6 @@ import type { AddPropertyOptionRequestOneOfThree } from './addPropertyOptionRequ
/**
* Enum for type-safe property option addition requests.
*/
-export type AddPropertyOptionRequest = AddPropertyOptionRequestOneOf | AddPropertyOptionRequestOneOfThree;
+export type AddPropertyOptionRequest =
+ | AddPropertyOptionRequestOneOf
+ | AddPropertyOptionRequestOneOfThree;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOf.ts b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOf.ts
index 50b27505aa..d4ff1596fb 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOf.ts
@@ -4,8 +4,9 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { AddStringOptionRequest } from './addStringOptionRequest';
+
import type { AddPropertyOptionRequestOneOfType } from './addPropertyOptionRequestOneOfType';
+import type { AddStringOptionRequest } from './addStringOptionRequest';
/**
* Add a string option to a SelectString property
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfThreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfThreeType.ts
index c824ad77e5..689a51adf1 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AddPropertyOptionRequestOneOfThreeType = typeof AddPropertyOptionRequestOneOfThreeType[keyof typeof AddPropertyOptionRequestOneOfThreeType];
-
+export type AddPropertyOptionRequestOneOfThreeType =
+ (typeof AddPropertyOptionRequestOneOfThreeType)[keyof typeof AddPropertyOptionRequestOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AddPropertyOptionRequestOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfType.ts
index 7eba3d4cf3..e7f5b61c90 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/addPropertyOptionRequestOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AddPropertyOptionRequestOneOfType = typeof AddPropertyOptionRequestOneOfType[keyof typeof AddPropertyOptionRequestOneOfType];
-
+export type AddPropertyOptionRequestOneOfType =
+ (typeof AddPropertyOptionRequestOneOfType)[keyof typeof AddPropertyOptionRequestOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AddPropertyOptionRequestOneOfType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequest.ts b/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequest.ts
index 3a7e63dcbe..b417f21f03 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequest.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequest.ts
@@ -5,7 +5,6 @@
* OpenAPI spec version: 0.1.0
*/
import type { EntityReference } from './entityReference';
-import type { BulkEntityPropertiesRequestPropertyIds } from './bulkEntityPropertiesRequestPropertyIds';
/**
* Request for getting properties for multiple entities in bulk
@@ -13,6 +12,6 @@ import type { BulkEntityPropertiesRequestPropertyIds } from './bulkEntityPropert
export interface BulkEntityPropertiesRequest {
/** Array of entity references (entity_id and entity_type pairs) */
entities: EntityReference[];
- /** Optional: only return properties with these definition IDs. If empty/None, returns all. */
- property_ids?: BulkEntityPropertiesRequestPropertyIds;
+ /** Optional: only return properties with these definition IDs. If empty, returns all. */
+ property_ids?: string[];
}
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequestPropertyIds.ts b/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequestPropertyIds.ts
deleted file mode 100644
index 8c3276a135..0000000000
--- a/js/app/packages/service-clients/service-properties/generated/schemas/bulkEntityPropertiesRequestPropertyIds.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.13.0 🍺
- * Do not edit manually.
- * properties_service
- * OpenAPI spec version: 0.1.0
- */
-
-/**
- * Optional: only return properties with these definition IDs. If empty/None, returns all.
- */
-export type BulkEntityPropertiesRequestPropertyIds = string[] | null;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/createPropertyDefinitionRequest.ts b/js/app/packages/service-clients/service-properties/generated/schemas/createPropertyDefinitionRequest.ts
index c9e6ec2c6c..cc6cfd57f0 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/createPropertyDefinitionRequest.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/createPropertyDefinitionRequest.ts
@@ -4,10 +4,12 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { PropertyOwner } from './propertyOwner';
+
import type { CreatePropertyDefinitionRequestAllOf } from './createPropertyDefinitionRequestAllOf';
+import type { PropertyOwner } from './propertyOwner';
/**
* Request to create a new property definition.
*/
-export type CreatePropertyDefinitionRequest = PropertyOwner & CreatePropertyDefinitionRequestAllOf;
+export type CreatePropertyDefinitionRequest = PropertyOwner &
+ CreatePropertyDefinitionRequestAllOf;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/dataType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/dataType.ts
index 31c71ed6e9..26d8867b26 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/dataType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/dataType.ts
@@ -8,8 +8,7 @@
/**
* Data type for property values, determining storage and validation.
*/
-export type DataType = typeof DataType[keyof typeof DataType];
-
+export type DataType = (typeof DataType)[keyof typeof DataType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DataType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyResponse.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyResponse.ts
index 119ec1fc72..bd62399cd3 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyResponse.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyResponse.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { EntityPropertyResponseCreatedAt } from './entityPropertyResponseCreatedAt';
-import type { EntityType } from './entityType';
import type { EntityPropertyResponseUpdatedAt } from './entityPropertyResponseUpdatedAt';
+import type { EntityType } from './entityType';
/**
* Entity property response (API representation).
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinition.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinition.ts
index 2ed2e647ec..0c0b8cfc5a 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinition.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinition.ts
@@ -4,10 +4,11 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { PropertyDefinition } from './propertyDefinition';
-import type { EntityPropertyWithDefinitionOptions } from './entityPropertyWithDefinitionOptions';
+
import type { EntityProperty } from './entityProperty';
+import type { EntityPropertyWithDefinitionOptions } from './entityPropertyWithDefinitionOptions';
import type { EntityPropertyWithDefinitionValue } from './entityPropertyWithDefinitionValue';
+import type { PropertyDefinition } from './propertyDefinition';
/**
* Entity property with its definition, value, and options (service representation).
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponse.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponse.ts
index 2d71b47e35..58aa5f33ed 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponse.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponse.ts
@@ -4,10 +4,11 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { PropertyDefinitionResponse } from './propertyDefinitionResponse';
-import type { EntityPropertyWithDefinitionResponseOptions } from './entityPropertyWithDefinitionResponseOptions';
+
import type { EntityPropertyResponse } from './entityPropertyResponse';
+import type { EntityPropertyWithDefinitionResponseOptions } from './entityPropertyWithDefinitionResponseOptions';
import type { EntityPropertyWithDefinitionResponseValue } from './entityPropertyWithDefinitionResponseValue';
+import type { PropertyDefinitionResponse } from './propertyDefinitionResponse';
/**
* Entity property with definition response (API representation).
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponseOptions.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponseOptions.ts
index 532e680f4a..33e447635a 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponseOptions.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityPropertyWithDefinitionResponseOptions.ts
@@ -6,4 +6,6 @@
*/
import type { PropertyOptionResponse } from './propertyOptionResponse';
-export type EntityPropertyWithDefinitionResponseOptions = PropertyOptionResponse[] | null;
+export type EntityPropertyWithDefinitionResponseOptions =
+ | PropertyOptionResponse[]
+ | null;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityReference.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityReference.ts
index 6179fb8c56..331e86541e 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityReference.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityReference.ts
@@ -4,8 +4,9 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { EntityType } from './entityType';
+
import type { EntityReferenceSpecificMessageId } from './entityReferenceSpecificMessageId';
+import type { EntityType } from './entityType';
/**
* Entity reference for entity-type property values.
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/entityType.ts
index fc1d9abae2..5ddcb95013 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/entityType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/entityType.ts
@@ -8,8 +8,7 @@
/**
* Type of entity that can be referenced by entity properties.
*/
-export type EntityType = typeof EntityType[keyof typeof EntityType];
-
+export type EntityType = (typeof EntityType)[keyof typeof EntityType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/getBulkEntityProperties200.ts b/js/app/packages/service-clients/service-properties/generated/schemas/getBulkEntityProperties200.ts
index 2b0112e635..784cbbc673 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/getBulkEntityProperties200.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/getBulkEntityProperties200.ts
@@ -6,4 +6,6 @@
*/
import type { EntityPropertiesResponse } from './entityPropertiesResponse';
-export type GetBulkEntityProperties200 = {[key: string]: EntityPropertiesResponse};
+export type GetBulkEntityProperties200 = {
+ [key: string]: EntityPropertiesResponse;
+};
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/getEntityPropertiesParams.ts b/js/app/packages/service-clients/service-properties/generated/schemas/getEntityPropertiesParams.ts
index 81ddd49696..bcc56d0184 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/getEntityPropertiesParams.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/getEntityPropertiesParams.ts
@@ -6,8 +6,8 @@
*/
export type GetEntityPropertiesParams = {
-/**
- * Whether to include property metadata (default: false)
- */
-include_metadata?: boolean;
+ /**
+ * Whether to include property metadata (default: false)
+ */
+ include_metadata?: boolean;
};
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts b/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts
index 8252ba1ae7..b9a09f24ef 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts
@@ -4,20 +4,21 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { PropertyScope } from './propertyScope';
+
import type { EntityType } from './entityType';
+import type { PropertyScope } from './propertyScope';
export type ListPropertiesParams = {
-/**
- * Filter by scope: 'user', 'org', 'system', or 'all'
- */
-scope: PropertyScope;
-/**
- * Whether to include property options in the response
- */
-include_options?: boolean;
-/**
- * Filter properties applicable to a specific entity type
- */
-for_entity_type?: EntityType;
+ /**
+ * Filter by scope: 'user', 'org', 'system', or 'all'
+ */
+ scope: PropertyScope;
+ /**
+ * Whether to include property options in the response
+ */
+ include_options?: boolean;
+ /**
+ * Filter properties applicable to a specific entity type
+ */
+ for_entity_type?: EntityType;
};
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataType.ts
index 76d30cb13a..a2044d8445 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataType.ts
@@ -5,15 +5,23 @@
* OpenAPI spec version: 0.1.0
*/
import type { PropertyDataTypeOneOf } from './propertyDataTypeOneOf';
-import type { PropertyDataTypeOneOfThree } from './propertyDataTypeOneOfThree';
import type { PropertyDataTypeOneOfFive } from './propertyDataTypeOneOfFive';
-import type { PropertyDataTypeOneOfSeven } from './propertyDataTypeOneOfSeven';
import type { PropertyDataTypeOneOfNine } from './propertyDataTypeOneOfNine';
import type { PropertyDataTypeOneOfOneone } from './propertyDataTypeOneOfOneone';
-import type { PropertyDataTypeOneOfOnethree } from './propertyDataTypeOneOfOnethree';
import type { PropertyDataTypeOneOfOnesix } from './propertyDataTypeOneOfOnesix';
+import type { PropertyDataTypeOneOfOnethree } from './propertyDataTypeOneOfOnethree';
+import type { PropertyDataTypeOneOfSeven } from './propertyDataTypeOneOfSeven';
+import type { PropertyDataTypeOneOfThree } from './propertyDataTypeOneOfThree';
/**
* Data type with embedded options for requests - provides compile-time validation.
*/
-export type PropertyDataType = PropertyDataTypeOneOf | PropertyDataTypeOneOfThree | PropertyDataTypeOneOfFive | PropertyDataTypeOneOfSeven | PropertyDataTypeOneOfNine | PropertyDataTypeOneOfOneone | PropertyDataTypeOneOfOnethree | PropertyDataTypeOneOfOnesix;
+export type PropertyDataType =
+ | PropertyDataTypeOneOf
+ | PropertyDataTypeOneOfThree
+ | PropertyDataTypeOneOfFive
+ | PropertyDataTypeOneOfSeven
+ | PropertyDataTypeOneOfNine
+ | PropertyDataTypeOneOfOneone
+ | PropertyDataTypeOneOfOnethree
+ | PropertyDataTypeOneOfOnesix;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfFiveType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfFiveType.ts
index 944e62b965..14636d3ece 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfFiveType = typeof PropertyDataTypeOneOfFiveType[keyof typeof PropertyDataTypeOneOfFiveType];
-
+export type PropertyDataTypeOneOfFiveType =
+ (typeof PropertyDataTypeOneOfFiveType)[keyof typeof PropertyDataTypeOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNine.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNine.ts
index fdd2677378..3f4874575b 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNine.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNine.ts
@@ -4,8 +4,9 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { SelectNumberOption } from './selectNumberOption';
+
import type { PropertyDataTypeOneOfNineType } from './propertyDataTypeOneOfNineType';
+import type { SelectNumberOption } from './selectNumberOption';
/**
* Select property with numeric options.
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNineType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNineType.ts
index 6ed729b2c4..d1b28d08e3 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNineType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfNineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfNineType = typeof PropertyDataTypeOneOfNineType[keyof typeof PropertyDataTypeOneOfNineType];
-
+export type PropertyDataTypeOneOfNineType =
+ (typeof PropertyDataTypeOneOfNineType)[keyof typeof PropertyDataTypeOneOfNineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfNineType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneone.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneone.ts
index e6bfef1d1d..3f45709c26 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneone.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneone.ts
@@ -4,8 +4,9 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { SelectStringOption } from './selectStringOption';
+
import type { PropertyDataTypeOneOfOneoneType } from './propertyDataTypeOneOfOneoneType';
+import type { SelectStringOption } from './selectStringOption';
/**
* Select property with string options.
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneoneType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneoneType.ts
index ba7493deac..62ac1e9f1d 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneoneType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOneoneType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfOneoneType = typeof PropertyDataTypeOneOfOneoneType[keyof typeof PropertyDataTypeOneOfOneoneType];
-
+export type PropertyDataTypeOneOfOneoneType =
+ (typeof PropertyDataTypeOneOfOneoneType)[keyof typeof PropertyDataTypeOneOfOneoneType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfOneoneType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnesixType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnesixType.ts
index 3bbf4c52e4..2fac1cbc02 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnesixType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnesixType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfOnesixType = typeof PropertyDataTypeOneOfOnesixType[keyof typeof PropertyDataTypeOneOfOnesixType];
-
+export type PropertyDataTypeOneOfOnesixType =
+ (typeof PropertyDataTypeOneOfOnesixType)[keyof typeof PropertyDataTypeOneOfOnesixType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfOnesixType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnethreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnethreeType.ts
index 935e2a9e7a..941b2f08c6 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnethreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfOnethreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfOnethreeType = typeof PropertyDataTypeOneOfOnethreeType[keyof typeof PropertyDataTypeOneOfOnethreeType];
-
+export type PropertyDataTypeOneOfOnethreeType =
+ (typeof PropertyDataTypeOneOfOnethreeType)[keyof typeof PropertyDataTypeOneOfOnethreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfOnethreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfSevenType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfSevenType.ts
index 1c28086298..74792bbdc5 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfSevenType = typeof PropertyDataTypeOneOfSevenType[keyof typeof PropertyDataTypeOneOfSevenType];
-
+export type PropertyDataTypeOneOfSevenType =
+ (typeof PropertyDataTypeOneOfSevenType)[keyof typeof PropertyDataTypeOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfThreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfThreeType.ts
index e52bc51de2..98c3350f03 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfThreeType = typeof PropertyDataTypeOneOfThreeType[keyof typeof PropertyDataTypeOneOfThreeType];
-
+export type PropertyDataTypeOneOfThreeType =
+ (typeof PropertyDataTypeOneOfThreeType)[keyof typeof PropertyDataTypeOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfType.ts
index c5b311b2f8..72a67cd3ce 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDataTypeOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyDataTypeOneOfType = typeof PropertyDataTypeOneOfType[keyof typeof PropertyDataTypeOneOfType];
-
+export type PropertyDataTypeOneOfType =
+ (typeof PropertyDataTypeOneOfType)[keyof typeof PropertyDataTypeOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyDataTypeOneOfType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts
index af8e6445a3..493fbebd52 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { DataType } from './dataType';
-import type { PropertyOwner } from './propertyOwner';
import type { PropertyDefinitionSpecificEntityType } from './propertyDefinitionSpecificEntityType';
+import type { PropertyOwner } from './propertyOwner';
/**
* Property definition model (service representation).
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinitionResponse.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinitionResponse.ts
index dd12905f63..043de002b4 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinitionResponse.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinitionResponse.ts
@@ -10,4 +10,6 @@ import type { PropertyDefinitionWithOptions } from './propertyDefinitionWithOpti
/**
* Response for property definition with optional property options
*/
-export type PropertyDefinitionResponse = PropertyDefinition | PropertyDefinitionWithOptions;
+export type PropertyDefinitionResponse =
+ | PropertyDefinition
+ | PropertyDefinitionWithOptions;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValue.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValue.ts
index e04a31ff36..8d32b25acd 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValue.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValue.ts
@@ -10,4 +10,6 @@ import type { PropertyOptionValueOneOfThree } from './propertyOptionValueOneOfTh
/**
* The value of a property option - either a string or a number.
*/
-export type PropertyOptionValue = PropertyOptionValueOneOf | PropertyOptionValueOneOfThree;
+export type PropertyOptionValue =
+ | PropertyOptionValueOneOf
+ | PropertyOptionValueOneOfThree;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfThreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfThreeType.ts
index 29c2552fec..efed3d08cb 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOptionValueOneOfThreeType = typeof PropertyOptionValueOneOfThreeType[keyof typeof PropertyOptionValueOneOfThreeType];
-
+export type PropertyOptionValueOneOfThreeType =
+ (typeof PropertyOptionValueOneOfThreeType)[keyof typeof PropertyOptionValueOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOptionValueOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfType.ts
index a32a199a6c..f7b9c7704a 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOptionValueOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOptionValueOneOfType = typeof PropertyOptionValueOneOfType[keyof typeof PropertyOptionValueOneOfType];
-
+export type PropertyOptionValueOneOfType =
+ (typeof PropertyOptionValueOneOfType)[keyof typeof PropertyOptionValueOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOptionValueOneOfType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts
index 6eb86c2968..4bc9e426ec 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts
@@ -5,11 +5,15 @@
* OpenAPI spec version: 0.1.0
*/
import type { PropertyOwnerOneOf } from './propertyOwnerOneOf';
-import type { PropertyOwnerOneOfThree } from './propertyOwnerOneOfThree';
import type { PropertyOwnerOneOfFive } from './propertyOwnerOneOfFive';
import type { PropertyOwnerOneOfSeven } from './propertyOwnerOneOfSeven';
+import type { PropertyOwnerOneOfThree } from './propertyOwnerOneOfThree';
/**
* Defines who owns a property - user-scoped, org-scoped, system, or both user and org.
*/
-export type PropertyOwner = PropertyOwnerOneOf | PropertyOwnerOneOfThree | PropertyOwnerOneOfFive | PropertyOwnerOneOfSeven;
+export type PropertyOwner =
+ | PropertyOwnerOneOf
+ | PropertyOwnerOneOfThree
+ | PropertyOwnerOneOfFive
+ | PropertyOwnerOneOfSeven;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfFiveScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfFiveScope.ts
index 574e8e780c..650539ac67 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfFiveScope.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfFiveScope.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOwnerOneOfFiveScope = typeof PropertyOwnerOneOfFiveScope[keyof typeof PropertyOwnerOneOfFiveScope];
-
+export type PropertyOwnerOneOfFiveScope =
+ (typeof PropertyOwnerOneOfFiveScope)[keyof typeof PropertyOwnerOneOfFiveScope];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOwnerOneOfFiveScope = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfScope.ts
index 41c0f0ce6a..72da63c94d 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfScope.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfScope.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOwnerOneOfScope = typeof PropertyOwnerOneOfScope[keyof typeof PropertyOwnerOneOfScope];
-
+export type PropertyOwnerOneOfScope =
+ (typeof PropertyOwnerOneOfScope)[keyof typeof PropertyOwnerOneOfScope];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOwnerOneOfScope = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts
index 0ea9037965..341029acf4 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOwnerOneOfSevenScope = typeof PropertyOwnerOneOfSevenScope[keyof typeof PropertyOwnerOneOfSevenScope];
-
+export type PropertyOwnerOneOfSevenScope =
+ (typeof PropertyOwnerOneOfSevenScope)[keyof typeof PropertyOwnerOneOfSevenScope];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOwnerOneOfSevenScope = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfThreeScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfThreeScope.ts
index 528df2d5b4..c14dc4d13c 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfThreeScope.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfThreeScope.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyOwnerOneOfThreeScope = typeof PropertyOwnerOneOfThreeScope[keyof typeof PropertyOwnerOneOfThreeScope];
-
+export type PropertyOwnerOneOfThreeScope =
+ (typeof PropertyOwnerOneOfThreeScope)[keyof typeof PropertyOwnerOneOfThreeScope];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyOwnerOneOfThreeScope = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts
index ae4a579d19..08f4dcb108 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts
@@ -8,8 +8,7 @@
/**
* Scope filter for property queries
*/
-export type PropertyScope = typeof PropertyScope[keyof typeof PropertyScope];
-
+export type PropertyScope = (typeof PropertyScope)[keyof typeof PropertyScope];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyScope = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValue.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValue.ts
index e33e1524aa..5f4263c99d 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValue.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValue.ts
@@ -5,12 +5,12 @@
* OpenAPI spec version: 0.1.0
*/
import type { PropertyValueOneOf } from './propertyValueOneOf';
-import type { PropertyValueOneOfThree } from './propertyValueOneOfThree';
import type { PropertyValueOneOfFive } from './propertyValueOneOfFive';
-import type { PropertyValueOneOfSeven } from './propertyValueOneOfSeven';
import type { PropertyValueOneOfNine } from './propertyValueOneOfNine';
import type { PropertyValueOneOfOneone } from './propertyValueOneOfOneone';
import type { PropertyValueOneOfOnethree } from './propertyValueOneOfOnethree';
+import type { PropertyValueOneOfSeven } from './propertyValueOneOfSeven';
+import type { PropertyValueOneOfThree } from './propertyValueOneOfThree';
/**
* Property value (service representation).
@@ -18,4 +18,11 @@ import type { PropertyValueOneOfOnethree } from './propertyValueOneOfOnethree';
Represents the actual value stored for an entity property.
This is serialized to/from JSONB in the database.
*/
-export type PropertyValue = PropertyValueOneOf | PropertyValueOneOfThree | PropertyValueOneOfFive | PropertyValueOneOfSeven | PropertyValueOneOfNine | PropertyValueOneOfOneone | PropertyValueOneOfOnethree;
+export type PropertyValue =
+ | PropertyValueOneOf
+ | PropertyValueOneOfThree
+ | PropertyValueOneOfFive
+ | PropertyValueOneOfSeven
+ | PropertyValueOneOfNine
+ | PropertyValueOneOfOneone
+ | PropertyValueOneOfOnethree;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfFiveType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfFiveType.ts
index 00fc332f52..661203f259 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfFiveType = typeof PropertyValueOneOfFiveType[keyof typeof PropertyValueOneOfFiveType];
-
+export type PropertyValueOneOfFiveType =
+ (typeof PropertyValueOneOfFiveType)[keyof typeof PropertyValueOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfNineType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfNineType.ts
index 8f9d9346a3..5e1daba603 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfNineType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfNineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfNineType = typeof PropertyValueOneOfNineType[keyof typeof PropertyValueOneOfNineType];
-
+export type PropertyValueOneOfNineType =
+ (typeof PropertyValueOneOfNineType)[keyof typeof PropertyValueOneOfNineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfNineType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneone.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneone.ts
index cd45ccc14f..2cd533f811 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneone.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneone.ts
@@ -4,8 +4,9 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import type { PropertyValueOneOfOneoneType } from './propertyValueOneOfOneoneType';
+
import type { EntityReference } from './entityReference';
+import type { PropertyValueOneOfOneoneType } from './propertyValueOneOfOneoneType';
/**
* Entity reference(s) - always an array (check is_multi_select to determine if single or multi)
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneoneType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneoneType.ts
index fa3c3f3519..56bc11fbd9 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneoneType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOneoneType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfOneoneType = typeof PropertyValueOneOfOneoneType[keyof typeof PropertyValueOneOfOneoneType];
-
+export type PropertyValueOneOfOneoneType =
+ (typeof PropertyValueOneOfOneoneType)[keyof typeof PropertyValueOneOfOneoneType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfOneoneType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOnethreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOnethreeType.ts
index 2326f8d563..98d4e1f062 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOnethreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfOnethreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfOnethreeType = typeof PropertyValueOneOfOnethreeType[keyof typeof PropertyValueOneOfOnethreeType];
-
+export type PropertyValueOneOfOnethreeType =
+ (typeof PropertyValueOneOfOnethreeType)[keyof typeof PropertyValueOneOfOnethreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfOnethreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfSevenType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfSevenType.ts
index 4398d8aafa..d46cc75921 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfSevenType = typeof PropertyValueOneOfSevenType[keyof typeof PropertyValueOneOfSevenType];
-
+export type PropertyValueOneOfSevenType =
+ (typeof PropertyValueOneOfSevenType)[keyof typeof PropertyValueOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfThreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfThreeType.ts
index 56add2bbce..19cd7c3156 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfThreeType = typeof PropertyValueOneOfThreeType[keyof typeof PropertyValueOneOfThreeType];
-
+export type PropertyValueOneOfThreeType =
+ (typeof PropertyValueOneOfThreeType)[keyof typeof PropertyValueOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfType.ts
index f237eb9114..784162e1cb 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyValueOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PropertyValueOneOfType = typeof PropertyValueOneOfType[keyof typeof PropertyValueOneOfType];
-
+export type PropertyValueOneOfType =
+ (typeof PropertyValueOneOfType)[keyof typeof PropertyValueOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PropertyValueOneOfType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValue.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValue.ts
index d4f1c19232..8b5a8a3385 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValue.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValue.ts
@@ -5,17 +5,27 @@
* OpenAPI spec version: 0.1.0
*/
import type { SetPropertyValueOneOf } from './setPropertyValueOneOf';
-import type { SetPropertyValueOneOfThree } from './setPropertyValueOneOfThree';
import type { SetPropertyValueOneOfFive } from './setPropertyValueOneOfFive';
-import type { SetPropertyValueOneOfSeven } from './setPropertyValueOneOfSeven';
import type { SetPropertyValueOneOfNine } from './setPropertyValueOneOfNine';
-import type { SetPropertyValueOneOfOneone } from './setPropertyValueOneOfOneone';
-import type { SetPropertyValueOneOfOnethree } from './setPropertyValueOneOfOnethree';
import type { SetPropertyValueOneOfOnefive } from './setPropertyValueOneOfOnefive';
-import type { SetPropertyValueOneOfOneseven } from './setPropertyValueOneOfOneseven';
import type { SetPropertyValueOneOfOnenine } from './setPropertyValueOneOfOnenine';
+import type { SetPropertyValueOneOfOneone } from './setPropertyValueOneOfOneone';
+import type { SetPropertyValueOneOfOneseven } from './setPropertyValueOneOfOneseven';
+import type { SetPropertyValueOneOfOnethree } from './setPropertyValueOneOfOnethree';
+import type { SetPropertyValueOneOfSeven } from './setPropertyValueOneOfSeven';
+import type { SetPropertyValueOneOfThree } from './setPropertyValueOneOfThree';
/**
* Type-safe enum for setting entity property values - provides compile-time validation.
*/
-export type SetPropertyValue = SetPropertyValueOneOf | SetPropertyValueOneOfThree | SetPropertyValueOneOfFive | SetPropertyValueOneOfSeven | SetPropertyValueOneOfNine | SetPropertyValueOneOfOneone | SetPropertyValueOneOfOnethree | SetPropertyValueOneOfOnefive | SetPropertyValueOneOfOneseven | SetPropertyValueOneOfOnenine;
+export type SetPropertyValue =
+ | SetPropertyValueOneOf
+ | SetPropertyValueOneOfThree
+ | SetPropertyValueOneOfFive
+ | SetPropertyValueOneOfSeven
+ | SetPropertyValueOneOfNine
+ | SetPropertyValueOneOfOneone
+ | SetPropertyValueOneOfOnethree
+ | SetPropertyValueOneOfOnefive
+ | SetPropertyValueOneOfOneseven
+ | SetPropertyValueOneOfOnenine;
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfFiveType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfFiveType.ts
index 5a754fa0c0..f4ad423ddb 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfFiveType = typeof SetPropertyValueOneOfFiveType[keyof typeof SetPropertyValueOneOfFiveType];
-
+export type SetPropertyValueOneOfFiveType =
+ (typeof SetPropertyValueOneOfFiveType)[keyof typeof SetPropertyValueOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfNineType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfNineType.ts
index b2fbfa8570..ed2ad0b4be 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfNineType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfNineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfNineType = typeof SetPropertyValueOneOfNineType[keyof typeof SetPropertyValueOneOfNineType];
-
+export type SetPropertyValueOneOfNineType =
+ (typeof SetPropertyValueOneOfNineType)[keyof typeof SetPropertyValueOneOfNineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfNineType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnefiveType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnefiveType.ts
index e9b38ff37e..8c653ab2b3 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnefiveType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnefiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnefiveType = typeof SetPropertyValueOneOfOnefiveType[keyof typeof SetPropertyValueOneOfOnefiveType];
-
+export type SetPropertyValueOneOfOnefiveType =
+ (typeof SetPropertyValueOneOfOnefiveType)[keyof typeof SetPropertyValueOneOfOnefiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnefiveType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnenineType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnenineType.ts
index f1cb32c9ee..99e148fd26 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnenineType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnenineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnenineType = typeof SetPropertyValueOneOfOnenineType[keyof typeof SetPropertyValueOneOfOnenineType];
-
+export type SetPropertyValueOneOfOnenineType =
+ (typeof SetPropertyValueOneOfOnenineType)[keyof typeof SetPropertyValueOneOfOnenineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnenineType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOneoneType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOneoneType.ts
index f0d7b32f6f..c130afc3a1 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOneoneType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOneoneType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOneoneType = typeof SetPropertyValueOneOfOneoneType[keyof typeof SetPropertyValueOneOfOneoneType];
-
+export type SetPropertyValueOneOfOneoneType =
+ (typeof SetPropertyValueOneOfOneoneType)[keyof typeof SetPropertyValueOneOfOneoneType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOneoneType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnesevenType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnesevenType.ts
index 816fe7de15..8c1dc7fbaf 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnesevenType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnesevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnesevenType = typeof SetPropertyValueOneOfOnesevenType[keyof typeof SetPropertyValueOneOfOnesevenType];
-
+export type SetPropertyValueOneOfOnesevenType =
+ (typeof SetPropertyValueOneOfOnesevenType)[keyof typeof SetPropertyValueOneOfOnesevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnesevenType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnethreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnethreeType.ts
index 243959971a..8b97ce17f2 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnethreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfOnethreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnethreeType = typeof SetPropertyValueOneOfOnethreeType[keyof typeof SetPropertyValueOneOfOnethreeType];
-
+export type SetPropertyValueOneOfOnethreeType =
+ (typeof SetPropertyValueOneOfOnethreeType)[keyof typeof SetPropertyValueOneOfOnethreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnethreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfSevenType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfSevenType.ts
index 429a6e11f8..e1334f42b3 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfSevenType = typeof SetPropertyValueOneOfSevenType[keyof typeof SetPropertyValueOneOfSevenType];
-
+export type SetPropertyValueOneOfSevenType =
+ (typeof SetPropertyValueOneOfSevenType)[keyof typeof SetPropertyValueOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfThreeType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfThreeType.ts
index 30fa23afa3..d5a39cdb43 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfThreeType = typeof SetPropertyValueOneOfThreeType[keyof typeof SetPropertyValueOneOfThreeType];
-
+export type SetPropertyValueOneOfThreeType =
+ (typeof SetPropertyValueOneOfThreeType)[keyof typeof SetPropertyValueOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfType.ts b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfType.ts
index bdd5398733..dd90c94dc3 100644
--- a/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfType.ts
+++ b/js/app/packages/service-clients/service-properties/generated/schemas/setPropertyValueOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfType = typeof SetPropertyValueOneOfType[keyof typeof SetPropertyValueOneOfType];
-
+export type SetPropertyValueOneOfType =
+ (typeof SetPropertyValueOneOfType)[keyof typeof SetPropertyValueOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfType = {
diff --git a/js/app/packages/service-clients/service-properties/generated/zod.ts b/js/app/packages/service-clients/service-properties/generated/zod.ts
index b9cdead5a9..72d544567b 100644
--- a/js/app/packages/service-clients/service-properties/generated/zod.ts
+++ b/js/app/packages/service-clients/service-properties/generated/zod.ts
@@ -4,440 +4,1277 @@
* properties_service
* OpenAPI spec version: 0.1.0
*/
-import {
- z as zod
-} from 'zod';
-
+import { z as zod } from 'zod';
/**
* @summary List property definitions with flexible filtering
*/
export const listPropertiesQueryParams = zod.object({
- "scope": zod.enum(['user', 'org', 'system', 'all']).describe('Filter by scope: \'user\', \'org\', \'system\', or \'all\''),
- "include_options": zod.boolean().optional().describe('Whether to include property options in the response'),
- "for_entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).optional().describe('Filter properties applicable to a specific entity type')
-})
-
-export const listPropertiesResponseItem = zod.union([zod.object({
- "created_at": zod.string().datetime({}),
- "data_type": zod.enum(['BOOLEAN', 'DATE', 'NUMBER', 'STRING', 'SELECT_NUMBER', 'SELECT_STRING', 'ENTITY', 'LINK']).describe('Data type for property values, determining storage and validation.'),
- "display_name": zod.string(),
- "id": zod.string().uuid(),
- "is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),
- "is_multi_select": zod.boolean(),
- "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),
- "owner": zod.union([zod.object({
- "scope": zod.enum(['user']),
- "user_id": zod.string()
-}).describe('User-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['organization'])
-}).describe('Organization-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['user_and_organization']),
- "user_id": zod.string()
-}).describe('Both user and organization-scoped'),zod.object({
- "scope": zod.enum(['system'])
-}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),
- "specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),
- "updated_at": zod.string().datetime({})
-}).describe('Property definition model (service representation).'),zod.object({
- "definition": zod.object({
- "created_at": zod.string().datetime({}),
- "data_type": zod.enum(['BOOLEAN', 'DATE', 'NUMBER', 'STRING', 'SELECT_NUMBER', 'SELECT_STRING', 'ENTITY', 'LINK']).describe('Data type for property values, determining storage and validation.'),
- "display_name": zod.string(),
- "id": zod.string().uuid(),
- "is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),
- "is_multi_select": zod.boolean(),
- "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),
- "owner": zod.union([zod.object({
- "scope": zod.enum(['user']),
- "user_id": zod.string()
-}).describe('User-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['organization'])
-}).describe('Organization-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['user_and_organization']),
- "user_id": zod.string()
-}).describe('Both user and organization-scoped'),zod.object({
- "scope": zod.enum(['system'])
-}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),
- "specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),
- "updated_at": zod.string().datetime({})
-}).describe('Property definition model (service representation).'),
- "property_options": zod.array(zod.object({
- "created_at": zod.string().datetime({}),
- "display_order": zod.number(),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({}),
- "value": zod.union([zod.object({
- "type": zod.enum(['string']),
- "value": zod.string().describe('String value for SelectString properties')
-}).describe('String value for SelectString properties'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number().describe('Number value for SelectNumber properties')
-}).describe('Number value for SelectNumber properties')]).describe('The value of a property option - either a string or a number.')
-}).describe('A selectable option for select-type properties (service representation).'))
-}).describe('Property definition with its associated options (service representation).')]).describe('Response for property definition with optional property options')
-export const listPropertiesResponse = zod.array(listPropertiesResponseItem)
+ scope: zod
+ .enum(['user', 'org', 'system', 'all'])
+ .describe("Filter by scope: 'user', 'org', 'system', or 'all'"),
+ include_options: zod
+ .boolean()
+ .optional()
+ .describe('Whether to include property options in the response'),
+ for_entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .optional()
+ .describe('Filter properties applicable to a specific entity type'),
+});
+export const listPropertiesResponseItem = zod
+ .union([
+ zod
+ .object({
+ created_at: zod.string().datetime({}),
+ data_type: zod
+ .enum([
+ 'BOOLEAN',
+ 'DATE',
+ 'NUMBER',
+ 'STRING',
+ 'SELECT_NUMBER',
+ 'SELECT_STRING',
+ 'ENTITY',
+ 'LINK',
+ ])
+ .describe(
+ 'Data type for property values, determining storage and validation.'
+ ),
+ display_name: zod.string(),
+ id: zod.string().uuid(),
+ is_metadata: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'
+ ),
+ is_multi_select: zod.boolean(),
+ is_system: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system property (stored in DB).'
+ ),
+ owner: zod
+ .union([
+ zod
+ .object({
+ scope: zod.enum(['user']),
+ user_id: zod.string(),
+ })
+ .describe('User-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['organization']),
+ })
+ .describe('Organization-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['user_and_organization']),
+ user_id: zod.string(),
+ })
+ .describe('Both user and organization-scoped'),
+ zod
+ .object({
+ scope: zod.enum(['system']),
+ })
+ .describe('System-owned property (no user or org owner)'),
+ ])
+ .describe(
+ 'Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'
+ ),
+ specific_entity_type: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ ])
+ .optional(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe('Property definition model (service representation).'),
+ zod
+ .object({
+ definition: zod
+ .object({
+ created_at: zod.string().datetime({}),
+ data_type: zod
+ .enum([
+ 'BOOLEAN',
+ 'DATE',
+ 'NUMBER',
+ 'STRING',
+ 'SELECT_NUMBER',
+ 'SELECT_STRING',
+ 'ENTITY',
+ 'LINK',
+ ])
+ .describe(
+ 'Data type for property values, determining storage and validation.'
+ ),
+ display_name: zod.string(),
+ id: zod.string().uuid(),
+ is_metadata: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'
+ ),
+ is_multi_select: zod.boolean(),
+ is_system: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system property (stored in DB).'
+ ),
+ owner: zod
+ .union([
+ zod
+ .object({
+ scope: zod.enum(['user']),
+ user_id: zod.string(),
+ })
+ .describe('User-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['organization']),
+ })
+ .describe('Organization-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['user_and_organization']),
+ user_id: zod.string(),
+ })
+ .describe('Both user and organization-scoped'),
+ zod
+ .object({
+ scope: zod.enum(['system']),
+ })
+ .describe('System-owned property (no user or org owner)'),
+ ])
+ .describe(
+ 'Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'
+ ),
+ specific_entity_type: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ ])
+ .optional(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe('Property definition model (service representation).'),
+ property_options: zod.array(
+ zod
+ .object({
+ created_at: zod.string().datetime({}),
+ display_order: zod.number(),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ value: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod
+ .string()
+ .describe('String value for SelectString properties'),
+ })
+ .describe('String value for SelectString properties'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod
+ .number()
+ .describe('Number value for SelectNumber properties'),
+ })
+ .describe('Number value for SelectNumber properties'),
+ ])
+ .describe(
+ 'The value of a property option - either a string or a number.'
+ ),
+ })
+ .describe(
+ 'A selectable option for select-type properties (service representation).'
+ )
+ ),
+ })
+ .describe(
+ 'Property definition with its associated options (service representation).'
+ ),
+ ])
+ .describe('Response for property definition with optional property options');
+export const listPropertiesResponse = zod.array(listPropertiesResponseItem);
/**
* @summary Create a new property definition
*/
-export const createPropertyDefinitionBody = zod.union([zod.object({
- "scope": zod.enum(['user']),
- "user_id": zod.string()
-}).describe('User-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['organization'])
-}).describe('Organization-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['user_and_organization']),
- "user_id": zod.string()
-}).describe('Both user and organization-scoped'),zod.object({
- "scope": zod.enum(['system'])
-}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.').and(zod.object({
- "data_type": zod.union([zod.object({
- "type": zod.enum(['boolean'])
-}).describe('Boolean true/false values.'),zod.object({
- "type": zod.enum(['date'])
-}).describe('Date and time values.'),zod.object({
- "type": zod.enum(['number'])
-}).describe('Numeric values.'),zod.object({
- "type": zod.enum(['string'])
-}).describe('String/text values.'),zod.object({
- "multi": zod.boolean(),
- "options": zod.array(zod.object({
- "display_order": zod.number(),
- "value": zod.number()
-}).describe('Option for select number properties in requests.')),
- "type": zod.enum(['select_number'])
-}).describe('Select property with numeric options.'),zod.object({
- "multi": zod.boolean(),
- "options": zod.array(zod.object({
- "display_order": zod.number(),
- "value": zod.string()
-}).describe('Option for select-type properties in requests.')),
- "type": zod.enum(['select_string'])
-}).describe('Select property with string options.'),zod.object({
- "multi": zod.boolean(),
- "specific_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),
- "type": zod.enum(['entity'])
-}).describe('Entity reference property.'),zod.object({
- "multi": zod.boolean(),
- "type": zod.enum(['link'])
-}).describe('Link property.')]).describe('Data type with embedded options for requests - provides compile-time validation.'),
- "display_name": zod.string()
-})).describe('Request to create a new property definition.')
-
+export const createPropertyDefinitionBody = zod
+ .union([
+ zod
+ .object({
+ scope: zod.enum(['user']),
+ user_id: zod.string(),
+ })
+ .describe('User-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['organization']),
+ })
+ .describe('Organization-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['user_and_organization']),
+ user_id: zod.string(),
+ })
+ .describe('Both user and organization-scoped'),
+ zod
+ .object({
+ scope: zod.enum(['system']),
+ })
+ .describe('System-owned property (no user or org owner)'),
+ ])
+ .describe(
+ 'Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'
+ )
+ .and(
+ zod.object({
+ data_type: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['boolean']),
+ })
+ .describe('Boolean true/false values.'),
+ zod
+ .object({
+ type: zod.enum(['date']),
+ })
+ .describe('Date and time values.'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ })
+ .describe('Numeric values.'),
+ zod
+ .object({
+ type: zod.enum(['string']),
+ })
+ .describe('String/text values.'),
+ zod
+ .object({
+ multi: zod.boolean(),
+ options: zod.array(
+ zod
+ .object({
+ display_order: zod.number(),
+ value: zod.number(),
+ })
+ .describe('Option for select number properties in requests.')
+ ),
+ type: zod.enum(['select_number']),
+ })
+ .describe('Select property with numeric options.'),
+ zod
+ .object({
+ multi: zod.boolean(),
+ options: zod.array(
+ zod
+ .object({
+ display_order: zod.number(),
+ value: zod.string(),
+ })
+ .describe('Option for select-type properties in requests.')
+ ),
+ type: zod.enum(['select_string']),
+ })
+ .describe('Select property with string options.'),
+ zod
+ .object({
+ multi: zod.boolean(),
+ specific_type: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ ])
+ .optional(),
+ type: zod.enum(['entity']),
+ })
+ .describe('Entity reference property.'),
+ zod
+ .object({
+ multi: zod.boolean(),
+ type: zod.enum(['link']),
+ })
+ .describe('Link property.'),
+ ])
+ .describe(
+ 'Data type with embedded options for requests - provides compile-time validation.'
+ ),
+ display_name: zod.string(),
+ })
+ )
+ .describe('Request to create a new property definition.');
/**
* @summary Delete a property definition
*/
export const deletePropertyDefinitionParams = zod.object({
- "definition_id": zod.string().uuid().describe('Property definition ID')
-})
-
+ definition_id: zod.string().uuid().describe('Property definition ID'),
+});
/**
* @summary Get all options for a property (for dropdowns)
*/
export const getPropertyOptionsParams = zod.object({
- "definition_id": zod.string().uuid().describe('Property definition ID')
-})
-
-export const getPropertyOptionsResponseItem = zod.object({
- "created_at": zod.string().datetime({}),
- "display_order": zod.number(),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({}),
- "value": zod.union([zod.object({
- "type": zod.enum(['string']),
- "value": zod.string().describe('String value for SelectString properties')
-}).describe('String value for SelectString properties'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number().describe('Number value for SelectNumber properties')
-}).describe('Number value for SelectNumber properties')]).describe('The value of a property option - either a string or a number.')
-}).describe('A selectable option for select-type properties (service representation).')
-export const getPropertyOptionsResponse = zod.array(getPropertyOptionsResponseItem)
+ definition_id: zod.string().uuid().describe('Property definition ID'),
+});
+export const getPropertyOptionsResponseItem = zod
+ .object({
+ created_at: zod.string().datetime({}),
+ display_order: zod.number(),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ value: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod
+ .string()
+ .describe('String value for SelectString properties'),
+ })
+ .describe('String value for SelectString properties'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod
+ .number()
+ .describe('Number value for SelectNumber properties'),
+ })
+ .describe('Number value for SelectNumber properties'),
+ ])
+ .describe(
+ 'The value of a property option - either a string or a number.'
+ ),
+ })
+ .describe(
+ 'A selectable option for select-type properties (service representation).'
+ );
+export const getPropertyOptionsResponse = zod.array(
+ getPropertyOptionsResponseItem
+);
/**
* @summary Add a new option to a property dropdown
*/
export const addPropertyOptionParams = zod.object({
- "definition_id": zod.string().uuid().describe('Property definition ID')
-})
-
-export const addPropertyOptionBody = zod.union([zod.object({
- "option": zod.object({
- "display_order": zod.number(),
- "value": zod.string()
-}).describe('Type-safe request to add a string option to a SelectString property.'),
- "type": zod.enum(['select_string'])
-}).describe('Add a string option to a SelectString property'),zod.object({
- "option": zod.object({
- "display_order": zod.number(),
- "value": zod.number()
-}).describe('Type-safe request to add a number option to a SelectNumber property.'),
- "type": zod.enum(['select_number'])
-}).describe('Add a number option to a SelectNumber property')]).describe('Enum for type-safe property option addition requests.')
+ definition_id: zod.string().uuid().describe('Property definition ID'),
+});
+export const addPropertyOptionBody = zod
+ .union([
+ zod
+ .object({
+ option: zod
+ .object({
+ display_order: zod.number(),
+ value: zod.string(),
+ })
+ .describe(
+ 'Type-safe request to add a string option to a SelectString property.'
+ ),
+ type: zod.enum(['select_string']),
+ })
+ .describe('Add a string option to a SelectString property'),
+ zod
+ .object({
+ option: zod
+ .object({
+ display_order: zod.number(),
+ value: zod.number(),
+ })
+ .describe(
+ 'Type-safe request to add a number option to a SelectNumber property.'
+ ),
+ type: zod.enum(['select_number']),
+ })
+ .describe('Add a number option to a SelectNumber property'),
+ ])
+ .describe('Enum for type-safe property option addition requests.');
/**
* @summary Delete a property option
*/
export const deletePropertyOptionParams = zod.object({
- "definition_id": zod.string().uuid().describe('Property definition ID'),
- "option_id": zod.string().uuid().describe('Property option ID')
-})
-
+ definition_id: zod.string().uuid().describe('Property definition ID'),
+ option_id: zod.string().uuid().describe('Property option ID'),
+});
/**
* Only returns properties for entities the user has view permission for.
Entities without permission are silently omitted from the response.
* @summary Get properties for multiple entities in bulk (public endpoint with user auth)
*/
-export const getBulkEntityPropertiesBody = zod.object({
- "entities": zod.array(zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.')).describe('Array of entity references (entity_id and entity_type pairs)'),
- "property_ids": zod.array(zod.string().uuid()).nullish().describe('Optional: only return properties with these definition IDs. If empty/None, returns all.')
-}).describe('Request for getting properties for multiple entities in bulk')
-
-export const getBulkEntityPropertiesResponse = zod.record(zod.string(), zod.object({
- "entity_id": zod.string(),
- "properties": zod.array(zod.object({
- "definition": zod.object({
- "created_at": zod.string().datetime({}),
- "data_type": zod.enum(['BOOLEAN', 'DATE', 'NUMBER', 'STRING', 'SELECT_NUMBER', 'SELECT_STRING', 'ENTITY', 'LINK']).describe('Data type for property values, determining storage and validation.'),
- "display_name": zod.string(),
- "id": zod.string().uuid(),
- "is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),
- "is_multi_select": zod.boolean(),
- "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),
- "owner": zod.union([zod.object({
- "scope": zod.enum(['user']),
- "user_id": zod.string()
-}).describe('User-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['organization'])
-}).describe('Organization-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['user_and_organization']),
- "user_id": zod.string()
-}).describe('Both user and organization-scoped'),zod.object({
- "scope": zod.enum(['system'])
-}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),
- "specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),
- "updated_at": zod.string().datetime({})
-}).describe('Property definition model (service representation).'),
- "options": zod.array(zod.object({
- "created_at": zod.string().datetime({}),
- "display_order": zod.number(),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({}),
- "value": zod.union([zod.object({
- "type": zod.enum(['string']),
- "value": zod.string().describe('String value for SelectString properties')
-}).describe('String value for SelectString properties'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number().describe('Number value for SelectNumber properties')
-}).describe('Number value for SelectNumber properties')]).describe('The value of a property option - either a string or a number.')
-}).describe('A selectable option for select-type properties (service representation).')).nullish(),
- "property": zod.object({
- "created_at": zod.string().datetime({}),
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({})
-}).describe('Assignment of a property definition to a specific entity (service representation).'),
- "value": zod.union([zod.null(),zod.union([zod.object({
- "type": zod.enum(['Boolean']),
- "value": zod.boolean().describe('Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}')
-}).describe('Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'),zod.object({
- "type": zod.enum(['Number']),
- "value": zod.number().describe('Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}')
-}).describe('Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'),zod.object({
- "type": zod.enum(['String']),
- "value": zod.string().describe('String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}')
-}).describe('String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'),zod.object({
- "type": zod.enum(['Date']),
- "value": zod.string().datetime({}).describe('Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}')
-}).describe('Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'),zod.object({
- "type": zod.enum(['SelectOption']),
- "value": zod.array(zod.string().uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)')
-}).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),zod.object({
- "type": zod.enum(['EntityReference']),
- "value": zod.array(zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.')).describe('Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)')
-}).describe('Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'),zod.object({
- "type": zod.enum(['Link']),
- "value": zod.array(zod.string()).describe('Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)')
-}).describe('Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)')]).describe('Property value (service representation).\n\nRepresents the actual value stored for an entity property.\nThis is serialized to/from JSONB in the database.')]).optional()
-}).describe('Entity property with its definition, value, and options (service representation).'))
-}).describe('Response for document/entity properties endpoint.'))
+export const getBulkEntityPropertiesBody = zod
+ .object({
+ entities: zod
+ .array(
+ zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe('Entity reference for entity-type property values.')
+ )
+ .describe('Array of entity references (entity_id and entity_type pairs)'),
+ property_ids: zod
+ .array(zod.string().uuid())
+ .optional()
+ .describe(
+ 'Optional: only return properties with these definition IDs. If empty, returns all.'
+ ),
+ })
+ .describe('Request for getting properties for multiple entities in bulk');
+export const getBulkEntityPropertiesResponse = zod.record(
+ zod.string(),
+ zod
+ .object({
+ entity_id: zod.string(),
+ properties: zod.array(
+ zod
+ .object({
+ definition: zod
+ .object({
+ created_at: zod.string().datetime({}),
+ data_type: zod
+ .enum([
+ 'BOOLEAN',
+ 'DATE',
+ 'NUMBER',
+ 'STRING',
+ 'SELECT_NUMBER',
+ 'SELECT_STRING',
+ 'ENTITY',
+ 'LINK',
+ ])
+ .describe(
+ 'Data type for property values, determining storage and validation.'
+ ),
+ display_name: zod.string(),
+ id: zod.string().uuid(),
+ is_metadata: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'
+ ),
+ is_multi_select: zod.boolean(),
+ is_system: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system property (stored in DB).'
+ ),
+ owner: zod
+ .union([
+ zod
+ .object({
+ scope: zod.enum(['user']),
+ user_id: zod.string(),
+ })
+ .describe('User-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['organization']),
+ })
+ .describe('Organization-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['user_and_organization']),
+ user_id: zod.string(),
+ })
+ .describe('Both user and organization-scoped'),
+ zod
+ .object({
+ scope: zod.enum(['system']),
+ })
+ .describe('System-owned property (no user or org owner)'),
+ ])
+ .describe(
+ 'Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'
+ ),
+ specific_entity_type: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ ])
+ .optional(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe('Property definition model (service representation).'),
+ options: zod
+ .array(
+ zod
+ .object({
+ created_at: zod.string().datetime({}),
+ display_order: zod.number(),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ value: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod
+ .string()
+ .describe(
+ 'String value for SelectString properties'
+ ),
+ })
+ .describe('String value for SelectString properties'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod
+ .number()
+ .describe(
+ 'Number value for SelectNumber properties'
+ ),
+ })
+ .describe('Number value for SelectNumber properties'),
+ ])
+ .describe(
+ 'The value of a property option - either a string or a number.'
+ ),
+ })
+ .describe(
+ 'A selectable option for select-type properties (service representation).'
+ )
+ )
+ .nullish(),
+ property: zod
+ .object({
+ created_at: zod.string().datetime({}),
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe(
+ 'Assignment of a property definition to a specific entity (service representation).'
+ ),
+ value: zod
+ .union([
+ zod.null(),
+ zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['Boolean']),
+ value: zod
+ .boolean()
+ .describe(
+ 'Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'
+ ),
+ })
+ .describe(
+ 'Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Number']),
+ value: zod
+ .number()
+ .describe(
+ 'Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'
+ ),
+ })
+ .describe(
+ 'Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['String']),
+ value: zod
+ .string()
+ .describe(
+ 'String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'
+ ),
+ })
+ .describe(
+ 'String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Date']),
+ value: zod
+ .string()
+ .datetime({})
+ .describe(
+ 'Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'
+ ),
+ })
+ .describe(
+ 'Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['SelectOption']),
+ value: zod
+ .array(zod.string().uuid())
+ .describe(
+ 'Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['EntityReference']),
+ value: zod
+ .array(
+ zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ )
+ )
+ .describe(
+ 'Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Link']),
+ value: zod
+ .array(zod.string())
+ .describe(
+ 'Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)'
+ ),
+ ])
+ .describe(
+ 'Property value (service representation).\n\nRepresents the actual value stored for an entity property.\nThis is serialized to/from JSONB in the database.'
+ ),
+ ])
+ .optional(),
+ })
+ .describe(
+ 'Entity property with its definition, value, and options (service representation).'
+ )
+ ),
+ })
+ .describe('Response for document/entity properties endpoint.')
+);
/**
* @summary Get all properties for an entity
*/
export const getEntityPropertiesParams = zod.object({
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Entity type (user, document, channel, project, thread)'),
- "entity_id": zod.string().describe('Entity ID')
-})
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe('Entity type (user, document, channel, project, thread)'),
+ entity_id: zod.string().describe('Entity ID'),
+});
export const getEntityPropertiesQueryParams = zod.object({
- "include_metadata": zod.boolean().optional().describe('Whether to include property metadata (default: false)')
-})
-
-export const getEntityPropertiesResponse = zod.object({
- "entity_id": zod.string(),
- "properties": zod.array(zod.object({
- "definition": zod.object({
- "created_at": zod.string().datetime({}),
- "data_type": zod.enum(['BOOLEAN', 'DATE', 'NUMBER', 'STRING', 'SELECT_NUMBER', 'SELECT_STRING', 'ENTITY', 'LINK']).describe('Data type for property values, determining storage and validation.'),
- "display_name": zod.string(),
- "id": zod.string().uuid(),
- "is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),
- "is_multi_select": zod.boolean(),
- "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),
- "owner": zod.union([zod.object({
- "scope": zod.enum(['user']),
- "user_id": zod.string()
-}).describe('User-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['organization'])
-}).describe('Organization-scoped property only'),zod.object({
- "organization_id": zod.number(),
- "scope": zod.enum(['user_and_organization']),
- "user_id": zod.string()
-}).describe('Both user and organization-scoped'),zod.object({
- "scope": zod.enum(['system'])
-}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),
- "specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),
- "updated_at": zod.string().datetime({})
-}).describe('Property definition model (service representation).'),
- "options": zod.array(zod.object({
- "created_at": zod.string().datetime({}),
- "display_order": zod.number(),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({}),
- "value": zod.union([zod.object({
- "type": zod.enum(['string']),
- "value": zod.string().describe('String value for SelectString properties')
-}).describe('String value for SelectString properties'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number().describe('Number value for SelectNumber properties')
-}).describe('Number value for SelectNumber properties')]).describe('The value of a property option - either a string or a number.')
-}).describe('A selectable option for select-type properties (service representation).')).nullish(),
- "property": zod.object({
- "created_at": zod.string().datetime({}),
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "id": zod.string().uuid(),
- "property_definition_id": zod.string().uuid(),
- "updated_at": zod.string().datetime({})
-}).describe('Assignment of a property definition to a specific entity (service representation).'),
- "value": zod.union([zod.null(),zod.union([zod.object({
- "type": zod.enum(['Boolean']),
- "value": zod.boolean().describe('Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}')
-}).describe('Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'),zod.object({
- "type": zod.enum(['Number']),
- "value": zod.number().describe('Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}')
-}).describe('Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'),zod.object({
- "type": zod.enum(['String']),
- "value": zod.string().describe('String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}')
-}).describe('String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'),zod.object({
- "type": zod.enum(['Date']),
- "value": zod.string().datetime({}).describe('Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}')
-}).describe('Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'),zod.object({
- "type": zod.enum(['SelectOption']),
- "value": zod.array(zod.string().uuid()).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)')
-}).describe('Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'),zod.object({
- "type": zod.enum(['EntityReference']),
- "value": zod.array(zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.')).describe('Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)')
-}).describe('Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'),zod.object({
- "type": zod.enum(['Link']),
- "value": zod.array(zod.string()).describe('Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)')
-}).describe('Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)')]).describe('Property value (service representation).\n\nRepresents the actual value stored for an entity property.\nThis is serialized to/from JSONB in the database.')]).optional()
-}).describe('Entity property with its definition, value, and options (service representation).'))
-}).describe('Response for document/entity properties endpoint.')
+ include_metadata: zod
+ .boolean()
+ .optional()
+ .describe('Whether to include property metadata (default: false)'),
+});
+export const getEntityPropertiesResponse = zod
+ .object({
+ entity_id: zod.string(),
+ properties: zod.array(
+ zod
+ .object({
+ definition: zod
+ .object({
+ created_at: zod.string().datetime({}),
+ data_type: zod
+ .enum([
+ 'BOOLEAN',
+ 'DATE',
+ 'NUMBER',
+ 'STRING',
+ 'SELECT_NUMBER',
+ 'SELECT_STRING',
+ 'ENTITY',
+ 'LINK',
+ ])
+ .describe(
+ 'Data type for property values, determining storage and validation.'
+ ),
+ display_name: zod.string(),
+ id: zod.string().uuid(),
+ is_metadata: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'
+ ),
+ is_multi_select: zod.boolean(),
+ is_system: zod
+ .boolean()
+ .describe(
+ 'Flag to indicate if this is a system property (stored in DB).'
+ ),
+ owner: zod
+ .union([
+ zod
+ .object({
+ scope: zod.enum(['user']),
+ user_id: zod.string(),
+ })
+ .describe('User-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['organization']),
+ })
+ .describe('Organization-scoped property only'),
+ zod
+ .object({
+ organization_id: zod.number(),
+ scope: zod.enum(['user_and_organization']),
+ user_id: zod.string(),
+ })
+ .describe('Both user and organization-scoped'),
+ zod
+ .object({
+ scope: zod.enum(['system']),
+ })
+ .describe('System-owned property (no user or org owner)'),
+ ])
+ .describe(
+ 'Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'
+ ),
+ specific_entity_type: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ ])
+ .optional(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe('Property definition model (service representation).'),
+ options: zod
+ .array(
+ zod
+ .object({
+ created_at: zod.string().datetime({}),
+ display_order: zod.number(),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ value: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod
+ .string()
+ .describe(
+ 'String value for SelectString properties'
+ ),
+ })
+ .describe('String value for SelectString properties'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod
+ .number()
+ .describe(
+ 'Number value for SelectNumber properties'
+ ),
+ })
+ .describe('Number value for SelectNumber properties'),
+ ])
+ .describe(
+ 'The value of a property option - either a string or a number.'
+ ),
+ })
+ .describe(
+ 'A selectable option for select-type properties (service representation).'
+ )
+ )
+ .nullish(),
+ property: zod
+ .object({
+ created_at: zod.string().datetime({}),
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ id: zod.string().uuid(),
+ property_definition_id: zod.string().uuid(),
+ updated_at: zod.string().datetime({}),
+ })
+ .describe(
+ 'Assignment of a property definition to a specific entity (service representation).'
+ ),
+ value: zod
+ .union([
+ zod.null(),
+ zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['Boolean']),
+ value: zod
+ .boolean()
+ .describe(
+ 'Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'
+ ),
+ })
+ .describe(
+ 'Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Number']),
+ value: zod
+ .number()
+ .describe(
+ 'Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'
+ ),
+ })
+ .describe(
+ 'Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['String']),
+ value: zod
+ .string()
+ .describe(
+ 'String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'
+ ),
+ })
+ .describe(
+ 'String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Date']),
+ value: zod
+ .string()
+ .datetime({})
+ .describe(
+ 'Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'
+ ),
+ })
+ .describe(
+ 'Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}'
+ ),
+ zod
+ .object({
+ type: zod.enum(['SelectOption']),
+ value: zod
+ .array(zod.string().uuid())
+ .describe(
+ 'Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['EntityReference']),
+ value: zod
+ .array(
+ zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ )
+ )
+ .describe(
+ 'Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['Link']),
+ value: zod
+ .array(zod.string())
+ .describe(
+ 'Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)'
+ ),
+ })
+ .describe(
+ 'Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)'
+ ),
+ ])
+ .describe(
+ 'Property value (service representation).\n\nRepresents the actual value stored for an entity property.\nThis is serialized to/from JSONB in the database.'
+ ),
+ ])
+ .optional(),
+ })
+ .describe(
+ 'Entity property with its definition, value, and options (service representation).'
+ )
+ ),
+ })
+ .describe('Response for document/entity properties endpoint.');
/**
* @summary Set or update a property value for an entity, or attach a property without a value
*/
export const setEntityPropertyParams = zod.object({
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Entity type (user, document, channel, project, thread)'),
- "entity_id": zod.string().describe('Entity ID'),
- "property_id": zod.string().uuid().describe('Property ID')
-})
-
-export const setEntityPropertyBody = zod.object({
- "value": zod.union([zod.null(),zod.union([zod.object({
- "type": zod.enum(['boolean']),
- "value": zod.boolean()
-}).describe('Boolean true/false value'),zod.object({
- "type": zod.enum(['date']),
- "value": zod.string().datetime({})
-}).describe('Date and time value'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number()
-}).describe('Numeric value'),zod.object({
- "type": zod.enum(['string']),
- "value": zod.string()
-}).describe('String/text value'),zod.object({
- "option_id": zod.string().uuid(),
- "type": zod.enum(['select_option'])
-}).describe('Select option by ID (for select-type properties)'),zod.object({
- "option_ids": zod.array(zod.string().uuid()),
- "type": zod.enum(['multi_select_option'])
-}).describe('Multiple select options by ID (for multi-select properties)'),zod.object({
- "reference": zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.'),
- "type": zod.enum(['entity_reference'])
-}).describe('Entity reference'),zod.object({
- "references": zod.array(zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.')),
- "type": zod.enum(['multi_entity_reference'])
-}).describe('Multiple entity references (for multi-select entity properties)'),zod.object({
- "type": zod.enum(['link']),
- "url": zod.string()
-}).describe('Link value'),zod.object({
- "type": zod.enum(['multi_link']),
- "urls": zod.array(zod.string())
-}).describe('Multiple link values (for multi-select link properties)')]).describe('Type-safe enum for setting entity property values - provides compile-time validation.')]).optional()
-}).describe('Type-safe request for setting entity property values.')
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe('Entity type (user, document, channel, project, thread)'),
+ entity_id: zod.string().describe('Entity ID'),
+ property_id: zod.string().uuid().describe('Property ID'),
+});
+export const setEntityPropertyBody = zod
+ .object({
+ value: zod
+ .union([
+ zod.null(),
+ zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['boolean']),
+ value: zod.boolean(),
+ })
+ .describe('Boolean true/false value'),
+ zod
+ .object({
+ type: zod.enum(['date']),
+ value: zod.string().datetime({}),
+ })
+ .describe('Date and time value'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod.number(),
+ })
+ .describe('Numeric value'),
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod.string(),
+ })
+ .describe('String/text value'),
+ zod
+ .object({
+ option_id: zod.string().uuid(),
+ type: zod.enum(['select_option']),
+ })
+ .describe('Select option by ID (for select-type properties)'),
+ zod
+ .object({
+ option_ids: zod.array(zod.string().uuid()),
+ type: zod.enum(['multi_select_option']),
+ })
+ .describe(
+ 'Multiple select options by ID (for multi-select properties)'
+ ),
+ zod
+ .object({
+ reference: zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ ),
+ type: zod.enum(['entity_reference']),
+ })
+ .describe('Entity reference'),
+ zod
+ .object({
+ references: zod.array(
+ zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ )
+ ),
+ type: zod.enum(['multi_entity_reference']),
+ })
+ .describe(
+ 'Multiple entity references (for multi-select entity properties)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['link']),
+ url: zod.string(),
+ })
+ .describe('Link value'),
+ zod
+ .object({
+ type: zod.enum(['multi_link']),
+ urls: zod.array(zod.string()),
+ })
+ .describe(
+ 'Multiple link values (for multi-select link properties)'
+ ),
+ ])
+ .describe(
+ 'Type-safe enum for setting entity property values - provides compile-time validation.'
+ ),
+ ])
+ .optional(),
+ })
+ .describe('Type-safe request for setting entity property values.');
/**
* @summary Remove a specific entity property by its ID
*/
export const deleteEntityPropertyParams = zod.object({
- "entity_property_id": zod.string().uuid().describe('Entity Property ID')
-})
-
-
+ entity_property_id: zod.string().uuid().describe('Entity Property ID'),
+});
diff --git a/js/app/packages/service-clients/service-properties/openapi.json b/js/app/packages/service-clients/service-properties/openapi.json
index 4d3f7092a5..122f065225 100644
--- a/js/app/packages/service-clients/service-properties/openapi.json
+++ b/js/app/packages/service-clients/service-properties/openapi.json
@@ -4,7 +4,9 @@
"title": "properties_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -19,21 +21,27 @@
"in": "query",
"description": "Filter by scope: 'user', 'org', 'system', or 'all'",
"required": true,
- "schema": { "$ref": "#/components/schemas/PropertyScope" }
+ "schema": {
+ "$ref": "#/components/schemas/PropertyScope"
+ }
},
{
"name": "include_options",
"in": "query",
"description": "Whether to include property options in the response",
"required": false,
- "schema": { "type": "boolean" }
+ "schema": {
+ "type": "boolean"
+ }
},
{
"name": "for_entity_type",
"in": "query",
"description": "Filter properties applicable to a specific entity type",
"required": false,
- "schema": { "$ref": "#/components/schemas/EntityType" }
+ "schema": {
+ "$ref": "#/components/schemas/EntityType"
+ }
}
],
"responses": {
@@ -50,8 +58,12 @@
}
}
},
- "400": { "description": "Invalid request" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
},
"post": {
@@ -73,12 +85,18 @@
"description": "Property definition created successfully",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PropertyDefinition" }
+ "schema": {
+ "$ref": "#/components/schemas/PropertyDefinition"
+ }
}
}
},
- "400": { "description": "Invalid request" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -93,15 +111,28 @@
"in": "path",
"description": "Property definition ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
- "204": { "description": "Property definition deleted successfully" },
- "400": { "description": "Invalid property ID" },
- "403": { "description": "Cannot modify system properties" },
- "404": { "description": "Property definition not found" },
- "500": { "description": "Internal server error" }
+ "204": {
+ "description": "Property definition deleted successfully"
+ },
+ "400": {
+ "description": "Invalid property ID"
+ },
+ "403": {
+ "description": "Cannot modify system properties"
+ },
+ "404": {
+ "description": "Property definition not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -116,7 +147,10 @@
"in": "path",
"description": "Property definition ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
@@ -126,13 +160,19 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PropertyOption" }
+ "items": {
+ "$ref": "#/components/schemas/PropertyOption"
+ }
}
}
}
},
- "404": { "description": "Property not found" },
- "500": { "description": "Internal server error" }
+ "404": {
+ "description": "Property not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
},
"post": {
@@ -145,7 +185,10 @@
"in": "path",
"description": "Property definition ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"requestBody": {
@@ -163,14 +206,24 @@
"description": "Property option created successfully",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PropertyOption" }
+ "schema": {
+ "$ref": "#/components/schemas/PropertyOption"
+ }
}
}
},
- "400": { "description": "Invalid request" },
- "403": { "description": "Cannot modify system properties" },
- "404": { "description": "Property not found" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request"
+ },
+ "403": {
+ "description": "Cannot modify system properties"
+ },
+ "404": {
+ "description": "Property not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -185,22 +238,38 @@
"in": "path",
"description": "Property definition ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
},
{
"name": "option_id",
"in": "path",
"description": "Property option ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
- "204": { "description": "Property option deleted successfully" },
- "400": { "description": "Invalid option ID" },
- "403": { "description": "Cannot modify system properties" },
- "404": { "description": "Property option not found" },
- "500": { "description": "Internal server error" }
+ "204": {
+ "description": "Property option deleted successfully"
+ },
+ "400": {
+ "description": "Invalid option ID"
+ },
+ "403": {
+ "description": "Cannot modify system properties"
+ },
+ "404": {
+ "description": "Property option not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -230,14 +299,22 @@
"additionalProperties": {
"$ref": "#/components/schemas/EntityPropertiesResponse"
},
- "propertyNames": { "type": "string" }
+ "propertyNames": {
+ "type": "string"
+ }
}
}
}
},
- "400": { "description": "Invalid request body" },
- "403": { "description": "Forbidden - User does not have permission" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request body"
+ },
+ "403": {
+ "description": "Forbidden - User does not have permission"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -252,21 +329,27 @@
"in": "path",
"description": "Entity type (user, document, channel, project, thread)",
"required": true,
- "schema": { "$ref": "#/components/schemas/EntityType" }
+ "schema": {
+ "$ref": "#/components/schemas/EntityType"
+ }
},
{
"name": "entity_id",
"in": "path",
"description": "Entity ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "include_metadata",
"in": "query",
"description": "Whether to include property metadata (default: false)",
"required": false,
- "schema": { "type": "boolean" }
+ "schema": {
+ "type": "boolean"
+ }
}
],
"responses": {
@@ -280,12 +363,18 @@
}
}
},
- "400": { "description": "Invalid entity type" },
+ "400": {
+ "description": "Invalid entity type"
+ },
"403": {
"description": "Forbidden - User does not have permission to view this entity"
},
- "404": { "description": "Entity not found" },
- "500": { "description": "Internal server error" }
+ "404": {
+ "description": "Entity not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -300,21 +389,28 @@
"in": "path",
"description": "Entity type (user, document, channel, project, thread)",
"required": true,
- "schema": { "$ref": "#/components/schemas/EntityType" }
+ "schema": {
+ "$ref": "#/components/schemas/EntityType"
+ }
},
{
"name": "entity_id",
"in": "path",
"description": "Entity ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "property_id",
"in": "path",
"description": "Property ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"requestBody": {
@@ -331,9 +427,15 @@
"204": {
"description": "Entity property set successfully (with or without value)"
},
- "400": { "description": "Invalid request or entity type" },
- "404": { "description": "Entity or property not found" },
- "500": { "description": "Internal server error" }
+ "400": {
+ "description": "Invalid request or entity type"
+ },
+ "404": {
+ "description": "Entity or property not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
},
@@ -348,16 +450,25 @@
"in": "path",
"description": "Entity Property ID",
"required": true,
- "schema": { "type": "string", "format": "uuid" }
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
}
],
"responses": {
- "204": { "description": "Entity property removed successfully" },
+ "204": {
+ "description": "Entity property removed successfully"
+ },
"403": {
"description": "Property is required and cannot be removed"
},
- "404": { "description": "Entity property not found" },
- "500": { "description": "Internal server error" }
+ "404": {
+ "description": "Entity property not found"
+ },
+ "500": {
+ "description": "Internal server error"
+ }
}
}
}
@@ -369,8 +480,14 @@
"description": "Type-safe request to add a number option to a SelectNumber property.",
"required": ["display_order", "value"],
"properties": {
- "display_order": { "type": "integer", "format": "int32" },
- "value": { "type": "number", "format": "double" }
+ "display_order": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "value": {
+ "type": "number",
+ "format": "double"
+ }
}
},
"AddPropertyOptionRequest": {
@@ -383,7 +500,10 @@
"option": {
"$ref": "#/components/schemas/AddStringOptionRequest"
},
- "type": { "type": "string", "enum": ["select_string"] }
+ "type": {
+ "type": "string",
+ "enum": ["select_string"]
+ }
}
},
{
@@ -394,7 +514,10 @@
"option": {
"$ref": "#/components/schemas/AddNumberOptionRequest"
},
- "type": { "type": "string", "enum": ["select_number"] }
+ "type": {
+ "type": "string",
+ "enum": ["select_number"]
+ }
}
}
],
@@ -405,8 +528,13 @@
"description": "Type-safe request to add a string option to a SelectString property.",
"required": ["display_order", "value"],
"properties": {
- "display_order": { "type": "integer", "format": "int32" },
- "value": { "type": "string" }
+ "display_order": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "value": {
+ "type": "string"
+ }
}
},
"BulkEntityPropertiesRequest": {
@@ -416,25 +544,36 @@
"properties": {
"entities": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EntityReference" },
+ "items": {
+ "$ref": "#/components/schemas/EntityReference"
+ },
"description": "Array of entity references (entity_id and entity_type pairs)"
},
"property_ids": {
- "type": ["array", "null"],
- "items": { "type": "string", "format": "uuid" },
- "description": "Optional: only return properties with these definition IDs. If empty/None, returns all."
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "description": "Optional: only return properties with these definition IDs. If empty, returns all."
}
}
},
"CreatePropertyDefinitionRequest": {
"allOf": [
- { "$ref": "#/components/schemas/PropertyOwner" },
+ {
+ "$ref": "#/components/schemas/PropertyOwner"
+ },
{
"type": "object",
"required": ["display_name", "data_type"],
"properties": {
- "data_type": { "$ref": "#/components/schemas/PropertyDataType" },
- "display_name": { "type": "string" }
+ "data_type": {
+ "$ref": "#/components/schemas/PropertyDataType"
+ },
+ "display_name": {
+ "type": "string"
+ }
}
}
],
@@ -459,7 +598,9 @@
"description": "Response for document/entity properties endpoint.",
"required": ["entity_id", "properties"],
"properties": {
- "entity_id": { "type": "string" },
+ "entity_id": {
+ "type": "string"
+ },
"properties": {
"type": "array",
"items": {
@@ -480,12 +621,28 @@
"updated_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "entity_id": { "type": "string" },
- "entity_type": { "$ref": "#/components/schemas/EntityType" },
- "id": { "type": "string", "format": "uuid" },
- "property_definition_id": { "type": "string", "format": "uuid" },
- "updated_at": { "type": "string", "format": "date-time" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "$ref": "#/components/schemas/EntityType"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "property_definition_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"EntityPropertyResponse": {
@@ -493,12 +650,28 @@
"description": "Entity property response (API representation).",
"required": ["id", "entityId", "entityType", "propertyDefinitionId"],
"properties": {
- "createdAt": { "type": ["string", "null"], "format": "date-time" },
- "entityId": { "type": "string" },
- "entityType": { "$ref": "#/components/schemas/EntityType" },
- "id": { "type": "string", "format": "uuid" },
- "propertyDefinitionId": { "type": "string", "format": "uuid" },
- "updatedAt": { "type": ["string", "null"], "format": "date-time" }
+ "createdAt": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "entityId": {
+ "type": "string"
+ },
+ "entityType": {
+ "$ref": "#/components/schemas/EntityType"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "propertyDefinitionId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "updatedAt": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ }
}
},
"EntityPropertyWithDefinition": {
@@ -506,16 +679,26 @@
"description": "Entity property with its definition, value, and options (service representation).",
"required": ["property", "definition"],
"properties": {
- "definition": { "$ref": "#/components/schemas/PropertyDefinition" },
+ "definition": {
+ "$ref": "#/components/schemas/PropertyDefinition"
+ },
"options": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/PropertyOption" }
+ "items": {
+ "$ref": "#/components/schemas/PropertyOption"
+ }
+ },
+ "property": {
+ "$ref": "#/components/schemas/EntityProperty"
},
- "property": { "$ref": "#/components/schemas/EntityProperty" },
"value": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/PropertyValue" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/PropertyValue"
+ }
]
}
}
@@ -530,13 +713,21 @@
},
"options": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/PropertyOptionResponse" }
+ "items": {
+ "$ref": "#/components/schemas/PropertyOptionResponse"
+ }
+ },
+ "property": {
+ "$ref": "#/components/schemas/EntityPropertyResponse"
},
- "property": { "$ref": "#/components/schemas/EntityPropertyResponse" },
"value": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/PropertyValue" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/PropertyValue"
+ }
]
}
}
@@ -556,8 +747,12 @@
"description": "Entity reference for entity-type property values.",
"required": ["entity_id", "entity_type"],
"properties": {
- "entity_id": { "type": "string" },
- "entity_type": { "$ref": "#/components/schemas/EntityType" },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "$ref": "#/components/schemas/EntityType"
+ },
"specific_message_id": {
"type": ["string", "null"],
"format": "uuid",
@@ -586,7 +781,9 @@
"properties": {
"for_entity_type": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/EntityType",
"description": "Filter properties applicable to a specific entity type.\nWhen provided, excludes properties that cannot be attached to this entity type\n(e.g., Parent Task and Subtasks are excluded for non-task entities)."
@@ -609,37 +806,64 @@
"type": "object",
"description": "Boolean true/false values.",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["boolean"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["boolean"]
+ }
+ }
},
{
"type": "object",
"description": "Date and time values.",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["date"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["date"]
+ }
+ }
},
{
"type": "object",
"description": "Numeric values.",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["number"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["number"]
+ }
+ }
},
{
"type": "object",
"description": "String/text values.",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["string"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["string"]
+ }
+ }
},
{
"type": "object",
"description": "Select property with numeric options.",
"required": ["options", "multi", "type"],
"properties": {
- "multi": { "type": "boolean" },
+ "multi": {
+ "type": "boolean"
+ },
"options": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SelectNumberOption" }
+ "items": {
+ "$ref": "#/components/schemas/SelectNumberOption"
+ }
},
- "type": { "type": "string", "enum": ["select_number"] }
+ "type": {
+ "type": "string",
+ "enum": ["select_number"]
+ }
}
},
{
@@ -647,12 +871,19 @@
"description": "Select property with string options.",
"required": ["options", "multi", "type"],
"properties": {
- "multi": { "type": "boolean" },
+ "multi": {
+ "type": "boolean"
+ },
"options": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SelectStringOption" }
+ "items": {
+ "$ref": "#/components/schemas/SelectStringOption"
+ }
},
- "type": { "type": "string", "enum": ["select_string"] }
+ "type": {
+ "type": "string",
+ "enum": ["select_string"]
+ }
}
},
{
@@ -660,14 +891,23 @@
"description": "Entity reference property.",
"required": ["multi", "type"],
"properties": {
- "multi": { "type": "boolean" },
+ "multi": {
+ "type": "boolean"
+ },
"specific_type": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/EntityType" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/EntityType"
+ }
]
},
- "type": { "type": "string", "enum": ["entity"] }
+ "type": {
+ "type": "string",
+ "enum": ["entity"]
+ }
}
},
{
@@ -675,8 +915,13 @@
"description": "Link property.",
"required": ["multi", "type"],
"properties": {
- "multi": { "type": "boolean" },
- "type": { "type": "string", "enum": ["link"] }
+ "multi": {
+ "type": "boolean"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["link"]
+ }
}
}
],
@@ -697,33 +942,58 @@
"is_metadata"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "data_type": { "$ref": "#/components/schemas/DataType" },
- "display_name": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "data_type": {
+ "$ref": "#/components/schemas/DataType"
+ },
+ "display_name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
"is_metadata": {
"type": "boolean",
"description": "Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer."
},
- "is_multi_select": { "type": "boolean" },
+ "is_multi_select": {
+ "type": "boolean"
+ },
"is_system": {
"type": "boolean",
"description": "Flag to indicate if this is a system property (stored in DB)."
},
- "owner": { "$ref": "#/components/schemas/PropertyOwner" },
+ "owner": {
+ "$ref": "#/components/schemas/PropertyOwner"
+ },
"specific_entity_type": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/EntityType" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/EntityType"
+ }
]
},
- "updated_at": { "type": "string", "format": "date-time" }
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"PropertyDefinitionResponse": {
"oneOf": [
- { "$ref": "#/components/schemas/PropertyDefinition" },
- { "$ref": "#/components/schemas/PropertyDefinitionWithOptions" }
+ {
+ "$ref": "#/components/schemas/PropertyDefinition"
+ },
+ {
+ "$ref": "#/components/schemas/PropertyDefinitionWithOptions"
+ }
],
"description": "Response for property definition with optional property options"
},
@@ -732,10 +1002,14 @@
"description": "Property definition with its associated options (service representation).",
"required": ["definition", "property_options"],
"properties": {
- "definition": { "$ref": "#/components/schemas/PropertyDefinition" },
+ "definition": {
+ "$ref": "#/components/schemas/PropertyDefinition"
+ },
"property_options": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PropertyOption" }
+ "items": {
+ "$ref": "#/components/schemas/PropertyOption"
+ }
}
}
},
@@ -749,7 +1023,9 @@
},
"propertyOptions": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PropertyOptionResponse" }
+ "items": {
+ "$ref": "#/components/schemas/PropertyOptionResponse"
+ }
}
}
},
@@ -765,12 +1041,29 @@
"updated_at"
],
"properties": {
- "created_at": { "type": "string", "format": "date-time" },
- "display_order": { "type": "integer", "format": "int32" },
- "id": { "type": "string", "format": "uuid" },
- "property_definition_id": { "type": "string", "format": "uuid" },
- "updated_at": { "type": "string", "format": "date-time" },
- "value": { "$ref": "#/components/schemas/PropertyOptionValue" }
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "display_order": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "property_definition_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "value": {
+ "$ref": "#/components/schemas/PropertyOptionValue"
+ }
}
},
"PropertyOptionResponse": {
@@ -778,10 +1071,21 @@
"description": "Property option response (API representation).",
"required": ["id", "propertyDefinitionId", "displayOrder", "value"],
"properties": {
- "displayOrder": { "type": "integer", "format": "int32" },
- "id": { "type": "string", "format": "uuid" },
- "propertyDefinitionId": { "type": "string", "format": "uuid" },
- "value": { "$ref": "#/components/schemas/PropertyOptionValue" }
+ "displayOrder": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "propertyDefinitionId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "value": {
+ "$ref": "#/components/schemas/PropertyOptionValue"
+ }
}
},
"PropertyOptionValue": {
@@ -791,7 +1095,10 @@
"description": "String value for SelectString properties",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["string"] },
+ "type": {
+ "type": "string",
+ "enum": ["string"]
+ },
"value": {
"type": "string",
"description": "String value for SelectString properties"
@@ -803,7 +1110,10 @@
"description": "Number value for SelectNumber properties",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["number"] },
+ "type": {
+ "type": "string",
+ "enum": ["number"]
+ },
"value": {
"type": "number",
"format": "double",
@@ -821,8 +1131,13 @@
"description": "User-scoped property only",
"required": ["user_id", "scope"],
"properties": {
- "scope": { "type": "string", "enum": ["user"] },
- "user_id": { "type": "string" }
+ "scope": {
+ "type": "string",
+ "enum": ["user"]
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
{
@@ -830,8 +1145,14 @@
"description": "Organization-scoped property only",
"required": ["organization_id", "scope"],
"properties": {
- "organization_id": { "type": "integer", "format": "int32" },
- "scope": { "type": "string", "enum": ["organization"] }
+ "organization_id": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "scope": {
+ "type": "string",
+ "enum": ["organization"]
+ }
}
},
{
@@ -839,16 +1160,29 @@
"description": "Both user and organization-scoped",
"required": ["user_id", "organization_id", "scope"],
"properties": {
- "organization_id": { "type": "integer", "format": "int32" },
- "scope": { "type": "string", "enum": ["user_and_organization"] },
- "user_id": { "type": "string" }
+ "organization_id": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "scope": {
+ "type": "string",
+ "enum": ["user_and_organization"]
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
{
"type": "object",
"description": "System-owned property (no user or org owner)",
"required": ["scope"],
- "properties": { "scope": { "type": "string", "enum": ["system"] } }
+ "properties": {
+ "scope": {
+ "type": "string",
+ "enum": ["system"]
+ }
+ }
}
],
"description": "Defines who owns a property - user-scoped, org-scoped, system, or both user and org."
@@ -865,7 +1199,10 @@
"description": "Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["Boolean"] },
+ "type": {
+ "type": "string",
+ "enum": ["Boolean"]
+ },
"value": {
"type": "boolean",
"description": "Boolean value\nSerializes as: {\"type\": \"Boolean\", \"value\": true}"
@@ -877,7 +1214,10 @@
"description": "Numeric value\nSerializes as: {\"type\": \"Number\", \"value\": 42.5}",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["Number"] },
+ "type": {
+ "type": "string",
+ "enum": ["Number"]
+ },
"value": {
"type": "number",
"format": "double",
@@ -890,7 +1230,10 @@
"description": "String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["String"] },
+ "type": {
+ "type": "string",
+ "enum": ["String"]
+ },
"value": {
"type": "string",
"description": "String value\nSerializes as: {\"type\": \"String\", \"value\": \"text\"}"
@@ -902,7 +1245,10 @@
"description": "Date/timestamp value\nSerializes as: {\"type\": \"Date\", \"value\": \"2025-01-01T00:00:00Z\"}",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["Date"] },
+ "type": {
+ "type": "string",
+ "enum": ["Date"]
+ },
"value": {
"type": "string",
"format": "date-time",
@@ -915,10 +1261,16 @@
"description": "Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["SelectOption"] },
+ "type": {
+ "type": "string",
+ "enum": ["SelectOption"]
+ },
"value": {
"type": "array",
- "items": { "type": "string", "format": "uuid" },
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ },
"description": "Select option(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"SelectOption\", \"value\": [\"uuid\"]} (length 0 or 1)\nMulti-select: {\"type\": \"SelectOption\", \"value\": [\"uuid1\", \"uuid2\", ...]} (length 0+)"
}
}
@@ -928,10 +1280,15 @@
"description": "Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["EntityReference"] },
+ "type": {
+ "type": "string",
+ "enum": ["EntityReference"]
+ },
"value": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EntityReference" },
+ "items": {
+ "$ref": "#/components/schemas/EntityReference"
+ },
"description": "Entity reference(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"EntityReference\", \"value\": [{...}]} (length 0 or 1)\nMulti-select: {\"type\": \"EntityReference\", \"value\": [{...}, {...}, ...]} (length 0+)"
}
}
@@ -941,10 +1298,15 @@
"description": "Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["Link"] },
+ "type": {
+ "type": "string",
+ "enum": ["Link"]
+ },
"value": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Link value(s) - always an array (check is_multi_select to determine if single or multi)\nSingle-select: {\"type\": \"Link\", \"value\": [\"https://example.com\"]} (length 0 or 1)\nMulti-select: {\"type\": \"Link\", \"value\": [\"https://example.com\", \"https://other.com\"]} (length 0+)"
}
}
@@ -957,8 +1319,14 @@
"description": "Option for select number properties in requests.",
"required": ["display_order", "value"],
"properties": {
- "display_order": { "type": "integer", "format": "int32" },
- "value": { "type": "number", "format": "double" }
+ "display_order": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "value": {
+ "type": "number",
+ "format": "double"
+ }
}
},
"SelectStringOption": {
@@ -966,8 +1334,13 @@
"description": "Option for select-type properties in requests.",
"required": ["display_order", "value"],
"properties": {
- "display_order": { "type": "integer", "format": "int32" },
- "value": { "type": "string" }
+ "display_order": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "value": {
+ "type": "string"
+ }
}
},
"SetEntityPropertyRequest": {
@@ -976,7 +1349,9 @@
"properties": {
"value": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/SetPropertyValue",
"description": "The value to set for the property. If None, the property is attached to the entity without a value."
@@ -992,8 +1367,13 @@
"description": "Boolean true/false value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["boolean"] },
- "value": { "type": "boolean" }
+ "type": {
+ "type": "string",
+ "enum": ["boolean"]
+ },
+ "value": {
+ "type": "boolean"
+ }
}
},
{
@@ -1001,8 +1381,14 @@
"description": "Date and time value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["date"] },
- "value": { "type": "string", "format": "date-time" }
+ "type": {
+ "type": "string",
+ "enum": ["date"]
+ },
+ "value": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
{
@@ -1010,8 +1396,14 @@
"description": "Numeric value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["number"] },
- "value": { "type": "number", "format": "double" }
+ "type": {
+ "type": "string",
+ "enum": ["number"]
+ },
+ "value": {
+ "type": "number",
+ "format": "double"
+ }
}
},
{
@@ -1019,8 +1411,13 @@
"description": "String/text value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["string"] },
- "value": { "type": "string" }
+ "type": {
+ "type": "string",
+ "enum": ["string"]
+ },
+ "value": {
+ "type": "string"
+ }
}
},
{
@@ -1028,8 +1425,14 @@
"description": "Select option by ID (for select-type properties)",
"required": ["option_id", "type"],
"properties": {
- "option_id": { "type": "string", "format": "uuid" },
- "type": { "type": "string", "enum": ["select_option"] }
+ "option_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["select_option"]
+ }
}
},
{
@@ -1039,9 +1442,15 @@
"properties": {
"option_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
},
- "type": { "type": "string", "enum": ["multi_select_option"] }
+ "type": {
+ "type": "string",
+ "enum": ["multi_select_option"]
+ }
}
},
{
@@ -1049,8 +1458,13 @@
"description": "Entity reference",
"required": ["reference", "type"],
"properties": {
- "reference": { "$ref": "#/components/schemas/EntityReference" },
- "type": { "type": "string", "enum": ["entity_reference"] }
+ "reference": {
+ "$ref": "#/components/schemas/EntityReference"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["entity_reference"]
+ }
}
},
{
@@ -1060,9 +1474,14 @@
"properties": {
"references": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EntityReference" }
+ "items": {
+ "$ref": "#/components/schemas/EntityReference"
+ }
},
- "type": { "type": "string", "enum": ["multi_entity_reference"] }
+ "type": {
+ "type": "string",
+ "enum": ["multi_entity_reference"]
+ }
}
},
{
@@ -1070,8 +1489,13 @@
"description": "Link value",
"required": ["url", "type"],
"properties": {
- "type": { "type": "string", "enum": ["link"] },
- "url": { "type": "string" }
+ "type": {
+ "type": "string",
+ "enum": ["link"]
+ },
+ "url": {
+ "type": "string"
+ }
}
},
{
@@ -1079,8 +1503,16 @@
"description": "Multiple link values (for multi-select link properties)",
"required": ["urls", "type"],
"properties": {
- "type": { "type": "string", "enum": ["multi_link"] },
- "urls": { "type": "array", "items": { "type": "string" } }
+ "type": {
+ "type": "string",
+ "enum": ["multi_link"]
+ },
+ "urls": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
}
],
@@ -1089,6 +1521,9 @@
}
},
"tags": [
- { "name": "properties service", "description": "Macro Properties Service" }
+ {
+ "name": "properties service",
+ "description": "Macro Properties Service"
+ }
]
}
diff --git a/js/app/packages/service-clients/service-search/generated/client.ts b/js/app/packages/service-clients/service-search/generated/client.ts
index c301595846..fe33aa6caa 100644
--- a/js/app/packages/service-clients/service-search/generated/client.ts
+++ b/js/app/packages/service-clients/service-search/generated/client.ts
@@ -11,182 +11,199 @@ import type {
SimpleUnifiedSearchParams,
UnifiedSearchParams,
UnifiedSearchRequest,
- UnifiedSearchResponse
+ UnifiedSearchResponse,
} from './models';
/**
* @summary Health check
*/
export type healthHandlerResponse200 = {
- data: EmptyResponse
- status: 200
-}
-
-export type healthHandlerResponseSuccess = (healthHandlerResponse200) & {
+ data: EmptyResponse;
+ status: 200;
+};
+
+export type healthHandlerResponseSuccess = healthHandlerResponse200 & {
headers: Headers;
};
-;
-export type healthHandlerResponse = (healthHandlerResponseSuccess)
+export type healthHandlerResponse = healthHandlerResponseSuccess;
export const getHealthHandlerUrl = () => {
+ return `/health`;
+};
-
-
-
- return `/health`
-}
-
-export const healthHandler = async ( options?: RequestInit): Promise<healthHandlerResponse> => {
-
- const res = await fetch(getHealthHandlerUrl(),
- {
+export const healthHandler = async (
+ options?: RequestInit
+): Promise<healthHandlerResponse> => {
+ const res = await fetch(getHealthHandlerUrl(), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as healthHandlerResponse
-}
-
+ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as healthHandlerResponse;
+};
/**
* @summary Perform a search through all items
*/
export type unifiedSearchResponse200 = {
- data: UnifiedSearchResponse
- status: 200
-}
+ data: UnifiedSearchResponse;
+ status: 200;
+};
export type unifiedSearchResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type unifiedSearchResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type unifiedSearchResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type unifiedSearchResponseSuccess = (unifiedSearchResponse200) & {
+ data: ErrorResponse;
+ status: 500;
+};
+
+export type unifiedSearchResponseSuccess = unifiedSearchResponse200 & {
headers: Headers;
};
-export type unifiedSearchResponseError = (unifiedSearchResponse400 | unifiedSearchResponse401 | unifiedSearchResponse500) & {
+export type unifiedSearchResponseError = (
+ | unifiedSearchResponse400
+ | unifiedSearchResponse401
+ | unifiedSearchResponse500
+) & {
headers: Headers;
};
-export type unifiedSearchResponse = (unifiedSearchResponseSuccess | unifiedSearchResponseError)
+export type unifiedSearchResponse =
+ | unifiedSearchResponseSuccess
+ | unifiedSearchResponseError;
-export const getUnifiedSearchUrl = (params: UnifiedSearchParams,) => {
+export const getUnifiedSearchUrl = (params: UnifiedSearchParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/search?${stringifiedParams}` : `/search`
-}
+ return stringifiedParams.length > 0
+ ? `/search?${stringifiedParams}`
+ : `/search`;
+};
-export const unifiedSearch = async (unifiedSearchRequest: UnifiedSearchRequest,
- params: UnifiedSearchParams, options?: RequestInit): Promise<unifiedSearchResponse> => {
-
- const res = await fetch(getUnifiedSearchUrl(params),
- {
+export const unifiedSearch = async (
+ unifiedSearchRequest: UnifiedSearchRequest,
+ params: UnifiedSearchParams,
+ options?: RequestInit
+): Promise<unifiedSearchResponse> => {
+ const res = await fetch(getUnifiedSearchUrl(params), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- unifiedSearchRequest,)
- }
-)
+ body: JSON.stringify(unifiedSearchRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: unifiedSearchResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as unifiedSearchResponse
-}
-
+ const data: unifiedSearchResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as unifiedSearchResponse;
+};
/**
* @summary Perform a search through all items.
This is a simple search where we do not group your results by entity id.
*/
export type simpleUnifiedSearchResponse200 = {
- data: SimpleUnifiedSearchBaseResponse
- status: 200
-}
+ data: SimpleUnifiedSearchBaseResponse;
+ status: 200;
+};
export type simpleUnifiedSearchResponse400 = {
- data: ErrorResponse
- status: 400
-}
+ data: ErrorResponse;
+ status: 400;
+};
export type simpleUnifiedSearchResponse401 = {
- data: ErrorResponse
- status: 401
-}
+ data: ErrorResponse;
+ status: 401;
+};
export type simpleUnifiedSearchResponse500 = {
- data: ErrorResponse
- status: 500
-}
-
-export type simpleUnifiedSearchResponseSuccess = (simpleUnifiedSearchResponse200) & {
- headers: Headers;
+ data: ErrorResponse;
+ status: 500;
};
-export type simpleUnifiedSearchResponseError = (simpleUnifiedSearchResponse400 | simpleUnifiedSearchResponse401 | simpleUnifiedSearchResponse500) & {
+
+export type simpleUnifiedSearchResponseSuccess =
+ simpleUnifiedSearchResponse200 & {
+ headers: Headers;
+ };
+export type simpleUnifiedSearchResponseError = (
+ | simpleUnifiedSearchResponse400
+ | simpleUnifiedSearchResponse401
+ | simpleUnifiedSearchResponse500
+) & {
headers: Headers;
};
-export type simpleUnifiedSearchResponse = (simpleUnifiedSearchResponseSuccess | simpleUnifiedSearchResponseError)
+export type simpleUnifiedSearchResponse =
+ | simpleUnifiedSearchResponseSuccess
+ | simpleUnifiedSearchResponseError;
-export const getSimpleUnifiedSearchUrl = (params: SimpleUnifiedSearchParams,) => {
+export const getSimpleUnifiedSearchUrl = (
+ params: SimpleUnifiedSearchParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/search/simple?${stringifiedParams}` : `/search/simple`
-}
+ return stringifiedParams.length > 0
+ ? `/search/simple?${stringifiedParams}`
+ : `/search/simple`;
+};
-export const simpleUnifiedSearch = async (unifiedSearchRequest: UnifiedSearchRequest,
- params: SimpleUnifiedSearchParams, options?: RequestInit): Promise<simpleUnifiedSearchResponse> => {
-
- const res = await fetch(getSimpleUnifiedSearchUrl(params),
- {
+export const simpleUnifiedSearch = async (
+ unifiedSearchRequest: UnifiedSearchRequest,
+ params: SimpleUnifiedSearchParams,
+ options?: RequestInit
+): Promise<simpleUnifiedSearchResponse> => {
+ const res = await fetch(getSimpleUnifiedSearchUrl(params), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- unifiedSearchRequest,)
- }
-)
+ body: JSON.stringify(unifiedSearchRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: simpleUnifiedSearchResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as simpleUnifiedSearchResponse
-}
+
+ const data: simpleUnifiedSearchResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as simpleUnifiedSearchResponse;
+};
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchRequest.ts
index aaf64cb7c2..02c935e0bd 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchRequest.ts
@@ -7,4 +7,5 @@
import type { ChannelSearchRequestAllOf } from './channelSearchRequestAllOf';
import type { ChannelSearchRequestAllOfTwo } from './channelSearchRequestAllOfTwo';
-export type ChannelSearchRequest = ChannelSearchRequestAllOf & ChannelSearchRequestAllOfTwo;
+export type ChannelSearchRequest = ChannelSearchRequestAllOf &
+ ChannelSearchRequestAllOfTwo;
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchRequestAllOfTwo.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchRequestAllOfTwo.ts
index d43d90d34f..0d7fcc173f 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchRequestAllOfTwo.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchRequestAllOfTwo.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { ChannelSearchRequestAllOfTwoCollapse } from './channelSearchRequestAllOfTwoCollapse';
-import type { MatchType } from './matchType';
import type { ChannelSearchRequestAllOfTwoQuery } from './channelSearchRequestAllOfTwoQuery';
-import type { SearchOn } from './searchOn';
import type { ChannelSearchRequestAllOfTwoTerms } from './channelSearchRequestAllOfTwoTerms';
+import type { MatchType } from './matchType';
+import type { SearchOn } from './searchOn';
export type ChannelSearchRequestAllOfTwo = {
/** If true, returns only 1 result per entity. False by default. */
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItem.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItem.ts
index 1e3dce8591..7d88d3ae93 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItem.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItem.ts
@@ -4,8 +4,9 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { ChannelSearchResult } from './channelSearchResult';
+
import type { ChannelSearchResponseItemOwnerId } from './channelSearchResponseItemOwnerId';
+import type { ChannelSearchResult } from './channelSearchResult';
/**
* A single response item, part of the ChannelSearchResponse object
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadata.ts
index 58e49111ad..ce427dcce6 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadata.ts
@@ -12,4 +12,5 @@ import type { ChannelSearchResponseItemWithMetadataAllOf } from './channelSearch
timestamps in opensearch as they would require us to update each chat message record for the chat
every time the chat updates (specifically for updated_at and viewed_at and interacted_at)
*/
-export type ChannelSearchResponseItemWithMetadata = ChannelSearchResponseItem & ChannelSearchResponseItemWithMetadataAllOf;
+export type ChannelSearchResponseItemWithMetadata = ChannelSearchResponseItem &
+ ChannelSearchResponseItemWithMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadataAllOfMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadataAllOfMetadata.ts
index e34c6eb950..b27bfeaf97 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadataAllOfMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchResponseItemWithMetadataAllOfMetadata.ts
@@ -6,4 +6,5 @@
*/
import type { ChannelMetadata } from './channelMetadata';
-export type ChannelSearchResponseItemWithMetadataAllOfMetadata = null | ChannelMetadata;
+export type ChannelSearchResponseItemWithMetadataAllOfMetadata =
+ null | ChannelMetadata;
diff --git a/js/app/packages/service-clients/service-search/generated/models/channelSearchResult.ts b/js/app/packages/service-clients/service-search/generated/models/channelSearchResult.ts
index 7f64f40877..b1a049b036 100644
--- a/js/app/packages/service-clients/service-search/generated/models/channelSearchResult.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/channelSearchResult.ts
@@ -5,12 +5,12 @@
* OpenAPI spec version: 0.1.0
*/
import type { ChannelSearchResultCreatedAt } from './channelSearchResultCreatedAt';
-import type { SearchHighlight } from './searchHighlight';
import type { ChannelSearchResultMessageId } from './channelSearchResultMessageId';
import type { ChannelSearchResultScore } from './channelSearchResultScore';
import type { ChannelSearchResultSenderId } from './channelSearchResultSenderId';
import type { ChannelSearchResultThreadId } from './channelSearchResultThreadId';
import type { ChannelSearchResultUpdatedAt } from './channelSearchResultUpdatedAt';
+import type { SearchHighlight } from './searchHighlight';
/**
* A channel message match for a given channel id
diff --git a/js/app/packages/service-clients/service-search/generated/models/chatMessageSearchResult.ts b/js/app/packages/service-clients/service-search/generated/models/chatMessageSearchResult.ts
index 3326369f00..f0e02e42e5 100644
--- a/js/app/packages/service-clients/service-search/generated/models/chatMessageSearchResult.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/chatMessageSearchResult.ts
@@ -5,9 +5,9 @@
* OpenAPI spec version: 0.1.0
*/
import type { ChatMessageSearchResultChatMessageId } from './chatMessageSearchResultChatMessageId';
-import type { SearchHighlight } from './searchHighlight';
import type { ChatMessageSearchResultRole } from './chatMessageSearchResultRole';
import type { ChatMessageSearchResultScore } from './chatMessageSearchResultScore';
+import type { SearchHighlight } from './searchHighlight';
/**
* A chat match for a given message id
diff --git a/js/app/packages/service-clients/service-search/generated/models/chatSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/chatSearchRequest.ts
index a10f245cef..86c76b33c7 100644
--- a/js/app/packages/service-clients/service-search/generated/models/chatSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/chatSearchRequest.ts
@@ -7,4 +7,5 @@
import type { ChatSearchRequestAllOf } from './chatSearchRequestAllOf';
import type { ChatSearchRequestAllOfTwo } from './chatSearchRequestAllOfTwo';
-export type ChatSearchRequest = ChatSearchRequestAllOf & ChatSearchRequestAllOfTwo;
+export type ChatSearchRequest = ChatSearchRequestAllOf &
+ ChatSearchRequestAllOfTwo;
diff --git a/js/app/packages/service-clients/service-search/generated/models/chatSearchRequestAllOfTwo.ts b/js/app/packages/service-clients/service-search/generated/models/chatSearchRequestAllOfTwo.ts
index ff6a7dc5cc..a780ccdadf 100644
--- a/js/app/packages/service-clients/service-search/generated/models/chatSearchRequestAllOfTwo.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/chatSearchRequestAllOfTwo.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { ChatSearchRequestAllOfTwoCollapse } from './chatSearchRequestAllOfTwoCollapse';
-import type { MatchType } from './matchType';
import type { ChatSearchRequestAllOfTwoQuery } from './chatSearchRequestAllOfTwoQuery';
-import type { SearchOn } from './searchOn';
import type { ChatSearchRequestAllOfTwoTerms } from './chatSearchRequestAllOfTwoTerms';
+import type { MatchType } from './matchType';
+import type { SearchOn } from './searchOn';
export type ChatSearchRequestAllOfTwo = {
/** If true, returns only 1 result per entity. False by default. */
diff --git a/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadata.ts
index 6009606156..0a2bb5cd14 100644
--- a/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadata.ts
@@ -12,4 +12,5 @@ import type { ChatSearchResponseItemWithMetadataAllOf } from './chatSearchRespon
timestamps in opensearch as they would require us to update each chat message record for the chat
every time the chat updates (specifically for updated_at and viewed_at)
*/
-export type ChatSearchResponseItemWithMetadata = ChatSearchResponseItem & ChatSearchResponseItemWithMetadataAllOf;
+export type ChatSearchResponseItemWithMetadata = ChatSearchResponseItem &
+ ChatSearchResponseItemWithMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadataAllOfMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadataAllOfMetadata.ts
index f46d37e4ab..7c71c9001f 100644
--- a/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadataAllOfMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/chatSearchResponseItemWithMetadataAllOfMetadata.ts
@@ -6,4 +6,5 @@
*/
import type { ChatMetadata } from './chatMetadata';
-export type ChatSearchResponseItemWithMetadataAllOfMetadata = null | ChatMetadata;
+export type ChatSearchResponseItemWithMetadataAllOfMetadata =
+ null | ChatMetadata;
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchRequest.ts
index 5605d47755..ba5a2df2fd 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchRequest.ts
@@ -7,4 +7,5 @@
import type { DocumentSearchRequestAllOf } from './documentSearchRequestAllOf';
import type { DocumentSearchRequestAllOfTwo } from './documentSearchRequestAllOfTwo';
-export type DocumentSearchRequest = DocumentSearchRequestAllOf & DocumentSearchRequestAllOfTwo;
+export type DocumentSearchRequest = DocumentSearchRequestAllOf &
+ DocumentSearchRequestAllOfTwo;
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchRequestAllOfTwo.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchRequestAllOfTwo.ts
index 2c59d1703b..59b5758b6d 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchRequestAllOfTwo.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchRequestAllOfTwo.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { DocumentSearchRequestAllOfTwoCollapse } from './documentSearchRequestAllOfTwoCollapse';
-import type { MatchType } from './matchType';
import type { DocumentSearchRequestAllOfTwoQuery } from './documentSearchRequestAllOfTwoQuery';
-import type { SearchOn } from './searchOn';
import type { DocumentSearchRequestAllOfTwoTerms } from './documentSearchRequestAllOfTwoTerms';
+import type { MatchType } from './matchType';
+import type { SearchOn } from './searchOn';
export type DocumentSearchRequestAllOfTwo = {
/** If true, returns only 1 result per entity. False by default. */
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItem.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItem.ts
index 624187efe4..a3d395fd45 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItem.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItem.ts
@@ -4,9 +4,10 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { DocumentSearchResult } from './documentSearchResult';
+
import type { DocumentSearchResponseItemFileType } from './documentSearchResponseItemFileType';
import type { DocumentSearchResponseItemSubType } from './documentSearchResponseItemSubType';
+import type { DocumentSearchResult } from './documentSearchResult';
/**
* A single response item, part of the DocumentSearchResponse object
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadata.ts
index 95d8b9413a..51a45709ba 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadata.ts
@@ -12,4 +12,5 @@ import type { DocumentSearchResponseItemWithMetadataAllOf } from './documentSear
timestamps in opensearch as they would require us to update document page record
every time the document updates (specifically for updated_at and viewed_at)
*/
-export type DocumentSearchResponseItemWithMetadata = DocumentSearchResponseItem & DocumentSearchResponseItemWithMetadataAllOf;
+export type DocumentSearchResponseItemWithMetadata =
+ DocumentSearchResponseItem & DocumentSearchResponseItemWithMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadataAllOfMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadataAllOfMetadata.ts
index 3bbd407d33..fc39c58750 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadataAllOfMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchResponseItemWithMetadataAllOfMetadata.ts
@@ -6,4 +6,5 @@
*/
import type { DocumentMetadata } from './documentMetadata';
-export type DocumentSearchResponseItemWithMetadataAllOfMetadata = null | DocumentMetadata;
+export type DocumentSearchResponseItemWithMetadataAllOfMetadata =
+ null | DocumentMetadata;
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSearchResult.ts b/js/app/packages/service-clients/service-search/generated/models/documentSearchResult.ts
index 4ef24efc4f..6f0e06df02 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSearchResult.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSearchResult.ts
@@ -4,10 +4,11 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { SearchHighlight } from './searchHighlight';
+
import type { DocumentSearchResultNodeId } from './documentSearchResultNodeId';
import type { DocumentSearchResultRawContent } from './documentSearchResultRawContent';
import type { DocumentSearchResultScore } from './documentSearchResultScore';
+import type { SearchHighlight } from './searchHighlight';
/**
* A document match for a given node
diff --git a/js/app/packages/service-clients/service-search/generated/models/documentSubType.ts b/js/app/packages/service-clients/service-search/generated/models/documentSubType.ts
index b6b112dc44..ca39537324 100644
--- a/js/app/packages/service-clients/service-search/generated/models/documentSubType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/documentSubType.ts
@@ -9,8 +9,8 @@
* The document sub type enum represents all values of document sub types.
These values should match the `document_sub_type_value` table in macrodb.
*/
-export type DocumentSubType = typeof DocumentSubType[keyof typeof DocumentSubType];
-
+export type DocumentSubType =
+ (typeof DocumentSubType)[keyof typeof DocumentSubType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentSubType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/emailSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/emailSearchRequest.ts
index d1e5b99044..fcc93cfe4d 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emailSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emailSearchRequest.ts
@@ -7,4 +7,5 @@
import type { EmailSearchRequestAllOf } from './emailSearchRequestAllOf';
import type { EmailSearchRequestAllOfTwo } from './emailSearchRequestAllOfTwo';
-export type EmailSearchRequest = EmailSearchRequestAllOf & EmailSearchRequestAllOfTwo;
+export type EmailSearchRequest = EmailSearchRequestAllOf &
+ EmailSearchRequestAllOfTwo;
diff --git a/js/app/packages/service-clients/service-search/generated/models/emailSearchRequestAllOfTwo.ts b/js/app/packages/service-clients/service-search/generated/models/emailSearchRequestAllOfTwo.ts
index 92de4d1593..bcd93eb0a2 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emailSearchRequestAllOfTwo.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emailSearchRequestAllOfTwo.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { EmailSearchRequestAllOfTwoCollapse } from './emailSearchRequestAllOfTwoCollapse';
-import type { MatchType } from './matchType';
import type { EmailSearchRequestAllOfTwoQuery } from './emailSearchRequestAllOfTwoQuery';
-import type { SearchOn } from './searchOn';
import type { EmailSearchRequestAllOfTwoTerms } from './emailSearchRequestAllOfTwoTerms';
+import type { MatchType } from './matchType';
+import type { SearchOn } from './searchOn';
export type EmailSearchRequestAllOfTwo = {
/** If true, returns only 1 result per entity. False by default. */
diff --git a/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItem.ts b/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItem.ts
index d7901cacc9..bcd6e31768 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItem.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItem.ts
@@ -4,9 +4,10 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { EmailSearchResult } from './emailSearchResult';
+
import type { EmailSearchResponseItemName } from './emailSearchResponseItemName';
import type { EmailSearchResponseItemSubject } from './emailSearchResponseItemSubject';
+import type { EmailSearchResult } from './emailSearchResult';
/**
* A single response item, part of the EmailSearchResponse object
diff --git a/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItemWithMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItemWithMetadata.ts
index 4d0f77b65a..04ebc3fc00 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItemWithMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emailSearchResponseItemWithMetadata.ts
@@ -12,4 +12,5 @@ import type { EmailSearchResponseItemWithMetadataAllOf } from './emailSearchResp
timestamps in opensearch as they would require us to update each email message record for the thread
every time the thread updates (specifically for updated_at and viewed_at)
*/
-export type EmailSearchResponseItemWithMetadata = EmailSearchResponseItem & EmailSearchResponseItemWithMetadataAllOf;
+export type EmailSearchResponseItemWithMetadata = EmailSearchResponseItem &
+ EmailSearchResponseItemWithMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/emailSearchResult.ts b/js/app/packages/service-clients/service-search/generated/models/emailSearchResult.ts
index 5f37d15026..1d18fcdcc8 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emailSearchResult.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emailSearchResult.ts
@@ -4,10 +4,11 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { SearchHighlight } from './searchHighlight';
+
import type { EmailSearchResultMessageId } from './emailSearchResultMessageId';
import type { EmailSearchResultScore } from './emailSearchResultScore';
import type { EmailSearchResultSentAt } from './emailSearchResultSentAt';
+import type { SearchHighlight } from './searchHighlight';
/**
* A email message match for a given thread id
diff --git a/js/app/packages/service-clients/service-search/generated/models/emptyResponse.ts b/js/app/packages/service-clients/service-search/generated/models/emptyResponse.ts
index 1129f75cde..cc2ea898ab 100644
--- a/js/app/packages/service-clients/service-search/generated/models/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-search/generated/models/fileType.ts b/js/app/packages/service-clients/service-search/generated/models/fileType.ts
index 95d503e7a5..c25be98748 100644
--- a/js/app/packages/service-clients/service-search/generated/models/fileType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/fileType.ts
@@ -21,8 +21,7 @@ For each tuple it generates:
- ContentType::mime_type() - Gets MIME type for ContentType
*/
-export type FileType = typeof FileType[keyof typeof FileType];
-
+export type FileType = (typeof FileType)[keyof typeof FileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FileType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/index.ts b/js/app/packages/service-clients/service-search/generated/models/index.ts
index e430824d2e..ccae976bcb 100644
--- a/js/app/packages/service-clients/service-search/generated/models/index.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/index.ts
@@ -208,4 +208,4 @@ export * from './unifiedSearchResponseItemOneOfOnezeroAllOfType';
export * from './unifiedSearchResponseItemOneOfSeven';
export * from './unifiedSearchResponseItemOneOfSevenAllOf';
export * from './unifiedSearchResponseItemOneOfSevenAllOfType';
-export * from './unifiedSearchResponseNextCursor';
\ No newline at end of file
+export * from './unifiedSearchResponseNextCursor';
diff --git a/js/app/packages/service-clients/service-search/generated/models/matchType.ts b/js/app/packages/service-clients/service-search/generated/models/matchType.ts
index d4e8e7e029..dc6d7a892c 100644
--- a/js/app/packages/service-clients/service-search/generated/models/matchType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/matchType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type MatchType = typeof MatchType[keyof typeof MatchType];
-
+export type MatchType = (typeof MatchType)[keyof typeof MatchType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const MatchType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/projectSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/projectSearchRequest.ts
index d070aa3e31..434a00a796 100644
--- a/js/app/packages/service-clients/service-search/generated/models/projectSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/projectSearchRequest.ts
@@ -7,4 +7,5 @@
import type { ProjectSearchRequestAllOf } from './projectSearchRequestAllOf';
import type { ProjectSearchRequestAllOfTwo } from './projectSearchRequestAllOfTwo';
-export type ProjectSearchRequest = ProjectSearchRequestAllOf & ProjectSearchRequestAllOfTwo;
+export type ProjectSearchRequest = ProjectSearchRequestAllOf &
+ ProjectSearchRequestAllOfTwo;
diff --git a/js/app/packages/service-clients/service-search/generated/models/projectSearchRequestAllOfTwo.ts b/js/app/packages/service-clients/service-search/generated/models/projectSearchRequestAllOfTwo.ts
index 91580e2084..25a8d5e7bd 100644
--- a/js/app/packages/service-clients/service-search/generated/models/projectSearchRequestAllOfTwo.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/projectSearchRequestAllOfTwo.ts
@@ -4,11 +4,12 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { ProjectSearchRequestAllOfTwoCollapse } from './projectSearchRequestAllOfTwoCollapse';
+
import type { MatchType } from './matchType';
+import type { ProjectSearchRequestAllOfTwoCollapse } from './projectSearchRequestAllOfTwoCollapse';
import type { ProjectSearchRequestAllOfTwoQuery } from './projectSearchRequestAllOfTwoQuery';
-import type { SearchOn } from './searchOn';
import type { ProjectSearchRequestAllOfTwoTerms } from './projectSearchRequestAllOfTwoTerms';
+import type { SearchOn } from './searchOn';
export type ProjectSearchRequestAllOfTwo = {
/** If true, returns only 1 result per entity. False by default. */
diff --git a/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadata.ts
index 5f7578e5f3..386b11af0d 100644
--- a/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadata.ts
@@ -12,4 +12,5 @@ import type { ProjectSearchResponseItemWithMetadataAllOf } from './projectSearch
timestamps in opensearch as they would require us to update the project record
every time the project updates (specifically for updated_at and viewed_at)
*/
-export type ProjectSearchResponseItemWithMetadata = ProjectSearchResponseItem & ProjectSearchResponseItemWithMetadataAllOf;
+export type ProjectSearchResponseItemWithMetadata = ProjectSearchResponseItem &
+ ProjectSearchResponseItemWithMetadataAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadataAllOfMetadata.ts b/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadataAllOfMetadata.ts
index 9776f20174..baa43eec0b 100644
--- a/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadataAllOfMetadata.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/projectSearchResponseItemWithMetadataAllOfMetadata.ts
@@ -6,4 +6,5 @@
*/
import type { ProjectMetadata } from './projectMetadata';
-export type ProjectSearchResponseItemWithMetadataAllOfMetadata = null | ProjectMetadata;
+export type ProjectSearchResponseItemWithMetadataAllOfMetadata =
+ null | ProjectMetadata;
diff --git a/js/app/packages/service-clients/service-search/generated/models/projectSearchResult.ts b/js/app/packages/service-clients/service-search/generated/models/projectSearchResult.ts
index 8375d650e3..e3e46be530 100644
--- a/js/app/packages/service-clients/service-search/generated/models/projectSearchResult.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/projectSearchResult.ts
@@ -4,8 +4,9 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { SearchHighlight } from './searchHighlight';
+
import type { ProjectSearchResultScore } from './projectSearchResultScore';
+import type { SearchHighlight } from './searchHighlight';
export interface ProjectSearchResult {
highlight: SearchHighlight;
diff --git a/js/app/packages/service-clients/service-search/generated/models/searchOn.ts b/js/app/packages/service-clients/service-search/generated/models/searchOn.ts
index 5e9f36dcb2..99e9278ae0 100644
--- a/js/app/packages/service-clients/service-search/generated/models/searchOn.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/searchOn.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type SearchOn = typeof SearchOn[keyof typeof SearchOn];
-
+export type SearchOn = (typeof SearchOn)[keyof typeof SearchOn];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SearchOn = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsOrgId.ts b/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsOrgId.ts
index e54b7a567a..1bb6ba55bb 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsOrgId.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsOrgId.ts
@@ -8,4 +8,6 @@
/**
* The org id
*/
-export type SimpleChannelSearchReponseBaseItemTimestampSecondsOrgId = number | null;
+export type SimpleChannelSearchReponseBaseItemTimestampSecondsOrgId =
+ | number
+ | null;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsThreadId.ts b/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsThreadId.ts
index b30e87a7cb..470dc287aa 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsThreadId.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleChannelSearchReponseBaseItemTimestampSecondsThreadId.ts
@@ -8,4 +8,6 @@
/**
* The thread id
*/
-export type SimpleChannelSearchReponseBaseItemTimestampSecondsThreadId = string | null;
+export type SimpleChannelSearchReponseBaseItemTimestampSecondsThreadId =
+ | string
+ | null;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleDocumentSearchResponseBaseItemTimestampSecondsRawContent.ts b/js/app/packages/service-clients/service-search/generated/models/simpleDocumentSearchResponseBaseItemTimestampSecondsRawContent.ts
index b65e0709a9..e86291b91c 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleDocumentSearchResponseBaseItemTimestampSecondsRawContent.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleDocumentSearchResponseBaseItemTimestampSecondsRawContent.ts
@@ -8,4 +8,6 @@
/**
* The raw content of the document
*/
-export type SimpleDocumentSearchResponseBaseItemTimestampSecondsRawContent = string | null;
+export type SimpleDocumentSearchResponseBaseItemTimestampSecondsRawContent =
+ | string
+ | null;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSentAt.ts b/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSentAt.ts
index 7cac9f2301..4ed942fbbf 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSentAt.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSentAt.ts
@@ -8,4 +8,6 @@
/**
* The time the email was sent
*/
-export type SimpleEmailSearchResponseBaseItemTimestampSecondsSentAt = null | number;
+export type SimpleEmailSearchResponseBaseItemTimestampSecondsSentAt =
+ | null
+ | number;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSubject.ts b/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSubject.ts
index 9925a5faaa..b9e72fee51 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSubject.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleEmailSearchResponseBaseItemTimestampSecondsSubject.ts
@@ -8,4 +8,6 @@
/**
* The subject
*/
-export type SimpleEmailSearchResponseBaseItemTimestampSecondsSubject = string | null;
+export type SimpleEmailSearchResponseBaseItemTimestampSecondsSubject =
+ | string
+ | null;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchParams.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchParams.ts
index 02302cdbed..bbea18bd03 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchParams.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchParams.ts
@@ -6,12 +6,12 @@
*/
export type SimpleUnifiedSearchParams = {
-/**
- * The page size. Defaults to 10.
- */
-page_size: number;
-/**
- * Base64 encoded cursor for pagination.
- */
-cursor?: string;
+ /**
+ * The page size. Defaults to 10.
+ */
+ page_size: number;
+ /**
+ * Base64 encoded cursor for pagination.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItem.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItem.ts
index 532bcecc97..c1a0f89638 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItem.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItem.ts
@@ -6,8 +6,13 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemOneOf } from './simpleUnifiedSearchResponseBaseItemOneOf';
import type { SimpleUnifiedSearchResponseBaseItemOneOfFour } from './simpleUnifiedSearchResponseBaseItemOneOfFour';
-import type { SimpleUnifiedSearchResponseBaseItemOneOfSeven } from './simpleUnifiedSearchResponseBaseItemOneOfSeven';
-import type { SimpleUnifiedSearchResponseBaseItemOneOfOnezero } from './simpleUnifiedSearchResponseBaseItemOneOfOnezero';
import type { SimpleUnifiedSearchResponseBaseItemOneOfOnethree } from './simpleUnifiedSearchResponseBaseItemOneOfOnethree';
+import type { SimpleUnifiedSearchResponseBaseItemOneOfOnezero } from './simpleUnifiedSearchResponseBaseItemOneOfOnezero';
+import type { SimpleUnifiedSearchResponseBaseItemOneOfSeven } from './simpleUnifiedSearchResponseBaseItemOneOfSeven';
-export type SimpleUnifiedSearchResponseBaseItem = SimpleUnifiedSearchResponseBaseItemOneOf | SimpleUnifiedSearchResponseBaseItemOneOfFour | SimpleUnifiedSearchResponseBaseItemOneOfSeven | SimpleUnifiedSearchResponseBaseItemOneOfOnezero | SimpleUnifiedSearchResponseBaseItemOneOfOnethree;
+export type SimpleUnifiedSearchResponseBaseItem =
+ | SimpleUnifiedSearchResponseBaseItemOneOf
+ | SimpleUnifiedSearchResponseBaseItemOneOfFour
+ | SimpleUnifiedSearchResponseBaseItemOneOfSeven
+ | SimpleUnifiedSearchResponseBaseItemOneOfOnezero
+ | SimpleUnifiedSearchResponseBaseItemOneOfOnethree;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOf.ts
index 8d87780b13..8569544eab 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOf.ts
@@ -7,4 +7,6 @@
import type { SimpleDocumentSearchResponseBaseItemTimestampSeconds } from './simpleDocumentSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemOneOfAllOf } from './simpleUnifiedSearchResponseBaseItemOneOfAllOf';
-export type SimpleUnifiedSearchResponseBaseItemOneOf = SimpleDocumentSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemOneOfAllOf;
+export type SimpleUnifiedSearchResponseBaseItemOneOf =
+ SimpleDocumentSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfAllOfType.ts
index ac8d698b82..791308f047 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemOneOfAllOfType = typeof SimpleUnifiedSearchResponseBaseItemOneOfAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemOneOfAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemOneOfAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFour.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFour.ts
index b9c24469ae..55d2b53a1e 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFour.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFour.ts
@@ -7,4 +7,6 @@
import type { SimpleChatSearchResponseBaseItemTimestampSeconds } from './simpleChatSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemOneOfFourAllOf } from './simpleUnifiedSearchResponseBaseItemOneOfFourAllOf';
-export type SimpleUnifiedSearchResponseBaseItemOneOfFour = SimpleChatSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemOneOfFourAllOf;
+export type SimpleUnifiedSearchResponseBaseItemOneOfFour =
+ SimpleChatSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFourAllOfType.ts
index c294c9a64b..234277b079 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType = typeof SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethree.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethree.ts
index 6a9c80da45..f1c2989bd7 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethree.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethree.ts
@@ -7,4 +7,6 @@
import type { SimpleProjectSearchResponseBaseItemTimestampSeconds } from './simpleProjectSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOf } from './simpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOf';
-export type SimpleUnifiedSearchResponseBaseItemOneOfOnethree = SimpleProjectSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOf;
+export type SimpleUnifiedSearchResponseBaseItemOneOfOnethree =
+ SimpleProjectSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType.ts
index 53ff0c8ff1..7285b507e7 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType = typeof SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfOnethreeAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezero.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezero.ts
index 778ef8fa09..90377f915e 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezero.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezero.ts
@@ -7,4 +7,6 @@
import type { SimpleChannelSearchReponseBaseItemTimestampSeconds } from './simpleChannelSearchReponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOf } from './simpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOf';
-export type SimpleUnifiedSearchResponseBaseItemOneOfOnezero = SimpleChannelSearchReponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOf;
+export type SimpleUnifiedSearchResponseBaseItemOneOfOnezero =
+ SimpleChannelSearchReponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType.ts
index e6b2741551..b211e53657 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType = typeof SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfOnezeroAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSeven.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSeven.ts
index 0dd28c0ea4..fe995641d7 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSeven.ts
@@ -7,4 +7,6 @@
import type { SimpleEmailSearchResponseBaseItemTimestampSeconds } from './simpleEmailSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOf } from './simpleUnifiedSearchResponseBaseItemOneOfSevenAllOf';
-export type SimpleUnifiedSearchResponseBaseItemOneOfSeven = SimpleEmailSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOf;
+export type SimpleUnifiedSearchResponseBaseItemOneOfSeven =
+ SimpleEmailSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType.ts
index 9351183f19..0291a5ea98 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType = typeof SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSeconds.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSeconds.ts
index d3a4322467..79ef4eb606 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSeconds.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSeconds.ts
@@ -6,8 +6,13 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour';
-import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven';
-import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree';
+import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero';
+import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSeconds = SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSeconds =
+ | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf
+ | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour
+ | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven
+ | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero
+ | SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf.ts
index a378b1316e..8a3185550e 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf.ts
@@ -7,4 +7,6 @@
import type { SimpleDocumentSearchResponseBaseItemTimestampSeconds } from './simpleDocumentSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOf';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf = SimpleDocumentSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOf;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOf =
+ SimpleDocumentSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType.ts
index bdd2e4e4af..a843df56f5 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType.ts
@@ -5,10 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType = typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType = {
- document: 'document',
-} as const;
+export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfAllOfType =
+ {
+ document: 'document',
+ } as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour.ts
index 93628b7efb..a19a9d4e23 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour.ts
@@ -7,4 +7,6 @@
import type { SimpleChatSearchResponseBaseItemTimestampSeconds } from './simpleChatSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour = SimpleChatSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFour =
+ SimpleChatSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf.ts
index f1f46a371a..a49fa57433 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf.ts
@@ -6,6 +6,7 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf = {
- type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType;
-};
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOf =
+ {
+ type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType;
+ };
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType.ts
index 46e78087ba..7ccd3fb61d 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType.ts
@@ -5,10 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType = typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType = {
- chat: 'chat',
-} as const;
+export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfFourAllOfType =
+ {
+ chat: 'chat',
+ } as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree.ts
index c083108985..6a349e9ea3 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree.ts
@@ -7,4 +7,6 @@
import type { SimpleProjectSearchResponseBaseItemTimestampSeconds } from './simpleProjectSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree = SimpleProjectSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethree =
+ SimpleProjectSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf.ts
index e411aadc5e..9eb5c83fb4 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf.ts
@@ -6,6 +6,7 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf = {
- type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType;
-};
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOf =
+ {
+ type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType;
+ };
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType.ts
index c0d1fa6cff..016c5cab51 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType.ts
@@ -5,10 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType = typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType = {
- project: 'project',
-} as const;
+export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnethreeAllOfType =
+ {
+ project: 'project',
+ } as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero.ts
index f3ade73089..73f913aec6 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero.ts
@@ -7,4 +7,6 @@
import type { SimpleChannelSearchReponseBaseItemTimestampSeconds } from './simpleChannelSearchReponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero = SimpleChannelSearchReponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezero =
+ SimpleChannelSearchReponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf.ts
index fd6f674982..fd0507b76f 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf.ts
@@ -6,6 +6,7 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf = {
- type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType;
-};
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOf =
+ {
+ type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType;
+ };
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType.ts
index 0280f93658..71cfc68fa1 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType.ts
@@ -5,10 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType = typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType = {
- channel: 'channel',
-} as const;
+export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfOnezeroAllOfType =
+ {
+ channel: 'channel',
+ } as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven.ts
index 2c8a94aed3..3e724b287e 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven.ts
@@ -7,4 +7,6 @@
import type { SimpleEmailSearchResponseBaseItemTimestampSeconds } from './simpleEmailSearchResponseBaseItemTimestampSeconds';
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven = SimpleEmailSearchResponseBaseItemTimestampSeconds & SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf;
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSeven =
+ SimpleEmailSearchResponseBaseItemTimestampSeconds &
+ SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf.ts
index 9f7dfc045d..4a4cd856a5 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf.ts
@@ -6,6 +6,7 @@
*/
import type { SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType } from './simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType';
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf = {
- type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType;
-};
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOf =
+ {
+ type: SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType;
+ };
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType.ts
index 95bd6c36fd..e3b4e6f8bf 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType.ts
@@ -5,10 +5,11 @@
* OpenAPI spec version: 0.1.0
*/
-export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType = typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType];
-
+export type SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType =
+ (typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType)[keyof typeof SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType = {
- email: 'email',
-} as const;
+export const SimpleUnifiedSearchResponseBaseItemTimestampSecondsOneOfSevenAllOfType =
+ {
+ email: 'email',
+ } as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchIndex.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchIndex.ts
index 73c333c710..abf4739162 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchIndex.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchIndex.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchIndex = typeof UnifiedSearchIndex[keyof typeof UnifiedSearchIndex];
-
+export type UnifiedSearchIndex =
+ (typeof UnifiedSearchIndex)[keyof typeof UnifiedSearchIndex];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchIndex = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchParams.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchParams.ts
index e36cedfaae..805acf1c53 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchParams.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchParams.ts
@@ -6,12 +6,12 @@
*/
export type UnifiedSearchParams = {
-/**
- * The page size. Defaults to 10.
- */
-page_size: number;
-/**
- * Base64 encoded cursor value.
- */
-cursor?: string;
+ /**
+ * The page size. Defaults to 10.
+ */
+ page_size: number;
+ /**
+ * Base64 encoded cursor value.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchRequest.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchRequest.ts
index 34fa8aa64b..4244381f22 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchRequest.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchRequest.ts
@@ -4,12 +4,13 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
+
+import type { MatchType } from './matchType';
+import type { SearchOn } from './searchOn';
+import type { UnifiedSearchIndex } from './unifiedSearchIndex';
import type { UnifiedSearchRequestCollapse } from './unifiedSearchRequestCollapse';
import type { UnifiedSearchRequestFilters } from './unifiedSearchRequestFilters';
-import type { UnifiedSearchIndex } from './unifiedSearchIndex';
-import type { MatchType } from './matchType';
import type { UnifiedSearchRequestQuery } from './unifiedSearchRequestQuery';
-import type { SearchOn } from './searchOn';
import type { UnifiedSearchRequestTerms } from './unifiedSearchRequestTerms';
export interface UnifiedSearchRequest {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponse.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponse.ts
index 828fc312f9..5d566bf6cc 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponse.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponse.ts
@@ -4,8 +4,9 @@
* search_service
* OpenAPI spec version: 0.1.0
*/
-import type { UnifiedSearchResponseNextCursor } from './unifiedSearchResponseNextCursor';
+
import type { UnifiedSearchResponseItem } from './unifiedSearchResponseItem';
+import type { UnifiedSearchResponseNextCursor } from './unifiedSearchResponseNextCursor';
export interface UnifiedSearchResponse {
/** The next cursor to use for paginating results */
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItem.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItem.ts
index 26eed03d57..11ed48c7d3 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItem.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItem.ts
@@ -6,8 +6,13 @@
*/
import type { UnifiedSearchResponseItemOneOf } from './unifiedSearchResponseItemOneOf';
import type { UnifiedSearchResponseItemOneOfFour } from './unifiedSearchResponseItemOneOfFour';
-import type { UnifiedSearchResponseItemOneOfSeven } from './unifiedSearchResponseItemOneOfSeven';
-import type { UnifiedSearchResponseItemOneOfOnezero } from './unifiedSearchResponseItemOneOfOnezero';
import type { UnifiedSearchResponseItemOneOfOnethree } from './unifiedSearchResponseItemOneOfOnethree';
+import type { UnifiedSearchResponseItemOneOfOnezero } from './unifiedSearchResponseItemOneOfOnezero';
+import type { UnifiedSearchResponseItemOneOfSeven } from './unifiedSearchResponseItemOneOfSeven';
-export type UnifiedSearchResponseItem = UnifiedSearchResponseItemOneOf | UnifiedSearchResponseItemOneOfFour | UnifiedSearchResponseItemOneOfSeven | UnifiedSearchResponseItemOneOfOnezero | UnifiedSearchResponseItemOneOfOnethree;
+export type UnifiedSearchResponseItem =
+ | UnifiedSearchResponseItemOneOf
+ | UnifiedSearchResponseItemOneOfFour
+ | UnifiedSearchResponseItemOneOfSeven
+ | UnifiedSearchResponseItemOneOfOnezero
+ | UnifiedSearchResponseItemOneOfOnethree;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOf.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOf.ts
index ab8a82fd59..3af1643322 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOf.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOf.ts
@@ -7,4 +7,5 @@
import type { DocumentSearchResponseItemWithMetadata } from './documentSearchResponseItemWithMetadata';
import type { UnifiedSearchResponseItemOneOfAllOf } from './unifiedSearchResponseItemOneOfAllOf';
-export type UnifiedSearchResponseItemOneOf = DocumentSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfAllOf;
+export type UnifiedSearchResponseItemOneOf =
+ DocumentSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfAllOfType.ts
index 256c26c405..ac95c5d8a3 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchResponseItemOneOfAllOfType = typeof UnifiedSearchResponseItemOneOfAllOfType[keyof typeof UnifiedSearchResponseItemOneOfAllOfType];
-
+export type UnifiedSearchResponseItemOneOfAllOfType =
+ (typeof UnifiedSearchResponseItemOneOfAllOfType)[keyof typeof UnifiedSearchResponseItemOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFour.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFour.ts
index db42b8983f..2cec31ab60 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFour.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFour.ts
@@ -7,4 +7,5 @@
import type { ChatSearchResponseItemWithMetadata } from './chatSearchResponseItemWithMetadata';
import type { UnifiedSearchResponseItemOneOfFourAllOf } from './unifiedSearchResponseItemOneOfFourAllOf';
-export type UnifiedSearchResponseItemOneOfFour = ChatSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfFourAllOf;
+export type UnifiedSearchResponseItemOneOfFour =
+ ChatSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFourAllOfType.ts
index 017a58406f..1c45dcfa9a 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchResponseItemOneOfFourAllOfType = typeof UnifiedSearchResponseItemOneOfFourAllOfType[keyof typeof UnifiedSearchResponseItemOneOfFourAllOfType];
-
+export type UnifiedSearchResponseItemOneOfFourAllOfType =
+ (typeof UnifiedSearchResponseItemOneOfFourAllOfType)[keyof typeof UnifiedSearchResponseItemOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethree.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethree.ts
index 204186b0e8..e6ec095860 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethree.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethree.ts
@@ -7,4 +7,6 @@
import type { ProjectSearchResponseItemWithMetadata } from './projectSearchResponseItemWithMetadata';
import type { UnifiedSearchResponseItemOneOfOnethreeAllOf } from './unifiedSearchResponseItemOneOfOnethreeAllOf';
-export type UnifiedSearchResponseItemOneOfOnethree = ProjectSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfOnethreeAllOf;
+export type UnifiedSearchResponseItemOneOfOnethree =
+ ProjectSearchResponseItemWithMetadata &
+ UnifiedSearchResponseItemOneOfOnethreeAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethreeAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethreeAllOfType.ts
index 3e714b5932..04aa964a4f 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethreeAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnethreeAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchResponseItemOneOfOnethreeAllOfType = typeof UnifiedSearchResponseItemOneOfOnethreeAllOfType[keyof typeof UnifiedSearchResponseItemOneOfOnethreeAllOfType];
-
+export type UnifiedSearchResponseItemOneOfOnethreeAllOfType =
+ (typeof UnifiedSearchResponseItemOneOfOnethreeAllOfType)[keyof typeof UnifiedSearchResponseItemOneOfOnethreeAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfOnethreeAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezero.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezero.ts
index e6b10b6649..71bd2c8b9e 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezero.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezero.ts
@@ -7,4 +7,6 @@
import type { ChannelSearchResponseItemWithMetadata } from './channelSearchResponseItemWithMetadata';
import type { UnifiedSearchResponseItemOneOfOnezeroAllOf } from './unifiedSearchResponseItemOneOfOnezeroAllOf';
-export type UnifiedSearchResponseItemOneOfOnezero = ChannelSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfOnezeroAllOf;
+export type UnifiedSearchResponseItemOneOfOnezero =
+ ChannelSearchResponseItemWithMetadata &
+ UnifiedSearchResponseItemOneOfOnezeroAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezeroAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezeroAllOfType.ts
index 687e97dbf3..97673f11ce 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezeroAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnezeroAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchResponseItemOneOfOnezeroAllOfType = typeof UnifiedSearchResponseItemOneOfOnezeroAllOfType[keyof typeof UnifiedSearchResponseItemOneOfOnezeroAllOfType];
-
+export type UnifiedSearchResponseItemOneOfOnezeroAllOfType =
+ (typeof UnifiedSearchResponseItemOneOfOnezeroAllOfType)[keyof typeof UnifiedSearchResponseItemOneOfOnezeroAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfOnezeroAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSeven.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSeven.ts
index 8750c5afd5..36244ffee8 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSeven.ts
@@ -7,4 +7,6 @@
import type { EmailSearchResponseItemWithMetadata } from './emailSearchResponseItemWithMetadata';
import type { UnifiedSearchResponseItemOneOfSevenAllOf } from './unifiedSearchResponseItemOneOfSevenAllOf';
-export type UnifiedSearchResponseItemOneOfSeven = EmailSearchResponseItemWithMetadata & UnifiedSearchResponseItemOneOfSevenAllOf;
+export type UnifiedSearchResponseItemOneOfSeven =
+ EmailSearchResponseItemWithMetadata &
+ UnifiedSearchResponseItemOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSevenAllOfType.ts
index a45dc7d854..95acbb2906 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnifiedSearchResponseItemOneOfSevenAllOfType = typeof UnifiedSearchResponseItemOneOfSevenAllOfType[keyof typeof UnifiedSearchResponseItemOneOfSevenAllOfType];
-
+export type UnifiedSearchResponseItemOneOfSevenAllOfType =
+ (typeof UnifiedSearchResponseItemOneOfSevenAllOfType)[keyof typeof UnifiedSearchResponseItemOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-search/openapi.json b/js/app/packages/service-clients/service-search/openapi.json
index 6e384d213f..af0934556b 100644
--- a/js/app/packages/service-clients/service-search/openapi.json
+++ b/js/app/packages/service-clients/service-search/openapi.json
@@ -4,7 +4,9 @@
"title": "search_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -18,7 +20,9 @@
"description": "health",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
}
@@ -36,20 +40,27 @@
"in": "query",
"description": "The page size. Defaults to 10.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Base64 encoded cursor value.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UnifiedSearchRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/UnifiedSearchRequest"
+ }
}
},
"required": true
@@ -69,7 +80,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -77,7 +90,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -85,7 +100,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -103,20 +120,27 @@
"in": "query",
"description": "The page size. Defaults to 10.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Base64 encoded cursor for pagination.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UnifiedSearchRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/UnifiedSearchRequest"
+ }
}
},
"required": true
@@ -136,7 +160,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -144,7 +170,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -152,7 +180,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -168,12 +198,16 @@
"properties": {
"channel_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel IDs to search within. Examples: ['general']. Empty to search all accessible channels."
},
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel user mentions to search for. Examples: ['@username']. Empty if not filtering by mentions."
},
"org_id": {
@@ -183,12 +217,16 @@
},
"sender_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Sender IDs to search within. Examples: ['user1']. Empty to search all accessible senders."
},
"thread_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel thread IDs to search within. Examples: ['thread123']. Empty to search all threads."
}
}
@@ -198,17 +236,31 @@
"description": "Metadata for a channel fetched from the database",
"required": ["created_at", "updated_at"],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "interacted_at": { "type": ["integer", "null"], "format": "int64" },
- "updated_at": { "type": "integer", "format": "int64" },
- "viewed_at": { "type": ["integer", "null"], "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "interacted_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewed_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ChannelSearchRequest": {
"allOf": [
{
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChannelFilters",
"description": "Search filters for channels"
@@ -241,7 +293,9 @@
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple terms to search over"
}
}
@@ -279,7 +333,9 @@
},
"channel_message_search_results": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChannelSearchResult" },
+ "items": {
+ "$ref": "#/components/schemas/ChannelSearchResult"
+ },
"description": "The search results for the channel\nThis may be empty if the search result match was not on content"
},
"channel_type": {
@@ -299,13 +355,17 @@
},
"ChannelSearchResponseItemWithMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/ChannelSearchResponseItem" },
+ {
+ "$ref": "#/components/schemas/ChannelSearchResponseItem"
+ },
{
"type": "object",
"properties": {
"metadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChannelMetadata",
"description": "Metadata from the database. None if the channel doesn't exist in the database."
@@ -363,22 +423,30 @@
"properties": {
"chat_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Chat ids to search over. Examples: ['chat1'], ['chat1', 'chat2']. When provided, chat search will only match results on these chats. Empty to search all accessible chats."
},
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by chat owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "A list of project ids to search within. Examples: ['project1']. Empty to ignore project filtering."
},
"role": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Chat message roles to search. Examples: ['user'], ['assistant']. Empty to search all roles."
}
}
@@ -413,18 +481,34 @@
"description": "Metadata for a chat fetched from the database",
"required": ["created_at", "updated_at"],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "deleted_at": { "type": ["integer", "null"], "format": "int64" },
- "project_id": { "type": ["string", "null"] },
- "updated_at": { "type": "integer", "format": "int64" },
- "viewed_at": { "type": ["integer", "null"], "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deleted_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "project_id": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewed_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ChatSearchRequest": {
"allOf": [
{
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChatFilters",
"description": "Search filters for chat"
@@ -457,7 +541,9 @@
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple terms to search over"
}
}
@@ -497,7 +583,9 @@
},
"chat_search_results": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChatMessageSearchResult" },
+ "items": {
+ "$ref": "#/components/schemas/ChatMessageSearchResult"
+ },
"description": "The search results for the chat\nThis may be empty if the search result match was on the chat title only"
},
"id": {
@@ -505,8 +593,12 @@
"format": "uuid",
"description": "Standardized fields that all item types will share.\nThese field names are being aligned across all item types\nfor consistency in our data model."
},
- "name": { "type": "string" },
- "owner_id": { "type": "string" },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
"user_id": {
"type": "string",
"description": "The id of the creator of the chat"
@@ -515,13 +607,17 @@
},
"ChatSearchResponseItemWithMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/ChatSearchResponseItem" },
+ {
+ "$ref": "#/components/schemas/ChatSearchResponseItem"
+ },
{
"type": "object",
"properties": {
"metadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChatMetadata",
"description": "Metadata from the database. None if the chat doesn't exist in the database."
@@ -539,22 +635,30 @@
"properties": {
"document_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Document ids to search over. Examples: ['doc1'], ['doc1', 'doc2']. Empty to search all accessible documents."
},
"file_types": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Document file types to search. Examples: ['pdf'], ['md', 'txt']. Empty to search all file types."
},
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by document owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "A list of project ids to search within. Examples: ['project1'].\nfiltering. Empty to ignore project filtering."
}
}
@@ -564,18 +668,34 @@
"description": "Metadata for a document fetched from the database",
"required": ["created_at", "updated_at"],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "deleted_at": { "type": ["integer", "null"], "format": "int64" },
- "project_id": { "type": ["string", "null"] },
- "updated_at": { "type": "integer", "format": "int64" },
- "viewed_at": { "type": ["integer", "null"], "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deleted_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "project_id": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewed_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"DocumentSearchRequest": {
"allOf": [
{
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentFilters",
"description": "Search filters for documents"
@@ -608,7 +728,9 @@
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple terms to search over"
}
}
@@ -652,7 +774,9 @@
},
"document_search_results": {
"type": "array",
- "items": { "$ref": "#/components/schemas/DocumentSearchResult" },
+ "items": {
+ "$ref": "#/components/schemas/DocumentSearchResult"
+ },
"description": "The search results for the document\nThis may be empty if the search result match was on the document name only"
},
"file_type": {
@@ -664,11 +788,17 @@
"format": "uuid",
"description": "Standardized fields that all item types will share.\nThese field names are being aligned across all item types\nfor consistency in our data model."
},
- "name": { "type": "string" },
- "owner_id": { "type": "string" },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
"sub_type": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentSubType",
"description": "The sub type of the document if present."
@@ -679,13 +809,17 @@
},
"DocumentSearchResponseItemWithMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/DocumentSearchResponseItem" },
+ {
+ "$ref": "#/components/schemas/DocumentSearchResponseItem"
+ },
{
"type": "object",
"properties": {
"metadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentMetadata",
"description": "Metadata from the database. None if the document doesn't exist in the database."
@@ -732,22 +866,30 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email BCC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by BCC."
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email CC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by CC."
},
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email Recipient addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by Recipient."
},
"senders": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email sender addresses to filter by. Examples: ['[email protected]']. Empty to search all senders."
}
}
@@ -756,7 +898,9 @@
"allOf": [
{
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/EmailFilters",
"description": "Search filters for email"
@@ -789,7 +933,9 @@
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple terms to search over"
}
}
@@ -823,7 +969,9 @@
"properties": {
"email_message_search_results": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EmailSearchResult" },
+ "items": {
+ "$ref": "#/components/schemas/EmailSearchResult"
+ },
"description": "The search results for the document\nThis may be empty if the search result match was on the email subject only"
},
"id": {
@@ -835,7 +983,9 @@
"type": ["string", "null"],
"description": "Subject of the email thread"
},
- "owner_id": { "type": "string" },
+ "owner_id": {
+ "type": "string"
+ },
"subject": {
"type": ["string", "null"],
"description": "The subject of the email\nThis is only present if the search result is on the message content"
@@ -853,15 +1003,28 @@
},
"EmailSearchResponseItemWithMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/EmailSearchResponseItem" },
+ {
+ "$ref": "#/components/schemas/EmailSearchResponseItem"
+ },
{
"type": "object",
"required": ["created_at", "updated_at"],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "snippet": { "type": ["string", "null"] },
- "updated_at": { "type": "integer", "format": "int64" },
- "viewed_at": { "type": ["integer", "null"], "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "snippet": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewed_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
}
],
@@ -882,12 +1045,16 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "This is only present if the search result is on the message content"
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "This is only present if the search result is on the message content"
},
"highlight": {
@@ -896,7 +1063,9 @@
},
"labels": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "This is only present if the search result is on the message content"
},
"message_id": {
@@ -910,7 +1079,9 @@
},
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "This is only present if the search result is on the message content"
},
"score": {
@@ -1382,12 +1553,16 @@
"properties": {
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by project owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Project IDs to search within. Examples: ['project1']. Empty to search all accessible projects."
}
}
@@ -1397,11 +1572,25 @@
"description": "Metadata for a project fetched from the database",
"required": ["created_at", "updated_at"],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "deleted_at": { "type": ["integer", "null"], "format": "int64" },
- "parent_project_id": { "type": ["string", "null"] },
- "updated_at": { "type": "integer", "format": "int64" },
- "viewed_at": { "type": ["integer", "null"], "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deleted_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "parent_project_id": {
+ "type": ["string", "null"]
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewed_at": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"ProjectSearchMetadata": {
@@ -1415,18 +1604,33 @@
"project_name"
],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
- "owner_id": { "type": "string" },
- "project_id": { "type": "string", "format": "uuid" },
- "project_name": { "type": "string" },
- "updated_at": { "type": "integer", "format": "int64" }
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "project_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "project_name": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"ProjectSearchRequest": {
"allOf": [
{
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ProjectFilters",
"description": "Search filters for chat"
@@ -1459,7 +1663,9 @@
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple terms to search over"
}
}
@@ -1478,30 +1684,46 @@
"project_search_results"
],
"properties": {
- "created_at": { "type": "integer", "format": "int64" },
+ "created_at": {
+ "type": "integer",
+ "format": "int64"
+ },
"id": {
"type": "string",
"format": "uuid",
"description": "Standardized fields that all item types will share.\nThese field names are being aligned across all item types\nfor consistency in our data model."
},
- "name": { "type": "string" },
- "owner_id": { "type": "string" },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
"project_search_results": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ProjectSearchResult" }
+ "items": {
+ "$ref": "#/components/schemas/ProjectSearchResult"
+ }
},
- "updated_at": { "type": "integer", "format": "int64" }
+ "updated_at": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"ProjectSearchResponseItemWithMetadata": {
"allOf": [
- { "$ref": "#/components/schemas/ProjectSearchResponseItem" },
+ {
+ "$ref": "#/components/schemas/ProjectSearchResponseItem"
+ },
{
"type": "object",
"properties": {
"metadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ProjectMetadata",
"description": "Metadata from the database. None if the project doesn't exist in the database."
@@ -1517,7 +1739,9 @@
"type": "object",
"required": ["highlight"],
"properties": {
- "highlight": { "$ref": "#/components/schemas/SearchHighlight" },
+ "highlight": {
+ "$ref": "#/components/schemas/SearchHighlight"
+ },
"score": {
"type": ["number", "null"],
"format": "double",
@@ -1530,17 +1754,23 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The highlight match on the bcc (email only)"
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The highlight match on the cc (email only)"
},
"content": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The highlight match on the content field"
},
"name": {
@@ -1549,7 +1779,9 @@
},
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The highlight match on the recipients (email only)"
},
"sender": {
@@ -1592,13 +1824,21 @@
"highlight"
],
"properties": {
- "channel_id": { "type": "string", "description": "The channel id" },
+ "channel_id": {
+ "type": "string",
+ "description": "The channel id"
+ },
"channel_type": {
"type": "string",
"description": "The channel type"
},
"created_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the channel message was created"
},
"highlight": {
@@ -1607,22 +1847,35 @@
},
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The mentions"
},
- "message_id": { "type": "string", "description": "The message id" },
+ "message_id": {
+ "type": "string",
+ "description": "The message id"
+ },
"org_id": {
"type": ["integer", "null"],
"format": "int64",
"description": "The org id"
},
- "sender_id": { "type": "string", "description": "The sender id" },
+ "sender_id": {
+ "type": "string",
+ "description": "The sender id"
+ },
"thread_id": {
"type": ["string", "null"],
"description": "The thread id"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the channel message was last updated"
}
}
@@ -1640,13 +1893,21 @@
"highlight"
],
"properties": {
- "channel_id": { "type": "string", "description": "The channel id" },
+ "channel_id": {
+ "type": "string",
+ "description": "The channel id"
+ },
"channel_type": {
"type": "string",
"description": "The channel type"
},
"created_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the channel message was created"
},
"highlight": {
@@ -1655,22 +1916,35 @@
},
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The mentions"
},
- "message_id": { "type": "string", "description": "The message id" },
+ "message_id": {
+ "type": "string",
+ "description": "The message id"
+ },
"org_id": {
"type": ["integer", "null"],
"format": "int64",
"description": "The org id"
},
- "sender_id": { "type": "string", "description": "The sender id" },
+ "sender_id": {
+ "type": "string",
+ "description": "The sender id"
+ },
"thread_id": {
"type": ["string", "null"],
"description": "The thread id"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the channel message was last updated"
}
}
@@ -1713,7 +1987,10 @@
"highlight"
],
"properties": {
- "chat_id": { "type": "string", "description": "The chat id" },
+ "chat_id": {
+ "type": "string",
+ "description": "The chat id"
+ },
"chat_message_id": {
"type": "string",
"description": "The chat message id"
@@ -1722,13 +1999,27 @@
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the chat"
},
- "role": { "type": "string", "description": "The role" },
- "title": { "type": "string", "description": "The title" },
+ "role": {
+ "type": "string",
+ "description": "The role"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title"
+ },
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the chat was last updated"
},
- "user_id": { "type": "string", "description": "The user id" }
+ "user_id": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"SimpleChatSearchResponseBaseItem_TimestampSeconds": {
@@ -1743,7 +2034,10 @@
"highlight"
],
"properties": {
- "chat_id": { "type": "string", "description": "The chat id" },
+ "chat_id": {
+ "type": "string",
+ "description": "The chat id"
+ },
"chat_message_id": {
"type": "string",
"description": "The chat message id"
@@ -1752,13 +2046,27 @@
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the chat"
},
- "role": { "type": "string", "description": "The role" },
- "title": { "type": "string", "description": "The title" },
+ "role": {
+ "type": "string",
+ "description": "The role"
+ },
+ "title": {
+ "type": "string",
+ "description": "The title"
+ },
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the chat was last updated"
},
- "user_id": { "type": "string", "description": "The user id" }
+ "user_id": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"SimpleDocumentSearchResponse": {
@@ -1786,24 +2094,41 @@
"highlight"
],
"properties": {
- "document_id": { "type": "string", "description": "The document id" },
+ "document_id": {
+ "type": "string",
+ "description": "The document id"
+ },
"document_name": {
"type": "string",
"description": "The document name"
},
- "file_type": { "type": "string", "description": "The file type" },
+ "file_type": {
+ "type": "string",
+ "description": "The file type"
+ },
"highlight": {
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the document"
},
- "node_id": { "type": "string", "description": "The node id" },
- "owner_id": { "type": "string", "description": "The owner id" },
+ "node_id": {
+ "type": "string",
+ "description": "The node id"
+ },
+ "owner_id": {
+ "type": "string",
+ "description": "The owner id"
+ },
"raw_content": {
"type": ["string", "null"],
"description": "The raw content of the document"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the document was last updated"
}
}
@@ -1820,24 +2145,41 @@
"highlight"
],
"properties": {
- "document_id": { "type": "string", "description": "The document id" },
+ "document_id": {
+ "type": "string",
+ "description": "The document id"
+ },
"document_name": {
"type": "string",
"description": "The document name"
},
- "file_type": { "type": "string", "description": "The file type" },
+ "file_type": {
+ "type": "string",
+ "description": "The file type"
+ },
"highlight": {
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the document"
},
- "node_id": { "type": "string", "description": "The node id" },
- "owner_id": { "type": "string", "description": "The owner id" },
+ "node_id": {
+ "type": "string",
+ "description": "The node id"
+ },
+ "owner_id": {
+ "type": "string",
+ "description": "The owner id"
+ },
"raw_content": {
"type": ["string", "null"],
"description": "The raw content of the document"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the document was last updated"
}
}
@@ -1873,12 +2215,16 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The bcc"
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The cc"
},
"highlight": {
@@ -1887,21 +2233,39 @@
},
"labels": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The labels"
},
- "link_id": { "type": "string", "description": "The link id" },
- "message_id": { "type": "string", "description": "The message id" },
+ "link_id": {
+ "type": "string",
+ "description": "The link id"
+ },
+ "message_id": {
+ "type": "string",
+ "description": "The message id"
+ },
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The recipients"
},
- "sender": { "type": "string", "description": "The sender" },
+ "sender": {
+ "type": "string",
+ "description": "The sender"
+ },
"sent_at": {
"oneOf": [
- { "type": "null" },
- { "type": "integer", "format": "int64" }
+ {
+ "type": "null"
+ },
+ {
+ "type": "integer",
+ "format": "int64"
+ }
],
"description": "The time the email was sent"
},
@@ -1909,12 +2273,23 @@
"type": ["string", "null"],
"description": "The subject"
},
- "thread_id": { "type": "string", "description": "The thread id" },
+ "thread_id": {
+ "type": "string",
+ "description": "The thread id"
+ },
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the email was last updated"
},
- "user_id": { "type": "string", "description": "The user id" }
+ "user_id": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"SimpleEmailSearchResponseBaseItem_TimestampSeconds": {
@@ -1935,12 +2310,16 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The bcc"
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The cc"
},
"highlight": {
@@ -1949,21 +2328,39 @@
},
"labels": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The labels"
},
- "link_id": { "type": "string", "description": "The link id" },
- "message_id": { "type": "string", "description": "The message id" },
+ "link_id": {
+ "type": "string",
+ "description": "The link id"
+ },
+ "message_id": {
+ "type": "string",
+ "description": "The message id"
+ },
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The recipients"
},
- "sender": { "type": "string", "description": "The sender" },
+ "sender": {
+ "type": "string",
+ "description": "The sender"
+ },
"sent_at": {
"oneOf": [
- { "type": "null" },
- { "type": "integer", "format": "int64" }
+ {
+ "type": "null"
+ },
+ {
+ "type": "integer",
+ "format": "int64"
+ }
],
"description": "The time the email was sent"
},
@@ -1971,12 +2368,23 @@
"type": ["string", "null"],
"description": "The subject"
},
- "thread_id": { "type": "string", "description": "The thread id" },
+ "thread_id": {
+ "type": "string",
+ "description": "The thread id"
+ },
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the email was last updated"
},
- "user_id": { "type": "string", "description": "The user id" }
+ "user_id": {
+ "type": "string",
+ "description": "The user id"
+ }
}
},
"SimpleProjectSearchResponse": {
@@ -2004,20 +2412,33 @@
],
"properties": {
"created_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the project was created"
},
"highlight": {
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the project"
},
- "project_id": { "type": "string", "description": "The project id" },
+ "project_id": {
+ "type": "string",
+ "description": "The project id"
+ },
"project_name": {
"type": "string",
"description": "The project name"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the project was last updated"
},
"user_id": {
@@ -2038,20 +2459,33 @@
],
"properties": {
"created_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the project was created"
},
"highlight": {
"$ref": "#/components/schemas/SearchHighlight",
"description": "The highlights on the project"
},
- "project_id": { "type": "string", "description": "The project id" },
+ "project_id": {
+ "type": "string",
+ "description": "The project id"
+ },
"project_name": {
"type": "string",
"description": "The project name"
},
"updated_at": {
- "oneOf": [{ "type": "integer", "format": "int64" }],
+ "oneOf": [
+ {
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
"description": "The time the project was last updated"
},
"user_id": {
@@ -2083,7 +2517,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["document"] }
+ "type": {
+ "type": "string",
+ "enum": ["document"]
+ }
}
}
]
@@ -2096,7 +2533,12 @@
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["chat"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["chat"]
+ }
+ }
}
]
},
@@ -2109,7 +2551,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["email"] }
+ "type": {
+ "type": "string",
+ "enum": ["email"]
+ }
}
}
]
@@ -2123,7 +2568,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["channel"] }
+ "type": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
}
]
@@ -2137,7 +2585,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["project"] }
+ "type": {
+ "type": "string",
+ "enum": ["project"]
+ }
}
}
]
@@ -2155,7 +2606,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["document"] }
+ "type": {
+ "type": "string",
+ "enum": ["document"]
+ }
}
}
]
@@ -2168,7 +2622,12 @@
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["chat"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["chat"]
+ }
+ }
}
]
},
@@ -2181,7 +2640,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["email"] }
+ "type": {
+ "type": "string",
+ "enum": ["email"]
+ }
}
}
]
@@ -2195,7 +2657,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["channel"] }
+ "type": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
}
]
@@ -2209,7 +2674,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["project"] }
+ "type": {
+ "type": "string",
+ "enum": ["project"]
+ }
}
}
]
@@ -2221,7 +2689,9 @@
"properties": {
"channel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChannelFilters",
"description": "Channel filters. `null` to not filter channels searched over."
@@ -2230,7 +2700,9 @@
},
"chat": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ChatFilters",
"description": "Chat filters. `null` to not filter chats searched over."
@@ -2239,7 +2711,9 @@
},
"document": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentFilters",
"description": "Document filters. `null` to not filter documents searched over."
@@ -2248,7 +2722,9 @@
},
"email": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/EmailFilters",
"description": "Email filters. `null` to not filter emails searched over."
@@ -2257,7 +2733,9 @@
},
"project": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/ProjectFilters",
"description": "Project filters. `null` to not filter projects searched over."
@@ -2274,14 +2752,18 @@
"type": "object",
"required": ["match_type"],
"properties": {
- "collapse": { "type": ["boolean", "null"] },
+ "collapse": {
+ "type": ["boolean", "null"]
+ },
"disable_recency": {
"type": "boolean",
"description": "If search_on is set to NameContent, you can disable the recency filter\nby setting to true."
},
"filters": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UnifiedSearchFilters",
"description": "Search filters for various kinds of items. Set the entire filters property as `null` if you do not have specific filters for a given type, e.g. bcc for email filters."
@@ -2290,21 +2772,27 @@
},
"include": {
"type": "array",
- "items": { "$ref": "#/components/schemas/UnifiedSearchIndex" },
+ "items": {
+ "$ref": "#/components/schemas/UnifiedSearchIndex"
+ },
"description": "Include specific entity types from search. If empty, all entity types will be searched over. If you are unsure which types to search, use an empty array to search all."
},
"match_type": {
"$ref": "#/components/schemas/MatchType",
"description": "How to match the search terms. 'exact' for precise case-sensitive phrase matches, 'partial' for prefix/partial matches. REQUIRED field."
},
- "query": { "type": ["string", "null"] },
+ "query": {
+ "type": ["string", "null"]
+ },
"search_on": {
"$ref": "#/components/schemas/SearchOn",
"description": "Fields to search on (Name, Content, NameContent). Defaults to Content"
},
"terms": {
"type": ["array", "null"],
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Multiple distinct search terms as separate strings. Use this for keyword-based searches where you want to find content containing any of these terms. Each term must be at least 3 characters (shorter terms are automatically filtered out). Examples: ['machine', 'learning', 'algorithms'], ['project', 'status', 'update']. `null` this field if searching without text terms to search all. This field matches query string against both name and content."
}
}
@@ -2337,7 +2825,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["document"] }
+ "type": {
+ "type": "string",
+ "enum": ["document"]
+ }
}
}
]
@@ -2350,7 +2841,12 @@
{
"type": "object",
"required": ["type"],
- "properties": { "type": { "type": "string", "enum": ["chat"] } }
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["chat"]
+ }
+ }
}
]
},
@@ -2363,7 +2859,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["email"] }
+ "type": {
+ "type": "string",
+ "enum": ["email"]
+ }
}
}
]
@@ -2377,7 +2876,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["channel"] }
+ "type": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
}
]
@@ -2391,7 +2893,10 @@
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["project"] }
+ "type": {
+ "type": "string",
+ "enum": ["project"]
+ }
}
}
]
@@ -2400,5 +2905,10 @@
}
}
},
- "tags": [{ "name": "search service", "description": "Macro Search Service" }]
+ "tags": [
+ {
+ "name": "search service",
+ "description": "Macro Search Service"
+ }
+ ]
}
diff --git a/js/app/packages/service-clients/service-static-files/generated/client.ts b/js/app/packages/service-clients/service-static-files/generated/client.ts
index e6b8d188a2..a4adb0b58a 100644
--- a/js/app/packages/service-clients/service-static-files/generated/client.ts
+++ b/js/app/packages/service-clients/service-static-files/generated/client.ts
@@ -4,211 +4,216 @@
* static_file_service
* OpenAPI spec version: 0.1.0
*/
-import type {
- FileMetadata,
- PutFileRequest,
- PutFileResponse
-} from './schemas';
+import type { FileMetadata, PutFileRequest, PutFileResponse } from './schemas';
export type putPresignedUrlResponse200 = {
- data: PutFileResponse
- status: 200
-}
+ data: PutFileResponse;
+ status: 200;
+};
export type putPresignedUrlResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type putPresignedUrlResponse500 = {
- data: string
- status: 500
-}
-
-export type putPresignedUrlResponseSuccess = (putPresignedUrlResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type putPresignedUrlResponseSuccess = putPresignedUrlResponse200 & {
headers: Headers;
};
-export type putPresignedUrlResponseError = (putPresignedUrlResponse401 | putPresignedUrlResponse500) & {
+export type putPresignedUrlResponseError = (
+ | putPresignedUrlResponse401
+ | putPresignedUrlResponse500
+) & {
headers: Headers;
};
-export type putPresignedUrlResponse = (putPresignedUrlResponseSuccess | putPresignedUrlResponseError)
+export type putPresignedUrlResponse =
+ | putPresignedUrlResponseSuccess
+ | putPresignedUrlResponseError;
export const getPutPresignedUrlUrl = () => {
+ return `/api/file`;
+};
-
-
-
- return `/api/file`
-}
-
-export const putPresignedUrl = async (putFileRequest: PutFileRequest, options?: RequestInit): Promise<putPresignedUrlResponse> => {
-
- const res = await fetch(getPutPresignedUrlUrl(),
- {
+export const putPresignedUrl = async (
+ putFileRequest: PutFileRequest,
+ options?: RequestInit
+): Promise<putPresignedUrlResponse> => {
+ const res = await fetch(getPutPresignedUrlUrl(), {
...options,
method: 'PUT',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- putFileRequest,)
- }
-)
+ body: JSON.stringify(putFileRequest),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: putPresignedUrlResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as putPresignedUrlResponse
-}
-
+ const data: putPresignedUrlResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as putPresignedUrlResponse;
+};
export type handleGetMetadataResponse200 = {
- data: FileMetadata
- status: 200
-}
+ data: FileMetadata;
+ status: 200;
+};
export type handleGetMetadataResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type handleGetMetadataResponse500 = {
- data: string
- status: 500
-}
-
-export type handleGetMetadataResponseSuccess = (handleGetMetadataResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type handleGetMetadataResponseSuccess = handleGetMetadataResponse200 & {
headers: Headers;
};
-export type handleGetMetadataResponseError = (handleGetMetadataResponse404 | handleGetMetadataResponse500) & {
+export type handleGetMetadataResponseError = (
+ | handleGetMetadataResponse404
+ | handleGetMetadataResponse500
+) & {
headers: Headers;
};
-export type handleGetMetadataResponse = (handleGetMetadataResponseSuccess | handleGetMetadataResponseError)
-
-export const getHandleGetMetadataUrl = (fileId: string,) => {
-
+export type handleGetMetadataResponse =
+ | handleGetMetadataResponseSuccess
+ | handleGetMetadataResponseError;
-
-
- return `/api/file/metadata/${fileId}`
-}
+export const getHandleGetMetadataUrl = (fileId: string) => {
+ return `/api/file/metadata/${fileId}`;
+};
-export const handleGetMetadata = async (fileId: string, options?: RequestInit): Promise<handleGetMetadataResponse> => {
-
- const res = await fetch(getHandleGetMetadataUrl(fileId),
- {
+export const handleGetMetadata = async (
+ fileId: string,
+ options?: RequestInit
+): Promise<handleGetMetadataResponse> => {
+ const res = await fetch(getHandleGetMetadataUrl(fileId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: handleGetMetadataResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as handleGetMetadataResponse
-}
-
+ const data: handleGetMetadataResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as handleGetMetadataResponse;
+};
export type handleDeleteFileResponse200 = {
- data: string
- status: 200
-}
+ data: string;
+ status: 200;
+};
export type handleDeleteFileResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type handleDeleteFileResponse403 = {
- data: string
- status: 403
-}
+ data: string;
+ status: 403;
+};
export type handleDeleteFileResponse404 = {
- data: string
- status: 404
-}
-
-export type handleDeleteFileResponseSuccess = (handleDeleteFileResponse200) & {
+ data: string;
+ status: 404;
+};
+
+export type handleDeleteFileResponseSuccess = handleDeleteFileResponse200 & {
headers: Headers;
};
-export type handleDeleteFileResponseError = (handleDeleteFileResponse401 | handleDeleteFileResponse403 | handleDeleteFileResponse404) & {
+export type handleDeleteFileResponseError = (
+ | handleDeleteFileResponse401
+ | handleDeleteFileResponse403
+ | handleDeleteFileResponse404
+) & {
headers: Headers;
};
-export type handleDeleteFileResponse = (handleDeleteFileResponseSuccess | handleDeleteFileResponseError)
-
-export const getHandleDeleteFileUrl = (fileId: string,) => {
-
+export type handleDeleteFileResponse =
+ | handleDeleteFileResponseSuccess
+ | handleDeleteFileResponseError;
-
-
- return `/api/file/${fileId}`
-}
+export const getHandleDeleteFileUrl = (fileId: string) => {
+ return `/api/file/${fileId}`;
+};
-export const handleDeleteFile = async (fileId: string, options?: RequestInit): Promise<handleDeleteFileResponse> => {
-
- const res = await fetch(getHandleDeleteFileUrl(fileId),
- {
+export const handleDeleteFile = async (
+ fileId: string,
+ options?: RequestInit
+): Promise<handleDeleteFileResponse> => {
+ const res = await fetch(getHandleDeleteFileUrl(fileId), {
...options,
- method: 'DELETE'
-
-
- }
-)
+ method: 'DELETE',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: handleDeleteFileResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as handleDeleteFileResponse
-}
-
+ const data: handleDeleteFileResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as handleDeleteFileResponse;
+};
export type getFileDocumentationResponse200 = {
- data: number[]
- status: 200
-}
+ data: number[];
+ status: 200;
+};
export type getFileDocumentationResponse404 = {
- data: void
- status: 404
-}
-
-export type getFileDocumentationResponseSuccess = (getFileDocumentationResponse200) & {
- headers: Headers;
-};
-export type getFileDocumentationResponseError = (getFileDocumentationResponse404) & {
- headers: Headers;
+ data: void;
+ status: 404;
};
-export type getFileDocumentationResponse = (getFileDocumentationResponseSuccess | getFileDocumentationResponseError)
-
-export const getGetFileDocumentationUrl = (fileId: string,) => {
-
-
-
-
- return `/file/${fileId}`
-}
+export type getFileDocumentationResponseSuccess =
+ getFileDocumentationResponse200 & {
+ headers: Headers;
+ };
+export type getFileDocumentationResponseError =
+ getFileDocumentationResponse404 & {
+ headers: Headers;
+ };
+
+export type getFileDocumentationResponse =
+ | getFileDocumentationResponseSuccess
+ | getFileDocumentationResponseError;
+
+export const getGetFileDocumentationUrl = (fileId: string) => {
+ return `/file/${fileId}`;
+};
-export const getFileDocumentation = async (fileId: string, options?: RequestInit): Promise<getFileDocumentationResponse> => {
-
- const res = await fetch(getGetFileDocumentationUrl(fileId),
- {
+export const getFileDocumentation = async (
+ fileId: string,
+ options?: RequestInit
+): Promise<getFileDocumentationResponse> => {
+ const res = await fetch(getGetFileDocumentationUrl(fileId), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getFileDocumentationResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getFileDocumentationResponse
-}
+
+ const data: getFileDocumentationResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getFileDocumentationResponse;
+};
diff --git a/js/app/packages/service-clients/service-static-files/generated/schemas/index.ts b/js/app/packages/service-clients/service-static-files/generated/schemas/index.ts
index f8ee993a37..1f709fbd7e 100644
--- a/js/app/packages/service-clients/service-static-files/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-static-files/generated/schemas/index.ts
@@ -8,4 +8,4 @@
export * from './fileMetadata';
export * from './putFileRequest';
export * from './putFileRequestContentType';
-export * from './putFileResponse';
\ No newline at end of file
+export * from './putFileResponse';
diff --git a/js/app/packages/service-clients/service-static-files/openapi.json b/js/app/packages/service-clients/service-static-files/openapi.json
index 032260ae29..dbecd9f219 100644
--- a/js/app/packages/service-clients/service-static-files/openapi.json
+++ b/js/app/packages/service-clients/service-static-files/openapi.json
@@ -4,7 +4,9 @@
"title": "static_file_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -15,7 +17,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PutFileRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PutFileRequest"
+ }
}
},
"required": true
@@ -25,17 +29,31 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PutFileResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/PutFileResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -50,7 +68,9 @@
"in": "path",
"description": "File ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -58,17 +78,31 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/FileMetadata" }
+ "schema": {
+ "$ref": "#/components/schemas/FileMetadata"
+ }
}
}
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -83,25 +117,51 @@
"in": "path",
"description": "File ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"200": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"403": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -116,7 +176,9 @@
"in": "path",
"description": "Unique identifier of the file to retrieve",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -135,7 +197,9 @@
}
}
},
- "404": { "description": "File not found" }
+ "404": {
+ "description": "File not found"
+ }
}
}
}
@@ -154,18 +218,33 @@
"s3_key"
],
"properties": {
- "content_type": { "type": "string", "description": "mimetype" },
+ "content_type": {
+ "type": "string",
+ "description": "mimetype"
+ },
"extension_data": {
"description": "extra metadata, uploaded with the file"
},
- "file_id": { "type": "string", "description": "id of static file" },
- "file_name": { "type": "string", "description": "file name" },
+ "file_id": {
+ "type": "string",
+ "description": "id of static file"
+ },
+ "file_name": {
+ "type": "string",
+ "description": "file name"
+ },
"is_uploaded": {
"type": "boolean",
"description": "is data uploaded to s3"
},
- "owner_id": { "type": "string", "description": "owner" },
- "s3_key": { "type": "string", "description": "s3 key" }
+ "owner_id": {
+ "type": "string",
+ "description": "owner"
+ },
+ "s3_key": {
+ "type": "string",
+ "description": "s3 key"
+ }
}
},
"PutFileRequest": {
@@ -179,15 +258,24 @@
"extension_data": {
"description": "extra metadata to store with file\ndon't put anything private in here it is public"
},
- "file_name": { "type": "string", "description": "file name" }
+ "file_name": {
+ "type": "string",
+ "description": "file name"
+ }
}
},
"PutFileResponse": {
"type": "object",
"required": ["upload_url", "file_location", "id"],
"properties": {
- "file_location": { "type": "string", "description": "permalink" },
- "id": { "type": "string", "description": "key to retrieve metadata" },
+ "file_location": {
+ "type": "string",
+ "description": "permalink"
+ },
+ "id": {
+ "type": "string",
+ "description": "key to retrieve metadata"
+ },
"upload_url": {
"type": "string",
"description": "expiring url to upload file blob to"
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/accessLevel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/accessLevel.ts
index 443e2423c6..e632dadcad 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/accessLevel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/accessLevel.ts
@@ -8,8 +8,7 @@
/**
* Ordered from least to most access top -> bottom
*/
-export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
-
+export type AccessLevel = (typeof AccessLevel)[keyof typeof AccessLevel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AccessLevel = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOf.ts
index dbf49d6f5f..ff938fe558 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOf.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfAnchorId } from './pdfAnchorId';
+
import type { AnchorIdOneOfAllOf } from './anchorIdOneOfAllOf';
+import type { PdfAnchorId } from './pdfAnchorId';
export type AnchorIdOneOf = PdfAnchorId & AnchorIdOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOfAllOfFileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOfAllOfFileType.ts
index b799094871..f085799bd1 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOfAllOfFileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/anchorIdOneOfAllOfFileType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnchorIdOneOfAllOfFileType = typeof AnchorIdOneOfAllOfFileType[keyof typeof AnchorIdOneOfAllOfFileType];
-
+export type AnchorIdOneOfAllOfFileType =
+ (typeof AnchorIdOneOfAllOfFileType)[keyof typeof AnchorIdOneOfAllOfFileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnchorIdOneOfAllOfFileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOf.ts
index bc87b12c99..3eddfb465d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOf.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfAnchorRequest } from './pdfAnchorRequest';
+
import type { AnchorRequestOneOfAllOf } from './anchorRequestOneOfAllOf';
+import type { PdfAnchorRequest } from './pdfAnchorRequest';
export type AnchorRequestOneOf = PdfAnchorRequest & AnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOfAllOfFileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOfAllOfFileType.ts
index 99068b5609..48035bb543 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOfAllOfFileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/anchorRequestOneOfAllOfFileType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnchorRequestOneOfAllOfFileType = typeof AnchorRequestOneOfAllOfFileType[keyof typeof AnchorRequestOneOfAllOfFileType];
-
+export type AnchorRequestOneOfAllOfFileType =
+ (typeof AnchorRequestOneOfAllOfFileType)[keyof typeof AnchorRequestOneOfAllOfFileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnchorRequestOneOfAllOfFileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdate.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdate.ts
index 37c25c2572..b1cd4e0f05 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdate.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdate.ts
@@ -6,9 +6,15 @@
*/
import type { AnnotationIncrementalUpdateOneOf } from './annotationIncrementalUpdateOneOf';
import type { AnnotationIncrementalUpdateOneOfFour } from './annotationIncrementalUpdateOneOfFour';
-import type { AnnotationIncrementalUpdateOneOfSeven } from './annotationIncrementalUpdateOneOfSeven';
-import type { AnnotationIncrementalUpdateOneOfOnezero } from './annotationIncrementalUpdateOneOfOnezero';
-import type { AnnotationIncrementalUpdateOneOfOnethree } from './annotationIncrementalUpdateOneOfOnethree';
import type { AnnotationIncrementalUpdateOneOfOnesix } from './annotationIncrementalUpdateOneOfOnesix';
+import type { AnnotationIncrementalUpdateOneOfOnethree } from './annotationIncrementalUpdateOneOfOnethree';
+import type { AnnotationIncrementalUpdateOneOfOnezero } from './annotationIncrementalUpdateOneOfOnezero';
+import type { AnnotationIncrementalUpdateOneOfSeven } from './annotationIncrementalUpdateOneOfSeven';
-export type AnnotationIncrementalUpdate = AnnotationIncrementalUpdateOneOf | AnnotationIncrementalUpdateOneOfFour | AnnotationIncrementalUpdateOneOfSeven | AnnotationIncrementalUpdateOneOfOnezero | AnnotationIncrementalUpdateOneOfOnethree | AnnotationIncrementalUpdateOneOfOnesix;
+export type AnnotationIncrementalUpdate =
+ | AnnotationIncrementalUpdateOneOf
+ | AnnotationIncrementalUpdateOneOfFour
+ | AnnotationIncrementalUpdateOneOfSeven
+ | AnnotationIncrementalUpdateOneOfOnezero
+ | AnnotationIncrementalUpdateOneOfOnethree
+ | AnnotationIncrementalUpdateOneOfOnesix;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfFourUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfFourUpdateType.ts
index ee23521c8a..202d08a922 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfFourUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfFourUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfFourUpdateType = typeof AnnotationIncrementalUpdateOneOfFourUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfFourUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfFourUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfFourUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfFourUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfFourUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnesixUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnesixUpdateType.ts
index d5142b2d84..cd3eb6bd41 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnesixUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnesixUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfOnesixUpdateType = typeof AnnotationIncrementalUpdateOneOfOnesixUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfOnesixUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfOnesixUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfOnesixUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfOnesixUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfOnesixUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnethreeUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnethreeUpdateType.ts
index ec2dd4f67e..d3c6bdc737 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnethreeUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnethreeUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfOnethreeUpdateType = typeof AnnotationIncrementalUpdateOneOfOnethreeUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfOnethreeUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfOnethreeUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfOnethreeUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfOnethreeUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfOnethreeUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnezeroUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnezeroUpdateType.ts
index deb3fffcb6..33111646a0 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnezeroUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfOnezeroUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfOnezeroUpdateType = typeof AnnotationIncrementalUpdateOneOfOnezeroUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfOnezeroUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfOnezeroUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfOnezeroUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfOnezeroUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfOnezeroUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfSevenUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfSevenUpdateType.ts
index 37b3b447ac..8988af64fb 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfSevenUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfSevenUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfSevenUpdateType = typeof AnnotationIncrementalUpdateOneOfSevenUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfSevenUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfSevenUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfSevenUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfSevenUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfSevenUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfUpdateType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfUpdateType.ts
index 824949546e..bcea18f4d4 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfUpdateType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/annotationIncrementalUpdateOneOfUpdateType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type AnnotationIncrementalUpdateOneOfUpdateType = typeof AnnotationIncrementalUpdateOneOfUpdateType[keyof typeof AnnotationIncrementalUpdateOneOfUpdateType];
-
+export type AnnotationIncrementalUpdateOneOfUpdateType =
+ (typeof AnnotationIncrementalUpdateOneOfUpdateType)[keyof typeof AnnotationIncrementalUpdateOneOfUpdateType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AnnotationIncrementalUpdateOneOfUpdateType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentSubTypeOneOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentSubTypeOneOfType.ts
index 5956f36fbc..bf1d5d31dc 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentSubTypeOneOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentSubTypeOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type BasicDocumentSubTypeOneOfType = typeof BasicDocumentSubTypeOneOfType[keyof typeof BasicDocumentSubTypeOneOfType];
-
+export type BasicDocumentSubTypeOneOfType =
+ (typeof BasicDocumentSubTypeOneOfType)[keyof typeof BasicDocumentSubTypeOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const BasicDocumentSubTypeOneOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentType.ts
index 153a565c58..4510df9ef5 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/basicDocumentType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type BasicDocumentType = typeof BasicDocumentType[keyof typeof BasicDocumentType];
-
+export type BasicDocumentType =
+ (typeof BasicDocumentType)[keyof typeof BasicDocumentType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const BasicDocumentType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/channel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/channel.ts
index c973ba07a4..8277f9f7f9 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/channel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/channel.ts
@@ -4,9 +4,10 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { ChannelType } from './channelType';
+
import type { ChannelName } from './channelName';
import type { ChannelOrgId } from './channelOrgId';
+import type { ChannelType } from './channelType';
export interface Channel {
channel_type: ChannelType;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/channelType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/channelType.ts
index a99327fb92..6efd3289ae 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/channelType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/channelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
-
+export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/chatType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/chatType.ts
index 9b7b00e145..f75fc21b17 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/chatType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/chatType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ChatType = typeof ChatType[keyof typeof ChatType];
-
+export type ChatType = (typeof ChatType)[keyof typeof ChatType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChatType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/cloudStorageItemType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/cloudStorageItemType.ts
index c80ec50d3d..4a7c1647ce 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/cloudStorageItemType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/cloudStorageItemType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type CloudStorageItemType = typeof CloudStorageItemType[keyof typeof CloudStorageItemType];
-
+export type CloudStorageItemType =
+ (typeof CloudStorageItemType)[keyof typeof CloudStorageItemType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CloudStorageItemType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/copyDocumentHandlerParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/copyDocumentHandlerParams.ts
index 3d9c59e9ea..4b0320a838 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/copyDocumentHandlerParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/copyDocumentHandlerParams.ts
@@ -6,8 +6,8 @@
*/
export type CopyDocumentHandlerParams = {
-/**
- * The version id of the document to copy. Defaults to copying the latest version of the document.
- */
-version_id?: number;
+ /**
+ * The version id of the document to copy. Defaults to copying the latest version of the document.
+ */
+ version_id?: number;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createBulkDocumentResponseDataDocumentMetadata.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createBulkDocumentResponseDataDocumentMetadata.ts
index dd2a5d7518..da395e5514 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createBulkDocumentResponseDataDocumentMetadata.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createBulkDocumentResponseDataDocumentMetadata.ts
@@ -6,4 +6,5 @@
*/
import type { DocumentMetadata } from './documentMetadata';
-export type CreateBulkDocumentResponseDataDocumentMetadata = null | DocumentMetadata;
+export type CreateBulkDocumentResponseDataDocumentMetadata =
+ null | DocumentMetadata;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentHandler200DataOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentHandler200DataOneOf.ts
index c97a1a6a5c..19cbf2b1a8 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentHandler200DataOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentHandler200DataOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { DocumentResponse } from './documentResponse';
+
import type { CreateDocumentHandler200DataOneOfAllOf } from './createDocumentHandler200DataOneOfAllOf';
+import type { DocumentResponse } from './documentResponse';
-export type CreateDocumentHandler200DataOneOf = DocumentResponse & CreateDocumentHandler200DataOneOfAllOf;
+export type CreateDocumentHandler200DataOneOf = DocumentResponse &
+ CreateDocumentHandler200DataOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentResponseData.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentResponseData.ts
index e4b89de302..7c4c7d94d7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentResponseData.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createDocumentResponseData.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { DocumentResponse } from './documentResponse';
+
import type { CreateDocumentResponseDataAllOf } from './createDocumentResponseDataAllOf';
+import type { DocumentResponse } from './documentResponse';
-export type CreateDocumentResponseData = DocumentResponse & CreateDocumentResponseDataAllOf;
+export type CreateDocumentResponseData = DocumentResponse &
+ CreateDocumentResponseDataAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOf.ts
index deb02e6abd..6727234811 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { CreateUnthreadedPdfAnchorRequest } from './createUnthreadedPdfAnchorRequest';
+
import type { CreateUnthreadedAnchorRequestOneOfAllOf } from './createUnthreadedAnchorRequestOneOfAllOf';
+import type { CreateUnthreadedPdfAnchorRequest } from './createUnthreadedPdfAnchorRequest';
-export type CreateUnthreadedAnchorRequestOneOf = CreateUnthreadedPdfAnchorRequest & CreateUnthreadedAnchorRequestOneOfAllOf;
+export type CreateUnthreadedAnchorRequestOneOf =
+ CreateUnthreadedPdfAnchorRequest & CreateUnthreadedAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOfAllOfFileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOfAllOfFileType.ts
index b6bc911663..adbcc8df4e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOfAllOfFileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorRequestOneOfAllOfFileType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type CreateUnthreadedAnchorRequestOneOfAllOfFileType = typeof CreateUnthreadedAnchorRequestOneOfAllOfFileType[keyof typeof CreateUnthreadedAnchorRequestOneOfAllOfFileType];
-
+export type CreateUnthreadedAnchorRequestOneOfAllOfFileType =
+ (typeof CreateUnthreadedAnchorRequestOneOfAllOfFileType)[keyof typeof CreateUnthreadedAnchorRequestOneOfAllOfFileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CreateUnthreadedAnchorRequestOneOfAllOfFileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorResponse.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorResponse.ts
index 094460f071..247fe3050b 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorResponse.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedAnchorResponse.ts
@@ -7,4 +7,5 @@
import type { Anchor } from './anchor';
import type { CreateUnthreadedAnchorResponseAllOf } from './createUnthreadedAnchorResponseAllOf';
-export type CreateUnthreadedAnchorResponse = Anchor & CreateUnthreadedAnchorResponseAllOf;
+export type CreateUnthreadedAnchorResponse = Anchor &
+ CreateUnthreadedAnchorResponseAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequest.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequest.ts
index f35a84f6a0..994ffc0b71 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequest.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequest.ts
@@ -6,4 +6,5 @@
*/
import type { CreateUnthreadedPdfAnchorRequestOneOf } from './createUnthreadedPdfAnchorRequestOneOf';
-export type CreateUnthreadedPdfAnchorRequest = CreateUnthreadedPdfAnchorRequestOneOf;
+export type CreateUnthreadedPdfAnchorRequest =
+ CreateUnthreadedPdfAnchorRequestOneOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOf.ts
index ee0d488708..12890227a2 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfHighlightAnchorRequest } from './pdfHighlightAnchorRequest';
+
import type { CreateUnthreadedPdfAnchorRequestOneOfAllOf } from './createUnthreadedPdfAnchorRequestOneOfAllOf';
+import type { PdfHighlightAnchorRequest } from './pdfHighlightAnchorRequest';
-export type CreateUnthreadedPdfAnchorRequestOneOf = PdfHighlightAnchorRequest & CreateUnthreadedPdfAnchorRequestOneOfAllOf;
+export type CreateUnthreadedPdfAnchorRequestOneOf = PdfHighlightAnchorRequest &
+ CreateUnthreadedPdfAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOfAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOfAllOfAnchorType.ts
index 9ae95596ea..3e074d9053 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOfAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/createUnthreadedPdfAnchorRequestOneOfAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType = typeof CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType[keyof typeof CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType];
-
+export type CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType =
+ (typeof CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType)[keyof typeof CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CreateUnthreadedPdfAnchorRequestOneOfAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOf.ts
index 6532722b9a..6041a87523 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { DeleteUnthreadedPdfAnchorRequest } from './deleteUnthreadedPdfAnchorRequest';
+
import type { DeleteUnthreadedAnchorRequestOneOfAllOf } from './deleteUnthreadedAnchorRequestOneOfAllOf';
+import type { DeleteUnthreadedPdfAnchorRequest } from './deleteUnthreadedPdfAnchorRequest';
-export type DeleteUnthreadedAnchorRequestOneOf = DeleteUnthreadedPdfAnchorRequest & DeleteUnthreadedAnchorRequestOneOfAllOf;
+export type DeleteUnthreadedAnchorRequestOneOf =
+ DeleteUnthreadedPdfAnchorRequest & DeleteUnthreadedAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOfAllOfFileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOfAllOfFileType.ts
index 8044e9d52a..34e535cef4 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOfAllOfFileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorRequestOneOfAllOfFileType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DeleteUnthreadedAnchorRequestOneOfAllOfFileType = typeof DeleteUnthreadedAnchorRequestOneOfAllOfFileType[keyof typeof DeleteUnthreadedAnchorRequestOneOfAllOfFileType];
-
+export type DeleteUnthreadedAnchorRequestOneOfAllOfFileType =
+ (typeof DeleteUnthreadedAnchorRequestOneOfAllOfFileType)[keyof typeof DeleteUnthreadedAnchorRequestOneOfAllOfFileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DeleteUnthreadedAnchorRequestOneOfAllOfFileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorResponse.ts b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorResponse.ts
index 1a82001b57..7f777d5acc 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorResponse.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedAnchorResponse.ts
@@ -7,4 +7,5 @@
import type { AnchorId } from './anchorId';
import type { DeleteUnthreadedAnchorResponseAllOf } from './deleteUnthreadedAnchorResponseAllOf';
-export type DeleteUnthreadedAnchorResponse = AnchorId & DeleteUnthreadedAnchorResponseAllOf;
+export type DeleteUnthreadedAnchorResponse = AnchorId &
+ DeleteUnthreadedAnchorResponseAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequest.ts b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequest.ts
index 6a9825563e..ff597c08ed 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequest.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequest.ts
@@ -6,4 +6,5 @@
*/
import type { DeleteUnthreadedPdfAnchorRequestOneOf } from './deleteUnthreadedPdfAnchorRequestOneOf';
-export type DeleteUnthreadedPdfAnchorRequest = DeleteUnthreadedPdfAnchorRequestOneOf;
+export type DeleteUnthreadedPdfAnchorRequest =
+ DeleteUnthreadedPdfAnchorRequestOneOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequestOneOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequestOneOfAnchorType.ts
index 23dcbb10a5..b67aa4e98b 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequestOneOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/deleteUnthreadedPdfAnchorRequestOneOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DeleteUnthreadedPdfAnchorRequestOneOfAnchorType = typeof DeleteUnthreadedPdfAnchorRequestOneOfAnchorType[keyof typeof DeleteUnthreadedPdfAnchorRequestOneOfAnchorType];
-
+export type DeleteUnthreadedPdfAnchorRequestOneOfAnchorType =
+ (typeof DeleteUnthreadedPdfAnchorRequestOneOfAnchorType)[keyof typeof DeleteUnthreadedPdfAnchorRequestOneOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DeleteUnthreadedPdfAnchorRequestOneOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreview.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreview.ts
index 6f9e64dbef..1ce1ee93c3 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreview.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreview.ts
@@ -8,4 +8,7 @@ import type { DocumentPreviewOneOf } from './documentPreviewOneOf';
import type { DocumentPreviewOneOfFour } from './documentPreviewOneOfFour';
import type { DocumentPreviewOneOfSeven } from './documentPreviewOneOfSeven';
-export type DocumentPreview = DocumentPreviewOneOf | DocumentPreviewOneOfFour | DocumentPreviewOneOfSeven;
+export type DocumentPreview =
+ | DocumentPreviewOneOf
+ | DocumentPreviewOneOfFour
+ | DocumentPreviewOneOfSeven;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeOneOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeOneOfType.ts
index fb41fd7e46..1a909d752b 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeOneOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DocumentPreviewDataSubTypeOneOfType = typeof DocumentPreviewDataSubTypeOneOfType[keyof typeof DocumentPreviewDataSubTypeOneOfType];
-
+export type DocumentPreviewDataSubTypeOneOfType =
+ (typeof DocumentPreviewDataSubTypeOneOfType)[keyof typeof DocumentPreviewDataSubTypeOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentPreviewDataSubTypeOneOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeProperty.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeProperty.ts
index bdc9940e83..0ecbf13d8e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeProperty.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewDataSubTypeProperty.ts
@@ -6,4 +6,5 @@
*/
import type { DocumentPreviewDataSubType } from './documentPreviewDataSubType';
-export type DocumentPreviewDataSubTypeProperty = null | DocumentPreviewDataSubType;
+export type DocumentPreviewDataSubTypeProperty =
+ null | DocumentPreviewDataSubType;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOf.ts
index f34cdeb20a..2311b793fd 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOf.ts
@@ -7,4 +7,5 @@
import type { DocumentPreviewData } from './documentPreviewData';
import type { DocumentPreviewOneOfAllOf } from './documentPreviewOneOfAllOf';
-export type DocumentPreviewOneOf = DocumentPreviewData & DocumentPreviewOneOfAllOf;
+export type DocumentPreviewOneOf = DocumentPreviewData &
+ DocumentPreviewOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfAllOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfAllOfType.ts
index 8fa13f1d34..afa3c46f56 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DocumentPreviewOneOfAllOfType = typeof DocumentPreviewOneOfAllOfType[keyof typeof DocumentPreviewOneOfAllOfType];
-
+export type DocumentPreviewOneOfAllOfType =
+ (typeof DocumentPreviewOneOfAllOfType)[keyof typeof DocumentPreviewOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentPreviewOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFour.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFour.ts
index 9a94154187..7b9d79bb45 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFour.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFour.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithDocumentId } from './withDocumentId';
+
import type { DocumentPreviewOneOfFourAllOf } from './documentPreviewOneOfFourAllOf';
+import type { WithDocumentId } from './withDocumentId';
-export type DocumentPreviewOneOfFour = WithDocumentId & DocumentPreviewOneOfFourAllOf;
+export type DocumentPreviewOneOfFour = WithDocumentId &
+ DocumentPreviewOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFourAllOfType.ts
index 95af8be8a6..34cbb6ebc8 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DocumentPreviewOneOfFourAllOfType = typeof DocumentPreviewOneOfFourAllOfType[keyof typeof DocumentPreviewOneOfFourAllOfType];
-
+export type DocumentPreviewOneOfFourAllOfType =
+ (typeof DocumentPreviewOneOfFourAllOfType)[keyof typeof DocumentPreviewOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentPreviewOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSeven.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSeven.ts
index 4e7503644d..cd6bf3e66a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSeven.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithDocumentId } from './withDocumentId';
+
import type { DocumentPreviewOneOfSevenAllOf } from './documentPreviewOneOfSevenAllOf';
+import type { WithDocumentId } from './withDocumentId';
-export type DocumentPreviewOneOfSeven = WithDocumentId & DocumentPreviewOneOfSevenAllOf;
+export type DocumentPreviewOneOfSeven = WithDocumentId &
+ DocumentPreviewOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSevenAllOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSevenAllOfType.ts
index 84330e0b94..67fe6c1786 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSevenAllOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentPreviewOneOfSevenAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DocumentPreviewOneOfSevenAllOfType = typeof DocumentPreviewOneOfSevenAllOfType[keyof typeof DocumentPreviewOneOfSevenAllOfType];
-
+export type DocumentPreviewOneOfSevenAllOfType =
+ (typeof DocumentPreviewOneOfSevenAllOfType)[keyof typeof DocumentPreviewOneOfSevenAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentPreviewOneOfSevenAllOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentStorageServiceApiVersion.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentStorageServiceApiVersion.ts
index 534cfc8ebb..ac38931a32 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentStorageServiceApiVersion.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentStorageServiceApiVersion.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type DocumentStorageServiceApiVersion = typeof DocumentStorageServiceApiVersion[keyof typeof DocumentStorageServiceApiVersion];
-
+export type DocumentStorageServiceApiVersion =
+ (typeof DocumentStorageServiceApiVersion)[keyof typeof DocumentStorageServiceApiVersion];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentStorageServiceApiVersion = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/documentSubType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/documentSubType.ts
index ecaf7a5371..133dbd197d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/documentSubType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/documentSubType.ts
@@ -9,8 +9,8 @@
* The document sub type enum represents all values of document sub types.
These values should match the `document_sub_type_value` table in macrodb.
*/
-export type DocumentSubType = typeof DocumentSubType[keyof typeof DocumentSubType];
-
+export type DocumentSubType =
+ (typeof DocumentSubType)[keyof typeof DocumentSubType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const DocumentSubType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOf.ts
index d8e29cedf8..7fe3c7b6b1 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { EditPdfAnchorRequest } from './editPdfAnchorRequest';
+
import type { EditAnchorRequestOneOfAllOf } from './editAnchorRequestOneOfAllOf';
+import type { EditPdfAnchorRequest } from './editPdfAnchorRequest';
-export type EditAnchorRequestOneOf = EditPdfAnchorRequest & EditAnchorRequestOneOfAllOf;
+export type EditAnchorRequestOneOf = EditPdfAnchorRequest &
+ EditAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOfAllOfFileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOfAllOfFileType.ts
index b3a1f374c3..7d3059634b 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOfAllOfFileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editAnchorRequestOneOfAllOfFileType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type EditAnchorRequestOneOfAllOfFileType = typeof EditAnchorRequestOneOfAllOfFileType[keyof typeof EditAnchorRequestOneOfAllOfFileType];
-
+export type EditAnchorRequestOneOfAllOfFileType =
+ (typeof EditAnchorRequestOneOfAllOfFileType)[keyof typeof EditAnchorRequestOneOfAllOfFileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EditAnchorRequestOneOfAllOfFileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editDocumentRequestV2SharePermission.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editDocumentRequestV2SharePermission.ts
index 57cad5ff03..4f0643fc3c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editDocumentRequestV2SharePermission.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editDocumentRequestV2SharePermission.ts
@@ -6,4 +6,5 @@
*/
import type { UpdateSharePermissionRequestV2 } from './updateSharePermissionRequestV2';
-export type EditDocumentRequestV2SharePermission = null | UpdateSharePermissionRequestV2;
+export type EditDocumentRequestV2SharePermission =
+ null | UpdateSharePermissionRequestV2;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOf.ts
index 1951d5fccc..df0be1a677 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { EditPdfPlaceableCommentAnchorRequest } from './editPdfPlaceableCommentAnchorRequest';
+
import type { EditPdfAnchorRequestOneOfAllOf } from './editPdfAnchorRequestOneOfAllOf';
+import type { EditPdfPlaceableCommentAnchorRequest } from './editPdfPlaceableCommentAnchorRequest';
-export type EditPdfAnchorRequestOneOf = EditPdfPlaceableCommentAnchorRequest & EditPdfAnchorRequestOneOfAllOf;
+export type EditPdfAnchorRequestOneOf = EditPdfPlaceableCommentAnchorRequest &
+ EditPdfAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOfAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOfAllOfAnchorType.ts
index 716ccd91b4..fead5c3900 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOfAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfAnchorRequestOneOfAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type EditPdfAnchorRequestOneOfAllOfAnchorType = typeof EditPdfAnchorRequestOneOfAllOfAnchorType[keyof typeof EditPdfAnchorRequestOneOfAllOfAnchorType];
-
+export type EditPdfAnchorRequestOneOfAllOfAnchorType =
+ (typeof EditPdfAnchorRequestOneOfAllOfAnchorType)[keyof typeof EditPdfAnchorRequestOneOfAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EditPdfAnchorRequestOneOfAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfPlaceableCommentAnchorRequestShouldLockOnSave.ts b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfPlaceableCommentAnchorRequestShouldLockOnSave.ts
index ec068014ce..f7a0df35f0 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/editPdfPlaceableCommentAnchorRequestShouldLockOnSave.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/editPdfPlaceableCommentAnchorRequestShouldLockOnSave.ts
@@ -5,4 +5,6 @@
* OpenAPI spec version: 0.1.0
*/
-export type EditPdfPlaceableCommentAnchorRequestShouldLockOnSave = boolean | null;
+export type EditPdfPlaceableCommentAnchorRequestShouldLockOnSave =
+ | boolean
+ | null;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/emptyResponse.ts b/js/app/packages/service-clients/service-storage/generated/schemas/emptyResponse.ts
index d15bc38c28..630dc0538f 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/emptyResponse.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/emptyResponse.ts
@@ -8,4 +8,6 @@
/**
* Empty response is required due to custom fetch forcing `response.json()`
*/
-export interface EmptyResponse { [key: string]: unknown }
+export interface EmptyResponse {
+ [key: string]: unknown;
+}
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/entityReference.ts b/js/app/packages/service-clients/service-storage/generated/schemas/entityReference.ts
index 9ab609611b..3c43334a9c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/entityReference.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/entityReference.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { EntityType } from './entityType';
+
import type { EntityReferenceSpecificMessageId } from './entityReferenceSpecificMessageId';
+import type { EntityType } from './entityType';
/**
* Entity reference for entity-type property values.
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/entityType.ts
index 338141fe14..2df4788d9e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/entityType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/entityType.ts
@@ -8,8 +8,7 @@
/**
* Type of entity that can be referenced by entity properties.
*/
-export type EntityType = typeof EntityType[keyof typeof EntityType];
-
+export type EntityType = (typeof EntityType)[keyof typeof EntityType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EntityType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIds.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIds.ts
index ebd0d8f39c..82ca4ee86a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIds.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIds.ts
@@ -7,4 +7,6 @@
import type { FileSystemNodeWithIdsOneOf } from './fileSystemNodeWithIdsOneOf';
import type { FileSystemNodeWithIdsOneOfThree } from './fileSystemNodeWithIdsOneOfThree';
-export type FileSystemNodeWithIds = FileSystemNodeWithIdsOneOf | FileSystemNodeWithIdsOneOfThree;
+export type FileSystemNodeWithIds =
+ | FileSystemNodeWithIdsOneOf
+ | FileSystemNodeWithIdsOneOfThree;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOf.ts
index 3660c6eb27..a76327cff0 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOf.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { FolderItem } from './folderItem';
+
import type { FileSystemNodeWithIdsOneOfType } from './fileSystemNodeWithIdsOneOfType';
+import type { FolderItem } from './folderItem';
export type FileSystemNodeWithIdsOneOf = {
document_id: string;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeContent.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeContent.ts
index 7884201460..71a09b26b3 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeContent.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeContent.ts
@@ -6,4 +6,6 @@
*/
import type { FileSystemNodeWithIds } from './fileSystemNodeWithIds';
-export type FileSystemNodeWithIdsOneOfThreeContent = {[key: string]: FileSystemNodeWithIds};
+export type FileSystemNodeWithIdsOneOfThreeContent = {
+ [key: string]: FileSystemNodeWithIds;
+};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeType.ts
index e32e61ef03..9398bef347 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type FileSystemNodeWithIdsOneOfThreeType = typeof FileSystemNodeWithIdsOneOfThreeType[keyof typeof FileSystemNodeWithIdsOneOfThreeType];
-
+export type FileSystemNodeWithIdsOneOfThreeType =
+ (typeof FileSystemNodeWithIdsOneOfThreeType)[keyof typeof FileSystemNodeWithIdsOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FileSystemNodeWithIdsOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfType.ts
index ef7f87a74a..52e5e85419 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileSystemNodeWithIdsOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type FileSystemNodeWithIdsOneOfType = typeof FileSystemNodeWithIdsOneOfType[keyof typeof FileSystemNodeWithIdsOneOfType];
-
+export type FileSystemNodeWithIdsOneOfType =
+ (typeof FileSystemNodeWithIdsOneOfType)[keyof typeof FileSystemNodeWithIdsOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FileSystemNodeWithIdsOneOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
index 81d331999a..abda6c0513 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
@@ -21,8 +21,7 @@ For each tuple it generates:
- ContentType::mime_type() - Gets MIME type for ContentType
*/
-export type FileType = typeof FileType[keyof typeof FileType];
-
+export type FileType = (typeof FileType)[keyof typeof FileType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FileType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentProcessingResultResponseData.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentProcessingResultResponseData.ts
index 4ba94ec5a1..b44cbaea80 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentProcessingResultResponseData.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentProcessingResultResponseData.ts
@@ -6,4 +6,5 @@
*/
import type { GetDocumentProcessingResult } from './getDocumentProcessingResult';
-export type GetDocumentProcessingResultResponseData = null | GetDocumentProcessingResult;
+export type GetDocumentProcessingResultResponseData =
+ null | GetDocumentProcessingResult;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentResponseData.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentResponseData.ts
index 969b4bd9bc..38b8e17cec 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentResponseData.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getDocumentResponseData.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { DocumentMetadata } from './documentMetadata';
+
import type { AccessLevel } from './accessLevel';
+import type { DocumentMetadata } from './documentMetadata';
import type { GetDocumentResponseDataViewLocation } from './getDocumentResponseDataViewLocation';
export interface GetDocumentResponseData {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getItemsSoupParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getItemsSoupParams.ts
index a766251967..b86ec423cc 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getItemsSoupParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getItemsSoupParams.ts
@@ -7,21 +7,21 @@
import type { SoupApiSort } from './soupApiSort';
export type GetItemsSoupParams = {
-/**
- * Whether to expand projects. Defaults to true.
- */
-expand?: boolean;
-/**
- * Limit the number of items returned. Defaults to 20. Max 500.
- * @minimum 0
- */
-limit?: number;
-/**
- * Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at.
- */
-sort_method?: SoupApiSort;
-/**
- * Base64 encoded cursor value.
- */
-cursor?: string;
+ /**
+ * Whether to expand projects. Defaults to true.
+ */
+ expand?: boolean;
+ /**
+ * Limit the number of items returned. Defaults to 20. Max 500.
+ * @minimum 0
+ */
+ limit?: number;
+ /**
+ * Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at.
+ */
+ sort_method?: SoupApiSort;
+ /**
+ * Base64 encoded cursor value.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getLocationHandlerParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getLocationHandlerParams.ts
index 453d4f46bb..4dd138291c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getLocationHandlerParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getLocationHandlerParams.ts
@@ -6,12 +6,12 @@
*/
export type GetLocationHandlerParams = {
-/**
- * A specific document version id to get the location for.
- */
-document_version_id: number;
-/**
- * If true, this will return the converted docx url.
- */
-get_converted_docx_url: boolean;
+ /**
+ * A specific document version id to get the location for.
+ */
+ document_version_id: number;
+ /**
+ * If true, this will return the converted docx url.
+ */
+ get_converted_docx_url: boolean;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getPendingProjectsHandler200DataOneOfItem.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getPendingProjectsHandler200DataOneOfItem.ts
index e70f22cbb9..c02a30fa8b 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getPendingProjectsHandler200DataOneOfItem.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getPendingProjectsHandler200DataOneOfItem.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { Project } from './project';
+
import type { GetPendingProjectsHandler200DataOneOfItemAllOf } from './getPendingProjectsHandler200DataOneOfItemAllOf';
+import type { Project } from './project';
-export type GetPendingProjectsHandler200DataOneOfItem = Project & GetPendingProjectsHandler200DataOneOfItemAllOf;
+export type GetPendingProjectsHandler200DataOneOfItem = Project &
+ GetPendingProjectsHandler200DataOneOfItemAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getProjectResponseData.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getProjectResponseData.ts
index 36801134b0..3d26c91842 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getProjectResponseData.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getProjectResponseData.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { Project } from './project';
+
import type { AccessLevel } from './accessLevel';
+import type { Project } from './project';
export interface GetProjectResponseData {
/** The metadata of the project */
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts
index 15f9a14457..ab242e09a7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts
@@ -6,12 +6,12 @@
*/
export type GetRecentActivityHandlerParams = {
-/**
- * The maximum number of items to retreive. Default 10, max 100.
- */
-limit: number;
-/**
- * The offset to start from. Default 0.
- */
-offset: number;
+ /**
+ * The maximum number of items to retreive. Default 10, max 100.
+ */
+ limit: number;
+ /**
+ * The offset to start from. Default 0.
+ */
+ offset: number;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/getUserDocumentsHandlerParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/getUserDocumentsHandlerParams.ts
index 373176af6f..120242ab63 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/getUserDocumentsHandlerParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/getUserDocumentsHandlerParams.ts
@@ -6,16 +6,16 @@
*/
export type GetUserDocumentsHandlerParams = {
-/**
- * The maximum number of documents to retreive. Default 10, max 100.
- */
-limit: number;
-/**
- * The offset to start from. Default 0.
- */
-offset: number;
-/**
- * The file type to filter by. Default all.
- */
-file_type: string;
+ /**
+ * The maximum number of documents to retreive. Default 10, max 100.
+ */
+ limit: number;
+ /**
+ * The offset to start from. Default 0.
+ */
+ offset: number;
+ /**
+ * The file type to filter by. Default all.
+ */
+ file_type: string;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/hashMap.ts b/js/app/packages/service-clients/service-storage/generated/schemas/hashMap.ts
index b691bb9b14..13d3fc5c29 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/hashMap.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/hashMap.ts
@@ -7,4 +7,6 @@
import type { HashMapOneOf } from './hashMapOneOf';
import type { HashMapOneOfFour } from './hashMapOneOfFour';
-export interface HashMap {[key: string]: HashMapOneOf | HashMapOneOfFour}
+export interface HashMap {
+ [key: string]: HashMapOneOf | HashMapOneOfFour;
+}
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOf.ts
index 777c7b4000..8c408a9560 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOf.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PresignedUrl } from './presignedUrl';
+
import type { HashMapOneOfAllOf } from './hashMapOneOfAllOf';
+import type { PresignedUrl } from './presignedUrl';
export type HashMapOneOf = PresignedUrl & HashMapOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfAllOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfAllOfType.ts
index 2640cfdf21..5590be74ac 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfAllOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type HashMapOneOfAllOfType = typeof HashMapOneOfAllOfType[keyof typeof HashMapOneOfAllOfType];
-
+export type HashMapOneOfAllOfType =
+ (typeof HashMapOneOfAllOfType)[keyof typeof HashMapOneOfAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const HashMapOneOfAllOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFour.ts b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFour.ts
index 6a2fa17b38..029eecff3e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFour.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFour.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { S3ObjectInfo } from './s3ObjectInfo';
+
import type { HashMapOneOfFourAllOf } from './hashMapOneOfFourAllOf';
+import type { S3ObjectInfo } from './s3ObjectInfo';
export type HashMapOneOfFour = S3ObjectInfo & HashMapOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFourAllOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFourAllOfType.ts
index 15dc1040e7..a4b2e1bbfc 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFourAllOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/hashMapOneOfFourAllOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type HashMapOneOfFourAllOfType = typeof HashMapOneOfFourAllOfType[keyof typeof HashMapOneOfFourAllOfType];
-
+export type HashMapOneOfFourAllOfType =
+ (typeof HashMapOneOfFourAllOfType)[keyof typeof HashMapOneOfFourAllOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const HashMapOneOfFourAllOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/highlightType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/highlightType.ts
index 189cd2d00d..06ee09e749 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/highlightType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/highlightType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type HighlightType = typeof HighlightType[keyof typeof HighlightType];
-
+export type HighlightType = (typeof HighlightType)[keyof typeof HighlightType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const HighlightType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/index.ts b/js/app/packages/service-clients/service-storage/generated/schemas/index.ts
index 789cd77caa..d96c9834f2 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/index.ts
@@ -269,10 +269,10 @@ export * from './getDocumentResponse';
export * from './getDocumentResponseData';
export * from './getDocumentResponseDataViewLocation';
export * from './getDocumentSearchResponse';
-export * from './getDocumentUserAccessLevelResponse';
export * from './getDocumentsResponse';
export * from './getDocumentsResponseData';
export * from './getDocumentsResponseMessage';
+export * from './getDocumentUserAccessLevelResponse';
export * from './getInstructionsDocumentResponse';
export * from './getItemsSoupParams';
export * from './getLocationHandlerParams';
@@ -348,8 +348,8 @@ export * from './pdfHighlightRectAnchorRequest';
export * from './pdfPlaceableCommentAnchor';
export * from './pdfPlaceableCommentAnchorRequest';
export * from './pdfPlaceableCommentAnchorRequestUuid';
-export * from './pinRequest';
export * from './pinnedItem';
+export * from './pinRequest';
export * from './postItemsSoupParams';
export * from './postSoupRequest';
export * from './postSoupRequestAllOf';
@@ -358,8 +358,8 @@ export * from './preSaveDocumentResponse';
export * from './preSaveDocumentResponseData';
export * from './presignedUrl';
export * from './project';
-export * from './projectDeleteResponseData';
export * from './projectDeletedAt';
+export * from './projectDeleteResponseData';
export * from './projectDocumentStatus';
export * from './projectFilters';
export * from './projectParentId';
@@ -505,11 +505,11 @@ export * from './upsertUserDocumentViewLocationRequest';
export * from './upsertUserMentionsRequest';
export * from './userActivitiesResponse';
export * from './userActivitiesResponseNextOffset';
+export * from './userDocumentsResponse';
+export * from './userDocumentsResponseNextOffset';
export * from './userDocumentViewLocation';
export * from './userDocumentViewLocationResponse';
export * from './userDocumentViewLocationResponseLocation';
-export * from './userDocumentsResponse';
-export * from './userDocumentsResponseNextOffset';
export * from './userPinsResponse';
export * from './userViewsResponse';
export * from './view';
@@ -517,4 +517,4 @@ export * from './viewPatch';
export * from './viewPatchName';
export * from './viewsResponse';
export * from './withDocumentId';
-export * from './withProjectId';
\ No newline at end of file
+export * from './withProjectId';
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/itemWithUserAccessLevel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/itemWithUserAccessLevel.ts
index 8fed1f64c5..fb84ee4f58 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/itemWithUserAccessLevel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/itemWithUserAccessLevel.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { Item } from './item';
+
import type { AccessLevel } from './accessLevel';
+import type { Item } from './item';
export interface ItemWithUserAccessLevel {
item: Item;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/locationResponseData.ts b/js/app/packages/service-clients/service-storage/generated/schemas/locationResponseData.ts
index b1f8306acd..d25b78e1f4 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/locationResponseData.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/locationResponseData.ts
@@ -7,4 +7,6 @@
import type { LocationResponseDataOneOf } from './locationResponseDataOneOf';
import type { LocationResponseDataOneOfTwo } from './locationResponseDataOneOfTwo';
-export type LocationResponseData = LocationResponseDataOneOf | LocationResponseDataOneOfTwo;
+export type LocationResponseData =
+ | LocationResponseDataOneOf
+ | LocationResponseDataOneOfTwo;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/participantRole.ts b/js/app/packages/service-clients/service-storage/generated/schemas/participantRole.ts
index 9029093a9b..c1dd0595a7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/participantRole.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/participantRole.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ParticipantRole = typeof ParticipantRole[keyof typeof ParticipantRole];
-
+export type ParticipantRole =
+ (typeof ParticipantRole)[keyof typeof ParticipantRole];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ParticipantRole = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/patchProjectRequestV2SharePermission.ts b/js/app/packages/service-clients/service-storage/generated/schemas/patchProjectRequestV2SharePermission.ts
index a620f23791..f816917aec 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/patchProjectRequestV2SharePermission.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/patchProjectRequestV2SharePermission.ts
@@ -6,4 +6,5 @@
*/
import type { UpdateSharePermissionRequestV2 } from './updateSharePermissionRequestV2';
-export type PatchProjectRequestV2SharePermission = null | UpdateSharePermissionRequestV2;
+export type PatchProjectRequestV2SharePermission =
+ null | UpdateSharePermissionRequestV2;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/patchThreadRequestV2SharePermission.ts b/js/app/packages/service-clients/service-storage/generated/schemas/patchThreadRequestV2SharePermission.ts
index 2644b663ec..9540583090 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/patchThreadRequestV2SharePermission.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/patchThreadRequestV2SharePermission.ts
@@ -6,4 +6,5 @@
*/
import type { UpdateSharePermissionRequestV2 } from './updateSharePermissionRequestV2';
-export type PatchThreadRequestV2SharePermission = null | UpdateSharePermissionRequestV2;
+export type PatchThreadRequestV2SharePermission =
+ null | UpdateSharePermissionRequestV2;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfAnchorType.ts
index 4fedba329e..1b3873352a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorIdOneOfAnchorType = typeof PdfAnchorIdOneOfAnchorType[keyof typeof PdfAnchorIdOneOfAnchorType];
-
+export type PdfAnchorIdOneOfAnchorType =
+ (typeof PdfAnchorIdOneOfAnchorType)[keyof typeof PdfAnchorIdOneOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorIdOneOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfThreeAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfThreeAnchorType.ts
index f0dd49f5b9..85ee08e98e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfThreeAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorIdOneOfThreeAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorIdOneOfThreeAnchorType = typeof PdfAnchorIdOneOfThreeAnchorType[keyof typeof PdfAnchorIdOneOfThreeAnchorType];
-
+export type PdfAnchorIdOneOfThreeAnchorType =
+ (typeof PdfAnchorIdOneOfThreeAnchorType)[keyof typeof PdfAnchorIdOneOfThreeAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorIdOneOfThreeAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOf.ts
index 99cc716959..15786804cb 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOf.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfPlaceableCommentAnchor } from './pdfPlaceableCommentAnchor';
+
import type { PdfAnchorOneOfAllOf } from './pdfAnchorOneOfAllOf';
+import type { PdfPlaceableCommentAnchor } from './pdfPlaceableCommentAnchor';
export type PdfAnchorOneOf = PdfPlaceableCommentAnchor & PdfAnchorOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfAllOfAnchorType.ts
index 15e3dea0f1..b243118735 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorOneOfAllOfAnchorType = typeof PdfAnchorOneOfAllOfAnchorType[keyof typeof PdfAnchorOneOfAllOfAnchorType];
-
+export type PdfAnchorOneOfAllOfAnchorType =
+ (typeof PdfAnchorOneOfAllOfAnchorType)[keyof typeof PdfAnchorOneOfAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorOneOfAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFour.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFour.ts
index 99c7fea448..127421dfad 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFour.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFour.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfHighlightAnchor } from './pdfHighlightAnchor';
+
import type { PdfAnchorOneOfFourAllOf } from './pdfAnchorOneOfFourAllOf';
+import type { PdfHighlightAnchor } from './pdfHighlightAnchor';
export type PdfAnchorOneOfFour = PdfHighlightAnchor & PdfAnchorOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFourAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFourAllOfAnchorType.ts
index 39dd418c54..5cd982b8b2 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFourAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorOneOfFourAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorOneOfFourAllOfAnchorType = typeof PdfAnchorOneOfFourAllOfAnchorType[keyof typeof PdfAnchorOneOfFourAllOfAnchorType];
-
+export type PdfAnchorOneOfFourAllOfAnchorType =
+ (typeof PdfAnchorOneOfFourAllOfAnchorType)[keyof typeof PdfAnchorOneOfFourAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorOneOfFourAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequest.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequest.ts
index 9586500626..b684926ce3 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequest.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequest.ts
@@ -8,4 +8,7 @@ import type { PdfAnchorRequestOneOf } from './pdfAnchorRequestOneOf';
import type { PdfAnchorRequestOneOfFour } from './pdfAnchorRequestOneOfFour';
import type { PdfAnchorRequestOneOfSeven } from './pdfAnchorRequestOneOfSeven';
-export type PdfAnchorRequest = PdfAnchorRequestOneOf | PdfAnchorRequestOneOfFour | PdfAnchorRequestOneOfSeven;
+export type PdfAnchorRequest =
+ | PdfAnchorRequestOneOf
+ | PdfAnchorRequestOneOfFour
+ | PdfAnchorRequestOneOfSeven;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOf.ts
index f2a2a51a89..de527d284a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOf.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfPlaceableCommentAnchorRequest } from './pdfPlaceableCommentAnchorRequest';
+
import type { PdfAnchorRequestOneOfAllOf } from './pdfAnchorRequestOneOfAllOf';
+import type { PdfPlaceableCommentAnchorRequest } from './pdfPlaceableCommentAnchorRequest';
-export type PdfAnchorRequestOneOf = PdfPlaceableCommentAnchorRequest & PdfAnchorRequestOneOfAllOf;
+export type PdfAnchorRequestOneOf = PdfPlaceableCommentAnchorRequest &
+ PdfAnchorRequestOneOfAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfAllOfAnchorType.ts
index 08637944f5..bb8070a178 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorRequestOneOfAllOfAnchorType = typeof PdfAnchorRequestOneOfAllOfAnchorType[keyof typeof PdfAnchorRequestOneOfAllOfAnchorType];
-
+export type PdfAnchorRequestOneOfAllOfAnchorType =
+ (typeof PdfAnchorRequestOneOfAllOfAnchorType)[keyof typeof PdfAnchorRequestOneOfAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorRequestOneOfAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFour.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFour.ts
index 7ab405b50a..52dbe1a94f 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFour.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFour.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfHighlightAnchorRequest } from './pdfHighlightAnchorRequest';
+
import type { PdfAnchorRequestOneOfFourAllOf } from './pdfAnchorRequestOneOfFourAllOf';
+import type { PdfHighlightAnchorRequest } from './pdfHighlightAnchorRequest';
-export type PdfAnchorRequestOneOfFour = PdfHighlightAnchorRequest & PdfAnchorRequestOneOfFourAllOf;
+export type PdfAnchorRequestOneOfFour = PdfHighlightAnchorRequest &
+ PdfAnchorRequestOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFourAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFourAllOfAnchorType.ts
index af21606c68..ea6838f416 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFourAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfFourAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorRequestOneOfFourAllOfAnchorType = typeof PdfAnchorRequestOneOfFourAllOfAnchorType[keyof typeof PdfAnchorRequestOneOfFourAllOfAnchorType];
-
+export type PdfAnchorRequestOneOfFourAllOfAnchorType =
+ (typeof PdfAnchorRequestOneOfFourAllOfAnchorType)[keyof typeof PdfAnchorRequestOneOfFourAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorRequestOneOfFourAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSeven.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSeven.ts
index e69d546ae4..68b243cdc8 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSeven.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { UnthreadedPdfUuidRequest } from './unthreadedPdfUuidRequest';
+
import type { PdfAnchorRequestOneOfSevenAllOf } from './pdfAnchorRequestOneOfSevenAllOf';
+import type { UnthreadedPdfUuidRequest } from './unthreadedPdfUuidRequest';
-export type PdfAnchorRequestOneOfSeven = UnthreadedPdfUuidRequest & PdfAnchorRequestOneOfSevenAllOf;
+export type PdfAnchorRequestOneOfSeven = UnthreadedPdfUuidRequest &
+ PdfAnchorRequestOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSevenAllOfAnchorType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSevenAllOfAnchorType.ts
index ba65decaf9..a098996cb0 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSevenAllOfAnchorType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfAnchorRequestOneOfSevenAllOfAnchorType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type PdfAnchorRequestOneOfSevenAllOfAnchorType = typeof PdfAnchorRequestOneOfSevenAllOfAnchorType[keyof typeof PdfAnchorRequestOneOfSevenAllOfAnchorType];
-
+export type PdfAnchorRequestOneOfSevenAllOfAnchorType =
+ (typeof PdfAnchorRequestOneOfSevenAllOfAnchorType)[keyof typeof PdfAnchorRequestOneOfSevenAllOfAnchorType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PdfAnchorRequestOneOfSevenAllOfAnchorType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchor.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchor.ts
index 87290fcd2e..a2ce1a51e8 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchor.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchor.ts
@@ -4,10 +4,11 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfHighlightAnchorDeletedAt } from './pdfHighlightAnchorDeletedAt';
-import type { PdfHighlightRect } from './pdfHighlightRect';
+
import type { HighlightType } from './highlightType';
+import type { PdfHighlightAnchorDeletedAt } from './pdfHighlightAnchorDeletedAt';
import type { PdfHighlightAnchorThreadId } from './pdfHighlightAnchorThreadId';
+import type { PdfHighlightRect } from './pdfHighlightRect';
export interface PdfHighlightAnchor {
alpha: number;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchorRequest.ts b/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchorRequest.ts
index f0974d3081..3f1d07d3f7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchorRequest.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/pdfHighlightAnchorRequest.ts
@@ -4,9 +4,10 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { PdfHighlightRectAnchorRequest } from './pdfHighlightRectAnchorRequest';
+
import type { HighlightType } from './highlightType';
import type { PdfHighlightAnchorRequestUuid } from './pdfHighlightAnchorRequestUuid';
+import type { PdfHighlightRectAnchorRequest } from './pdfHighlightRectAnchorRequest';
export interface PdfHighlightAnchorRequest {
alpha: number;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/postItemsSoupParams.ts b/js/app/packages/service-clients/service-storage/generated/schemas/postItemsSoupParams.ts
index cd3e687281..716df46a3f 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/postItemsSoupParams.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/postItemsSoupParams.ts
@@ -6,8 +6,8 @@
*/
export type PostItemsSoupParams = {
-/**
- * Base64 encoded cursor value.
- */
-cursor?: string;
+ /**
+ * Base64 encoded cursor value.
+ */
+ cursor?: string;
};
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreview.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreview.ts
index 840d4a710a..228edf51b1 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreview.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreview.ts
@@ -8,4 +8,7 @@ import type { ProjectPreviewOneOf } from './projectPreviewOneOf';
import type { ProjectPreviewOneOfFour } from './projectPreviewOneOfFour';
import type { ProjectPreviewOneOfSeven } from './projectPreviewOneOfSeven';
-export type ProjectPreview = ProjectPreviewOneOf | ProjectPreviewOneOfFour | ProjectPreviewOneOfSeven;
+export type ProjectPreview =
+ | ProjectPreviewOneOf
+ | ProjectPreviewOneOfFour
+ | ProjectPreviewOneOfSeven;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfAllOfAccess.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfAllOfAccess.ts
index 93c81ca1f1..2a4d00f3e9 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfAllOfAccess.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfAllOfAccess.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ProjectPreviewOneOfAllOfAccess = typeof ProjectPreviewOneOfAllOfAccess[keyof typeof ProjectPreviewOneOfAllOfAccess];
-
+export type ProjectPreviewOneOfAllOfAccess =
+ (typeof ProjectPreviewOneOfAllOfAccess)[keyof typeof ProjectPreviewOneOfAllOfAccess];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectPreviewOneOfAllOfAccess = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFour.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFour.ts
index d84cd4b14b..cc5d5aa814 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFour.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFour.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithProjectId } from './withProjectId';
+
import type { ProjectPreviewOneOfFourAllOf } from './projectPreviewOneOfFourAllOf';
+import type { WithProjectId } from './withProjectId';
-export type ProjectPreviewOneOfFour = WithProjectId & ProjectPreviewOneOfFourAllOf;
+export type ProjectPreviewOneOfFour = WithProjectId &
+ ProjectPreviewOneOfFourAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFourAllOfAccess.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFourAllOfAccess.ts
index 92f51f7b84..385b89be48 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFourAllOfAccess.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfFourAllOfAccess.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ProjectPreviewOneOfFourAllOfAccess = typeof ProjectPreviewOneOfFourAllOfAccess[keyof typeof ProjectPreviewOneOfFourAllOfAccess];
-
+export type ProjectPreviewOneOfFourAllOfAccess =
+ (typeof ProjectPreviewOneOfFourAllOfAccess)[keyof typeof ProjectPreviewOneOfFourAllOfAccess];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectPreviewOneOfFourAllOfAccess = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSeven.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSeven.ts
index 37dea3c42f..57bf39730c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSeven.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSeven.ts
@@ -4,7 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { WithProjectId } from './withProjectId';
+
import type { ProjectPreviewOneOfSevenAllOf } from './projectPreviewOneOfSevenAllOf';
+import type { WithProjectId } from './withProjectId';
-export type ProjectPreviewOneOfSeven = WithProjectId & ProjectPreviewOneOfSevenAllOf;
+export type ProjectPreviewOneOfSeven = WithProjectId &
+ ProjectPreviewOneOfSevenAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSevenAllOfAccess.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSevenAllOfAccess.ts
index baa054ef38..845bdd4c3f 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSevenAllOfAccess.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectPreviewOneOfSevenAllOfAccess.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type ProjectPreviewOneOfSevenAllOfAccess = typeof ProjectPreviewOneOfSevenAllOfAccess[keyof typeof ProjectPreviewOneOfSevenAllOfAccess];
-
+export type ProjectPreviewOneOfSevenAllOfAccess =
+ (typeof ProjectPreviewOneOfSevenAllOfAccess)[keyof typeof ProjectPreviewOneOfSevenAllOfAccess];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectPreviewOneOfSevenAllOfAccess = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/projectType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/projectType.ts
index 189b2adca0..e18e71ed44 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/projectType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/projectType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type ProjectType = typeof ProjectType[keyof typeof ProjectType];
-
+export type ProjectType = (typeof ProjectType)[keyof typeof ProjectType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValue.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValue.ts
index 5153f0aa79..4c74ecf818 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValue.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValue.ts
@@ -5,17 +5,27 @@
* OpenAPI spec version: 0.1.0
*/
import type { SetPropertyValueOneOf } from './setPropertyValueOneOf';
-import type { SetPropertyValueOneOfThree } from './setPropertyValueOneOfThree';
import type { SetPropertyValueOneOfFive } from './setPropertyValueOneOfFive';
-import type { SetPropertyValueOneOfSeven } from './setPropertyValueOneOfSeven';
import type { SetPropertyValueOneOfNine } from './setPropertyValueOneOfNine';
-import type { SetPropertyValueOneOfOneone } from './setPropertyValueOneOfOneone';
-import type { SetPropertyValueOneOfOnethree } from './setPropertyValueOneOfOnethree';
import type { SetPropertyValueOneOfOnefive } from './setPropertyValueOneOfOnefive';
-import type { SetPropertyValueOneOfOneseven } from './setPropertyValueOneOfOneseven';
import type { SetPropertyValueOneOfOnenine } from './setPropertyValueOneOfOnenine';
+import type { SetPropertyValueOneOfOneone } from './setPropertyValueOneOfOneone';
+import type { SetPropertyValueOneOfOneseven } from './setPropertyValueOneOfOneseven';
+import type { SetPropertyValueOneOfOnethree } from './setPropertyValueOneOfOnethree';
+import type { SetPropertyValueOneOfSeven } from './setPropertyValueOneOfSeven';
+import type { SetPropertyValueOneOfThree } from './setPropertyValueOneOfThree';
/**
* Type-safe enum for setting entity property values - provides compile-time validation.
*/
-export type SetPropertyValue = SetPropertyValueOneOf | SetPropertyValueOneOfThree | SetPropertyValueOneOfFive | SetPropertyValueOneOfSeven | SetPropertyValueOneOfNine | SetPropertyValueOneOfOneone | SetPropertyValueOneOfOnethree | SetPropertyValueOneOfOnefive | SetPropertyValueOneOfOneseven | SetPropertyValueOneOfOnenine;
+export type SetPropertyValue =
+ | SetPropertyValueOneOf
+ | SetPropertyValueOneOfThree
+ | SetPropertyValueOneOfFive
+ | SetPropertyValueOneOfSeven
+ | SetPropertyValueOneOfNine
+ | SetPropertyValueOneOfOneone
+ | SetPropertyValueOneOfOnethree
+ | SetPropertyValueOneOfOnefive
+ | SetPropertyValueOneOfOneseven
+ | SetPropertyValueOneOfOnenine;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfFiveType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfFiveType.ts
index 01749bf0fb..00319fb000 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfFiveType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfFiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfFiveType = typeof SetPropertyValueOneOfFiveType[keyof typeof SetPropertyValueOneOfFiveType];
-
+export type SetPropertyValueOneOfFiveType =
+ (typeof SetPropertyValueOneOfFiveType)[keyof typeof SetPropertyValueOneOfFiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfFiveType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfNineType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfNineType.ts
index 4b8dfae5ac..103677260e 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfNineType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfNineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfNineType = typeof SetPropertyValueOneOfNineType[keyof typeof SetPropertyValueOneOfNineType];
-
+export type SetPropertyValueOneOfNineType =
+ (typeof SetPropertyValueOneOfNineType)[keyof typeof SetPropertyValueOneOfNineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfNineType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnefiveType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnefiveType.ts
index 763506f94e..9ee8de8df4 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnefiveType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnefiveType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnefiveType = typeof SetPropertyValueOneOfOnefiveType[keyof typeof SetPropertyValueOneOfOnefiveType];
-
+export type SetPropertyValueOneOfOnefiveType =
+ (typeof SetPropertyValueOneOfOnefiveType)[keyof typeof SetPropertyValueOneOfOnefiveType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnefiveType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnenineType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnenineType.ts
index c3db6e3705..dfe812e8c2 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnenineType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnenineType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnenineType = typeof SetPropertyValueOneOfOnenineType[keyof typeof SetPropertyValueOneOfOnenineType];
-
+export type SetPropertyValueOneOfOnenineType =
+ (typeof SetPropertyValueOneOfOnenineType)[keyof typeof SetPropertyValueOneOfOnenineType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnenineType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOneoneType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOneoneType.ts
index 104b03bde3..9b579d7904 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOneoneType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOneoneType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOneoneType = typeof SetPropertyValueOneOfOneoneType[keyof typeof SetPropertyValueOneOfOneoneType];
-
+export type SetPropertyValueOneOfOneoneType =
+ (typeof SetPropertyValueOneOfOneoneType)[keyof typeof SetPropertyValueOneOfOneoneType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOneoneType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnesevenType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnesevenType.ts
index 264c91b4cc..11d4243991 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnesevenType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnesevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnesevenType = typeof SetPropertyValueOneOfOnesevenType[keyof typeof SetPropertyValueOneOfOnesevenType];
-
+export type SetPropertyValueOneOfOnesevenType =
+ (typeof SetPropertyValueOneOfOnesevenType)[keyof typeof SetPropertyValueOneOfOnesevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnesevenType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnethreeType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnethreeType.ts
index 7da6c5517d..ae004a4e89 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnethreeType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfOnethreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfOnethreeType = typeof SetPropertyValueOneOfOnethreeType[keyof typeof SetPropertyValueOneOfOnethreeType];
-
+export type SetPropertyValueOneOfOnethreeType =
+ (typeof SetPropertyValueOneOfOnethreeType)[keyof typeof SetPropertyValueOneOfOnethreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfOnethreeType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfSevenType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfSevenType.ts
index 5873895bad..98fcc07b83 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfSevenType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfSevenType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfSevenType = typeof SetPropertyValueOneOfSevenType[keyof typeof SetPropertyValueOneOfSevenType];
-
+export type SetPropertyValueOneOfSevenType =
+ (typeof SetPropertyValueOneOfSevenType)[keyof typeof SetPropertyValueOneOfSevenType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfSevenType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfThreeType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfThreeType.ts
index 41e2d42d92..8453335c7c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfThreeType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfThreeType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfThreeType = typeof SetPropertyValueOneOfThreeType[keyof typeof SetPropertyValueOneOfThreeType];
-
+export type SetPropertyValueOneOfThreeType =
+ (typeof SetPropertyValueOneOfThreeType)[keyof typeof SetPropertyValueOneOfThreeType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfThreeType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfType.ts
index d9d2000938..665c553cc0 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/setPropertyValueOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SetPropertyValueOneOfType = typeof SetPropertyValueOneOfType[keyof typeof SetPropertyValueOneOfType];
-
+export type SetPropertyValueOneOfType =
+ (typeof SetPropertyValueOneOfType)[keyof typeof SetPropertyValueOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SetPropertyValueOneOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/sharePermissionV2ChannelSharePermissions.ts b/js/app/packages/service-clients/service-storage/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
index 5e2fdb2189..978664d9e9 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/sharePermissionV2ChannelSharePermissions.ts
@@ -9,4 +9,6 @@ import type { ChannelSharePermission } from './channelSharePermission';
/**
* The channel share permissions for the item
*/
-export type SharePermissionV2ChannelSharePermissions = ChannelSharePermission[] | null;
+export type SharePermissionV2ChannelSharePermissions =
+ | ChannelSharePermission[]
+ | null;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupApiItem.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupApiItem.ts
index 32c469ed21..db965ca380 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupApiItem.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupApiItem.ts
@@ -4,7 +4,8 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { SoupItem } from './soupItem';
+
import type { SoupApiItemAllOf } from './soupApiItemAllOf';
+import type { SoupItem } from './soupItem';
export type SoupApiItem = SoupItem & SoupApiItemAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupApiSort.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupApiSort.ts
index f2b318e420..4ddca3ad03 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupApiSort.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupApiSort.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupApiSort = typeof SoupApiSort[keyof typeof SoupApiSort];
-
+export type SoupApiSort = (typeof SoupApiSort)[keyof typeof SoupApiSort];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupApiSort = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupChannel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupChannel.ts
index d6dfe4d645..a76fbb074c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupChannel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupChannel.ts
@@ -8,4 +8,6 @@ import type { ChannelWithParticipants } from './channelWithParticipants';
import type { LatestMessage } from './latestMessage';
import type { SoupChannelAllOf } from './soupChannelAllOf';
-export type SoupChannel = ChannelWithParticipants & LatestMessage & SoupChannelAllOf;
+export type SoupChannel = ChannelWithParticipants &
+ LatestMessage &
+ SoupChannelAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupDocumentSubTypeOneOfType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupDocumentSubTypeOneOfType.ts
index 6d2f3e1c39..2daf09b9e9 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupDocumentSubTypeOneOfType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupDocumentSubTypeOneOfType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupDocumentSubTypeOneOfType = typeof SoupDocumentSubTypeOneOfType[keyof typeof SoupDocumentSubTypeOneOfType];
-
+export type SoupDocumentSubTypeOneOfType =
+ (typeof SoupDocumentSubTypeOneOfType)[keyof typeof SoupDocumentSubTypeOneOfType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupDocumentSubTypeOneOfType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreview.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreview.ts
index 114d7cd9a7..138812583d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreview.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreview.ts
@@ -7,4 +7,5 @@
import type { SoupEmailThreadPreview } from './soupEmailThreadPreview';
import type { SoupEnrichedEmailThreadPreviewAllOf } from './soupEnrichedEmailThreadPreviewAllOf';
-export type SoupEnrichedEmailThreadPreview = SoupEmailThreadPreview & SoupEnrichedEmailThreadPreviewAllOf;
+export type SoupEnrichedEmailThreadPreview = SoupEmailThreadPreview &
+ SoupEnrichedEmailThreadPreviewAllOf;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreviewAllOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreviewAllOf.ts
index 3bd61f8641..7a4208d2fa 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreviewAllOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupEnrichedEmailThreadPreviewAllOf.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
import type { SoupAttachment } from './soupAttachment';
-import type { SoupMacroAttachment } from './soupMacroAttachment';
-import type { SoupLabel } from './soupLabel';
-import type { SoupEmailThreadPreviewMetadata } from './soupEmailThreadPreviewMetadata';
import type { SoupContact } from './soupContact';
+import type { SoupEmailThreadPreviewMetadata } from './soupEmailThreadPreviewMetadata';
+import type { SoupLabel } from './soupLabel';
+import type { SoupMacroAttachment } from './soupMacroAttachment';
export type SoupEnrichedEmailThreadPreviewAllOf = {
attachments: SoupAttachment[];
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItem.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItem.ts
index b630920479..129d5f240d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItem.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItem.ts
@@ -5,9 +5,14 @@
* OpenAPI spec version: 0.1.0
*/
import type { SoupItemOneOf } from './soupItemOneOf';
-import type { SoupItemOneOfThree } from './soupItemOneOfThree';
import type { SoupItemOneOfFive } from './soupItemOneOfFive';
-import type { SoupItemOneOfSeven } from './soupItemOneOfSeven';
import type { SoupItemOneOfNine } from './soupItemOneOfNine';
+import type { SoupItemOneOfSeven } from './soupItemOneOfSeven';
+import type { SoupItemOneOfThree } from './soupItemOneOfThree';
-export type SoupItem = SoupItemOneOf | SoupItemOneOfThree | SoupItemOneOfFive | SoupItemOneOfSeven | SoupItemOneOfNine;
+export type SoupItem =
+ | SoupItemOneOf
+ | SoupItemOneOfThree
+ | SoupItemOneOfFive
+ | SoupItemOneOfSeven
+ | SoupItemOneOfNine;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFive.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFive.ts
index 557c2540a7..fb18f41f1d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFive.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFive.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { SoupProject } from './soupProject';
+
import type { SoupItemOneOfFiveTag } from './soupItemOneOfFiveTag';
+import type { SoupProject } from './soupProject';
export type SoupItemOneOfFive = {
data: SoupProject;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFiveTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFiveTag.ts
index bea4d62b71..c768ebb62d 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFiveTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfFiveTag.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupItemOneOfFiveTag = typeof SoupItemOneOfFiveTag[keyof typeof SoupItemOneOfFiveTag];
-
+export type SoupItemOneOfFiveTag =
+ (typeof SoupItemOneOfFiveTag)[keyof typeof SoupItemOneOfFiveTag];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfFiveTag = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfNineTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfNineTag.ts
index 878319dd98..bfdff457d7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfNineTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfNineTag.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupItemOneOfNineTag = typeof SoupItemOneOfNineTag[keyof typeof SoupItemOneOfNineTag];
-
+export type SoupItemOneOfNineTag =
+ (typeof SoupItemOneOfNineTag)[keyof typeof SoupItemOneOfNineTag];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfNineTag = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfSevenTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfSevenTag.ts
index 26b08f93f7..817192f903 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfSevenTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfSevenTag.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupItemOneOfSevenTag = typeof SoupItemOneOfSevenTag[keyof typeof SoupItemOneOfSevenTag];
-
+export type SoupItemOneOfSevenTag =
+ (typeof SoupItemOneOfSevenTag)[keyof typeof SoupItemOneOfSevenTag];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfSevenTag = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfTag.ts
index 7aad341598..ea29e7b54a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfTag.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupItemOneOfTag = typeof SoupItemOneOfTag[keyof typeof SoupItemOneOfTag];
-
+export type SoupItemOneOfTag =
+ (typeof SoupItemOneOfTag)[keyof typeof SoupItemOneOfTag];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfTag = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfThreeTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfThreeTag.ts
index ef81ed5ffe..e609a3d657 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfThreeTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfThreeTag.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupItemOneOfThreeTag = typeof SoupItemOneOfThreeTag[keyof typeof SoupItemOneOfThreeTag];
-
+export type SoupItemOneOfThreeTag =
+ (typeof SoupItemOneOfThreeTag)[keyof typeof SoupItemOneOfThreeTag];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfThreeTag = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabel.ts
index 0dcd63ce26..09c77d1689 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabel.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { SoupLabelListVisibility } from './soupLabelListVisibility';
-import type { SoupMessageListVisibility } from './soupMessageListVisibility';
import type { SoupLabelType } from './soupLabelType';
+import type { SoupMessageListVisibility } from './soupMessageListVisibility';
export interface SoupLabel {
createdAt: string;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelListVisibility.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelListVisibility.ts
index 1ceb38898e..0184f9c0cf 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelListVisibility.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupLabelListVisibility = typeof SoupLabelListVisibility[keyof typeof SoupLabelListVisibility];
-
+export type SoupLabelListVisibility =
+ (typeof SoupLabelListVisibility)[keyof typeof SoupLabelListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupLabelListVisibility = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelType.ts
index d8b35a5d11..bd188311d7 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupLabelType.ts
@@ -5,8 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupLabelType = typeof SoupLabelType[keyof typeof SoupLabelType];
-
+export type SoupLabelType = (typeof SoupLabelType)[keyof typeof SoupLabelType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupLabelType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupMessageListVisibility.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupMessageListVisibility.ts
index bf6febd6d9..9fbc9039ce 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupMessageListVisibility.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupMessageListVisibility.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type SoupMessageListVisibility = typeof SoupMessageListVisibility[keyof typeof SoupMessageListVisibility];
-
+export type SoupMessageListVisibility =
+ (typeof SoupMessageListVisibility)[keyof typeof SoupMessageListVisibility];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupMessageListVisibility = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/unthreadedPdfUuidRequestOneOfAttachmentType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/unthreadedPdfUuidRequestOneOfAttachmentType.ts
index 38e07e14eb..6ea0b8aad2 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/unthreadedPdfUuidRequestOneOfAttachmentType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/unthreadedPdfUuidRequestOneOfAttachmentType.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UnthreadedPdfUuidRequestOneOfAttachmentType = typeof UnthreadedPdfUuidRequestOneOfAttachmentType[keyof typeof UnthreadedPdfUuidRequestOneOfAttachmentType];
-
+export type UnthreadedPdfUuidRequestOneOfAttachmentType =
+ (typeof UnthreadedPdfUuidRequestOneOfAttachmentType)[keyof typeof UnthreadedPdfUuidRequestOneOfAttachmentType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnthreadedPdfUuidRequestOneOfAttachmentType = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/updateOperation.ts b/js/app/packages/service-clients/service-storage/generated/schemas/updateOperation.ts
index 8f829b5d77..62feb20362 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/updateOperation.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/updateOperation.ts
@@ -5,8 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
-export type UpdateOperation = typeof UpdateOperation[keyof typeof UpdateOperation];
-
+export type UpdateOperation =
+ (typeof UpdateOperation)[keyof typeof UpdateOperation];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UpdateOperation = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts b/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
index 4ceccd9a79..27ddb15fe5 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2ChannelSharePermissions.ts
@@ -9,4 +9,6 @@ import type { UpdateChannelSharePermission } from './updateChannelSharePermissio
/**
* Any channel share permissions to be created/updated/removed
*/
-export type UpdateSharePermissionRequestV2ChannelSharePermissions = UpdateChannelSharePermission[] | null;
+export type UpdateSharePermissionRequestV2ChannelSharePermissions =
+ | UpdateChannelSharePermission[]
+ | null;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts b/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
index 39b8e66fd0..f426025da3 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/updateSharePermissionRequestV2PublicAccessLevel.ts
@@ -6,4 +6,5 @@
*/
import type { AccessLevel } from './accessLevel';
-export type UpdateSharePermissionRequestV2PublicAccessLevel = null | AccessLevel;
+export type UpdateSharePermissionRequestV2PublicAccessLevel =
+ null | AccessLevel;
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/uploadDocumentStatus.ts b/js/app/packages/service-clients/service-storage/generated/schemas/uploadDocumentStatus.ts
index 13162a1ae5..9ef990f247 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/uploadDocumentStatus.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/uploadDocumentStatus.ts
@@ -8,8 +8,8 @@
/**
* The upload status of the document
*/
-export type UploadDocumentStatus = typeof UploadDocumentStatus[keyof typeof UploadDocumentStatus];
-
+export type UploadDocumentStatus =
+ (typeof UploadDocumentStatus)[keyof typeof UploadDocumentStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UploadDocumentStatus = {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/uploadFolderHandler200DataOneOf.ts b/js/app/packages/service-clients/service-storage/generated/schemas/uploadFolderHandler200DataOneOf.ts
index 84d50015c3..f7eaa8b89c 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/uploadFolderHandler200DataOneOf.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/uploadFolderHandler200DataOneOf.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { HashMap } from './hashMap';
+
import type { FileSystemNodeWithIds } from './fileSystemNodeWithIds';
+import type { HashMap } from './hashMap';
export type UploadFolderHandler200DataOneOf = {
/** maps document id to presigned url (external) or s3 info (internal) */
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts b/js/app/packages/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts
index 5571b31815..b8b4142173 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts
@@ -4,8 +4,9 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import type { UserActivitiesResponseNextOffset } from './userActivitiesResponseNextOffset';
+
import type { Activity } from './activity';
+import type { UserActivitiesResponseNextOffset } from './userActivitiesResponseNextOffset';
/**
* @deprecated
diff --git a/js/app/packages/service-clients/service-storage/generated/zod.ts b/js/app/packages/service-clients/service-storage/generated/zod.ts
index 554e098be0..96315ea786 100644
--- a/js/app/packages/service-clients/service-storage/generated/zod.ts
+++ b/js/app/packages/service-clients/service-storage/generated/zod.ts
@@ -4,620 +4,1055 @@
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
-import {
- z as zod
-} from 'zod';
-
+import { z as zod } from 'zod';
/**
* @deprecated
* @summary Gets the users recent activities
*/
export const getRecentActivityHandlerQueryParams = zod.object({
- "limit": zod.number().describe('The maximum number of items to retreive. Default 10, max 100.'),
- "offset": zod.number().describe('The offset to start from. Default 0.')
-})
+ limit: zod
+ .number()
+ .describe('The maximum number of items to retreive. Default 10, max 100.'),
+ offset: zod.number().describe('The offset to start from. Default 0.'),
+});
export const getRecentActivityHandlerResponse = zod.object({
- "data": zod.union([zod.null(),zod.object({
- "next_offset": zod.number().nullish().describe('The next offset to be used if there is one'),
- "recent": zod.array(zod.union([zod.object({
- "Document": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-})
-}),zod.object({
- "Chat": zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-})
-})])).describe('The activities returned from the query'),
- "total": zod.number().describe('The total number of activities the user has')
-})]).optional(),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .union([
+ zod.null(),
+ zod.object({
+ next_offset: zod
+ .number()
+ .nullish()
+ .describe('The next offset to be used if there is one'),
+ recent: zod
+ .array(
+ zod.union([
+ zod.object({
+ Document: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the document this document branched from'
+ ),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the project that this document belongs to'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe(
+ 'A task document with its associated properties'
+ )
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ }),
+ zod.object({
+ Chat: zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ }),
+ ])
+ )
+ .describe('The activities returned from the query'),
+ total: zod
+ .number()
+ .describe('The total number of activities the user has'),
+ }),
+ ])
+ .optional(),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Deletes a single unthreaded anchor for a document
If you need to delete a threaded anchor, see the delete comment handler
*/
-export const deleteAnchorBody = zod.object({
- "anchorType": zod.enum(['highlight']),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "fileType": zod.enum(['pdf'])
-}))
-
-export const deleteAnchorResponse = zod.union([zod.object({
- "anchorType": zod.enum(['free-comment']),
- "uuid": zod.string().uuid()
-}),zod.object({
- "anchorType": zod.enum(['highlight']),
- "uuid": zod.string().uuid()
-})]).and(zod.object({
- "fileType": zod.enum(['pdf'])
-})).and(zod.object({
- "documentId": zod.string(),
- "threadId": zod.number().nullish()
-}))
-
+export const deleteAnchorBody = zod
+ .object({
+ anchorType: zod.enum(['highlight']),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ );
+
+export const deleteAnchorResponse = zod
+ .union([
+ zod.object({
+ anchorType: zod.enum(['free-comment']),
+ uuid: zod.string().uuid(),
+ }),
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ uuid: zod.string().uuid(),
+ }),
+ ])
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ )
+ .and(
+ zod.object({
+ documentId: zod.string(),
+ threadId: zod.number().nullish(),
+ })
+ );
/**
* @summary Edits a single anchor for a document
*/
-export const editAnchorBody = zod.object({
- "allowableEdits": zod.any().optional(),
- "heightPct": zod.number().nullish(),
- "originalIndex": zod.number().nullish(),
- "originalPage": zod.number().nullish(),
- "page": zod.number().nullish(),
- "rotation": zod.number().nullish(),
- "shouldLockOnSave": zod.boolean().nullish(),
- "uuid": zod.string().uuid(),
- "wasDeleted": zod.boolean().nullish(),
- "wasEdited": zod.boolean().nullish(),
- "widthPct": zod.number().nullish(),
- "xPct": zod.number().nullish(),
- "yPct": zod.number().nullish()
-}).and(zod.object({
- "anchorType": zod.enum(['free-comment'])
-})).and(zod.object({
- "fileType": zod.enum(['pdf'])
-}))
-
-export const editAnchorResponse = zod.union([zod.object({
- "allowableEdits": zod.any().optional(),
- "documentId": zod.string(),
- "heightPct": zod.number(),
- "originalIndex": zod.number(),
- "originalPage": zod.number(),
- "owner": zod.string(),
- "page": zod.number(),
- "rotation": zod.number(),
- "shouldLockOnSave": zod.boolean(),
- "threadId": zod.number(),
- "uuid": zod.string().uuid(),
- "wasDeleted": zod.boolean(),
- "wasEdited": zod.boolean(),
- "widthPct": zod.number(),
- "xPct": zod.number(),
- "yPct": zod.number()
-}).and(zod.object({
- "anchorType": zod.enum(['placeable'])
-})),zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "id": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "owner": zod.string(),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "threadId": zod.number().nullish(),
- "updatedAt": zod.number(),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-}))]).and(zod.object({
- "documentId": zod.string()
-}))
-
+export const editAnchorBody = zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ heightPct: zod.number().nullish(),
+ originalIndex: zod.number().nullish(),
+ originalPage: zod.number().nullish(),
+ page: zod.number().nullish(),
+ rotation: zod.number().nullish(),
+ shouldLockOnSave: zod.boolean().nullish(),
+ uuid: zod.string().uuid(),
+ wasDeleted: zod.boolean().nullish(),
+ wasEdited: zod.boolean().nullish(),
+ widthPct: zod.number().nullish(),
+ xPct: zod.number().nullish(),
+ yPct: zod.number().nullish(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['free-comment']),
+ })
+ )
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ );
+
+export const editAnchorResponse = zod
+ .union([
+ zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ documentId: zod.string(),
+ heightPct: zod.number(),
+ originalIndex: zod.number(),
+ originalPage: zod.number(),
+ owner: zod.string(),
+ page: zod.number(),
+ rotation: zod.number(),
+ shouldLockOnSave: zod.boolean(),
+ threadId: zod.number(),
+ uuid: zod.string().uuid(),
+ wasDeleted: zod.boolean(),
+ wasEdited: zod.boolean(),
+ widthPct: zod.number(),
+ xPct: zod.number(),
+ yPct: zod.number(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['placeable']),
+ })
+ ),
+ zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ id: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([
+ zod.literal(1),
+ zod.literal(2),
+ zod.literal(3),
+ ]),
+ owner: zod.string(),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ threadId: zod.number().nullish(),
+ updatedAt: zod.number(),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ ),
+ ])
+ .and(
+ zod.object({
+ documentId: zod.string(),
+ })
+ );
/**
* @summary Creates an unthreaded anchor for a document
If you need to create a threaded anchor, see the create comment handler
*/
export const createAnchorParams = zod.object({
- "document_id": zod.string().describe('The document id')
-})
-
-export const createAnchorBody = zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "uuid": zod.string().uuid().nullish()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-})).and(zod.object({
- "fileType": zod.enum(['pdf'])
-}))
-
-export const createAnchorResponse = zod.union([zod.object({
- "allowableEdits": zod.any().optional(),
- "documentId": zod.string(),
- "heightPct": zod.number(),
- "originalIndex": zod.number(),
- "originalPage": zod.number(),
- "owner": zod.string(),
- "page": zod.number(),
- "rotation": zod.number(),
- "shouldLockOnSave": zod.boolean(),
- "threadId": zod.number(),
- "uuid": zod.string().uuid(),
- "wasDeleted": zod.boolean(),
- "wasEdited": zod.boolean(),
- "widthPct": zod.number(),
- "xPct": zod.number(),
- "yPct": zod.number()
-}).and(zod.object({
- "anchorType": zod.enum(['placeable'])
-})),zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "id": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "owner": zod.string(),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "threadId": zod.number().nullish(),
- "updatedAt": zod.number(),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-}))]).and(zod.object({
- "documentId": zod.string()
-}))
-
+ document_id: zod.string().describe('The document id'),
+});
+
+export const createAnchorBody = zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([zod.literal(1), zod.literal(2), zod.literal(3)]),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ uuid: zod.string().uuid().nullish(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ )
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ );
+
+export const createAnchorResponse = zod
+ .union([
+ zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ documentId: zod.string(),
+ heightPct: zod.number(),
+ originalIndex: zod.number(),
+ originalPage: zod.number(),
+ owner: zod.string(),
+ page: zod.number(),
+ rotation: zod.number(),
+ shouldLockOnSave: zod.boolean(),
+ threadId: zod.number(),
+ uuid: zod.string().uuid(),
+ wasDeleted: zod.boolean(),
+ wasEdited: zod.boolean(),
+ widthPct: zod.number(),
+ xPct: zod.number(),
+ yPct: zod.number(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['placeable']),
+ })
+ ),
+ zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ id: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([
+ zod.literal(1),
+ zod.literal(2),
+ zod.literal(3),
+ ]),
+ owner: zod.string(),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ threadId: zod.number().nullish(),
+ updatedAt: zod.number(),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ ),
+ ])
+ .and(
+ zod.object({
+ documentId: zod.string(),
+ })
+ );
/**
* @summary Gets a set of comment anchors for a document
*/
export const getDocumentAnchorsParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentAnchorsResponse = zod.object({
- "data": zod.array(zod.union([zod.object({
- "allowableEdits": zod.any().optional(),
- "documentId": zod.string(),
- "heightPct": zod.number(),
- "originalIndex": zod.number(),
- "originalPage": zod.number(),
- "owner": zod.string(),
- "page": zod.number(),
- "rotation": zod.number(),
- "shouldLockOnSave": zod.boolean(),
- "threadId": zod.number(),
- "uuid": zod.string().uuid(),
- "wasDeleted": zod.boolean(),
- "wasEdited": zod.boolean(),
- "widthPct": zod.number(),
- "xPct": zod.number(),
- "yPct": zod.number()
-}).and(zod.object({
- "anchorType": zod.enum(['placeable'])
-})),zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "id": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "owner": zod.string(),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "threadId": zod.number().nullish(),
- "updatedAt": zod.number(),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-}))]))
-})
-
+ data: zod.array(
+ zod.union([
+ zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ documentId: zod.string(),
+ heightPct: zod.number(),
+ originalIndex: zod.number(),
+ originalPage: zod.number(),
+ owner: zod.string(),
+ page: zod.number(),
+ rotation: zod.number(),
+ shouldLockOnSave: zod.boolean(),
+ threadId: zod.number(),
+ uuid: zod.string().uuid(),
+ wasDeleted: zod.boolean(),
+ wasEdited: zod.boolean(),
+ widthPct: zod.number(),
+ xPct: zod.number(),
+ yPct: zod.number(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['placeable']),
+ })
+ ),
+ zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ id: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([
+ zod.literal(1),
+ zod.literal(2),
+ zod.literal(3),
+ ]),
+ owner: zod.string(),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ threadId: zod.number().nullish(),
+ updatedAt: zod.number(),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ ),
+ ])
+ ),
+});
/**
* @summary Deletes a single comment for a document
*/
export const deleteCommentParams = zod.object({
- "comment_id": zod.number().describe('The comment id')
-})
+ comment_id: zod.number().describe('The comment id'),
+});
export const deleteCommentBodyRemoveAnchorThreadOnlyDefault = null;
export const deleteCommentBody = zod.object({
- "removeAnchorThreadOnly": zod.boolean().nullish()
-})
+ removeAnchorThreadOnly: zod.boolean().nullish(),
+});
export const deleteCommentResponse = zod.object({
- "anchor": zod.union([zod.null(),zod.union([zod.object({
- "anchorType": zod.enum(['free-comment']),
- "uuid": zod.string().uuid()
-}),zod.object({
- "anchorType": zod.enum(['highlight']),
- "uuid": zod.string().uuid()
-})]).and(zod.object({
- "fileType": zod.enum(['pdf'])
-})).and(zod.object({
- "deleted": zod.boolean()
-}))]).optional(),
- "commentId": zod.number(),
- "documentId": zod.string(),
- "thread": zod.object({
- "deleted": zod.boolean(),
- "threadId": zod.number()
-})
-})
-
+ anchor: zod
+ .union([
+ zod.null(),
+ zod
+ .union([
+ zod.object({
+ anchorType: zod.enum(['free-comment']),
+ uuid: zod.string().uuid(),
+ }),
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ uuid: zod.string().uuid(),
+ }),
+ ])
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ )
+ .and(
+ zod.object({
+ deleted: zod.boolean(),
+ })
+ ),
+ ])
+ .optional(),
+ commentId: zod.number(),
+ documentId: zod.string(),
+ thread: zod.object({
+ deleted: zod.boolean(),
+ threadId: zod.number(),
+ }),
+});
/**
* @summary Edits a single comment for a document
*/
export const editCommentParams = zod.object({
- "comment_id": zod.number().describe('The comment id')
-})
+ comment_id: zod.number().describe('The comment id'),
+});
export const editCommentBody = zod.object({
- "metadata": zod.any().optional(),
- "text": zod.string().nullish()
-})
-
-export const editCommentResponse = zod.object({
- "commentId": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "metadata": zod.any().optional(),
- "order": zod.number().nullish(),
- "owner": zod.string(),
- "sender": zod.string().nullish(),
- "text": zod.string(),
- "threadId": zod.number(),
- "updatedAt": zod.number()
-}).and(zod.object({
- "documentId": zod.string()
-}))
-
+ metadata: zod.any().optional(),
+ text: zod.string().nullish(),
+});
+
+export const editCommentResponse = zod
+ .object({
+ commentId: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ metadata: zod.any().optional(),
+ order: zod.number().nullish(),
+ owner: zod.string(),
+ sender: zod.string().nullish(),
+ text: zod.string(),
+ threadId: zod.number(),
+ updatedAt: zod.number(),
+ })
+ .and(
+ zod.object({
+ documentId: zod.string(),
+ })
+ );
/**
* @summary Creates a single comment for a document
Optionally creates a new thread/anchor if one does not exist
*/
export const createCommentParams = zod.object({
- "document_id": zod.string().describe('The document id')
-})
+ document_id: zod.string().describe('The document id'),
+});
export const createCommentBody = zod.object({
- "anchor": zod.union([zod.null(),zod.union([zod.object({
- "allowableEdits": zod.any().optional(),
- "heightPct": zod.number(),
- "originalIndex": zod.number(),
- "originalPage": zod.number(),
- "page": zod.number(),
- "rotation": zod.number(),
- "shouldLockOnSave": zod.boolean(),
- "uuid": zod.string().uuid().nullish(),
- "wasDeleted": zod.boolean(),
- "wasEdited": zod.boolean(),
- "widthPct": zod.number(),
- "xPct": zod.number(),
- "yPct": zod.number()
-}).and(zod.object({
- "anchorType": zod.enum(['free-comment'])
-})),zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "uuid": zod.string().uuid().nullish()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-})),zod.object({
- "attachmentType": zod.enum(['highlight']),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "anchorType": zod.enum(['attachment'])
-}))]).and(zod.object({
- "fileType": zod.enum(['pdf'])
-}))]).optional(),
- "metadata": zod.any().optional(),
- "text": zod.string(),
- "threadId": zod.number().nullish(),
- "threadMetadata": zod.any().optional()
-})
-
-export const createCommentResponse = zod.object({
- "comments": zod.array(zod.object({
- "commentId": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "metadata": zod.any().optional(),
- "order": zod.number().nullish(),
- "owner": zod.string(),
- "sender": zod.string().nullish(),
- "text": zod.string(),
- "threadId": zod.number(),
- "updatedAt": zod.number()
-})),
- "thread": zod.object({
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "metadata": zod.any().optional(),
- "owner": zod.string(),
- "resolved": zod.boolean(),
- "threadId": zod.number(),
- "updatedAt": zod.number()
-})
-}).and(zod.object({
- "anchor": zod.union([zod.null(),zod.union([zod.object({
- "allowableEdits": zod.any().optional(),
- "documentId": zod.string(),
- "heightPct": zod.number(),
- "originalIndex": zod.number(),
- "originalPage": zod.number(),
- "owner": zod.string(),
- "page": zod.number(),
- "rotation": zod.number(),
- "shouldLockOnSave": zod.boolean(),
- "threadId": zod.number(),
- "uuid": zod.string().uuid(),
- "wasDeleted": zod.boolean(),
- "wasEdited": zod.boolean(),
- "widthPct": zod.number(),
- "xPct": zod.number(),
- "yPct": zod.number()
-}).and(zod.object({
- "anchorType": zod.enum(['placeable'])
-})),zod.object({
- "alpha": zod.number(),
- "blue": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "green": zod.number(),
- "highlightRects": zod.array(zod.object({
- "height": zod.number(),
- "id": zod.number(),
- "left": zod.number(),
- "top": zod.number(),
- "width": zod.number()
-})),
- "highlightType": zod.union([zod.literal(1),zod.literal(2),zod.literal(3)]),
- "owner": zod.string(),
- "page": zod.number(),
- "pageViewportHeight": zod.number(),
- "pageViewportWidth": zod.number(),
- "red": zod.number(),
- "text": zod.string(),
- "threadId": zod.number().nullish(),
- "updatedAt": zod.number(),
- "uuid": zod.string().uuid()
-}).and(zod.object({
- "anchorType": zod.enum(['highlight'])
-}))])]).optional(),
- "documentId": zod.string()
-}))
-
+ anchor: zod
+ .union([
+ zod.null(),
+ zod
+ .union([
+ zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ heightPct: zod.number(),
+ originalIndex: zod.number(),
+ originalPage: zod.number(),
+ page: zod.number(),
+ rotation: zod.number(),
+ shouldLockOnSave: zod.boolean(),
+ uuid: zod.string().uuid().nullish(),
+ wasDeleted: zod.boolean(),
+ wasEdited: zod.boolean(),
+ widthPct: zod.number(),
+ xPct: zod.number(),
+ yPct: zod.number(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['free-comment']),
+ })
+ ),
+ zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([
+ zod.literal(1),
+ zod.literal(2),
+ zod.literal(3),
+ ]),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ uuid: zod.string().uuid().nullish(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ ),
+ zod
+ .object({
+ attachmentType: zod.enum(['highlight']),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['attachment']),
+ })
+ ),
+ ])
+ .and(
+ zod.object({
+ fileType: zod.enum(['pdf']),
+ })
+ ),
+ ])
+ .optional(),
+ metadata: zod.any().optional(),
+ text: zod.string(),
+ threadId: zod.number().nullish(),
+ threadMetadata: zod.any().optional(),
+});
+
+export const createCommentResponse = zod
+ .object({
+ comments: zod.array(
+ zod.object({
+ commentId: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ metadata: zod.any().optional(),
+ order: zod.number().nullish(),
+ owner: zod.string(),
+ sender: zod.string().nullish(),
+ text: zod.string(),
+ threadId: zod.number(),
+ updatedAt: zod.number(),
+ })
+ ),
+ thread: zod.object({
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ metadata: zod.any().optional(),
+ owner: zod.string(),
+ resolved: zod.boolean(),
+ threadId: zod.number(),
+ updatedAt: zod.number(),
+ }),
+ })
+ .and(
+ zod.object({
+ anchor: zod
+ .union([
+ zod.null(),
+ zod.union([
+ zod
+ .object({
+ allowableEdits: zod.any().optional(),
+ documentId: zod.string(),
+ heightPct: zod.number(),
+ originalIndex: zod.number(),
+ originalPage: zod.number(),
+ owner: zod.string(),
+ page: zod.number(),
+ rotation: zod.number(),
+ shouldLockOnSave: zod.boolean(),
+ threadId: zod.number(),
+ uuid: zod.string().uuid(),
+ wasDeleted: zod.boolean(),
+ wasEdited: zod.boolean(),
+ widthPct: zod.number(),
+ xPct: zod.number(),
+ yPct: zod.number(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['placeable']),
+ })
+ ),
+ zod
+ .object({
+ alpha: zod.number(),
+ blue: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ green: zod.number(),
+ highlightRects: zod.array(
+ zod.object({
+ height: zod.number(),
+ id: zod.number(),
+ left: zod.number(),
+ top: zod.number(),
+ width: zod.number(),
+ })
+ ),
+ highlightType: zod.union([
+ zod.literal(1),
+ zod.literal(2),
+ zod.literal(3),
+ ]),
+ owner: zod.string(),
+ page: zod.number(),
+ pageViewportHeight: zod.number(),
+ pageViewportWidth: zod.number(),
+ red: zod.number(),
+ text: zod.string(),
+ threadId: zod.number().nullish(),
+ updatedAt: zod.number(),
+ uuid: zod.string().uuid(),
+ })
+ .and(
+ zod.object({
+ anchorType: zod.enum(['highlight']),
+ })
+ ),
+ ]),
+ ])
+ .optional(),
+ documentId: zod.string(),
+ })
+ );
/**
* @summary Gets a set of comment threads for a document
*/
export const getDocumentCommentsParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentCommentsResponse = zod.object({
- "data": zod.array(zod.object({
- "comments": zod.array(zod.object({
- "commentId": zod.number(),
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "metadata": zod.any().optional(),
- "order": zod.number().nullish(),
- "owner": zod.string(),
- "sender": zod.string().nullish(),
- "text": zod.string(),
- "threadId": zod.number(),
- "updatedAt": zod.number()
-})),
- "thread": zod.object({
- "createdAt": zod.number(),
- "deletedAt": zod.number().nullable(),
- "documentId": zod.string(),
- "metadata": zod.any().optional(),
- "owner": zod.string(),
- "resolved": zod.boolean(),
- "threadId": zod.number(),
- "updatedAt": zod.number()
-})
-}))
-})
-
+ data: zod.array(
+ zod.object({
+ comments: zod.array(
+ zod.object({
+ commentId: zod.number(),
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ metadata: zod.any().optional(),
+ order: zod.number().nullish(),
+ owner: zod.string(),
+ sender: zod.string().nullish(),
+ text: zod.string(),
+ threadId: zod.number(),
+ updatedAt: zod.number(),
+ })
+ ),
+ thread: zod.object({
+ createdAt: zod.number(),
+ deletedAt: zod.number().nullable(),
+ documentId: zod.string(),
+ metadata: zod.any().optional(),
+ owner: zod.string(),
+ resolved: zod.boolean(),
+ threadId: zod.number(),
+ updatedAt: zod.number(),
+ }),
+ })
+ ),
+});
/**
* @summary Gets the users documents to populate their recent document list
*/
export const getUserDocumentsHandlerQueryParams = zod.object({
- "limit": zod.number().describe('The maximum number of documents to retreive. Default 10, max 100.'),
- "offset": zod.number().describe('The offset to start from. Default 0.'),
- "file_type": zod.string().describe('The file type to filter by. Default all.')
-})
+ limit: zod
+ .number()
+ .describe(
+ 'The maximum number of documents to retreive. Default 10, max 100.'
+ ),
+ offset: zod.number().describe('The offset to start from. Default 0.'),
+ file_type: zod.string().describe('The file type to filter by. Default all.'),
+});
export const getUserDocumentsHandlerResponse = zod.object({
- "data": zod.union([zod.null(),zod.object({
- "documents": zod.array(zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document and unzipped, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (file extension)'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "projectName": zod.string().nullish().describe('The name of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-})),
- "next_offset": zod.number().nullish().describe('The next offset to be used if there is one'),
- "total": zod.number().describe('The total number of documents the user has')
-})]).optional(),
- "error": zod.boolean().describe('Indicates if an error occurred'),
- "message": zod.string().nullish().describe('Message to explain failure')
-})
-
+ data: zod
+ .union([
+ zod.null(),
+ zod.object({
+ documents: zod.array(
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document and unzipped, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (file extension)'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ projectName: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The name of the project that this document belongs to'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ })
+ ),
+ next_offset: zod
+ .number()
+ .nullish()
+ .describe('The next offset to be used if there is one'),
+ total: zod
+ .number()
+ .describe('The total number of documents the user has'),
+ }),
+ ])
+ .optional(),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+ message: zod.string().nullish().describe('Message to explain failure'),
+});
/**
* @summary Handles creating a document
*/
export const createDocumentHandlerBody = zod.object({
- "branchedFromId": zod.string().nullish().describe('The document id if the document is being branched.'),
- "branchedFromVersionId": zod.number().nullish().describe('The version id if the document is being branched.'),
- "createdAt": zod.string().datetime({}).nullish().describe('Optional time to set the document\'s created_at to. Set when backfilling email attachments.'),
- "documentFamilyId": zod.number().nullish().describe('The document family id if the document is being branched.'),
- "documentName": zod.string().describe('The name of the document without extension.'),
- "emailAttachmentId": zod.string().uuid().nullish().describe('Internal only field that links the document created to the specified email attachment by\ncreating a row in the document_email table.'),
- "fileType": zod.string().nullish().describe('Optional file type of the document.'),
- "id": zod.string().nullish().describe('The id of the document in the database'),
- "isTask": zod.boolean().optional().describe('Whether the document is a task.\nThis is only applicable for md documents and the request will fail if the file type is not\nmd.'),
- "jobId": zod.string().nullish().describe('Optional job id to be used to track an upload job for the newly created document.\nWill need to have a corresponding job initiated for the file beforehand.'),
- "mimeType": zod.string().nullish().describe('The content type of the document (currently only used for logging matches against file type).'),
- "projectId": zod.string().nullish(),
- "sha": zod.string().describe('The sha of the document.')
-})
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The document id if the document is being branched.'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe('The version id if the document is being branched.'),
+ createdAt: zod
+ .string()
+ .datetime({})
+ .nullish()
+ .describe(
+ "Optional time to set the document's created_at to. Set when backfilling email attachments."
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The document family id if the document is being branched.'),
+ documentName: zod
+ .string()
+ .describe('The name of the document without extension.'),
+ emailAttachmentId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'Internal only field that links the document created to the specified email attachment by\ncreating a row in the document_email table.'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('Optional file type of the document.'),
+ id: zod.string().nullish().describe('The id of the document in the database'),
+ isTask: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'Whether the document is a task.\nThis is only applicable for md documents and the request will fail if the file type is not\nmd.'
+ ),
+ jobId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'Optional job id to be used to track an upload job for the newly created document.\nWill need to have a corresponding job initiated for the file beforehand.'
+ ),
+ mimeType: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The content type of the document (currently only used for logging matches against file type).'
+ ),
+ projectId: zod.string().nullish(),
+ sha: zod.string().describe('The sha of the document.'),
+});
export const createDocumentHandlerResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "presignedUrl": zod.string().nullish()
-}).and(zod.object({
- "contentType": zod.string().describe('Content type of the document converted from file type'),
- "fileType": zod.string().nullish().describe('The file type of the document')
-})).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ }),
+ presignedUrl: zod.string().nullish(),
+ })
+ .and(
+ zod.object({
+ contentType: zod
+ .string()
+ .describe('Content type of the document converted from file type'),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document'),
+ })
+ )
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* This endpoint creates task metadata and sets properties atomically.
@@ -628,112 +1063,238 @@ adding Loro/Lexical support to initialize sync service documents server-side. De
for now — client must call `syncServiceClient.initializeFromSnapshot()` after this returns.
* @summary Creates a task document with properties in a single call.
*/
-export const createTaskHandlerBody = zod.object({
- "projectId": zod.string().nullish().describe('Optional project id to associate the task with'),
- "propertyValues": zod.array(zod.object({
- "propertyId": zod.string().describe('The property definition ID'),
- "value": zod.union([zod.object({
- "type": zod.enum(['boolean']),
- "value": zod.boolean()
-}).describe('Boolean true/false value'),zod.object({
- "type": zod.enum(['date']),
- "value": zod.string().datetime({})
-}).describe('Date and time value'),zod.object({
- "type": zod.enum(['number']),
- "value": zod.number()
-}).describe('Numeric value'),zod.object({
- "type": zod.enum(['string']),
- "value": zod.string()
-}).describe('String/text value'),zod.object({
- "option_id": zod.string().uuid(),
- "type": zod.enum(['select_option'])
-}).describe('Select option by ID (for select-type properties)'),zod.object({
- "option_ids": zod.array(zod.string().uuid()),
- "type": zod.enum(['multi_select_option'])
-}).describe('Multiple select options by ID (for multi-select properties)'),zod.object({
- "reference": zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.'),
- "type": zod.enum(['entity_reference'])
-}).describe('Entity reference'),zod.object({
- "references": zod.array(zod.object({
- "entity_id": zod.string(),
- "entity_type": zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.'),
- "specific_message_id": zod.string().uuid().nullish().describe('For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.')
-}).describe('Entity reference for entity-type property values.')),
- "type": zod.enum(['multi_entity_reference'])
-}).describe('Multiple entity references (for multi-select entity properties)'),zod.object({
- "type": zod.enum(['link']),
- "url": zod.string()
-}).describe('Link value'),zod.object({
- "type": zod.enum(['multi_link']),
- "urls": zod.array(zod.string())
-}).describe('Multiple link values (for multi-select link properties)')]).describe('Type-safe enum for setting entity property values - provides compile-time validation.')
-}).describe('Property input for setting a property value on the task')).nullish().describe('Optional property values to set on the task'),
- "taskName": zod.string().describe('The name of the task')
-}).describe('Request body for create_task')
-
-export const createTaskHandlerResponse = zod.object({
- "documentId": zod.string().describe('The document id of the created task')
-}).describe('Response for create_task')
-
+export const createTaskHandlerBody = zod
+ .object({
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('Optional project id to associate the task with'),
+ propertyValues: zod
+ .array(
+ zod
+ .object({
+ propertyId: zod.string().describe('The property definition ID'),
+ value: zod
+ .union([
+ zod
+ .object({
+ type: zod.enum(['boolean']),
+ value: zod.boolean(),
+ })
+ .describe('Boolean true/false value'),
+ zod
+ .object({
+ type: zod.enum(['date']),
+ value: zod.string().datetime({}),
+ })
+ .describe('Date and time value'),
+ zod
+ .object({
+ type: zod.enum(['number']),
+ value: zod.number(),
+ })
+ .describe('Numeric value'),
+ zod
+ .object({
+ type: zod.enum(['string']),
+ value: zod.string(),
+ })
+ .describe('String/text value'),
+ zod
+ .object({
+ option_id: zod.string().uuid(),
+ type: zod.enum(['select_option']),
+ })
+ .describe('Select option by ID (for select-type properties)'),
+ zod
+ .object({
+ option_ids: zod.array(zod.string().uuid()),
+ type: zod.enum(['multi_select_option']),
+ })
+ .describe(
+ 'Multiple select options by ID (for multi-select properties)'
+ ),
+ zod
+ .object({
+ reference: zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ ),
+ type: zod.enum(['entity_reference']),
+ })
+ .describe('Entity reference'),
+ zod
+ .object({
+ references: zod.array(
+ zod
+ .object({
+ entity_id: zod.string(),
+ entity_type: zod
+ .enum([
+ 'CHANNEL',
+ 'CHAT',
+ 'COMPANY',
+ 'DOCUMENT',
+ 'PROJECT',
+ 'TASK',
+ 'THREAD',
+ 'USER',
+ ])
+ .describe(
+ 'Type of entity that can be referenced by entity properties.'
+ ),
+ specific_message_id: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe(
+ 'For CHANNEL, CHAT, THREAD entity types - optional specific message ID.\nThis allows referencing a specific message within a thread/channel/chat.'
+ ),
+ })
+ .describe(
+ 'Entity reference for entity-type property values.'
+ )
+ ),
+ type: zod.enum(['multi_entity_reference']),
+ })
+ .describe(
+ 'Multiple entity references (for multi-select entity properties)'
+ ),
+ zod
+ .object({
+ type: zod.enum(['link']),
+ url: zod.string(),
+ })
+ .describe('Link value'),
+ zod
+ .object({
+ type: zod.enum(['multi_link']),
+ urls: zod.array(zod.string()),
+ })
+ .describe(
+ 'Multiple link values (for multi-select link properties)'
+ ),
+ ])
+ .describe(
+ 'Type-safe enum for setting entity property values - provides compile-time validation.'
+ ),
+ })
+ .describe('Property input for setting a property value on the task')
+ )
+ .nullish()
+ .describe('Optional property values to set on the task'),
+ taskName: zod.string().describe('The name of the task'),
+ })
+ .describe('Request body for create_task');
+
+export const createTaskHandlerResponse = zod
+ .object({
+ documentId: zod.string().describe('The document id of the created task'),
+ })
+ .describe('Response for create_task');
export const initializeUserDocumentsResponse = zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-})
-
+ success: zod.boolean().describe('Indicates if the request was successful'),
+});
/**
* @summary Gets a list of all the user's documents so they are able to be searched on
*/
export const getDocumentListHandlerResponse = zod.object({
- "data": zod.array(zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The id of the document'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The id of the document version'),
- "fileType": zod.string().nullish().describe('The file type of the document'),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-})).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .array(
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The id of the document'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe('The id of the document version'),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document'),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ })
+ )
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Validates the provided document permissions token
*/
export const validateDocumentPermissionsTokenBody = zod.object({
- "token": zod.string().describe('The encoded document permissions token')
-})
+ token: zod.string().describe('The encoded document permissions token'),
+});
export const validateDocumentPermissionsTokenResponseExpMin = 0;
-
export const validateDocumentPermissionsTokenResponse = zod.object({
- "access_level": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "document_id": zod.string().describe('The document id'),
- "exp": zod.number().min(validateDocumentPermissionsTokenResponseExpMin).describe('The expiration time of the token'),
- "iss": zod.string().describe('The issuer of the token'),
- "user_id": zod.string().nullish().describe('The users id if present')
-})
-
+ access_level: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ document_id: zod.string().describe('The document id'),
+ exp: zod
+ .number()
+ .min(validateDocumentPermissionsTokenResponseExpMin)
+ .describe('The expiration time of the token'),
+ iss: zod.string().describe('The issuer of the token'),
+ user_id: zod.string().nullish().describe('The users id if present'),
+});
/**
* @summary Generates a document permissions token for a provided document id
*/
export const getDocumentPermissionsTokenParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentPermissionsTokenResponse = zod.object({
- "token": zod.string().describe('The encoded document permissions token')
-})
-
+ token: zod.string().describe('The encoded document permissions token'),
+});
/**
* @deprecated
@@ -741,153 +1302,344 @@ export const getDocumentPermissionsTokenResponse = zod.object({
any new content
*/
export const presaveDocumentHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const presaveDocumentHandlerBody = zod.object({
- "newBom": zod.array(zod.object({
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).describe('The updated BOM for the document\nContaining the file path and the sha')
-})
+ newBom: zod
+ .array(
+ zod.object({
+ path: zod.string().describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .describe(
+ 'The updated BOM for the document\nContaining the file path and the sha'
+ ),
+});
export const presaveDocumentHandlerResponse = zod.object({
- "data": zod.object({
- "presignedUrls": zod.array(zod.object({
- "presignedUrl": zod.string().describe('The presigned url used to upload the sha'),
- "sha": zod.string().describe('The sha of the item')
-})).describe('Contains any presigned urls you need to upload specific bom parts with.')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ presignedUrls: zod
+ .array(
+ zod.object({
+ presignedUrl: zod
+ .string()
+ .describe('The presigned url used to upload the sha'),
+ sha: zod.string().describe('The sha of the item'),
+ })
+ )
+ .describe(
+ 'Contains any presigned urls you need to upload specific bom parts with.'
+ ),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
export const getBatchPreviewHandlerBody = zod.object({
- "document_ids": zod.array(zod.string())
-})
+ document_ids: zod.array(zod.string()),
+});
export const getBatchPreviewHandlerResponse = zod.object({
- "previews": zod.array(zod.union([zod.object({
- "document_id": zod.string().describe('The document id'),
- "document_name": zod.string().describe('The name of the document'),
- "file_type": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "owner": zod.string().describe('The id of the owner of the document'),
- "sub_type": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with completion status').describe('The sub type of a document preview with associated properties.\nTask-related properties are encoded within the variant to ensure valid states.')]).optional(),
- "updated_at": zod.number().describe('The time the document was last updated')
-}).and(zod.object({
- "type": zod.enum(['access'])
-})),zod.object({
- "document_id": zod.string()
-}).and(zod.object({
- "type": zod.enum(['no_access'])
-})),zod.object({
- "document_id": zod.string()
-}).and(zod.object({
- "type": zod.enum(['does_not_exist'])
-}))]))
-})
-
+ previews: zod.array(
+ zod.union([
+ zod
+ .object({
+ document_id: zod.string().describe('The document id'),
+ document_name: zod.string().describe('The name of the document'),
+ file_type: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ owner: zod.string().describe('The id of the owner of the document'),
+ sub_type: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with completion status')
+ .describe(
+ 'The sub type of a document preview with associated properties.\nTask-related properties are encoded within the variant to ensure valid states.'
+ ),
+ ])
+ .optional(),
+ updated_at: zod
+ .number()
+ .describe('The time the document was last updated'),
+ })
+ .and(
+ zod.object({
+ type: zod.enum(['access']),
+ })
+ ),
+ zod
+ .object({
+ document_id: zod.string(),
+ })
+ .and(
+ zod.object({
+ type: zod.enum(['no_access']),
+ })
+ ),
+ zod
+ .object({
+ document_id: zod.string(),
+ })
+ .and(
+ zod.object({
+ type: zod.enum(['does_not_exist']),
+ })
+ ),
+ ])
+ ),
+});
/**
* @summary Gets a particular document by its id
*/
export const getDocumentParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document and unzipped, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (file extension)'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "projectName": zod.string().nullish().describe('The name of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "userAccessLevel": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "viewLocation": zod.string().nullish().describe('The users view location if there is one')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document and unzipped, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (file extension)'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ projectName: zod
+ .string()
+ .nullish()
+ .describe('The name of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe('The time the document instance / document BOM was updated'),
+ }),
+ userAccessLevel: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ viewLocation: zod
+ .string()
+ .nullish()
+ .describe('The users view location if there is one'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Creates a new version of a document
*/
export const saveDocumentHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const saveDocumentHandlerBody = zod.object({
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nUsed to store highlights and other overlays onto a static file'),
- "newBom": zod.array(zod.object({
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('**DOCX ONLY**\nThe updated BOM for the document.\nContaining the file path and the sha.'),
- "sha": zod.string().nullish().describe('The sha of the new document.\nThis is used to generate a presigned url to upload the new document content to s3.')
-})
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nUsed to store highlights and other overlays onto a static file'
+ ),
+ newBom: zod
+ .array(
+ zod.object({
+ path: zod.string().describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ '**DOCX ONLY**\nThe updated BOM for the document.\nContaining the file path and the sha.'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The sha of the new document.\nThis is used to generate a presigned url to upload the new document content to s3.'
+ ),
+});
export const saveDocumentHandlerResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "presignedUrl": zod.string().nullish().describe('If the document is an editable file, we provide a presigned url to save the updated file to.')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe('The time the document instance / document BOM was updated'),
+ }),
+ presignedUrl: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is an editable file, we provide a presigned url to save the updated file to.'
+ ),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Deletes a specific document.
The document will be soft deleted and appear in the user's trash for 30 days.
*/
export const deleteDocumentHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const deleteDocumentHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Handles copying a given document. This is the similar to
@@ -897,149 +1649,248 @@ this will not require you to re-upload the document when it's made saving
time and resources.
*/
export const copyDocumentHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const copyDocumentHandlerQueryParams = zod.object({
- "version_id": zod.number().optional().describe('The version id of the document to copy. Defaults to copying the latest version of the document.')
-})
+ version_id: zod
+ .number()
+ .optional()
+ .describe(
+ 'The version id of the document to copy. Defaults to copying the latest version of the document.'
+ ),
+});
export const copyDocumentHandlerBody = zod.object({
- "documentName": zod.string().describe('The name of the document without extension.'),
- "versionId": zod.union([zod.null(),zod.object({
- "counter": zod.number(),
- "peer": zod.string()
-})]).optional()
-})
+ documentName: zod
+ .string()
+ .describe('The name of the document without extension.'),
+ versionId: zod
+ .union([
+ zod.null(),
+ zod.object({
+ counter: zod.number(),
+ peer: zod.string(),
+ }),
+ ])
+ .optional(),
+});
export const copyDocumentHandlerResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document and unzipped, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (file extension)'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "projectName": zod.string().nullish().describe('The name of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "userAccessLevel": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "viewLocation": zod.string().nullish().describe('The users view location if there is one')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document and unzipped, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (file extension)'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ projectName: zod
+ .string()
+ .nullish()
+ .describe('The name of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe('The time the document instance / document BOM was updated'),
+ }),
+ userAccessLevel: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ viewLocation: zod
+ .string()
+ .nullish()
+ .describe('The users view location if there is one'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Generates a presigned url to download the raw content of the document
For files with modification layers, they will not be applied in the downloaded file.
*/
export const exportDocumentParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const exportDocumentResponse = zod.object({
- "presigned_url": zod.string().describe('The presigned url to download the raw content of the document')
-})
-
+ presigned_url: zod
+ .string()
+ .describe('The presigned url to download the raw content of the document'),
+});
/**
* @summary Gets the presigned url(s) for the document. aka location
*/
export const getLocationHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getLocationHandlerQueryParams = zod.object({
- "document_version_id": zod.number().describe('A specific document version id to get the location for.'),
- "get_converted_docx_url": zod.boolean().describe('If true, this will return the converted docx url.')
-})
-
-export const getLocationHandlerResponse = zod.union([zod.object({
- "presignedUrl": zod.string().describe('The presigned url of the document if it is not a docx')
-}).describe('The presigned url of the document if it is not a docx'),zod.object({
- "presignedUrls": zod.array(zod.object({
- "presignedUrl": zod.string().describe('The presigned url used to upload the sha'),
- "sha": zod.string().describe('The sha of the item')
-})).describe('The presigned urls of the docx bom parts if it is a docx')
-}).describe('The presigned urls of the docx bom parts if it is a docx')])
-
+ document_version_id: zod
+ .number()
+ .describe('A specific document version id to get the location for.'),
+ get_converted_docx_url: zod
+ .boolean()
+ .describe('If true, this will return the converted docx url.'),
+});
+
+export const getLocationHandlerResponse = zod.union([
+ zod
+ .object({
+ presignedUrl: zod
+ .string()
+ .describe('The presigned url of the document if it is not a docx'),
+ })
+ .describe('The presigned url of the document if it is not a docx'),
+ zod
+ .object({
+ presignedUrls: zod
+ .array(
+ zod.object({
+ presignedUrl: zod
+ .string()
+ .describe('The presigned url used to upload the sha'),
+ sha: zod.string().describe('The sha of the item'),
+ })
+ )
+ .describe('The presigned urls of the docx bom parts if it is a docx'),
+ })
+ .describe('The presigned urls of the docx bom parts if it is a docx'),
+]);
/**
* @summary Permanently deletes a document.
*/
export const permanentlyDeleteDocumentParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const permanentlyDeleteDocumentResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Fetches the document pdf processing result for a given document id
*/
export const getDocumentProcessingResultParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentProcessingResultResponse = zod.object({
- "data": zod.union([zod.null(),zod.object({
- "result": zod.string().describe('The stringified result')
-})]).optional(),
- "error": zod.boolean().describe('Indicates if an error occurred'),
- "message": zod.string().nullish().describe('Message to explain failure')
-})
-
+ data: zod
+ .union([
+ zod.null(),
+ zod.object({
+ result: zod.string().describe('The stringified result'),
+ }),
+ ])
+ .optional(),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+ message: zod.string().nullish().describe('Message to explain failure'),
+});
/**
* @summary Fetches the document processing result for a given document id and job id
*/
export const jobProcessingResultHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID'),
- "job_id": zod.string().describe('Job ID')
-})
+ document_id: zod.string().describe('Document ID'),
+ job_id: zod.string().describe('Job ID'),
+});
export const jobProcessingResultHandlerResponse = zod.object({
- "data": zod.union([zod.null(),zod.object({
- "result": zod.string().describe('The stringified result')
-})]).optional(),
- "error": zod.boolean().describe('Indicates if an error occurred'),
- "message": zod.string().nullish().describe('Message to explain failure')
-})
-
+ data: zod
+ .union([
+ zod.null(),
+ zod.object({
+ result: zod.string().describe('The stringified result'),
+ }),
+ ])
+ .optional(),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+ message: zod.string().nullish().describe('Message to explain failure'),
+});
/**
* @summary Deletes a specific document
*/
export const revertDeleteDocumentParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const revertDeleteDocumentResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary For any file that isn't PDF or DOCX, use this endpoint for saving.
@@ -1047,872 +1898,2636 @@ This endpoint will allow you to save the document by providing the file content
simple_save is different than the save_document endpoint because it does not return a presigned URL, Instead, it simply saves the file to S3 directly (and returns the document metadata).
*/
export const simpleSaveParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const simpleSaveResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "presignedUrl": zod.string().nullish().describe('If the document is an editable file, we provide a presigned url to save the updated file to.')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe('The time the document instance / document BOM was updated'),
+ }),
+ presignedUrl: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is an editable file, we provide a presigned url to save the updated file to.'
+ ),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the list of users who have viewed a given document
*/
export const getDocumentViewsHandlerParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentViewsHandlerResponse = zod.object({
- "count": zod.number().describe('Total number of views for the document'),
- "users": zod.array(zod.string()).describe('List of user emails who have viewed the document')
-})
-
+ count: zod.number().describe('Total number of views for the document'),
+ users: zod
+ .array(zod.string())
+ .describe('List of user emails who have viewed the document'),
+});
/**
* @summary Gets a particular document by its id
*/
export const getDocumentVersionParams = zod.object({
- "document_id": zod.string().describe('Document ID'),
- "document_version_id": zod.number().describe('Document Version ID')
-})
+ document_id: zod.string().describe('Document ID'),
+ document_version_id: zod.number().describe('Document Version ID'),
+});
export const getDocumentVersionResponse = zod.object({
- "data": zod.object({
- "documentMetadata": zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentBom": zod.array(zod.object({
- "id": zod.string().describe('The uuid of the bom part'),
- "path": zod.string().describe('The file path of the bom part content'),
- "sha": zod.string().describe('The sha of the bom part content\nThere is an index on sha for more performant queries based on it.')
-})).nullish().describe('If the document is a DOCX document and unzipped, the document_bom will be present'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentId": zod.string().describe('The document id'),
- "documentName": zod.string().describe('The name of the document'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (file extension)'),
- "modificationData": zod.any().optional().describe('The modification data for the document instance.\nThis is only used for PDF documents.'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "projectName": zod.string().nullish().describe('The name of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.enum(['task']).describe('The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated')
-}),
- "userAccessLevel": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "viewLocation": zod.string().nullish().describe('The users view location if there is one')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ documentMetadata: zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ documentBom: zod
+ .array(
+ zod.object({
+ id: zod.string().describe('The uuid of the bom part'),
+ path: zod
+ .string()
+ .describe('The file path of the bom part content'),
+ sha: zod
+ .string()
+ .describe(
+ 'The sha of the bom part content\nThere is an index on sha for more performant queries based on it.'
+ ),
+ })
+ )
+ .nullish()
+ .describe(
+ 'If the document is a DOCX document and unzipped, the document_bom will be present'
+ ),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentId: zod.string().describe('The document id'),
+ documentName: zod.string().describe('The name of the document'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (file extension)'),
+ modificationData: zod
+ .any()
+ .optional()
+ .describe(
+ 'The modification data for the document instance.\nThis is only used for PDF documents.'
+ ),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ projectName: zod
+ .string()
+ .nullish()
+ .describe('The name of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['task'])
+ .describe(
+ 'The document sub type enum represents all values of document sub types.\nThese values should match the `document_sub_type_value` table in macrodb.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe('The time the document instance / document BOM was updated'),
+ }),
+ userAccessLevel: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ viewLocation: zod
+ .string()
+ .nullish()
+ .describe('The users view location if there is one'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the users history
*/
export const getHistoryHandlerResponse = zod.object({
- "data": zod.array(zod.union([zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})])).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .array(
+ zod.union([
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod.number().describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe('The id of the document family this document belongs to'),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with its associated properties')
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ zod.object({
+ createdAt: zod.number().describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ zod.object({
+ createdAt: zod.number().describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod.number().describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ ])
+ )
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Upserts an item into the user's history and performs other necessary tracking actions
*/
export const upsertHistoryHandlerParams = zod.object({
- "item_type": zod.string().describe('Type of the item'),
- "item_id": zod.string().describe('ID of the item')
-})
+ item_type: zod.string().describe('Type of the item'),
+ item_id: zod.string().describe('ID of the item'),
+});
export const upsertHistoryHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Deletes an item from the user's history
*/
export const deleteHistoryHandlerParams = zod.object({
- "item_type": zod.string().describe('Type of the item'),
- "item_id": zod.string().describe('ID of the item')
-})
+ item_type: zod.string().describe('Type of the item'),
+ item_id: zod.string().describe('ID of the item'),
+});
export const deleteHistoryHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the instructions document for the current user
*/
export const getInstructionsHandlerResponse = zod.object({
- "documentId": zod.string()
-})
-
+ documentId: zod.string(),
+});
/**
* @summary Creates an instructions document for the current user
*/
export const createInstructionsHandlerResponse = zod.object({
- "documentId": zod.string()
-})
-
+ documentId: zod.string(),
+});
/**
* @summary Gets the items the user has access to
*/
export const getItemsSoupQueryLimitMin = 0;
-
export const getItemsSoupQueryParams = zod.object({
- "expand": zod.boolean().optional().describe('Whether to expand projects. Defaults to true.'),
- "limit": zod.number().min(getItemsSoupQueryLimitMin).optional().describe('Limit the number of items returned. Defaults to 20. Max 500.'),
- "sort_method": zod.enum(['viewed_at', 'created_at', 'updated_at', 'viewed_updated', 'frecency']).optional().describe('Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at.'),
- "cursor": zod.string().optional().describe('Base64 encoded cursor value.')
-})
+ expand: zod
+ .boolean()
+ .optional()
+ .describe('Whether to expand projects. Defaults to true.'),
+ limit: zod
+ .number()
+ .min(getItemsSoupQueryLimitMin)
+ .optional()
+ .describe('Limit the number of items returned. Defaults to 20. Max 500.'),
+ sort_method: zod
+ .enum([
+ 'viewed_at',
+ 'created_at',
+ 'updated_at',
+ 'viewed_updated',
+ 'frecency',
+ ])
+ .optional()
+ .describe(
+ 'Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at.'
+ ),
+ cursor: zod.string().optional().describe('Base64 encoded cursor value.'),
+});
export const getItemsSoupResponseItemsItemDataChannelOrgIdMin = 0;
-
export const getItemsSoupResponse = zod.object({
- "items": zod.array(zod.union([zod.object({
- "data": zod.object({
- "branchedFromId": zod.string().uuid().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on the file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().uuid().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "ownerId": zod.string().describe('The owner of the document'),
- "projectId": zod.string().uuid().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "viewedAt": zod.number().nullable().describe('The time the document was last viewed')
-}),
- "tag": zod.enum(['document'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "id": zod.string().uuid().describe('The chat uuid'),
- "isPersistent": zod.boolean().describe('Whether the chat is persistent or not'),
- "name": zod.string().describe('The name of the chat'),
- "ownerId": zod.string().describe('Who the chat belongs to'),
- "projectId": zod.string().uuid().nullish().describe('The project id of the chat'),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "viewedAt": zod.number().nullable().describe('The time the chat was last viewed')
-}),
- "tag": zod.enum(['chat'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "id": zod.string().uuid().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "ownerId": zod.string().describe('The user id of who created the project'),
- "parentId": zod.string().uuid().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "viewedAt": zod.number().nullable().describe('The time the document was last viewed')
-}),
- "tag": zod.enum(['project'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number(),
- "id": zod.string().uuid(),
- "inboxVisible": zod.boolean(),
- "isDraft": zod.boolean(),
- "isImportant": zod.boolean(),
- "isRead": zod.boolean(),
- "name": zod.string().nullish(),
- "ownerId": zod.string(),
- "providerId": zod.string().nullish(),
- "senderEmail": zod.string().nullish(),
- "senderName": zod.string().nullish(),
- "senderPhotoUrl": zod.string().nullish(),
- "snippet": zod.string().nullish(),
- "sortTs": zod.number(),
- "updatedAt": zod.number(),
- "viewedAt": zod.number().nullable()
-}).and(zod.object({
- "attachments": zod.array(zod.object({
- "contentId": zod.string().nullish(),
- "createdAt": zod.number(),
- "filename": zod.string().nullish(),
- "id": zod.string().uuid(),
- "messageId": zod.string().uuid(),
- "mimeType": zod.string().nullish(),
- "providerAttachmentId": zod.string().nullish(),
- "sizeBytes": zod.number().nullish()
-})),
- "attachmentsMacro": zod.array(zod.object({
- "dbId": zod.string().uuid(),
- "itemId": zod.string().uuid(),
- "itemType": zod.string(),
- "messageId": zod.string().uuid(),
- "threadId": zod.string().uuid()
-})),
- "labels": zod.array(zod.object({
- "createdAt": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "labelListVisibility": zod.enum(['labelShow', 'labelShowIfUnread', 'labelHide']),
- "linkId": zod.string().uuid(),
- "messageListVisibility": zod.enum(['show', 'hide']),
- "name": zod.string(),
- "providerLabelId": zod.string(),
- "type": zod.enum(['system', 'user'])
-})),
- "metadata": zod.object({
- "calendarInvite": zod.boolean().describe('if any email contains a calendar invite'),
- "genericSender": zod.boolean().describe('if any sender is a generic email'),
- "knownSender": zod.boolean().describe('if user has previously emailed any sender'),
- "tabular": zod.boolean().describe('if any email contains a <table> html tag')
-}),
- "participants": zod.array(zod.object({
- "emailAddress": zod.string().nullish(),
- "id": zod.string().uuid(),
- "linkId": zod.string().uuid(),
- "name": zod.string().nullish(),
- "sfsPhotoUrl": zod.string().nullish()
-}))
-})),
- "tag": zod.enum(['emailThread'])
-}),zod.object({
- "data": zod.object({
- "channel": zod.object({
- "channel_type": zod.enum(['public', 'organization', 'private', 'direct_message']),
- "created_at": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "name": zod.string().nullish(),
- "org_id": zod.number().min(getItemsSoupResponseItemsItemDataChannelOrgIdMin).nullish(),
- "owner_id": zod.string(),
- "updated_at": zod.string().datetime({})
-}),
- "participants": zod.array(zod.object({
- "channel_id": zod.string().uuid(),
- "joined_at": zod.string().datetime({}),
- "left_at": zod.string().datetime({}).nullish(),
- "role": zod.enum(['owner', 'admin', 'member']),
- "user_id": zod.string()
-}))
-}).and(zod.object({
- "latest_message": zod.union([zod.null(),zod.object({
- "content": zod.string(),
- "created_at": zod.string().datetime({}),
- "deleted_at": zod.string().datetime({}).nullish(),
- "mentions": zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),
- "message_id": zod.string().uuid(),
- "sender_id": zod.string(),
- "thread_id": zod.string().uuid().nullish(),
- "updated_at": zod.string().datetime({})
-})]).optional(),
- "latest_non_thread_message": zod.union([zod.null(),zod.object({
- "content": zod.string(),
- "created_at": zod.string().datetime({}),
- "deleted_at": zod.string().datetime({}).nullish(),
- "mentions": zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),
- "message_id": zod.string().uuid(),
- "sender_id": zod.string(),
- "thread_id": zod.string().uuid().nullish(),
- "updated_at": zod.string().datetime({})
-})]).optional()
-})).and(zod.object({
- "interacted_at": zod.string().datetime({}).nullish(),
- "viewed_at": zod.string().datetime({}).nullish()
-})),
- "tag": zod.enum(['channel'])
-})]).and(zod.object({
- "frecency_score": zod.number()
-}))),
- "next_cursor": zod.string().nullish()
-})
-
+ items: zod.array(
+ zod
+ .union([
+ zod.object({
+ data: zod.object({
+ branchedFromId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on the file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().uuid().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ ownerId: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with its associated properties')
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was last viewed'),
+ }),
+ tag: zod.enum(['document']),
+ }),
+ zod.object({
+ data: zod.object({
+ createdAt: zod.number().describe('The time the chat was created'),
+ id: zod.string().uuid().describe('The chat uuid'),
+ isPersistent: zod
+ .boolean()
+ .describe('Whether the chat is persistent or not'),
+ name: zod.string().describe('The name of the chat'),
+ ownerId: zod.string().describe('Who the chat belongs to'),
+ projectId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The project id of the chat'),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was last viewed'),
+ }),
+ tag: zod.enum(['chat']),
+ }),
+ zod.object({
+ data: zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ id: zod.string().uuid().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ ownerId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ parentId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was last viewed'),
+ }),
+ tag: zod.enum(['project']),
+ }),
+ zod.object({
+ data: zod
+ .object({
+ createdAt: zod.number(),
+ id: zod.string().uuid(),
+ inboxVisible: zod.boolean(),
+ isDraft: zod.boolean(),
+ isImportant: zod.boolean(),
+ isRead: zod.boolean(),
+ name: zod.string().nullish(),
+ ownerId: zod.string(),
+ providerId: zod.string().nullish(),
+ senderEmail: zod.string().nullish(),
+ senderName: zod.string().nullish(),
+ senderPhotoUrl: zod.string().nullish(),
+ snippet: zod.string().nullish(),
+ sortTs: zod.number(),
+ updatedAt: zod.number(),
+ viewedAt: zod.number().nullable(),
+ })
+ .and(
+ zod.object({
+ attachments: zod.array(
+ zod.object({
+ contentId: zod.string().nullish(),
+ createdAt: zod.number(),
+ filename: zod.string().nullish(),
+ id: zod.string().uuid(),
+ messageId: zod.string().uuid(),
+ mimeType: zod.string().nullish(),
+ providerAttachmentId: zod.string().nullish(),
+ sizeBytes: zod.number().nullish(),
+ })
+ ),
+ attachmentsMacro: zod.array(
+ zod.object({
+ dbId: zod.string().uuid(),
+ itemId: zod.string().uuid(),
+ itemType: zod.string(),
+ messageId: zod.string().uuid(),
+ threadId: zod.string().uuid(),
+ })
+ ),
+ labels: zod.array(
+ zod.object({
+ createdAt: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ labelListVisibility: zod.enum([
+ 'labelShow',
+ 'labelShowIfUnread',
+ 'labelHide',
+ ]),
+ linkId: zod.string().uuid(),
+ messageListVisibility: zod.enum(['show', 'hide']),
+ name: zod.string(),
+ providerLabelId: zod.string(),
+ type: zod.enum(['system', 'user']),
+ })
+ ),
+ metadata: zod.object({
+ calendarInvite: zod
+ .boolean()
+ .describe('if any email contains a calendar invite'),
+ genericSender: zod
+ .boolean()
+ .describe('if any sender is a generic email'),
+ knownSender: zod
+ .boolean()
+ .describe('if user has previously emailed any sender'),
+ tabular: zod
+ .boolean()
+ .describe('if any email contains a <table> html tag'),
+ }),
+ participants: zod.array(
+ zod.object({
+ emailAddress: zod.string().nullish(),
+ id: zod.string().uuid(),
+ linkId: zod.string().uuid(),
+ name: zod.string().nullish(),
+ sfsPhotoUrl: zod.string().nullish(),
+ })
+ ),
+ })
+ ),
+ tag: zod.enum(['emailThread']),
+ }),
+ zod.object({
+ data: zod
+ .object({
+ channel: zod.object({
+ channel_type: zod.enum([
+ 'public',
+ 'organization',
+ 'private',
+ 'direct_message',
+ ]),
+ created_at: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ name: zod.string().nullish(),
+ org_id: zod
+ .number()
+ .min(getItemsSoupResponseItemsItemDataChannelOrgIdMin)
+ .nullish(),
+ owner_id: zod.string(),
+ updated_at: zod.string().datetime({}),
+ }),
+ participants: zod.array(
+ zod.object({
+ channel_id: zod.string().uuid(),
+ joined_at: zod.string().datetime({}),
+ left_at: zod.string().datetime({}).nullish(),
+ role: zod.enum(['owner', 'admin', 'member']),
+ user_id: zod.string(),
+ })
+ ),
+ })
+ .and(
+ zod.object({
+ latest_message: zod
+ .union([
+ zod.null(),
+ zod.object({
+ content: zod.string(),
+ created_at: zod.string().datetime({}),
+ deleted_at: zod.string().datetime({}).nullish(),
+ mentions: zod
+ .array(zod.string())
+ .describe(
+ 'message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'
+ ),
+ message_id: zod.string().uuid(),
+ sender_id: zod.string(),
+ thread_id: zod.string().uuid().nullish(),
+ updated_at: zod.string().datetime({}),
+ }),
+ ])
+ .optional(),
+ latest_non_thread_message: zod
+ .union([
+ zod.null(),
+ zod.object({
+ content: zod.string(),
+ created_at: zod.string().datetime({}),
+ deleted_at: zod.string().datetime({}).nullish(),
+ mentions: zod
+ .array(zod.string())
+ .describe(
+ 'message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'
+ ),
+ message_id: zod.string().uuid(),
+ sender_id: zod.string(),
+ thread_id: zod.string().uuid().nullish(),
+ updated_at: zod.string().datetime({}),
+ }),
+ ])
+ .optional(),
+ })
+ )
+ .and(
+ zod.object({
+ interacted_at: zod.string().datetime({}).nullish(),
+ viewed_at: zod.string().datetime({}).nullish(),
+ })
+ ),
+ tag: zod.enum(['channel']),
+ }),
+ ])
+ .and(
+ zod.object({
+ frecency_score: zod.number(),
+ })
+ )
+ ),
+ next_cursor: zod.string().nullish(),
+});
/**
* @summary Gets the items the user has access to
*/
export const postItemsSoupQueryParams = zod.object({
- "cursor": zod.string().optional().describe('Base64 encoded cursor value.')
-})
+ cursor: zod.string().optional().describe('Base64 encoded cursor value.'),
+});
export const postItemsSoupBodyLimitMin = 0;
-
-export const postItemsSoupBody = zod.object({
- "channel_filters": zod.object({
- "channel_ids": zod.array(zod.string()).optional().describe('Channel IDs to search within. Examples: [\'general\']. Empty to search all accessible channels.'),
- "mentions": zod.array(zod.string()).optional().describe('Channel user mentions to search for. Examples: [\'@username\']. Empty if not filtering by mentions.'),
- "org_id": zod.number().nullish().describe('Channel organization ID to search within. Empty to ignore organization filtering.'),
- "sender_ids": zod.array(zod.string()).optional().describe('Sender IDs to search within. Examples: [\'user1\']. Empty to search all accessible senders.'),
- "thread_ids": zod.array(zod.string()).optional().describe('Channel thread IDs to search within. Examples: [\'thread123\']. Empty to search all threads.')
-}).optional().describe('The channel message filters used to filter down what channel messages you search over.'),
- "chat_filters": zod.object({
- "chat_ids": zod.array(zod.string()).optional().describe('Chat ids to search over. Examples: [\'chat1\'], [\'chat1\', \'chat2\']. When provided, chat search will only match results on these chats. Empty to search all accessible chats.'),
- "owners": zod.array(zod.string()).optional().describe('Filter by chat owner. Examples: [\'macro|[email protected]\'], [\'macro|[email protected]\', \'macro|[email protected]\']. Empty to search all owners.'),
- "project_ids": zod.array(zod.string()).optional().describe('A list of project ids to search within. Examples: [\'project1\']. Empty to ignore project filtering.'),
- "role": zod.array(zod.string()).optional().describe('Chat message roles to search. Examples: [\'user\'], [\'assistant\']. Empty to search all roles.')
-}).optional().describe('The chat filters used to filter down what chats you search over.'),
- "document_filters": zod.object({
- "document_ids": zod.array(zod.string()).optional().describe('Document ids to search over. Examples: [\'doc1\'], [\'doc1\', \'doc2\']. Empty to search all accessible documents.'),
- "file_types": zod.array(zod.string()).optional().describe('Document file types to search. Examples: [\'pdf\'], [\'md\', \'txt\']. Empty to search all file types.'),
- "owners": zod.array(zod.string()).optional().describe('Filter by document owner. Examples: [\'macro|[email protected]\'], [\'macro|[email protected]\', \'macro|[email protected]\']. Empty to search all owners.'),
- "project_ids": zod.array(zod.string()).optional().describe('A list of project ids to search within. Examples: [\'project1\'].\nfiltering. Empty to ignore project filtering.')
-}).optional().describe('The document filters used to filter down what documents you search over.'),
- "email_filters": zod.object({
- "bcc": zod.array(zod.string()).optional().describe('Email BCC addresses to filter by. Examples: [\'[email protected]\']. Empty if not filtering by BCC.'),
- "cc": zod.array(zod.string()).optional().describe('Email CC addresses to filter by. Examples: [\'[email protected]\']. Empty if not filtering by CC.'),
- "recipients": zod.array(zod.string()).optional().describe('Email Recipient addresses to filter by. Examples: [\'[email protected]\']. Empty if not filtering by Recipient.'),
- "senders": zod.array(zod.string()).optional().describe('Email sender addresses to filter by. Examples: [\'[email protected]\']. Empty to search all senders.')
-}).optional().describe('The email filters used to filter down what emails you search over.'),
- "project_filters": zod.object({
- "owners": zod.array(zod.string()).optional().describe('Filter by project owner. Examples: [\'macro|[email protected]\'], [\'macro|[email protected]\', \'macro|[email protected]\']. Empty to search all owners.'),
- "project_ids": zod.array(zod.string()).optional().describe('Project IDs to search within. Examples: [\'project1\']. Empty to search all accessible projects.')
-}).optional().describe('The project filters used to filter down what projects you search over.')
-}).describe('a bundle of all of the filters for each entity type').and(zod.object({
- "expand": zod.boolean().nullish().describe('Whether to expand projects. Defaults to true.'),
- "limit": zod.number().min(postItemsSoupBodyLimitMin).nullish().describe('Limit the number of items returned. Defaults to 20. Max 500.'),
- "sort_method": zod.union([zod.null(),zod.enum(['viewed_at', 'created_at', 'updated_at', 'viewed_updated', 'frecency'])]).optional()
-})).and(zod.object({
- "emailView": zod.string().optional().describe('the view of specific emails to display')
-}))
+export const postItemsSoupBody = zod
+ .object({
+ channel_filters: zod
+ .object({
+ channel_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Channel IDs to search within. Examples: ['general']. Empty to search all accessible channels."
+ ),
+ mentions: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Channel user mentions to search for. Examples: ['@username']. Empty if not filtering by mentions."
+ ),
+ org_id: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Channel organization ID to search within. Empty to ignore organization filtering.'
+ ),
+ sender_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Sender IDs to search within. Examples: ['user1']. Empty to search all accessible senders."
+ ),
+ thread_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Channel thread IDs to search within. Examples: ['thread123']. Empty to search all threads."
+ ),
+ })
+ .optional()
+ .describe(
+ 'The channel message filters used to filter down what channel messages you search over.'
+ ),
+ chat_filters: zod
+ .object({
+ chat_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Chat ids to search over. Examples: ['chat1'], ['chat1', 'chat2']. When provided, chat search will only match results on these chats. Empty to search all accessible chats."
+ ),
+ owners: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Filter by chat owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
+ ),
+ project_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "A list of project ids to search within. Examples: ['project1']. Empty to ignore project filtering."
+ ),
+ role: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Chat message roles to search. Examples: ['user'], ['assistant']. Empty to search all roles."
+ ),
+ })
+ .optional()
+ .describe(
+ 'The chat filters used to filter down what chats you search over.'
+ ),
+ document_filters: zod
+ .object({
+ document_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Document ids to search over. Examples: ['doc1'], ['doc1', 'doc2']. Empty to search all accessible documents."
+ ),
+ file_types: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Document file types to search. Examples: ['pdf'], ['md', 'txt']. Empty to search all file types."
+ ),
+ owners: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Filter by document owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
+ ),
+ project_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "A list of project ids to search within. Examples: ['project1'].\nfiltering. Empty to ignore project filtering."
+ ),
+ })
+ .optional()
+ .describe(
+ 'The document filters used to filter down what documents you search over.'
+ ),
+ email_filters: zod
+ .object({
+ bcc: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email BCC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by BCC."
+ ),
+ cc: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email CC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by CC."
+ ),
+ recipients: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email Recipient addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by Recipient."
+ ),
+ senders: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Email sender addresses to filter by. Examples: ['[email protected]']. Empty to search all senders."
+ ),
+ })
+ .optional()
+ .describe(
+ 'The email filters used to filter down what emails you search over.'
+ ),
+ project_filters: zod
+ .object({
+ owners: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Filter by project owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
+ ),
+ project_ids: zod
+ .array(zod.string())
+ .optional()
+ .describe(
+ "Project IDs to search within. Examples: ['project1']. Empty to search all accessible projects."
+ ),
+ })
+ .optional()
+ .describe(
+ 'The project filters used to filter down what projects you search over.'
+ ),
+ })
+ .describe('a bundle of all of the filters for each entity type')
+ .and(
+ zod.object({
+ expand: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to expand projects. Defaults to true.'),
+ limit: zod
+ .number()
+ .min(postItemsSoupBodyLimitMin)
+ .nullish()
+ .describe(
+ 'Limit the number of items returned. Defaults to 20. Max 500.'
+ ),
+ sort_method: zod
+ .union([
+ zod.null(),
+ zod.enum([
+ 'viewed_at',
+ 'created_at',
+ 'updated_at',
+ 'viewed_updated',
+ 'frecency',
+ ]),
+ ])
+ .optional(),
+ })
+ )
+ .and(
+ zod.object({
+ emailView: zod
+ .string()
+ .optional()
+ .describe('the view of specific emails to display'),
+ })
+ );
export const postItemsSoupResponseItemsItemDataChannelOrgIdMin = 0;
-
export const postItemsSoupResponse = zod.object({
- "items": zod.array(zod.union([zod.object({
- "data": zod.object({
- "branchedFromId": zod.string().uuid().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on the file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().uuid().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "ownerId": zod.string().describe('The owner of the document'),
- "projectId": zod.string().uuid().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "viewedAt": zod.number().nullable().describe('The time the document was last viewed')
-}),
- "tag": zod.enum(['document'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "id": zod.string().uuid().describe('The chat uuid'),
- "isPersistent": zod.boolean().describe('Whether the chat is persistent or not'),
- "name": zod.string().describe('The name of the chat'),
- "ownerId": zod.string().describe('Who the chat belongs to'),
- "projectId": zod.string().uuid().nullish().describe('The project id of the chat'),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "viewedAt": zod.number().nullable().describe('The time the chat was last viewed')
-}),
- "tag": zod.enum(['chat'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "id": zod.string().uuid().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "ownerId": zod.string().describe('The user id of who created the project'),
- "parentId": zod.string().uuid().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "viewedAt": zod.number().nullable().describe('The time the document was last viewed')
-}),
- "tag": zod.enum(['project'])
-}),zod.object({
- "data": zod.object({
- "createdAt": zod.number(),
- "id": zod.string().uuid(),
- "inboxVisible": zod.boolean(),
- "isDraft": zod.boolean(),
- "isImportant": zod.boolean(),
- "isRead": zod.boolean(),
- "name": zod.string().nullish(),
- "ownerId": zod.string(),
- "providerId": zod.string().nullish(),
- "senderEmail": zod.string().nullish(),
- "senderName": zod.string().nullish(),
- "senderPhotoUrl": zod.string().nullish(),
- "snippet": zod.string().nullish(),
- "sortTs": zod.number(),
- "updatedAt": zod.number(),
- "viewedAt": zod.number().nullable()
-}).and(zod.object({
- "attachments": zod.array(zod.object({
- "contentId": zod.string().nullish(),
- "createdAt": zod.number(),
- "filename": zod.string().nullish(),
- "id": zod.string().uuid(),
- "messageId": zod.string().uuid(),
- "mimeType": zod.string().nullish(),
- "providerAttachmentId": zod.string().nullish(),
- "sizeBytes": zod.number().nullish()
-})),
- "attachmentsMacro": zod.array(zod.object({
- "dbId": zod.string().uuid(),
- "itemId": zod.string().uuid(),
- "itemType": zod.string(),
- "messageId": zod.string().uuid(),
- "threadId": zod.string().uuid()
-})),
- "labels": zod.array(zod.object({
- "createdAt": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "labelListVisibility": zod.enum(['labelShow', 'labelShowIfUnread', 'labelHide']),
- "linkId": zod.string().uuid(),
- "messageListVisibility": zod.enum(['show', 'hide']),
- "name": zod.string(),
- "providerLabelId": zod.string(),
- "type": zod.enum(['system', 'user'])
-})),
- "metadata": zod.object({
- "calendarInvite": zod.boolean().describe('if any email contains a calendar invite'),
- "genericSender": zod.boolean().describe('if any sender is a generic email'),
- "knownSender": zod.boolean().describe('if user has previously emailed any sender'),
- "tabular": zod.boolean().describe('if any email contains a <table> html tag')
-}),
- "participants": zod.array(zod.object({
- "emailAddress": zod.string().nullish(),
- "id": zod.string().uuid(),
- "linkId": zod.string().uuid(),
- "name": zod.string().nullish(),
- "sfsPhotoUrl": zod.string().nullish()
-}))
-})),
- "tag": zod.enum(['emailThread'])
-}),zod.object({
- "data": zod.object({
- "channel": zod.object({
- "channel_type": zod.enum(['public', 'organization', 'private', 'direct_message']),
- "created_at": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "name": zod.string().nullish(),
- "org_id": zod.number().min(postItemsSoupResponseItemsItemDataChannelOrgIdMin).nullish(),
- "owner_id": zod.string(),
- "updated_at": zod.string().datetime({})
-}),
- "participants": zod.array(zod.object({
- "channel_id": zod.string().uuid(),
- "joined_at": zod.string().datetime({}),
- "left_at": zod.string().datetime({}).nullish(),
- "role": zod.enum(['owner', 'admin', 'member']),
- "user_id": zod.string()
-}))
-}).and(zod.object({
- "latest_message": zod.union([zod.null(),zod.object({
- "content": zod.string(),
- "created_at": zod.string().datetime({}),
- "deleted_at": zod.string().datetime({}).nullish(),
- "mentions": zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),
- "message_id": zod.string().uuid(),
- "sender_id": zod.string(),
- "thread_id": zod.string().uuid().nullish(),
- "updated_at": zod.string().datetime({})
-})]).optional(),
- "latest_non_thread_message": zod.union([zod.null(),zod.object({
- "content": zod.string(),
- "created_at": zod.string().datetime({}),
- "deleted_at": zod.string().datetime({}).nullish(),
- "mentions": zod.array(zod.string()).describe('message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'),
- "message_id": zod.string().uuid(),
- "sender_id": zod.string(),
- "thread_id": zod.string().uuid().nullish(),
- "updated_at": zod.string().datetime({})
-})]).optional()
-})).and(zod.object({
- "interacted_at": zod.string().datetime({}).nullish(),
- "viewed_at": zod.string().datetime({}).nullish()
-})),
- "tag": zod.enum(['channel'])
-})]).and(zod.object({
- "frecency_score": zod.number()
-}))),
- "next_cursor": zod.string().nullish()
-})
-
+ items: zod.array(
+ zod
+ .union([
+ zod.object({
+ data: zod.object({
+ branchedFromId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on the file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on the file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().uuid().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ ownerId: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with its associated properties')
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was last viewed'),
+ }),
+ tag: zod.enum(['document']),
+ }),
+ zod.object({
+ data: zod.object({
+ createdAt: zod.number().describe('The time the chat was created'),
+ id: zod.string().uuid().describe('The chat uuid'),
+ isPersistent: zod
+ .boolean()
+ .describe('Whether the chat is persistent or not'),
+ name: zod.string().describe('The name of the chat'),
+ ownerId: zod.string().describe('Who the chat belongs to'),
+ projectId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The project id of the chat'),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was last viewed'),
+ }),
+ tag: zod.enum(['chat']),
+ }),
+ zod.object({
+ data: zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ id: zod.string().uuid().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ ownerId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ parentId: zod
+ .string()
+ .uuid()
+ .nullish()
+ .describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ viewedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was last viewed'),
+ }),
+ tag: zod.enum(['project']),
+ }),
+ zod.object({
+ data: zod
+ .object({
+ createdAt: zod.number(),
+ id: zod.string().uuid(),
+ inboxVisible: zod.boolean(),
+ isDraft: zod.boolean(),
+ isImportant: zod.boolean(),
+ isRead: zod.boolean(),
+ name: zod.string().nullish(),
+ ownerId: zod.string(),
+ providerId: zod.string().nullish(),
+ senderEmail: zod.string().nullish(),
+ senderName: zod.string().nullish(),
+ senderPhotoUrl: zod.string().nullish(),
+ snippet: zod.string().nullish(),
+ sortTs: zod.number(),
+ updatedAt: zod.number(),
+ viewedAt: zod.number().nullable(),
+ })
+ .and(
+ zod.object({
+ attachments: zod.array(
+ zod.object({
+ contentId: zod.string().nullish(),
+ createdAt: zod.number(),
+ filename: zod.string().nullish(),
+ id: zod.string().uuid(),
+ messageId: zod.string().uuid(),
+ mimeType: zod.string().nullish(),
+ providerAttachmentId: zod.string().nullish(),
+ sizeBytes: zod.number().nullish(),
+ })
+ ),
+ attachmentsMacro: zod.array(
+ zod.object({
+ dbId: zod.string().uuid(),
+ itemId: zod.string().uuid(),
+ itemType: zod.string(),
+ messageId: zod.string().uuid(),
+ threadId: zod.string().uuid(),
+ })
+ ),
+ labels: zod.array(
+ zod.object({
+ createdAt: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ labelListVisibility: zod.enum([
+ 'labelShow',
+ 'labelShowIfUnread',
+ 'labelHide',
+ ]),
+ linkId: zod.string().uuid(),
+ messageListVisibility: zod.enum(['show', 'hide']),
+ name: zod.string(),
+ providerLabelId: zod.string(),
+ type: zod.enum(['system', 'user']),
+ })
+ ),
+ metadata: zod.object({
+ calendarInvite: zod
+ .boolean()
+ .describe('if any email contains a calendar invite'),
+ genericSender: zod
+ .boolean()
+ .describe('if any sender is a generic email'),
+ knownSender: zod
+ .boolean()
+ .describe('if user has previously emailed any sender'),
+ tabular: zod
+ .boolean()
+ .describe('if any email contains a <table> html tag'),
+ }),
+ participants: zod.array(
+ zod.object({
+ emailAddress: zod.string().nullish(),
+ id: zod.string().uuid(),
+ linkId: zod.string().uuid(),
+ name: zod.string().nullish(),
+ sfsPhotoUrl: zod.string().nullish(),
+ })
+ ),
+ })
+ ),
+ tag: zod.enum(['emailThread']),
+ }),
+ zod.object({
+ data: zod
+ .object({
+ channel: zod.object({
+ channel_type: zod.enum([
+ 'public',
+ 'organization',
+ 'private',
+ 'direct_message',
+ ]),
+ created_at: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ name: zod.string().nullish(),
+ org_id: zod
+ .number()
+ .min(postItemsSoupResponseItemsItemDataChannelOrgIdMin)
+ .nullish(),
+ owner_id: zod.string(),
+ updated_at: zod.string().datetime({}),
+ }),
+ participants: zod.array(
+ zod.object({
+ channel_id: zod.string().uuid(),
+ joined_at: zod.string().datetime({}),
+ left_at: zod.string().datetime({}).nullish(),
+ role: zod.enum(['owner', 'admin', 'member']),
+ user_id: zod.string(),
+ })
+ ),
+ })
+ .and(
+ zod.object({
+ latest_message: zod
+ .union([
+ zod.null(),
+ zod.object({
+ content: zod.string(),
+ created_at: zod.string().datetime({}),
+ deleted_at: zod.string().datetime({}).nullish(),
+ mentions: zod
+ .array(zod.string())
+ .describe(
+ 'message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'
+ ),
+ message_id: zod.string().uuid(),
+ sender_id: zod.string(),
+ thread_id: zod.string().uuid().nullish(),
+ updated_at: zod.string().datetime({}),
+ }),
+ ])
+ .optional(),
+ latest_non_thread_message: zod
+ .union([
+ zod.null(),
+ zod.object({
+ content: zod.string(),
+ created_at: zod.string().datetime({}),
+ deleted_at: zod.string().datetime({}).nullish(),
+ mentions: zod
+ .array(zod.string())
+ .describe(
+ 'message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`'
+ ),
+ message_id: zod.string().uuid(),
+ sender_id: zod.string(),
+ thread_id: zod.string().uuid().nullish(),
+ updated_at: zod.string().datetime({}),
+ }),
+ ])
+ .optional(),
+ })
+ )
+ .and(
+ zod.object({
+ interacted_at: zod.string().datetime({}).nullish(),
+ viewed_at: zod.string().datetime({}).nullish(),
+ })
+ ),
+ tag: zod.enum(['channel']),
+ }),
+ ])
+ .and(
+ zod.object({
+ frecency_score: zod.number(),
+ })
+ )
+ ),
+ next_cursor: zod.string().nullish(),
+});
export const upsertUserMentionsParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const upsertUserMentionsBody = zod.object({
- "mentions": zod.array(zod.string()).describe('List of user ids that are mentioned for this notification'),
- "metadata": zod.any().optional().describe('Custom metadata that may be needed for the notification')
-})
-
-export const upsertUserMentionsResponse = zod.object({
-
-}).describe('Empty response is required due to custom fetch forcing `response.json()`')
-
+ mentions: zod
+ .array(zod.string())
+ .describe('List of user ids that are mentioned for this notification'),
+ metadata: zod
+ .any()
+ .optional()
+ .describe('Custom metadata that may be needed for the notification'),
+});
+
+export const upsertUserMentionsResponse = zod
+ .object({})
+ .describe(
+ 'Empty response is required due to custom fetch forcing `response.json()`'
+ );
/**
* @summary Gets the users pinned items
*/
export const getPinsHandlerResponse = zod.object({
- "data": zod.union([zod.null(),zod.object({
- "recent": zod.array(zod.object({
- "activity": zod.union([zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})]),
- "item": zod.union([zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})]),
- "pinIndex": zod.number().describe('The pin index')
-})).describe('The pins returned from the query')
-})]).optional(),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .union([
+ zod.null(),
+ zod.object({
+ recent: zod
+ .array(
+ zod.object({
+ activity: zod.union([
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the document this document branched from'
+ ),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the project that this document belongs to'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe(
+ 'A task document with its associated properties'
+ )
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod
+ .string()
+ .nullish()
+ .describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ ]),
+ item: zod.union([
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the document this document branched from'
+ ),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the project that this document belongs to'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe(
+ 'A task document with its associated properties'
+ )
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod
+ .string()
+ .nullish()
+ .describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ ]),
+ pinIndex: zod.number().describe('The pin index'),
+ })
+ )
+ .describe('The pins returned from the query'),
+ }),
+ ])
+ .optional(),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Saves the updated order of the pins for the user
*/
export const reorderPinsHandlerBodyItem = zod.object({
- "pinIndex": zod.number().describe('The index of the pin'),
- "pinnedItemId": zod.string().describe('The id of the pinned item'),
- "pinnedItemType": zod.string().describe('The type of the pin')
-})
-export const reorderPinsHandlerBody = zod.array(reorderPinsHandlerBodyItem)
+ pinIndex: zod.number().describe('The index of the pin'),
+ pinnedItemId: zod.string().describe('The id of the pinned item'),
+ pinnedItemType: zod.string().describe('The type of the pin'),
+});
+export const reorderPinsHandlerBody = zod.array(reorderPinsHandlerBodyItem);
export const reorderPinsHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Pins the item for the user
*/
export const addPinHandlerParams = zod.object({
- "pinned_item_id": zod.string().describe('ID of the pinned item')
-})
+ pinned_item_id: zod.string().describe('ID of the pinned item'),
+});
export const addPinHandlerBody = zod.object({
- "pinIndex": zod.number().describe('The index of the pin'),
- "pinType": zod.string().describe('The type of the pin')
-})
+ pinIndex: zod.number().describe('The index of the pin'),
+ pinType: zod.string().describe('The type of the pin'),
+});
export const addPinHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Deletes the pin for the user
*/
export const removePinHandlerParams = zod.object({
- "pinned_item_id": zod.string().describe('ID of the pinned item')
-})
+ pinned_item_id: zod.string().describe('ID of the pinned item'),
+});
export const removePinHandlerBody = zod.object({
- "pinType": zod.string().describe('The type of the pin')
-})
+ pinType: zod.string().describe('The type of the pin'),
+});
export const removePinHandlerResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets all the users projects. This includes projects shared with the user.
*/
export const getProjectsHandlerResponse = zod.object({
- "data": zod.array(zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .array(
+ zod.object({
+ createdAt: zod.number().describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod.number().describe('The time the project was updated'),
+ userId: zod.string().describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ })
+ )
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Creates a new project.
The project can be created as a sub-project of another project or as a top-level project.
*/
export const createProjectHandlerBody = zod.object({
- "name": zod.string().describe('The name of the project.'),
- "projectParentId": zod.string().nullish().describe('The project that the new project will belong to.')
-})
+ name: zod.string().describe('The name of the project.'),
+ projectParentId: zod
+ .string()
+ .nullish()
+ .describe('The project that the new project will belong to.'),
+});
export const createProjectHandlerResponse = zod.object({
- "data": zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ createdAt: zod.number().describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod.number().describe('The time the project was updated'),
+ userId: zod.string().describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets all the users projects that are pending upload. This includes projects shared with the user.
*/
export const getPendingProjectsHandlerResponse = zod.object({
- "data": zod.array(zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-}).and(zod.object({
- "documentStatuses": zod.array(zod.object({
- "documentId": zod.string(),
- "status": zod.enum(['pending', 'completed', 'failed', 'unknown']).describe('The upload status of the document')
-}))
-}))).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .array(
+ zod
+ .object({
+ createdAt: zod.number().describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod.number().describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ })
+ .and(
+ zod.object({
+ documentStatuses: zod.array(
+ zod.object({
+ documentId: zod.string(),
+ status: zod
+ .enum(['pending', 'completed', 'failed', 'unknown'])
+ .describe('The upload status of the document'),
+ })
+ ),
+ })
+ )
+ )
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
export const getBatchProjectPreviewBody = zod.object({
- "projectIds": zod.array(zod.string())
-})
+ projectIds: zod.array(zod.string()),
+});
export const getBatchProjectPreviewResponse = zod.object({
- "previews": zod.array(zod.union([zod.object({
- "id": zod.string(),
- "name": zod.string(),
- "owner": zod.string(),
- "path": zod.array(zod.string()),
- "updatedAt": zod.number()
-}).and(zod.object({
- "access": zod.enum(['access'])
-})),zod.object({
- "id": zod.string()
-}).and(zod.object({
- "access": zod.enum(['no_access'])
-})),zod.object({
- "id": zod.string()
-}).and(zod.object({
- "access": zod.enum(['does_not_exist'])
-}))]))
-})
-
+ previews: zod.array(
+ zod.union([
+ zod
+ .object({
+ id: zod.string(),
+ name: zod.string(),
+ owner: zod.string(),
+ path: zod.array(zod.string()),
+ updatedAt: zod.number(),
+ })
+ .and(
+ zod.object({
+ access: zod.enum(['access']),
+ })
+ ),
+ zod
+ .object({
+ id: zod.string(),
+ })
+ .and(
+ zod.object({
+ access: zod.enum(['no_access']),
+ })
+ ),
+ zod
+ .object({
+ id: zod.string(),
+ })
+ .and(
+ zod.object({
+ access: zod.enum(['does_not_exist']),
+ })
+ ),
+ ])
+ ),
+});
/**
* @summary Uploads a folder to the user's cloud storage. Mimicing the folder structure
with projects and placing all documents in the correct location.
*/
export const uploadFolderHandlerBody = zod.object({
- "content": zod.array(zod.object({
- "fileType": zod.union([zod.null(),zod.enum(['docx', 'pdf', 'md', 'canvas', 'coffee', 'cson', 'iced', 'c', 'i', 'cpp', 'cppm', 'cc', 'ccm', 'cxx', 'cxxm', 'cplusplus', 'cplusplusm', 'hpp', 'hh', 'hxx', 'hplusplus', 'h', 'ii', 'ino', 'inl', 'ipp', 'ixx', 'tpp', 'txx', 'hppin', 'hin', 'cu', 'cuh', 'cs', 'csx', 'cake', 'css', 'dart', 'diff', 'patch', 'rej', 'dockerfile', 'containerfile', 'go', 'handlebars', 'hbs', 'hjs', 'hlsl', 'hlsli', 'fx', 'fxh', 'vsh', 'psh', 'cginc', 'compute', 'html', 'htm', 'shtml', 'xhtml', 'xht', 'mdoc', 'jsp', 'asp', 'aspx', 'jshtm', 'volt', 'ejs', 'rhtml', 'ini', 'conf', 'properties', 'cfg', 'directory', 'gitattributes', 'gitconfig', 'gitmodules', 'editorconfig', 'repo', 'java', 'jav', 'jsx', 'js', 'es6', 'mjs', 'cjs', 'pac', 'json', 'bowerrc', 'jscsrc', 'webmanifest', 'jsmap', 'cssmap', 'tsmap', 'har', 'jslintrc', 'jsonld', 'geojson', 'ipynb', 'vuerc', 'jsonc', 'eslintrc', 'eslintrcjson', 'jsfmtrc', 'jshintrc', 'swcrc', 'hintrc', 'babelrc', 'jsonl', 'ndjson', 'codesnippets', 'jl', 'jmd', 'sty', 'cls', 'bbx', 'cbx', 'tex', 'ltx', 'ctx', 'bib', 'less', 'log', 'lua', 'mak', 'mk', 'mkd', 'mdwn', 'mdown', 'markdown', 'markdn', 'mdtxt', 'mdtext', 'workbook', 'm', 'mm', 'pl', 'pm', 'pod', 't', 'psgi', 'raku', 'rakumod', 'rakutest', 'rakudoc', 'nqp', 'p6', 'pl6', 'pm6', 'php', 'php4', 'php5', 'phtml', 'ctp', 'ps1', 'psm1', 'psd1', 'pssc', 'psrc', 'py', 'rpy', 'pyw', 'cpy', 'gyp', 'gypi', 'pyi', 'ipy', 'pyt', 'r', 'rhistory', 'rprofile', 'rt', 'cshtml', 'razor', 'rb', 'rbx', 'rjs', 'gemspec', 'rake', 'ru', 'erb', 'podspec', 'rbi', 'rs', 'scss', 'sass', 'shader', 'sh', 'bash', 'bashrc', 'bashaliases', 'bashprofile', 'bashlogin', 'ebuild', 'eclass', 'profile', 'bashlogout', 'xprofile', 'xsession', 'xsessionrc', 'zsh', 'zshrc', 'zprofile', 'zlogin', 'zlogout', 'zshenv', 'zshtheme', 'fish', 'ksh', 'csh', 'cshrc', 'tcshrc', 'yashrc', 'yashprofile', 'sql', 'dsql', 'swift', 'ts', 'cts', 'mts', 'tsx', 'tsbuildinfo', 'xml', 'xsd', 'ascx', 'atom', 'axml', 'axaml', 'bpmn', 'cpt', 'csl', 'csproj', 'csprojuser', 'dita', 'ditamap', 'dtd', 'ent', 'mod', 'dtml', 'fsproj', 'fxml', 'iml', 'isml', 'jmx', 'launch', 'menu', 'mxml', 'nuspec', 'opml', 'owl', 'proj', 'props', 'pt', 'publishsettings', 'pubxml', 'pubxmluser', 'rbxlx', 'rbxmx', 'rdf', 'rng', 'rss', 'shproj', 'storyboard', 'targets', 'tld', 'tmx', 'vbproj', 'vbprojuser', 'vcxproj', 'vcxprojfilters', 'wsdl', 'wxi', 'wxl', 'wxs', 'xaml', 'xbl', 'xib', 'xlf', 'xliff', 'xpdl', 'xul', 'xoml', 'xsl', 'xslt', 'yaml', 'yml', 'eyaml', 'eyml', 'cff', 'yamltmlanguage', 'yamltmpreferences', 'yamltmtheme', 'winget', 'txt', 'csv', 'tsv', 'jpeg', 'jpg', 'png', 'gif', 'svg', 'webp', 'avif', 'bmp', 'ico', 'tiff', 'tif', 'heic', 'heif', 'tar', 'targz', 'tgz', 'gz', 'bz2', 'tarbz2', 'tbz2', 'z', 'tarz', 'lz', 'tarlz', 'xz', 'tarxz', 'txz', 'lzma', 'tarlzma', 'rar', 'sevenz', 'zst', 'tarzst', 'tzst', 'zip', 'exe', 'msi', 'dll', 'bat', 'cmd', 'com', 'appimage', 'app', 'bin', 'deb', 'rpm', 'apk', 'dmg', 'pkg', 'crx', 'xpi', 'mp3', 'wav', 'ogg', 'flac', 'aac', 'm4a', 'wma', 'mid', 'midi', 'mp4', 'mkv', 'webm', 'avi', 'mov', 'wmv', 'mpg', 'mpeg', 'm4v', 'flv', 'f4v', 'threegp', 'ttf', 'otf', 'woff', 'woff2', 'eot', 'rtf', 'odt', 'ods', 'odp', 'odg', 'odf', 'epub', 'mobi', 'azw', 'azw3', 'djvu', 'xls', 'ppt', 'pptx', 'xlsx', 'db', 'sqlite', 'sqlite3', 'mdb', 'accdb', 'dbf', 'plist', 'toml', 'env', 'dot', 'gv', 'torrent', 'ics', 'vcf', 'ai', 'eps', 'ps', 'dxf', 'dwg', 'stl', 'obj', 'fbx', 'blend', 'dae', 'threeds', 'gltf', 'glb', 'vhd', 'vhdx', 'vmdk', 'ova', 'ovf', 'iso', 'img', 'swf']).describe('Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n')]).optional(),
- "fullName": zod.string().describe('The full OS name of the file for deduplication'),
- "name": zod.string().describe('The name of the file, without the extension'),
- "relativePath": zod.string().describe('The relative path of the file.\n\nThis is the `webkitRelativePath` with the name of the file stripped at the end.'),
- "sha": zod.string().describe('The sha of the file.')
-})).describe('The content of the folder'),
- "parentId": zod.string().nullish().describe('Optional parent project id to upload the folder into'),
- "rootFolderName": zod.string().describe('The name of the folder you are uploading.\n\nThis is used to help us generate the folder map more easily.'),
- "uploadRequestId": zod.string().describe('The upload request id')
-})
+ content: zod
+ .array(
+ zod.object({
+ fileType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'docx',
+ 'pdf',
+ 'md',
+ 'canvas',
+ 'coffee',
+ 'cson',
+ 'iced',
+ 'c',
+ 'i',
+ 'cpp',
+ 'cppm',
+ 'cc',
+ 'ccm',
+ 'cxx',
+ 'cxxm',
+ 'cplusplus',
+ 'cplusplusm',
+ 'hpp',
+ 'hh',
+ 'hxx',
+ 'hplusplus',
+ 'h',
+ 'ii',
+ 'ino',
+ 'inl',
+ 'ipp',
+ 'ixx',
+ 'tpp',
+ 'txx',
+ 'hppin',
+ 'hin',
+ 'cu',
+ 'cuh',
+ 'cs',
+ 'csx',
+ 'cake',
+ 'css',
+ 'dart',
+ 'diff',
+ 'patch',
+ 'rej',
+ 'dockerfile',
+ 'containerfile',
+ 'go',
+ 'handlebars',
+ 'hbs',
+ 'hjs',
+ 'hlsl',
+ 'hlsli',
+ 'fx',
+ 'fxh',
+ 'vsh',
+ 'psh',
+ 'cginc',
+ 'compute',
+ 'html',
+ 'htm',
+ 'shtml',
+ 'xhtml',
+ 'xht',
+ 'mdoc',
+ 'jsp',
+ 'asp',
+ 'aspx',
+ 'jshtm',
+ 'volt',
+ 'ejs',
+ 'rhtml',
+ 'ini',
+ 'conf',
+ 'properties',
+ 'cfg',
+ 'directory',
+ 'gitattributes',
+ 'gitconfig',
+ 'gitmodules',
+ 'editorconfig',
+ 'repo',
+ 'java',
+ 'jav',
+ 'jsx',
+ 'js',
+ 'es6',
+ 'mjs',
+ 'cjs',
+ 'pac',
+ 'json',
+ 'bowerrc',
+ 'jscsrc',
+ 'webmanifest',
+ 'jsmap',
+ 'cssmap',
+ 'tsmap',
+ 'har',
+ 'jslintrc',
+ 'jsonld',
+ 'geojson',
+ 'ipynb',
+ 'vuerc',
+ 'jsonc',
+ 'eslintrc',
+ 'eslintrcjson',
+ 'jsfmtrc',
+ 'jshintrc',
+ 'swcrc',
+ 'hintrc',
+ 'babelrc',
+ 'jsonl',
+ 'ndjson',
+ 'codesnippets',
+ 'jl',
+ 'jmd',
+ 'sty',
+ 'cls',
+ 'bbx',
+ 'cbx',
+ 'tex',
+ 'ltx',
+ 'ctx',
+ 'bib',
+ 'less',
+ 'log',
+ 'lua',
+ 'mak',
+ 'mk',
+ 'mkd',
+ 'mdwn',
+ 'mdown',
+ 'markdown',
+ 'markdn',
+ 'mdtxt',
+ 'mdtext',
+ 'workbook',
+ 'm',
+ 'mm',
+ 'pl',
+ 'pm',
+ 'pod',
+ 't',
+ 'psgi',
+ 'raku',
+ 'rakumod',
+ 'rakutest',
+ 'rakudoc',
+ 'nqp',
+ 'p6',
+ 'pl6',
+ 'pm6',
+ 'php',
+ 'php4',
+ 'php5',
+ 'phtml',
+ 'ctp',
+ 'ps1',
+ 'psm1',
+ 'psd1',
+ 'pssc',
+ 'psrc',
+ 'py',
+ 'rpy',
+ 'pyw',
+ 'cpy',
+ 'gyp',
+ 'gypi',
+ 'pyi',
+ 'ipy',
+ 'pyt',
+ 'r',
+ 'rhistory',
+ 'rprofile',
+ 'rt',
+ 'cshtml',
+ 'razor',
+ 'rb',
+ 'rbx',
+ 'rjs',
+ 'gemspec',
+ 'rake',
+ 'ru',
+ 'erb',
+ 'podspec',
+ 'rbi',
+ 'rs',
+ 'scss',
+ 'sass',
+ 'shader',
+ 'sh',
+ 'bash',
+ 'bashrc',
+ 'bashaliases',
+ 'bashprofile',
+ 'bashlogin',
+ 'ebuild',
+ 'eclass',
+ 'profile',
+ 'bashlogout',
+ 'xprofile',
+ 'xsession',
+ 'xsessionrc',
+ 'zsh',
+ 'zshrc',
+ 'zprofile',
+ 'zlogin',
+ 'zlogout',
+ 'zshenv',
+ 'zshtheme',
+ 'fish',
+ 'ksh',
+ 'csh',
+ 'cshrc',
+ 'tcshrc',
+ 'yashrc',
+ 'yashprofile',
+ 'sql',
+ 'dsql',
+ 'swift',
+ 'ts',
+ 'cts',
+ 'mts',
+ 'tsx',
+ 'tsbuildinfo',
+ 'xml',
+ 'xsd',
+ 'ascx',
+ 'atom',
+ 'axml',
+ 'axaml',
+ 'bpmn',
+ 'cpt',
+ 'csl',
+ 'csproj',
+ 'csprojuser',
+ 'dita',
+ 'ditamap',
+ 'dtd',
+ 'ent',
+ 'mod',
+ 'dtml',
+ 'fsproj',
+ 'fxml',
+ 'iml',
+ 'isml',
+ 'jmx',
+ 'launch',
+ 'menu',
+ 'mxml',
+ 'nuspec',
+ 'opml',
+ 'owl',
+ 'proj',
+ 'props',
+ 'pt',
+ 'publishsettings',
+ 'pubxml',
+ 'pubxmluser',
+ 'rbxlx',
+ 'rbxmx',
+ 'rdf',
+ 'rng',
+ 'rss',
+ 'shproj',
+ 'storyboard',
+ 'targets',
+ 'tld',
+ 'tmx',
+ 'vbproj',
+ 'vbprojuser',
+ 'vcxproj',
+ 'vcxprojfilters',
+ 'wsdl',
+ 'wxi',
+ 'wxl',
+ 'wxs',
+ 'xaml',
+ 'xbl',
+ 'xib',
+ 'xlf',
+ 'xliff',
+ 'xpdl',
+ 'xul',
+ 'xoml',
+ 'xsl',
+ 'xslt',
+ 'yaml',
+ 'yml',
+ 'eyaml',
+ 'eyml',
+ 'cff',
+ 'yamltmlanguage',
+ 'yamltmpreferences',
+ 'yamltmtheme',
+ 'winget',
+ 'txt',
+ 'csv',
+ 'tsv',
+ 'jpeg',
+ 'jpg',
+ 'png',
+ 'gif',
+ 'svg',
+ 'webp',
+ 'avif',
+ 'bmp',
+ 'ico',
+ 'tiff',
+ 'tif',
+ 'heic',
+ 'heif',
+ 'tar',
+ 'targz',
+ 'tgz',
+ 'gz',
+ 'bz2',
+ 'tarbz2',
+ 'tbz2',
+ 'z',
+ 'tarz',
+ 'lz',
+ 'tarlz',
+ 'xz',
+ 'tarxz',
+ 'txz',
+ 'lzma',
+ 'tarlzma',
+ 'rar',
+ 'sevenz',
+ 'zst',
+ 'tarzst',
+ 'tzst',
+ 'zip',
+ 'exe',
+ 'msi',
+ 'dll',
+ 'bat',
+ 'cmd',
+ 'com',
+ 'appimage',
+ 'app',
+ 'bin',
+ 'deb',
+ 'rpm',
+ 'apk',
+ 'dmg',
+ 'pkg',
+ 'crx',
+ 'xpi',
+ 'mp3',
+ 'wav',
+ 'ogg',
+ 'flac',
+ 'aac',
+ 'm4a',
+ 'wma',
+ 'mid',
+ 'midi',
+ 'mp4',
+ 'mkv',
+ 'webm',
+ 'avi',
+ 'mov',
+ 'wmv',
+ 'mpg',
+ 'mpeg',
+ 'm4v',
+ 'flv',
+ 'f4v',
+ 'threegp',
+ 'ttf',
+ 'otf',
+ 'woff',
+ 'woff2',
+ 'eot',
+ 'rtf',
+ 'odt',
+ 'ods',
+ 'odp',
+ 'odg',
+ 'odf',
+ 'epub',
+ 'mobi',
+ 'azw',
+ 'azw3',
+ 'djvu',
+ 'xls',
+ 'ppt',
+ 'pptx',
+ 'xlsx',
+ 'db',
+ 'sqlite',
+ 'sqlite3',
+ 'mdb',
+ 'accdb',
+ 'dbf',
+ 'plist',
+ 'toml',
+ 'env',
+ 'dot',
+ 'gv',
+ 'torrent',
+ 'ics',
+ 'vcf',
+ 'ai',
+ 'eps',
+ 'ps',
+ 'dxf',
+ 'dwg',
+ 'stl',
+ 'obj',
+ 'fbx',
+ 'blend',
+ 'dae',
+ 'threeds',
+ 'gltf',
+ 'glb',
+ 'vhd',
+ 'vhdx',
+ 'vmdk',
+ 'ova',
+ 'ovf',
+ 'iso',
+ 'img',
+ 'swf',
+ ])
+ .describe(
+ 'Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n'
+ ),
+ ])
+ .optional(),
+ fullName: zod
+ .string()
+ .describe('The full OS name of the file for deduplication'),
+ name: zod
+ .string()
+ .describe('The name of the file, without the extension'),
+ relativePath: zod
+ .string()
+ .describe(
+ 'The relative path of the file.\n\nThis is the `webkitRelativePath` with the name of the file stripped at the end.'
+ ),
+ sha: zod.string().describe('The sha of the file.'),
+ })
+ )
+ .describe('The content of the folder'),
+ parentId: zod
+ .string()
+ .nullish()
+ .describe('Optional parent project id to upload the folder into'),
+ rootFolderName: zod
+ .string()
+ .describe(
+ 'The name of the folder you are uploading.\n\nThis is used to help us generate the folder map more easily.'
+ ),
+ uploadRequestId: zod.string().describe('The upload request id'),
+});
export const uploadFolderHandlerResponse = zod.object({
- "data": zod.object({
- "destinationMap": zod.record(zod.string(), zod.union([zod.object({
- "presignedUrl": zod.string().describe('The presigned url used to upload the sha'),
- "sha": zod.string().describe('The sha of the item')
-}).and(zod.object({
- "type": zod.enum(['external'])
-})),zod.object({
- "bucket": zod.string(),
- "key": zod.string()
-}).and(zod.object({
- "type": zod.enum(['internal'])
-}))])),
- "fileSystem": zod.union([zod.object({
- "document_id": zod.string(),
- "item": zod.object({
- "fileType": zod.union([zod.null(),zod.enum(['docx', 'pdf', 'md', 'canvas', 'coffee', 'cson', 'iced', 'c', 'i', 'cpp', 'cppm', 'cc', 'ccm', 'cxx', 'cxxm', 'cplusplus', 'cplusplusm', 'hpp', 'hh', 'hxx', 'hplusplus', 'h', 'ii', 'ino', 'inl', 'ipp', 'ixx', 'tpp', 'txx', 'hppin', 'hin', 'cu', 'cuh', 'cs', 'csx', 'cake', 'css', 'dart', 'diff', 'patch', 'rej', 'dockerfile', 'containerfile', 'go', 'handlebars', 'hbs', 'hjs', 'hlsl', 'hlsli', 'fx', 'fxh', 'vsh', 'psh', 'cginc', 'compute', 'html', 'htm', 'shtml', 'xhtml', 'xht', 'mdoc', 'jsp', 'asp', 'aspx', 'jshtm', 'volt', 'ejs', 'rhtml', 'ini', 'conf', 'properties', 'cfg', 'directory', 'gitattributes', 'gitconfig', 'gitmodules', 'editorconfig', 'repo', 'java', 'jav', 'jsx', 'js', 'es6', 'mjs', 'cjs', 'pac', 'json', 'bowerrc', 'jscsrc', 'webmanifest', 'jsmap', 'cssmap', 'tsmap', 'har', 'jslintrc', 'jsonld', 'geojson', 'ipynb', 'vuerc', 'jsonc', 'eslintrc', 'eslintrcjson', 'jsfmtrc', 'jshintrc', 'swcrc', 'hintrc', 'babelrc', 'jsonl', 'ndjson', 'codesnippets', 'jl', 'jmd', 'sty', 'cls', 'bbx', 'cbx', 'tex', 'ltx', 'ctx', 'bib', 'less', 'log', 'lua', 'mak', 'mk', 'mkd', 'mdwn', 'mdown', 'markdown', 'markdn', 'mdtxt', 'mdtext', 'workbook', 'm', 'mm', 'pl', 'pm', 'pod', 't', 'psgi', 'raku', 'rakumod', 'rakutest', 'rakudoc', 'nqp', 'p6', 'pl6', 'pm6', 'php', 'php4', 'php5', 'phtml', 'ctp', 'ps1', 'psm1', 'psd1', 'pssc', 'psrc', 'py', 'rpy', 'pyw', 'cpy', 'gyp', 'gypi', 'pyi', 'ipy', 'pyt', 'r', 'rhistory', 'rprofile', 'rt', 'cshtml', 'razor', 'rb', 'rbx', 'rjs', 'gemspec', 'rake', 'ru', 'erb', 'podspec', 'rbi', 'rs', 'scss', 'sass', 'shader', 'sh', 'bash', 'bashrc', 'bashaliases', 'bashprofile', 'bashlogin', 'ebuild', 'eclass', 'profile', 'bashlogout', 'xprofile', 'xsession', 'xsessionrc', 'zsh', 'zshrc', 'zprofile', 'zlogin', 'zlogout', 'zshenv', 'zshtheme', 'fish', 'ksh', 'csh', 'cshrc', 'tcshrc', 'yashrc', 'yashprofile', 'sql', 'dsql', 'swift', 'ts', 'cts', 'mts', 'tsx', 'tsbuildinfo', 'xml', 'xsd', 'ascx', 'atom', 'axml', 'axaml', 'bpmn', 'cpt', 'csl', 'csproj', 'csprojuser', 'dita', 'ditamap', 'dtd', 'ent', 'mod', 'dtml', 'fsproj', 'fxml', 'iml', 'isml', 'jmx', 'launch', 'menu', 'mxml', 'nuspec', 'opml', 'owl', 'proj', 'props', 'pt', 'publishsettings', 'pubxml', 'pubxmluser', 'rbxlx', 'rbxmx', 'rdf', 'rng', 'rss', 'shproj', 'storyboard', 'targets', 'tld', 'tmx', 'vbproj', 'vbprojuser', 'vcxproj', 'vcxprojfilters', 'wsdl', 'wxi', 'wxl', 'wxs', 'xaml', 'xbl', 'xib', 'xlf', 'xliff', 'xpdl', 'xul', 'xoml', 'xsl', 'xslt', 'yaml', 'yml', 'eyaml', 'eyml', 'cff', 'yamltmlanguage', 'yamltmpreferences', 'yamltmtheme', 'winget', 'txt', 'csv', 'tsv', 'jpeg', 'jpg', 'png', 'gif', 'svg', 'webp', 'avif', 'bmp', 'ico', 'tiff', 'tif', 'heic', 'heif', 'tar', 'targz', 'tgz', 'gz', 'bz2', 'tarbz2', 'tbz2', 'z', 'tarz', 'lz', 'tarlz', 'xz', 'tarxz', 'txz', 'lzma', 'tarlzma', 'rar', 'sevenz', 'zst', 'tarzst', 'tzst', 'zip', 'exe', 'msi', 'dll', 'bat', 'cmd', 'com', 'appimage', 'app', 'bin', 'deb', 'rpm', 'apk', 'dmg', 'pkg', 'crx', 'xpi', 'mp3', 'wav', 'ogg', 'flac', 'aac', 'm4a', 'wma', 'mid', 'midi', 'mp4', 'mkv', 'webm', 'avi', 'mov', 'wmv', 'mpg', 'mpeg', 'm4v', 'flv', 'f4v', 'threegp', 'ttf', 'otf', 'woff', 'woff2', 'eot', 'rtf', 'odt', 'ods', 'odp', 'odg', 'odf', 'epub', 'mobi', 'azw', 'azw3', 'djvu', 'xls', 'ppt', 'pptx', 'xlsx', 'db', 'sqlite', 'sqlite3', 'mdb', 'accdb', 'dbf', 'plist', 'toml', 'env', 'dot', 'gv', 'torrent', 'ics', 'vcf', 'ai', 'eps', 'ps', 'dxf', 'dwg', 'stl', 'obj', 'fbx', 'blend', 'dae', 'threeds', 'gltf', 'glb', 'vhd', 'vhdx', 'vmdk', 'ova', 'ovf', 'iso', 'img', 'swf']).describe('Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n')]).optional(),
- "fullName": zod.string().describe('The full OS name of the file for deduplication'),
- "name": zod.string().describe('The name of the file, without the extension'),
- "relativePath": zod.string().describe('The relative path of the file.\n\nThis is the `webkitRelativePath` with the name of the file stripped at the end.'),
- "sha": zod.string().describe('The sha of the file.')
-}),
- "type": zod.enum(['file'])
-}),zod.object({
- "content": zod.record(zod.string(), zod.any()),
- "project_id": zod.string(),
- "type": zod.enum(['folder'])
-})])
-}).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .object({
+ destinationMap: zod.record(
+ zod.string(),
+ zod.union([
+ zod
+ .object({
+ presignedUrl: zod
+ .string()
+ .describe('The presigned url used to upload the sha'),
+ sha: zod.string().describe('The sha of the item'),
+ })
+ .and(
+ zod.object({
+ type: zod.enum(['external']),
+ })
+ ),
+ zod
+ .object({
+ bucket: zod.string(),
+ key: zod.string(),
+ })
+ .and(
+ zod.object({
+ type: zod.enum(['internal']),
+ })
+ ),
+ ])
+ ),
+ fileSystem: zod.union([
+ zod.object({
+ document_id: zod.string(),
+ item: zod.object({
+ fileType: zod
+ .union([
+ zod.null(),
+ zod
+ .enum([
+ 'docx',
+ 'pdf',
+ 'md',
+ 'canvas',
+ 'coffee',
+ 'cson',
+ 'iced',
+ 'c',
+ 'i',
+ 'cpp',
+ 'cppm',
+ 'cc',
+ 'ccm',
+ 'cxx',
+ 'cxxm',
+ 'cplusplus',
+ 'cplusplusm',
+ 'hpp',
+ 'hh',
+ 'hxx',
+ 'hplusplus',
+ 'h',
+ 'ii',
+ 'ino',
+ 'inl',
+ 'ipp',
+ 'ixx',
+ 'tpp',
+ 'txx',
+ 'hppin',
+ 'hin',
+ 'cu',
+ 'cuh',
+ 'cs',
+ 'csx',
+ 'cake',
+ 'css',
+ 'dart',
+ 'diff',
+ 'patch',
+ 'rej',
+ 'dockerfile',
+ 'containerfile',
+ 'go',
+ 'handlebars',
+ 'hbs',
+ 'hjs',
+ 'hlsl',
+ 'hlsli',
+ 'fx',
+ 'fxh',
+ 'vsh',
+ 'psh',
+ 'cginc',
+ 'compute',
+ 'html',
+ 'htm',
+ 'shtml',
+ 'xhtml',
+ 'xht',
+ 'mdoc',
+ 'jsp',
+ 'asp',
+ 'aspx',
+ 'jshtm',
+ 'volt',
+ 'ejs',
+ 'rhtml',
+ 'ini',
+ 'conf',
+ 'properties',
+ 'cfg',
+ 'directory',
+ 'gitattributes',
+ 'gitconfig',
+ 'gitmodules',
+ 'editorconfig',
+ 'repo',
+ 'java',
+ 'jav',
+ 'jsx',
+ 'js',
+ 'es6',
+ 'mjs',
+ 'cjs',
+ 'pac',
+ 'json',
+ 'bowerrc',
+ 'jscsrc',
+ 'webmanifest',
+ 'jsmap',
+ 'cssmap',
+ 'tsmap',
+ 'har',
+ 'jslintrc',
+ 'jsonld',
+ 'geojson',
+ 'ipynb',
+ 'vuerc',
+ 'jsonc',
+ 'eslintrc',
+ 'eslintrcjson',
+ 'jsfmtrc',
+ 'jshintrc',
+ 'swcrc',
+ 'hintrc',
+ 'babelrc',
+ 'jsonl',
+ 'ndjson',
+ 'codesnippets',
+ 'jl',
+ 'jmd',
+ 'sty',
+ 'cls',
+ 'bbx',
+ 'cbx',
+ 'tex',
+ 'ltx',
+ 'ctx',
+ 'bib',
+ 'less',
+ 'log',
+ 'lua',
+ 'mak',
+ 'mk',
+ 'mkd',
+ 'mdwn',
+ 'mdown',
+ 'markdown',
+ 'markdn',
+ 'mdtxt',
+ 'mdtext',
+ 'workbook',
+ 'm',
+ 'mm',
+ 'pl',
+ 'pm',
+ 'pod',
+ 't',
+ 'psgi',
+ 'raku',
+ 'rakumod',
+ 'rakutest',
+ 'rakudoc',
+ 'nqp',
+ 'p6',
+ 'pl6',
+ 'pm6',
+ 'php',
+ 'php4',
+ 'php5',
+ 'phtml',
+ 'ctp',
+ 'ps1',
+ 'psm1',
+ 'psd1',
+ 'pssc',
+ 'psrc',
+ 'py',
+ 'rpy',
+ 'pyw',
+ 'cpy',
+ 'gyp',
+ 'gypi',
+ 'pyi',
+ 'ipy',
+ 'pyt',
+ 'r',
+ 'rhistory',
+ 'rprofile',
+ 'rt',
+ 'cshtml',
+ 'razor',
+ 'rb',
+ 'rbx',
+ 'rjs',
+ 'gemspec',
+ 'rake',
+ 'ru',
+ 'erb',
+ 'podspec',
+ 'rbi',
+ 'rs',
+ 'scss',
+ 'sass',
+ 'shader',
+ 'sh',
+ 'bash',
+ 'bashrc',
+ 'bashaliases',
+ 'bashprofile',
+ 'bashlogin',
+ 'ebuild',
+ 'eclass',
+ 'profile',
+ 'bashlogout',
+ 'xprofile',
+ 'xsession',
+ 'xsessionrc',
+ 'zsh',
+ 'zshrc',
+ 'zprofile',
+ 'zlogin',
+ 'zlogout',
+ 'zshenv',
+ 'zshtheme',
+ 'fish',
+ 'ksh',
+ 'csh',
+ 'cshrc',
+ 'tcshrc',
+ 'yashrc',
+ 'yashprofile',
+ 'sql',
+ 'dsql',
+ 'swift',
+ 'ts',
+ 'cts',
+ 'mts',
+ 'tsx',
+ 'tsbuildinfo',
+ 'xml',
+ 'xsd',
+ 'ascx',
+ 'atom',
+ 'axml',
+ 'axaml',
+ 'bpmn',
+ 'cpt',
+ 'csl',
+ 'csproj',
+ 'csprojuser',
+ 'dita',
+ 'ditamap',
+ 'dtd',
+ 'ent',
+ 'mod',
+ 'dtml',
+ 'fsproj',
+ 'fxml',
+ 'iml',
+ 'isml',
+ 'jmx',
+ 'launch',
+ 'menu',
+ 'mxml',
+ 'nuspec',
+ 'opml',
+ 'owl',
+ 'proj',
+ 'props',
+ 'pt',
+ 'publishsettings',
+ 'pubxml',
+ 'pubxmluser',
+ 'rbxlx',
+ 'rbxmx',
+ 'rdf',
+ 'rng',
+ 'rss',
+ 'shproj',
+ 'storyboard',
+ 'targets',
+ 'tld',
+ 'tmx',
+ 'vbproj',
+ 'vbprojuser',
+ 'vcxproj',
+ 'vcxprojfilters',
+ 'wsdl',
+ 'wxi',
+ 'wxl',
+ 'wxs',
+ 'xaml',
+ 'xbl',
+ 'xib',
+ 'xlf',
+ 'xliff',
+ 'xpdl',
+ 'xul',
+ 'xoml',
+ 'xsl',
+ 'xslt',
+ 'yaml',
+ 'yml',
+ 'eyaml',
+ 'eyml',
+ 'cff',
+ 'yamltmlanguage',
+ 'yamltmpreferences',
+ 'yamltmtheme',
+ 'winget',
+ 'txt',
+ 'csv',
+ 'tsv',
+ 'jpeg',
+ 'jpg',
+ 'png',
+ 'gif',
+ 'svg',
+ 'webp',
+ 'avif',
+ 'bmp',
+ 'ico',
+ 'tiff',
+ 'tif',
+ 'heic',
+ 'heif',
+ 'tar',
+ 'targz',
+ 'tgz',
+ 'gz',
+ 'bz2',
+ 'tarbz2',
+ 'tbz2',
+ 'z',
+ 'tarz',
+ 'lz',
+ 'tarlz',
+ 'xz',
+ 'tarxz',
+ 'txz',
+ 'lzma',
+ 'tarlzma',
+ 'rar',
+ 'sevenz',
+ 'zst',
+ 'tarzst',
+ 'tzst',
+ 'zip',
+ 'exe',
+ 'msi',
+ 'dll',
+ 'bat',
+ 'cmd',
+ 'com',
+ 'appimage',
+ 'app',
+ 'bin',
+ 'deb',
+ 'rpm',
+ 'apk',
+ 'dmg',
+ 'pkg',
+ 'crx',
+ 'xpi',
+ 'mp3',
+ 'wav',
+ 'ogg',
+ 'flac',
+ 'aac',
+ 'm4a',
+ 'wma',
+ 'mid',
+ 'midi',
+ 'mp4',
+ 'mkv',
+ 'webm',
+ 'avi',
+ 'mov',
+ 'wmv',
+ 'mpg',
+ 'mpeg',
+ 'm4v',
+ 'flv',
+ 'f4v',
+ 'threegp',
+ 'ttf',
+ 'otf',
+ 'woff',
+ 'woff2',
+ 'eot',
+ 'rtf',
+ 'odt',
+ 'ods',
+ 'odp',
+ 'odg',
+ 'odf',
+ 'epub',
+ 'mobi',
+ 'azw',
+ 'azw3',
+ 'djvu',
+ 'xls',
+ 'ppt',
+ 'pptx',
+ 'xlsx',
+ 'db',
+ 'sqlite',
+ 'sqlite3',
+ 'mdb',
+ 'accdb',
+ 'dbf',
+ 'plist',
+ 'toml',
+ 'env',
+ 'dot',
+ 'gv',
+ 'torrent',
+ 'ics',
+ 'vcf',
+ 'ai',
+ 'eps',
+ 'ps',
+ 'dxf',
+ 'dwg',
+ 'stl',
+ 'obj',
+ 'fbx',
+ 'blend',
+ 'dae',
+ 'threeds',
+ 'gltf',
+ 'glb',
+ 'vhd',
+ 'vhdx',
+ 'vmdk',
+ 'ova',
+ 'ovf',
+ 'iso',
+ 'img',
+ 'swf',
+ ])
+ .describe(
+ 'Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n'
+ ),
+ ])
+ .optional(),
+ fullName: zod
+ .string()
+ .describe('The full OS name of the file for deduplication'),
+ name: zod
+ .string()
+ .describe('The name of the file, without the extension'),
+ relativePath: zod
+ .string()
+ .describe(
+ 'The relative path of the file.\n\nThis is the `webkitRelativePath` with the name of the file stripped at the end.'
+ ),
+ sha: zod.string().describe('The sha of the file.'),
+ }),
+ type: zod.enum(['file']),
+ }),
+ zod.object({
+ content: zod.record(zod.string(), zod.any()),
+ project_id: zod.string(),
+ type: zod.enum(['folder']),
+ }),
+ ]),
+ })
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Creates a request id in the dynamodb table for tracking the upload
@@ -1920,316 +4535,512 @@ Returns a presigned url for uploading a zip file to the staging bucket
Returns a request id for tracking the upload
*/
export const uploadExtractFolderHandlerBody = zod.object({
- "name": zod.string().nullish(),
- "parentId": zod.string().nullish(),
- "sha": zod.string()
-})
+ name: zod.string().nullish(),
+ parentId: zod.string().nullish(),
+ sha: zod.string(),
+});
export const uploadExtractFolderHandlerResponse = zod.object({
- "data": zod.object({
- "presignedUrl": zod.string(),
- "requestId": zod.string()
-}).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .object({
+ presignedUrl: zod.string(),
+ requestId: zod.string(),
+ })
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
export const getProjectHandlerParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const getProjectHandlerResponse = zod.object({
- "data": zod.object({
- "projectMetadata": zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-}),
- "userAccessLevel": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ projectMetadata: zod.object({
+ createdAt: zod.number().describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod.number().describe('The time the project was updated'),
+ userId: zod.string().describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ userAccessLevel: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Deletes a project.
Soft deletes the project and all of its children.
*/
export const deleteProjectHandlerParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const deleteProjectHandlerResponse = zod.object({
- "data": zod.object({
- "chat_ids": zod.array(zod.string()).describe('The ids of the chats that were marked as deleted'),
- "document_ids": zod.array(zod.string()).describe('The ids of the documents that were marked as deleted'),
- "project_ids": zod.array(zod.string()).describe('The ids of the project that were marked as deleted')
-}).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .object({
+ chat_ids: zod
+ .array(zod.string())
+ .describe('The ids of the chats that were marked as deleted'),
+ document_ids: zod
+ .array(zod.string())
+ .describe('The ids of the documents that were marked as deleted'),
+ project_ids: zod
+ .array(zod.string())
+ .describe('The ids of the project that were marked as deleted'),
+ })
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the user's access level to the project
*/
export const getProjectUserAccessLevelParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
-
-export const getProjectUserAccessLevelResponse = zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')
+ id: zod.string().describe('ID of the project'),
+});
+export const getProjectUserAccessLevelResponse = zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom');
/**
* @summary Gets the content of a project.
This includes the projects sub-projects as well as the items in the project.
*/
export const getProjectContentHandlerParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const getProjectContentHandlerResponse = zod.object({
- "data": zod.array(zod.object({
- "item": zod.union([zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})]),
- "userAccessLevel": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')
-})).describe('DSS Items inside of a given project with their user access level attached to each item'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .array(
+ zod.object({
+ item: zod.union([
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The id of the project that this document belongs to'),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with its associated properties')
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ zod.object({
+ createdAt: zod.number().describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod.string().nullish().describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ ]),
+ userAccessLevel: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ })
+ )
+ .describe(
+ 'DSS Items inside of a given project with their user access level attached to each item'
+ ),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Permanently deletes a project and all of it's children.
*/
export const permanentlyDeleteProjectParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const permanentlyDeleteProjectResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the current documents share permissions
Gets the projects share permissions
*/
export const getProjectPermissionsV2Params = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const getProjectPermissionsV2Response = zod.object({
- "channelSharePermissions": zod.array(zod.object({
- "access_level": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "channel_id": zod.string().describe('The channel id')
-}).describe('The channel share permission')).nullish().describe('The channel share permissions for the item'),
- "id": zod.string().describe('The share permission id'),
- "isPublic": zod.boolean().describe('If the item is publicly accessible'),
- "owner": zod.string().describe('The owner of the item'),
- "publicAccessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional()
-})
-
+ channelSharePermissions: zod
+ .array(
+ zod
+ .object({
+ access_level: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ channel_id: zod.string().describe('The channel id'),
+ })
+ .describe('The channel share permission')
+ )
+ .nullish()
+ .describe('The channel share permissions for the item'),
+ id: zod.string().describe('The share permission id'),
+ isPublic: zod.boolean().describe('If the item is publicly accessible'),
+ owner: zod.string().describe('The owner of the item'),
+ publicAccessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ ])
+ .optional(),
+});
/**
* @summary Deletes a specific document
*/
export const revertDeleteProjectParams = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const revertDeleteProjectResponse = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the users recently deleted items.
*/
export const recentlyDeletedResponse = zod.object({
- "data": zod.object({
- "items": zod.array(zod.union([zod.object({
- "branchedFromId": zod.string().nullish().describe('The id of the document this document branched from'),
- "branchedFromVersionId": zod.number().nullish().describe('The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'),
- "createdAt": zod.number().describe('The time the document was created'),
- "deletedAt": zod.number().nullable().describe('The time the document was deleted'),
- "documentFamilyId": zod.number().nullish().describe('The id of the document family this document belongs to'),
- "documentVersionId": zod.number().describe('The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'),
- "fileType": zod.string().nullish().describe('The file type of the document (e.g. pdf, docx)'),
- "id": zod.string().describe('The document id'),
- "name": zod.string().describe('The name of the document'),
- "owner": zod.string().describe('The owner of the document'),
- "projectId": zod.string().nullish().describe('The id of the project that this document belongs to'),
- "sha": zod.string().nullish().describe('If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'),
- "subType": zod.union([zod.null(),zod.object({
- "is_completed": zod.boolean().describe('Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'),
- "type": zod.enum(['task'])
-}).describe('A task document with its associated properties').describe('Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.')]).optional(),
- "updatedAt": zod.number().describe('The time the document instance / document BOM was updated'),
- "type": zod.enum(['document'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the chat was created'),
- "deletedAt": zod.number().nullable().describe('The time the chat was deleted'),
- "id": zod.string().describe('The chat uuid'),
- "isPersistent": zod.boolean(),
- "model": zod.string().nullish().describe('The model used to generate the chat'),
- "name": zod.string().describe('The name of the chat'),
- "projectId": zod.string().nullish().describe('The project id of the chat'),
- "tokenCount": zod.number().nullish(),
- "updatedAt": zod.number().describe('The time the chat was last updated'),
- "userId": zod.string().describe('Who the chat belongs to'),
- "type": zod.enum(['chat'])
-}),zod.object({
- "createdAt": zod.number().describe('The time the project was created'),
- "deletedAt": zod.number().nullable(),
- "id": zod.string().describe('The id of the project'),
- "name": zod.string().describe('The name of the project'),
- "parentId": zod.string().nullish().describe('The parent project id'),
- "updatedAt": zod.number().describe('The time the project was updated'),
- "userId": zod.string().describe('The user id of who created the project'),
- "type": zod.enum(['project'])
-})])).describe('The items returned from the call')
-}).describe('Data to be returned'),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod
+ .object({
+ items: zod
+ .array(
+ zod.union([
+ zod.object({
+ branchedFromId: zod
+ .string()
+ .nullish()
+ .describe('The id of the document this document branched from'),
+ branchedFromVersionId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'
+ ),
+ createdAt: zod
+ .number()
+ .describe('The time the document was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the document was deleted'),
+ documentFamilyId: zod
+ .number()
+ .nullish()
+ .describe(
+ 'The id of the document family this document belongs to'
+ ),
+ documentVersionId: zod
+ .number()
+ .describe(
+ 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'
+ ),
+ fileType: zod
+ .string()
+ .nullish()
+ .describe('The file type of the document (e.g. pdf, docx)'),
+ id: zod.string().describe('The document id'),
+ name: zod.string().describe('The name of the document'),
+ owner: zod.string().describe('The owner of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The id of the project that this document belongs to'
+ ),
+ sha: zod
+ .string()
+ .nullish()
+ .describe(
+ 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'
+ ),
+ subType: zod
+ .union([
+ zod.null(),
+ zod
+ .object({
+ is_completed: zod
+ .boolean()
+ .describe(
+ 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'
+ ),
+ type: zod.enum(['task']),
+ })
+ .describe('A task document with its associated properties')
+ .describe(
+ 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'
+ ),
+ ])
+ .optional(),
+ updatedAt: zod
+ .number()
+ .describe(
+ 'The time the document instance / document BOM was updated'
+ ),
+ type: zod.enum(['document']),
+ }),
+ zod.object({
+ createdAt: zod.number().describe('The time the chat was created'),
+ deletedAt: zod
+ .number()
+ .nullable()
+ .describe('The time the chat was deleted'),
+ id: zod.string().describe('The chat uuid'),
+ isPersistent: zod.boolean(),
+ model: zod
+ .string()
+ .nullish()
+ .describe('The model used to generate the chat'),
+ name: zod.string().describe('The name of the chat'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The project id of the chat'),
+ tokenCount: zod.number().nullish(),
+ updatedAt: zod
+ .number()
+ .describe('The time the chat was last updated'),
+ userId: zod.string().describe('Who the chat belongs to'),
+ type: zod.enum(['chat']),
+ }),
+ zod.object({
+ createdAt: zod
+ .number()
+ .describe('The time the project was created'),
+ deletedAt: zod.number().nullable(),
+ id: zod.string().describe('The id of the project'),
+ name: zod.string().describe('The name of the project'),
+ parentId: zod
+ .string()
+ .nullish()
+ .describe('The parent project id'),
+ updatedAt: zod
+ .number()
+ .describe('The time the project was updated'),
+ userId: zod
+ .string()
+ .describe('The user id of who created the project'),
+ type: zod.enum(['project']),
+ }),
+ ])
+ )
+ .describe('The items returned from the call'),
+ })
+ .describe('Data to be returned'),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
export const getViewsHandlerResponse = zod.object({
- "excludedDefaultViews": zod.array(zod.object({
- "defaultViewId": zod.string(),
- "id": zod.string().uuid(),
- "userId": zod.string()
-}).describe('Frontend can define any set of its own default views for the user.\nThis is a list of views that are excluded from the default views list on the frontend.\n\nIt is important that the frontend can quickly iterate on default views, for that reason\nwe don\'t keep track of default views in the database, only those that are explicitly excluded.')),
- "views": zod.array(zod.object({
- "config": zod.any().describe('It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'),
- "createdAt": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "name": zod.string(),
- "updatedAt": zod.string().datetime({}),
- "userId": zod.string()
-}))
-})
-
+ excludedDefaultViews: zod.array(
+ zod
+ .object({
+ defaultViewId: zod.string(),
+ id: zod.string().uuid(),
+ userId: zod.string(),
+ })
+ .describe(
+ "Frontend can define any set of its own default views for the user.\nThis is a list of views that are excluded from the default views list on the frontend.\n\nIt is important that the frontend can quickly iterate on default views, for that reason\nwe don't keep track of default views in the database, only those that are explicitly excluded."
+ )
+ ),
+ views: zod.array(
+ zod.object({
+ config: zod
+ .any()
+ .describe(
+ 'It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'
+ ),
+ createdAt: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ name: zod.string(),
+ updatedAt: zod.string().datetime({}),
+ userId: zod.string(),
+ })
+ ),
+});
export const createViewHandlerBody = zod.object({
- "config": zod.any(),
- "name": zod.string()
-})
+ config: zod.any(),
+ name: zod.string(),
+});
export const createViewHandlerResponse = zod.object({
- "config": zod.any().describe('It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'),
- "createdAt": zod.string().datetime({}),
- "id": zod.string().uuid(),
- "name": zod.string(),
- "updatedAt": zod.string().datetime({}),
- "userId": zod.string()
-})
-
+ config: zod
+ .any()
+ .describe(
+ 'It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux.'
+ ),
+ createdAt: zod.string().datetime({}),
+ id: zod.string().uuid(),
+ name: zod.string(),
+ updatedAt: zod.string().datetime({}),
+ userId: zod.string(),
+});
export const deleteViewHandlerParams = zod.object({
- "saved_view_id": zod.string().describe('The id of the saved view to delete')
-})
-
+ saved_view_id: zod.string().describe('The id of the saved view to delete'),
+});
export const excludeDefaultViewHandlerBody = zod.object({
- "defaultViewId": zod.string()
-})
-
+ defaultViewId: zod.string(),
+});
export const patchViewHandlerParams = zod.object({
- "saved_view_id": zod.string().describe('The id of the saved view to patch')
-})
+ saved_view_id: zod.string().describe('The id of the saved view to patch'),
+});
export const patchViewHandlerBody = zod.object({
- "config": zod.any().optional(),
- "name": zod.string().nullish()
-})
-
+ config: zod.any().optional(),
+ name: zod.string().nullish(),
+});
/**
* @summary Gets a UserPdfDocumentLocation entry
*/
export const getUserDocumentViewLocationParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getUserDocumentViewLocationResponse = zod.object({
- "location": zod.string().nullish()
-})
-
+ location: zod.string().nullish(),
+});
export const upsertUserDocumentViewLocationParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const upsertUserDocumentViewLocationBody = zod.object({
- "location": zod.string()
-})
-
-export const upsertUserDocumentViewLocationResponse = zod.object({
-
-}).describe('Empty response is required due to custom fetch forcing `response.json()`')
+ location: zod.string(),
+});
+export const upsertUserDocumentViewLocationResponse = zod
+ .object({})
+ .describe(
+ 'Empty response is required due to custom fetch forcing `response.json()`'
+ );
/**
* @summary Deletes a document location for the user
*/
export const deleteUserDocumentViewLocationParams = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
-
-export const deleteUserDocumentViewLocationResponse = zod.object({
-
-}).describe('Empty response is required due to custom fetch forcing `response.json()`')
+ document_id: zod.string().describe('Document ID'),
+});
+export const deleteUserDocumentViewLocationResponse = zod
+ .object({})
+ .describe(
+ 'Empty response is required due to custom fetch forcing `response.json()`'
+ );
/**
* @summary Edit document v2
@@ -2237,106 +5048,221 @@ Edits traits of a document such as owner, or name as well as modify the document
permissions.
*/
export const editDocumentV2Params = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const editDocumentV2Body = zod.object({
- "documentName": zod.string().nullish().describe('The name of the document'),
- "projectId": zod.string().nullish().describe('The new project id of the document.\nThis will also update the documents permissions to match the project it is going into'),
- "sharePermission": zod.union([zod.null(),zod.object({
- "channelSharePermissions": zod.array(zod.object({
- "accessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional(),
- "channelId": zod.string().describe('The channel id'),
- "operation": zod.enum(['add', 'remove', 'replace'])
-})).nullish().describe('Any channel share permissions to be created/updated/removed'),
- "isPublic": zod.boolean().nullish().describe('If the item is publicly accessible'),
- "publicAccessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional()
-})]).optional()
-})
+ documentName: zod.string().nullish().describe('The name of the document'),
+ projectId: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The new project id of the document.\nThis will also update the documents permissions to match the project it is going into'
+ ),
+ sharePermission: zod
+ .union([
+ zod.null(),
+ zod.object({
+ channelSharePermissions: zod
+ .array(
+ zod.object({
+ accessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe(
+ 'Ordered from least to most access top -> bottom'
+ ),
+ ])
+ .optional(),
+ channelId: zod.string().describe('The channel id'),
+ operation: zod.enum(['add', 'remove', 'replace']),
+ })
+ )
+ .nullish()
+ .describe(
+ 'Any channel share permissions to be created/updated/removed'
+ ),
+ isPublic: zod
+ .boolean()
+ .nullish()
+ .describe('If the item is publicly accessible'),
+ publicAccessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ ])
+ .optional(),
+ }),
+ ])
+ .optional(),
+});
export const editDocumentV2Response = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Gets the current documents share permissions
*/
export const getDocumentPermissionsV2Params = zod.object({
- "document_id": zod.string().describe('Document ID')
-})
+ document_id: zod.string().describe('Document ID'),
+});
export const getDocumentPermissionsV2Response = zod.object({
- "documentPermissions": zod.object({
- "channelSharePermissions": zod.array(zod.object({
- "access_level": zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom'),
- "channel_id": zod.string().describe('The channel id')
-}).describe('The channel share permission')).nullish().describe('The channel share permissions for the item'),
- "id": zod.string().describe('The share permission id'),
- "isPublic": zod.boolean().describe('If the item is publicly accessible'),
- "owner": zod.string().describe('The owner of the item'),
- "publicAccessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional()
-})
-})
-
+ documentPermissions: zod.object({
+ channelSharePermissions: zod
+ .array(
+ zod
+ .object({
+ access_level: zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ channel_id: zod.string().describe('The channel id'),
+ })
+ .describe('The channel share permission')
+ )
+ .nullish()
+ .describe('The channel share permissions for the item'),
+ id: zod.string().describe('The share permission id'),
+ isPublic: zod.boolean().describe('If the item is publicly accessible'),
+ owner: zod.string().describe('The owner of the item'),
+ publicAccessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ ])
+ .optional(),
+ }),
+});
/**
* @summary Edits a project.
*/
export const editProjectV2Params = zod.object({
- "id": zod.string().describe('ID of the project')
-})
+ id: zod.string().describe('ID of the project'),
+});
export const editProjectV2Body = zod.object({
- "name": zod.string().nullish().describe('The new name of the project.'),
- "projectParentId": zod.string().nullish().describe('The new project that the new project will belong to.'),
- "sharePermission": zod.union([zod.null(),zod.object({
- "channelSharePermissions": zod.array(zod.object({
- "accessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional(),
- "channelId": zod.string().describe('The channel id'),
- "operation": zod.enum(['add', 'remove', 'replace'])
-})).nullish().describe('Any channel share permissions to be created/updated/removed'),
- "isPublic": zod.boolean().nullish().describe('If the item is publicly accessible'),
- "publicAccessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional()
-})]).optional()
-})
+ name: zod.string().nullish().describe('The new name of the project.'),
+ projectParentId: zod
+ .string()
+ .nullish()
+ .describe('The new project that the new project will belong to.'),
+ sharePermission: zod
+ .union([
+ zod.null(),
+ zod.object({
+ channelSharePermissions: zod
+ .array(
+ zod.object({
+ accessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe(
+ 'Ordered from least to most access top -> bottom'
+ ),
+ ])
+ .optional(),
+ channelId: zod.string().describe('The channel id'),
+ operation: zod.enum(['add', 'remove', 'replace']),
+ })
+ )
+ .nullish()
+ .describe(
+ 'Any channel share permissions to be created/updated/removed'
+ ),
+ isPublic: zod
+ .boolean()
+ .nullish()
+ .describe('If the item is publicly accessible'),
+ publicAccessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ ])
+ .optional(),
+ }),
+ ])
+ .optional(),
+});
export const editProjectV2Response = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
/**
* @summary Edits the share permissions of a thread.
*/
export const editThreadV2Params = zod.object({
- "thread_id": zod.string().describe('thread ID')
-})
+ thread_id: zod.string().describe('thread ID'),
+});
export const editThreadV2Body = zod.object({
- "projectId": zod.string().nullish().describe('The new project that the thread will belong to.'),
- "sharePermission": zod.union([zod.null(),zod.object({
- "channelSharePermissions": zod.array(zod.object({
- "accessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional(),
- "channelId": zod.string().describe('The channel id'),
- "operation": zod.enum(['add', 'remove', 'replace'])
-})).nullish().describe('Any channel share permissions to be created/updated/removed'),
- "isPublic": zod.boolean().nullish().describe('If the item is publicly accessible'),
- "publicAccessLevel": zod.union([zod.null(),zod.enum(['view', 'comment', 'edit', 'owner']).describe('Ordered from least to most access top -> bottom')]).optional()
-})]).optional()
-})
+ projectId: zod
+ .string()
+ .nullish()
+ .describe('The new project that the thread will belong to.'),
+ sharePermission: zod
+ .union([
+ zod.null(),
+ zod.object({
+ channelSharePermissions: zod
+ .array(
+ zod.object({
+ accessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe(
+ 'Ordered from least to most access top -> bottom'
+ ),
+ ])
+ .optional(),
+ channelId: zod.string().describe('The channel id'),
+ operation: zod.enum(['add', 'remove', 'replace']),
+ })
+ )
+ .nullish()
+ .describe(
+ 'Any channel share permissions to be created/updated/removed'
+ ),
+ isPublic: zod
+ .boolean()
+ .nullish()
+ .describe('If the item is publicly accessible'),
+ publicAccessLevel: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['view', 'comment', 'edit', 'owner'])
+ .describe('Ordered from least to most access top -> bottom'),
+ ])
+ .optional(),
+ }),
+ ])
+ .optional(),
+});
export const editThreadV2Response = zod.object({
- "data": zod.object({
- "success": zod.boolean().describe('Indicates if the request was successful')
-}),
- "error": zod.boolean().describe('Indicates if an error occurred')
-})
-
-
+ data: zod.object({
+ success: zod.boolean().describe('Indicates if the request was successful'),
+ }),
+ error: zod.boolean().describe('Indicates if an error occurred'),
+});
diff --git a/js/app/packages/service-clients/service-storage/openapi.json b/js/app/packages/service-clients/service-storage/openapi.json
index 0d086a6533..a49292135c 100644
--- a/js/app/packages/service-clients/service-storage/openapi.json
+++ b/js/app/packages/service-clients/service-storage/openapi.json
@@ -4,7 +4,9 @@
"title": "document_storage_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -19,14 +21,20 @@
"in": "query",
"description": "The maximum number of items to retreive. Default 10, max 100.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "offset",
"in": "query",
"description": "The offset to start from. Default 0.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -104,7 +112,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -112,7 +122,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -120,7 +132,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -133,7 +147,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EditAnchorRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/EditAnchorRequest"
+ }
}
},
"required": true
@@ -143,7 +159,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EditAnchorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EditAnchorResponse"
+ }
}
}
},
@@ -151,7 +169,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -159,7 +179,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -167,7 +189,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -185,7 +209,9 @@
"in": "path",
"description": "The document id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -213,7 +239,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -221,7 +249,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -229,7 +259,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -247,7 +279,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -255,7 +289,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/AnchorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/AnchorResponse"
+ }
}
}
},
@@ -263,7 +299,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -271,7 +309,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -279,7 +319,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -297,13 +339,18 @@
"in": "path",
"description": "The comment id",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/DeleteCommentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/DeleteCommentRequest"
+ }
}
},
"required": true
@@ -323,7 +370,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -331,7 +380,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -339,7 +390,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -355,13 +408,18 @@
"in": "path",
"description": "The comment id",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EditCommentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/EditCommentRequest"
+ }
}
},
"required": true
@@ -371,7 +429,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EditCommentResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EditCommentResponse"
+ }
}
}
},
@@ -379,7 +439,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -387,7 +449,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -395,7 +459,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -413,13 +479,17 @@
"in": "path",
"description": "The document id",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateCommentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateCommentRequest"
+ }
}
},
"required": true
@@ -439,7 +509,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -447,7 +519,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -455,7 +529,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -473,7 +549,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -481,7 +559,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ThreadResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ThreadResponse"
+ }
}
}
},
@@ -489,7 +569,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -497,7 +579,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -505,7 +589,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -523,21 +609,29 @@
"in": "query",
"description": "The maximum number of documents to retreive. Default 10, max 100.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "offset",
"in": "query",
"description": "The offset to start from. Default 0.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "file_type",
"in": "query",
"description": "The file type to filter by. Default all.",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -590,7 +684,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateDocumentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateDocumentRequest"
+ }
}
},
"required": true
@@ -608,7 +704,9 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/DocumentResponse" },
+ {
+ "$ref": "#/components/schemas/DocumentResponse"
+ },
{
"type": "object",
"required": ["contentType"],
@@ -689,7 +787,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateTaskRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateTaskRequest"
+ }
}
},
"required": true
@@ -717,7 +817,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -725,7 +827,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -733,7 +837,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -741,7 +847,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -875,7 +983,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -883,7 +993,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -891,7 +1003,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -909,7 +1023,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -927,7 +1043,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -935,7 +1053,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -943,7 +1063,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -961,7 +1083,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -1088,7 +1212,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1096,7 +1222,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetDocumentResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetDocumentResponse"
+ }
}
}
},
@@ -1142,13 +1270,17 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SaveDocumentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/SaveDocumentRequest"
+ }
}
},
"required": true
@@ -1216,7 +1348,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1224,7 +1358,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -1272,20 +1408,27 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "version_id",
"in": "query",
"description": "The version id of the document to copy. Defaults to copying the latest version of the document.",
"required": false,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CopyDocumentRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CopyDocumentRequest"
+ }
}
},
"required": true
@@ -1295,7 +1438,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetDocumentResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetDocumentResponse"
+ }
}
}
},
@@ -1363,7 +1508,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1431,21 +1578,28 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "document_version_id",
"in": "query",
"description": "A specific document version id to get the location for.",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
},
{
"name": "get_converted_docx_url",
"in": "query",
"description": "If true, this will return the converted docx url.",
"required": true,
- "schema": { "type": "boolean" }
+ "schema": {
+ "type": "boolean"
+ }
}
],
"responses": {
@@ -1513,7 +1667,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1521,7 +1677,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -1569,7 +1727,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1627,14 +1787,18 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "job_id",
"in": "path",
"description": "Job ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1692,7 +1856,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1700,7 +1866,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -1748,7 +1916,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1806,7 +1976,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1814,7 +1986,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UserViewsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/UserViewsResponse"
+ }
}
}
},
@@ -1862,14 +2036,19 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "document_version_id",
"in": "path",
"description": "Document Version ID",
"required": true,
- "schema": { "type": "integer", "format": "int64" }
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
}
],
"responses": {
@@ -1877,7 +2056,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetDocumentResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetDocumentResponse"
+ }
}
}
},
@@ -1922,7 +2103,13 @@
"responses": {
"200": {
"description": "health",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -1977,14 +2164,18 @@
"in": "path",
"description": "Type of the item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "item_id",
"in": "path",
"description": "ID of the item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1992,7 +2183,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -2048,14 +2241,18 @@
"in": "path",
"description": "Type of the item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
},
{
"name": "item_id",
"in": "path",
"description": "ID of the item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -2063,7 +2260,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -2197,28 +2396,38 @@
"in": "query",
"description": "Whether to expand projects. Defaults to true.",
"required": false,
- "schema": { "type": "boolean" }
+ "schema": {
+ "type": "boolean"
+ }
},
{
"name": "limit",
"in": "query",
"description": "Limit the number of items returned. Defaults to 20. Max 500.",
"required": false,
- "schema": { "type": "integer", "format": "int32", "minimum": 0 }
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ }
},
{
"name": "sort_method",
"in": "query",
"description": "Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at.",
"required": false,
- "schema": { "$ref": "#/components/schemas/SoupApiSort" }
+ "schema": {
+ "$ref": "#/components/schemas/SoupApiSort"
+ }
},
{
"name": "cursor",
"in": "query",
"description": "Base64 encoded cursor value.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -2226,7 +2435,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SoupPage" }
+ "schema": {
+ "$ref": "#/components/schemas/SoupPage"
+ }
}
}
},
@@ -2234,7 +2445,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2250,13 +2463,17 @@
"in": "query",
"description": "Base64 encoded cursor value.",
"required": false,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PostSoupRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PostSoupRequest"
+ }
}
},
"required": true
@@ -2266,7 +2483,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SoupPage" }
+ "schema": {
+ "$ref": "#/components/schemas/SoupPage"
+ }
}
}
},
@@ -2274,7 +2493,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -2291,7 +2512,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -2309,7 +2532,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -2356,7 +2581,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetPinsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetPinsResponse"
+ }
}
}
},
@@ -2391,7 +2618,9 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ReorderPinRequest" }
+ "items": {
+ "$ref": "#/components/schemas/ReorderPinRequest"
+ }
}
}
},
@@ -2402,7 +2631,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -2450,13 +2681,17 @@
"in": "path",
"description": "ID of the pinned item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/AddPinRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/AddPinRequest"
+ }
}
},
"required": true
@@ -2466,7 +2701,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -2512,13 +2749,17 @@
"in": "path",
"description": "ID of the pinned item",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PinRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/PinRequest"
+ }
}
},
"required": true
@@ -2528,7 +2769,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -2575,7 +2818,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetProjectsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetProjectsResponse"
+ }
}
}
},
@@ -2608,7 +2853,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateProjectRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateProjectRequest"
+ }
}
},
"required": true
@@ -2667,7 +2914,9 @@
"type": "array",
"items": {
"allOf": [
- { "$ref": "#/components/schemas/Project" },
+ {
+ "$ref": "#/components/schemas/Project"
+ },
{
"type": "object",
"required": ["documentStatuses"],
@@ -2774,7 +3023,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/UploadFolderRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/UploadFolderRequest"
+ }
}
},
"required": true
@@ -2879,8 +3130,12 @@
"type": "object",
"required": ["requestId", "presignedUrl"],
"properties": {
- "presignedUrl": { "type": "string" },
- "requestId": { "type": "string" }
+ "presignedUrl": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
}
}
],
@@ -2938,7 +3193,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -2946,7 +3203,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetProjectResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetProjectResponse"
+ }
}
}
},
@@ -2982,7 +3241,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3006,17 +3267,23 @@
"properties": {
"chat_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the chats that were marked as deleted"
},
"document_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the documents that were marked as deleted"
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the project that were marked as deleted"
}
}
@@ -3067,7 +3334,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3075,7 +3344,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/AccessLevel" }
+ "schema": {
+ "$ref": "#/components/schemas/AccessLevel"
+ }
}
}
},
@@ -3123,7 +3394,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3171,7 +3444,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3179,7 +3454,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -3227,7 +3504,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3235,7 +3514,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SharePermissionV2" }
+ "schema": {
+ "$ref": "#/components/schemas/SharePermissionV2"
+ }
}
}
},
@@ -3273,7 +3554,9 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3281,7 +3564,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -3376,7 +3661,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ViewsResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ViewsResponse"
+ }
}
}
},
@@ -3384,7 +3671,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -3392,7 +3681,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -3404,7 +3695,9 @@
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateViewRequest" }
+ "schema": {
+ "$ref": "#/components/schemas/CreateViewRequest"
+ }
}
},
"required": true
@@ -3414,7 +3707,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/View" }
+ "schema": {
+ "$ref": "#/components/schemas/View"
+ }
}
}
},
@@ -3422,7 +3717,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -3430,7 +3727,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -3445,16 +3744,22 @@
"in": "path",
"description": "The id of the saved view to delete",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -3462,7 +3767,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -3484,12 +3791,16 @@
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -3497,7 +3808,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -3514,24 +3827,32 @@
"in": "path",
"description": "The id of the saved view to patch",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ViewPatch" }
+ "schema": {
+ "$ref": "#/components/schemas/ViewPatch"
+ }
}
},
"required": true
},
"responses": {
- "200": { "description": "" },
+ "200": {
+ "description": ""
+ },
"401": {
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
},
@@ -3539,7 +3860,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/ErrorResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
}
}
}
@@ -3559,7 +3882,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3577,7 +3902,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GenericResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GenericResponse"
+ }
}
}
},
@@ -3614,7 +3941,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -3632,7 +3961,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
}
}
},
@@ -3680,7 +4011,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3688,8 +4021,10 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EmptyResponse" }
- }
+ "schema": {
+ "$ref": "#/components/schemas/EmptyResponse"
+ }
+ }
}
},
"500": {
@@ -3716,13 +4051,17 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/EditDocumentRequestV2" }
+ "schema": {
+ "$ref": "#/components/schemas/EditDocumentRequestV2"
+ }
}
},
"required": true
@@ -3732,7 +4071,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -3780,7 +4121,9 @@
"in": "path",
"description": "Document ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -3828,13 +4171,17 @@
"in": "path",
"description": "ID of the project",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchProjectRequestV2" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchProjectRequestV2"
+ }
}
},
"required": true
@@ -3844,7 +4191,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -3882,13 +4231,17 @@
"in": "path",
"description": "thread ID",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/PatchThreadRequestV2" }
+ "schema": {
+ "$ref": "#/components/schemas/PatchThreadRequestV2"
+ }
}
},
"required": true
@@ -3898,7 +4251,9 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/SuccessResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/SuccessResponse"
+ }
}
}
},
@@ -3939,13 +4294,19 @@
"type": "object",
"required": ["Document"],
"properties": {
- "Document": { "$ref": "#/components/schemas/BasicDocument" }
+ "Document": {
+ "$ref": "#/components/schemas/BasicDocument"
+ }
}
},
{
"type": "object",
"required": ["Chat"],
- "properties": { "Chat": { "$ref": "#/components/schemas/Chat" } }
+ "properties": {
+ "Chat": {
+ "$ref": "#/components/schemas/Chat"
+ }
+ }
}
]
},
@@ -3958,20 +4319,34 @@
"format": "int32",
"description": "The index of the pin"
},
- "pinType": { "type": "string", "description": "The type of the pin" }
+ "pinType": {
+ "type": "string",
+ "description": "The type of the pin"
+ }
}
},
- "Anchor": { "oneOf": [{ "$ref": "#/components/schemas/PdfAnchor" }] },
+ "Anchor": {
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PdfAnchor"
+ }
+ ]
+ },
"AnchorId": {
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/PdfAnchorId" },
+ {
+ "$ref": "#/components/schemas/PdfAnchorId"
+ },
{
"type": "object",
"required": ["fileType"],
"properties": {
- "fileType": { "type": "string", "enum": ["pdf"] }
+ "fileType": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
}
}
]
@@ -3982,12 +4357,17 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/PdfAnchorRequest" },
+ {
+ "$ref": "#/components/schemas/PdfAnchorRequest"
+ },
{
"type": "object",
"required": ["fileType"],
"properties": {
- "fileType": { "type": "string", "enum": ["pdf"] }
+ "fileType": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
}
}
]
@@ -4000,7 +4380,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Anchor" }
+ "items": {
+ "$ref": "#/components/schemas/Anchor"
+ }
}
}
},
@@ -4014,14 +4396,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/CreateCommentResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["create-comment"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["create-comment"]
+ }
}
},
{
@@ -4032,14 +4421,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/CreateUnthreadedAnchorResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["create-anchor"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["create-anchor"]
+ }
}
},
{
@@ -4050,14 +4446,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/EditCommentResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["edit-comment"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["edit-comment"]
+ }
}
},
{
@@ -4068,14 +4471,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/EditAnchorResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["edit-anchor"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["edit-anchor"]
+ }
}
},
{
@@ -4086,14 +4496,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/DeleteCommentResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["delete-comment"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["delete-comment"]
+ }
}
},
{
@@ -4104,14 +4521,21 @@
"type": "object",
"required": ["sender", "documentId", "response"],
"properties": {
- "documentId": { "type": "string" },
+ "documentId": {
+ "type": "string"
+ },
"response": {
"$ref": "#/components/schemas/DeleteUnthreadedAnchorResponse"
},
- "sender": { "type": "string" }
+ "sender": {
+ "type": "string"
+ }
}
},
- "updateType": { "type": "string", "enum": ["delete-anchor"] }
+ "updateType": {
+ "type": "string",
+ "enum": ["delete-anchor"]
+ }
}
}
]
@@ -4161,7 +4585,10 @@
"type": ["string", "null"],
"description": "The file type of the document (e.g. pdf, docx)"
},
- "id": { "type": "string", "description": "The document id" },
+ "id": {
+ "type": "string",
+ "description": "The document id"
+ },
"name": {
"type": "string",
"description": "The name of the document"
@@ -4180,7 +4607,9 @@
},
"subType": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/BasicDocumentSubType",
"description": "The sub type of the document if present.\nTask-related properties are encoded within the variant."
@@ -4205,7 +4634,10 @@
"type": "boolean",
"description": "Whether the task is completed.\nTrue if the Status property is set to \"Completed\"."
},
- "type": { "type": "string", "enum": ["task"] }
+ "type": {
+ "type": "string",
+ "enum": ["task"]
+ }
}
}
],
@@ -4215,7 +4647,10 @@
"type": "object",
"required": ["id", "sha", "path"],
"properties": {
- "id": { "type": "string", "description": "The uuid of the bom part" },
+ "id": {
+ "type": "string",
+ "description": "The uuid of the bom part"
+ },
"path": {
"type": "string",
"description": "The file path of the bom part content"
@@ -4236,17 +4671,32 @@
"owner_id"
],
"properties": {
- "channel_type": { "$ref": "#/components/schemas/ChannelType" },
- "created_at": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
- "name": { "type": ["string", "null"] },
+ "channel_type": {
+ "$ref": "#/components/schemas/ChannelType"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
"org_id": {
"type": ["integer", "null"],
"format": "int32",
"minimum": 0
},
- "owner_id": { "type": "string" },
- "updated_at": { "type": "string", "format": "date-time" }
+ "owner_id": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"ChannelFilters": {
@@ -4255,12 +4705,16 @@
"properties": {
"channel_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel IDs to search within. Examples: ['general']. Empty to search all accessible channels."
},
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel user mentions to search for. Examples: ['@username']. Empty if not filtering by mentions."
},
"org_id": {
@@ -4270,12 +4724,16 @@
},
"sender_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Sender IDs to search within. Examples: ['user1']. Empty to search all accessible senders."
},
"thread_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Channel thread IDs to search within. Examples: ['thread123']. Empty to search all threads."
}
}
@@ -4291,29 +4749,63 @@
"mentions"
],
"properties": {
- "content": { "type": "string" },
- "created_at": { "type": "string", "format": "date-time" },
- "deleted_at": { "type": ["string", "null"], "format": "date-time" },
+ "content": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "deleted_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "message mentions formatted as `{ENTITY_TYPE}:{ENTITY_ID}`"
},
- "message_id": { "type": "string", "format": "uuid" },
- "sender_id": { "type": "string" },
- "thread_id": { "type": ["string", "null"], "format": "uuid" },
- "updated_at": { "type": "string", "format": "date-time" }
+ "message_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "sender_id": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
"ChannelParticipant": {
"type": "object",
"required": ["channel_id", "user_id", "role", "joined_at"],
"properties": {
- "channel_id": { "type": "string", "format": "uuid" },
- "joined_at": { "type": "string", "format": "date-time" },
- "left_at": { "type": ["string", "null"], "format": "date-time" },
- "role": { "$ref": "#/components/schemas/ParticipantRole" },
- "user_id": { "type": "string" }
+ "channel_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "joined_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "left_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ },
+ "role": {
+ "$ref": "#/components/schemas/ParticipantRole"
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
"ChannelSharePermission": {
@@ -4325,7 +4817,10 @@
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for the channel"
},
- "channel_id": { "type": "string", "description": "The channel id" }
+ "channel_id": {
+ "type": "string",
+ "description": "The channel id"
+ }
}
},
"ChannelType": {
@@ -4336,10 +4831,14 @@
"type": "object",
"required": ["channel", "participants"],
"properties": {
- "channel": { "$ref": "#/components/schemas/Channel" },
+ "channel": {
+ "$ref": "#/components/schemas/Channel"
+ },
"participants": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ChannelParticipant" }
+ "items": {
+ "$ref": "#/components/schemas/ChannelParticipant"
+ }
}
}
},
@@ -4365,18 +4864,29 @@
"format": "int64",
"description": "The time the chat was deleted"
},
- "id": { "type": "string", "description": "The chat uuid" },
- "isPersistent": { "type": "boolean" },
+ "id": {
+ "type": "string",
+ "description": "The chat uuid"
+ },
+ "isPersistent": {
+ "type": "boolean"
+ },
"model": {
"type": ["string", "null"],
"description": "The model used to generate the chat"
},
- "name": { "type": "string", "description": "The name of the chat" },
+ "name": {
+ "type": "string",
+ "description": "The name of the chat"
+ },
"projectId": {
"type": ["string", "null"],
"description": "The project id of the chat"
},
- "tokenCount": { "type": ["integer", "null"], "format": "int64" },
+ "tokenCount": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
"updatedAt": {
"type": "integer",
"format": "int64",
@@ -4394,22 +4904,30 @@
"properties": {
"chat_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Chat ids to search over. Examples: ['chat1'], ['chat1', 'chat2']. When provided, chat search will only match results on these chats. Empty to search all accessible chats."
},
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by chat owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "A list of project ids to search within. Examples: ['project1']. Empty to ignore project filtering."
},
"role": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Chat message roles to search. Examples: ['user'], ['assistant']. Empty to search all roles."
}
}
@@ -4430,16 +4948,40 @@
"deletedAt"
],
"properties": {
- "commentId": { "type": "integer", "format": "int64" },
- "createdAt": { "type": "integer", "format": "int64" },
- "deletedAt": { "type": ["integer", "null"], "format": "int64" },
+ "commentId": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deletedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
"metadata": {},
- "order": { "type": ["integer", "null"], "format": "int32" },
- "owner": { "type": "string" },
- "sender": { "type": ["string", "null"] },
- "text": { "type": "string" },
- "threadId": { "type": "integer", "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" }
+ "order": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "sender": {
+ "type": ["string", "null"]
+ },
+ "text": {
+ "type": "string"
+ },
+ "threadId": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"CommentThread": {
@@ -4448,9 +4990,13 @@
"properties": {
"comments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Comment" }
+ "items": {
+ "$ref": "#/components/schemas/Comment"
+ }
},
- "thread": { "$ref": "#/components/schemas/Thread" }
+ "thread": {
+ "$ref": "#/components/schemas/Thread"
+ }
}
},
"CopyDocumentQueryParams": {
@@ -4473,8 +5019,12 @@
},
"versionId": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/SyncServiceVersionID" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/SyncServiceVersionID"
+ }
]
}
}
@@ -4502,7 +5052,9 @@
"properties": {
"documentMetadata": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentMetadata",
"description": "The created documents metadata\nOnly returned if the document was created successfully"
@@ -4511,7 +5063,9 @@
},
"presignedUrl": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/PresignedUrl",
"description": "The presigned url used to upload the document\nOnly returned if the document was created successfully"
@@ -4530,30 +5084,47 @@
"properties": {
"anchor": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/AnchorRequest" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/AnchorRequest"
+ }
]
},
"metadata": {},
- "text": { "type": "string" },
- "threadId": { "type": ["integer", "null"], "format": "int64" },
+ "text": {
+ "type": "string"
+ },
+ "threadId": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
"threadMetadata": {}
}
},
"CreateCommentResponse": {
"allOf": [
- { "$ref": "#/components/schemas/CommentThread" },
+ {
+ "$ref": "#/components/schemas/CommentThread"
+ },
{
"type": "object",
"required": ["documentId"],
"properties": {
"anchor": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/Anchor" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/Anchor"
+ }
]
},
- "documentId": { "type": "string" }
+ "documentId": {
+ "type": "string"
+ }
}
}
]
@@ -4610,13 +5181,20 @@
"type": ["string", "null"],
"description": "The content type of the document (currently only used for logging matches against file type)."
},
- "projectId": { "type": ["string", "null"] },
- "sha": { "type": "string", "description": "The sha of the document." }
+ "projectId": {
+ "type": ["string", "null"]
+ },
+ "sha": {
+ "type": "string",
+ "description": "The sha of the document."
+ }
}
},
"CreateDocumentResponseData": {
"allOf": [
- { "$ref": "#/components/schemas/DocumentResponse" },
+ {
+ "$ref": "#/components/schemas/DocumentResponse"
+ },
{
"type": "object",
"required": ["contentType"],
@@ -4636,7 +5214,11 @@
"CreateInstructionsDocumentResponse": {
"type": "object",
"required": ["documentId"],
- "properties": { "documentId": { "type": "string" } }
+ "properties": {
+ "documentId": {
+ "type": "string"
+ }
+ }
},
"CreateProjectRequest": {
"type": "object",
@@ -4677,7 +5259,9 @@
},
"propertyValues": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/PropertyInput" },
+ "items": {
+ "$ref": "#/components/schemas/PropertyInput"
+ },
"description": "Optional property values to set on the task"
},
"taskName": {
@@ -4708,7 +5292,10 @@
"type": "object",
"required": ["fileType"],
"properties": {
- "fileType": { "type": "string", "enum": ["pdf"] }
+ "fileType": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
}
}
]
@@ -4717,11 +5304,17 @@
},
"CreateUnthreadedAnchorResponse": {
"allOf": [
- { "$ref": "#/components/schemas/Anchor" },
+ {
+ "$ref": "#/components/schemas/Anchor"
+ },
{
"type": "object",
"required": ["documentId"],
- "properties": { "documentId": { "type": "string" } }
+ "properties": {
+ "documentId": {
+ "type": "string"
+ }
+ }
}
]
},
@@ -4729,12 +5322,17 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/PdfHighlightAnchorRequest" },
+ {
+ "$ref": "#/components/schemas/PdfHighlightAnchorRequest"
+ },
{
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["highlight"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["highlight"]
+ }
}
}
]
@@ -4744,15 +5342,26 @@
"CreateViewRequest": {
"type": "object",
"required": ["name", "config"],
- "properties": { "config": {}, "name": { "type": "string" } }
+ "properties": {
+ "config": {},
+ "name": {
+ "type": "string"
+ }
+ }
},
"DeleteAnchorInfo": {
"allOf": [
- { "$ref": "#/components/schemas/AnchorId" },
+ {
+ "$ref": "#/components/schemas/AnchorId"
+ },
{
"type": "object",
"required": ["deleted"],
- "properties": { "deleted": { "type": "boolean" } }
+ "properties": {
+ "deleted": {
+ "type": "boolean"
+ }
+ }
}
]
},
@@ -4771,21 +5380,37 @@
"properties": {
"anchor": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/DeleteAnchorInfo" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/DeleteAnchorInfo"
+ }
]
},
- "commentId": { "type": "integer", "format": "int64" },
- "documentId": { "type": "string" },
- "thread": { "$ref": "#/components/schemas/DeleteThreadInfo" }
+ "commentId": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "documentId": {
+ "type": "string"
+ },
+ "thread": {
+ "$ref": "#/components/schemas/DeleteThreadInfo"
+ }
}
},
"DeleteThreadInfo": {
"type": "object",
"required": ["threadId", "deleted"],
"properties": {
- "deleted": { "type": "boolean" },
- "threadId": { "type": "integer", "format": "int64" }
+ "deleted": {
+ "type": "boolean"
+ },
+ "threadId": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"DeleteUnthreadedAnchorRequest": {
@@ -4799,7 +5424,10 @@
"type": "object",
"required": ["fileType"],
"properties": {
- "fileType": { "type": "string", "enum": ["pdf"] }
+ "fileType": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
}
}
]
@@ -4808,13 +5436,20 @@
},
"DeleteUnthreadedAnchorResponse": {
"allOf": [
- { "$ref": "#/components/schemas/AnchorId" },
+ {
+ "$ref": "#/components/schemas/AnchorId"
+ },
{
"type": "object",
"required": ["documentId"],
"properties": {
- "documentId": { "type": "string" },
- "threadId": { "type": ["integer", "null"], "format": "int64" }
+ "documentId": {
+ "type": "string"
+ },
+ "threadId": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
}
]
@@ -4825,8 +5460,14 @@
"type": "object",
"required": ["uuid", "anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["highlight"] },
- "uuid": { "type": "string", "format": "uuid" }
+ "anchorType": {
+ "type": "string",
+ "enum": ["highlight"]
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
]
@@ -4837,22 +5478,30 @@
"properties": {
"document_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Document ids to search over. Examples: ['doc1'], ['doc1', 'doc2']. Empty to search all accessible documents."
},
"file_types": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Document file types to search. Examples: ['pdf'], ['md', 'txt']. Empty to search all file types."
},
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by document owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "A list of project ids to search within. Examples: ['project1'].\nfiltering. Empty to ignore project filtering."
}
}
@@ -4884,7 +5533,9 @@
},
"documentBom": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/BomPart" },
+ "items": {
+ "$ref": "#/components/schemas/BomPart"
+ },
"description": "If the document is a DOCX document and unzipped, the document_bom will be present"
},
"documentFamilyId": {
@@ -4892,7 +5543,10 @@
"format": "int64",
"description": "The id of the document family this document belongs to"
},
- "documentId": { "type": "string", "description": "The document id" },
+ "documentId": {
+ "type": "string",
+ "description": "The document id"
+ },
"documentName": {
"type": "string",
"description": "The name of the document"
@@ -4927,7 +5581,9 @@
},
"subType": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentSubType",
"description": "The sub type of the document if present."
@@ -4949,13 +5605,19 @@
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level of the user for the document"
},
- "document_id": { "type": "string", "description": "The document id" },
- "exp": {
- "type": "integer",
+ "document_id": {
+ "type": "string",
+ "description": "The document id"
+ },
+ "exp": {
+ "type": "integer",
"description": "The expiration time of the token",
"minimum": 0
},
- "iss": { "type": "string", "description": "The issuer of the token" },
+ "iss": {
+ "type": "string",
+ "description": "The issuer of the token"
+ },
"user_id": {
"type": ["string", "null"],
"description": "The users id if present"
@@ -4986,36 +5648,51 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/DocumentPreviewData" },
+ {
+ "$ref": "#/components/schemas/DocumentPreviewData"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["access"] }
+ "type": {
+ "type": "string",
+ "enum": ["access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithDocumentId" },
+ {
+ "$ref": "#/components/schemas/WithDocumentId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["no_access"] }
+ "type": {
+ "type": "string",
+ "enum": ["no_access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithDocumentId" },
+ {
+ "$ref": "#/components/schemas/WithDocumentId"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["does_not_exist"] }
+ "type": {
+ "type": "string",
+ "enum": ["does_not_exist"]
+ }
}
}
]
@@ -5026,7 +5703,10 @@
"type": "object",
"required": ["document_id", "document_name", "owner", "updated_at"],
"properties": {
- "document_id": { "type": "string", "description": "The document id" },
+ "document_id": {
+ "type": "string",
+ "description": "The document id"
+ },
"document_name": {
"type": "string",
"description": "The name of the document"
@@ -5041,7 +5721,9 @@
},
"sub_type": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentPreviewDataSubType",
"description": "The sub type of the document if present.\nTask-related properties are encoded within the variant."
@@ -5066,7 +5748,10 @@
"type": "boolean",
"description": "Whether the task is completed.\nTrue if the Status property is set to \"Completed\"."
},
- "type": { "type": "string", "enum": ["task"] }
+ "type": {
+ "type": "string",
+ "enum": ["task"]
+ }
}
}
],
@@ -5079,7 +5764,9 @@
"documentMetadata": {
"$ref": "#/components/schemas/DocumentResponseMetadata"
},
- "presignedUrl": { "type": ["string", "null"] }
+ "presignedUrl": {
+ "type": ["string", "null"]
+ }
}
},
"DocumentResponseMetadata": {
@@ -5109,7 +5796,9 @@
},
"documentBom": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/BomPart" },
+ "items": {
+ "$ref": "#/components/schemas/BomPart"
+ },
"description": "If the document is a DOCX document, the document_bom will be present"
},
"documentFamilyId": {
@@ -5117,7 +5806,10 @@
"format": "int64",
"description": "The id of the document family this document belongs to"
},
- "documentId": { "type": "string", "description": "The document id" },
+ "documentId": {
+ "type": "string",
+ "description": "The document id"
+ },
"documentName": {
"type": "string",
"description": "The name of the document"
@@ -5144,7 +5836,9 @@
},
"subType": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/DocumentSubType",
"description": "The sub type of the document if present."
@@ -5171,12 +5865,17 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/EditPdfAnchorRequest" },
+ {
+ "$ref": "#/components/schemas/EditPdfAnchorRequest"
+ },
{
"type": "object",
"required": ["fileType"],
"properties": {
- "fileType": { "type": "string", "enum": ["pdf"] }
+ "fileType": {
+ "type": "string",
+ "enum": ["pdf"]
+ }
}
}
]
@@ -5185,25 +5884,42 @@
},
"EditAnchorResponse": {
"allOf": [
- { "$ref": "#/components/schemas/Anchor" },
+ {
+ "$ref": "#/components/schemas/Anchor"
+ },
{
"type": "object",
"required": ["documentId"],
- "properties": { "documentId": { "type": "string" } }
+ "properties": {
+ "documentId": {
+ "type": "string"
+ }
+ }
}
]
},
"EditCommentRequest": {
"type": "object",
- "properties": { "metadata": {}, "text": { "type": ["string", "null"] } }
+ "properties": {
+ "metadata": {},
+ "text": {
+ "type": ["string", "null"]
+ }
+ }
},
"EditCommentResponse": {
"allOf": [
- { "$ref": "#/components/schemas/Comment" },
+ {
+ "$ref": "#/components/schemas/Comment"
+ },
{
"type": "object",
"required": ["documentId"],
- "properties": { "documentId": { "type": "string" } }
+ "properties": {
+ "documentId": {
+ "type": "string"
+ }
+ }
}
]
},
@@ -5220,7 +5936,9 @@
},
"sharePermission": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UpdateSharePermissionRequestV2",
"description": "Updated share permissions for the document."
@@ -5240,7 +5958,10 @@
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["free-comment"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["free-comment"]
+ }
}
}
]
@@ -5252,18 +5973,51 @@
"required": ["uuid"],
"properties": {
"allowableEdits": {},
- "heightPct": { "type": ["number", "null"], "format": "double" },
- "originalIndex": { "type": ["integer", "null"], "format": "int32" },
- "originalPage": { "type": ["integer", "null"], "format": "int32" },
- "page": { "type": ["integer", "null"], "format": "int32" },
- "rotation": { "type": ["number", "null"], "format": "double" },
- "shouldLockOnSave": { "type": ["boolean", "null"] },
- "uuid": { "type": "string", "format": "uuid" },
- "wasDeleted": { "type": ["boolean", "null"] },
- "wasEdited": { "type": ["boolean", "null"] },
- "widthPct": { "type": ["number", "null"], "format": "double" },
- "xPct": { "type": ["number", "null"], "format": "double" },
- "yPct": { "type": ["number", "null"], "format": "double" }
+ "heightPct": {
+ "type": ["number", "null"],
+ "format": "double"
+ },
+ "originalIndex": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "originalPage": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "page": {
+ "type": ["integer", "null"],
+ "format": "int32"
+ },
+ "rotation": {
+ "type": ["number", "null"],
+ "format": "double"
+ },
+ "shouldLockOnSave": {
+ "type": ["boolean", "null"]
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "wasDeleted": {
+ "type": ["boolean", "null"]
+ },
+ "wasEdited": {
+ "type": ["boolean", "null"]
+ },
+ "widthPct": {
+ "type": ["number", "null"],
+ "format": "double"
+ },
+ "xPct": {
+ "type": ["number", "null"],
+ "format": "double"
+ },
+ "yPct": {
+ "type": ["number", "null"],
+ "format": "double"
+ }
}
},
"EmailFilters": {
@@ -5272,22 +6026,30 @@
"properties": {
"bcc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email BCC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by BCC."
},
"cc": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email CC addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by CC."
},
"recipients": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email Recipient addresses to filter by. Examples: ['[email protected]']. Empty if not filtering by Recipient."
},
"senders": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Email sender addresses to filter by. Examples: ['[email protected]']. Empty to search all senders."
}
}
@@ -5327,8 +6089,12 @@
"description": "Entity reference for entity-type property values.",
"required": ["entity_id", "entity_type"],
"properties": {
- "entity_id": { "type": "string" },
- "entity_type": { "$ref": "#/components/schemas/EntityType" },
+ "entity_id": {
+ "type": "string"
+ },
+ "entity_type": {
+ "$ref": "#/components/schemas/EntityType"
+ },
"specific_message_id": {
"type": ["string", "null"],
"format": "uuid",
@@ -5364,16 +6130,27 @@
"ExcludeDefaultViewRequest": {
"type": "object",
"required": ["defaultViewId"],
- "properties": { "defaultViewId": { "type": "string" } }
+ "properties": {
+ "defaultViewId": {
+ "type": "string"
+ }
+ }
},
"ExcludedDefaultView": {
"type": "object",
"description": "Frontend can define any set of its own default views for the user.\nThis is a list of views that are excluded from the default views list on the frontend.\n\nIt is important that the frontend can quickly iterate on default views, for that reason\nwe don't keep track of default views in the database, only those that are explicitly excluded.",
"required": ["id", "userId", "defaultViewId"],
"properties": {
- "defaultViewId": { "type": "string" },
- "id": { "type": "string", "format": "uuid" },
- "userId": { "type": "string" }
+ "defaultViewId": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "userId": {
+ "type": "string"
+ }
}
},
"ExportDocumentResponse": {
@@ -5392,9 +6169,16 @@
"type": "object",
"required": ["item", "document_id", "type"],
"properties": {
- "document_id": { "type": "string" },
- "item": { "$ref": "#/components/schemas/FolderItem" },
- "type": { "type": "string", "enum": ["file"] }
+ "document_id": {
+ "type": "string"
+ },
+ "item": {
+ "$ref": "#/components/schemas/FolderItem"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["file"]
+ }
}
},
{
@@ -5406,10 +6190,17 @@
"additionalProperties": {
"$ref": "#/components/schemas/FileSystemNodeWithIds"
},
- "propertyNames": { "type": "string" }
+ "propertyNames": {
+ "type": "string"
+ }
+ },
+ "project_id": {
+ "type": "string"
},
- "project_id": { "type": "string" },
- "type": { "type": "string", "enum": ["folder"] }
+ "type": {
+ "type": "string",
+ "enum": ["folder"]
+ }
}
}
]
@@ -5848,7 +6639,9 @@
"properties": {
"fileType": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/FileType",
"description": "The file type of the file"
@@ -5867,7 +6660,10 @@
"type": "string",
"description": "The relative path of the file.\n\nThis is the `webkitRelativePath` with the name of the file stripped at the end."
},
- "sha": { "type": "string", "description": "The sha of the file." }
+ "sha": {
+ "type": "string",
+ "description": "The sha of the file."
+ }
}
},
"GenericErrorResponse": {
@@ -5888,7 +6684,9 @@
"type": "object",
"required": ["error"],
"properties": {
- "data": { "description": "Data to be returned" },
+ "data": {
+ "description": "Data to be returned"
+ },
"error": {
"type": "boolean",
"description": "Indicates if an error occurred"
@@ -5915,7 +6713,9 @@
"properties": {
"data": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UserActivitiesResponse",
"description": "Data to be returned"
@@ -5933,7 +6733,12 @@
"type": "object",
"required": ["document_ids"],
"properties": {
- "document_ids": { "type": "array", "items": { "type": "string" } }
+ "document_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetBatchPreviewResponse": {
@@ -5942,7 +6747,9 @@
"properties": {
"previews": {
"type": "array",
- "items": { "$ref": "#/components/schemas/DocumentPreview" }
+ "items": {
+ "$ref": "#/components/schemas/DocumentPreview"
+ }
}
}
},
@@ -5950,7 +6757,12 @@
"type": "object",
"required": ["projectIds"],
"properties": {
- "projectIds": { "type": "array", "items": { "type": "string" } }
+ "projectIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetBatchProjectPreviewResponse": {
@@ -5959,7 +6771,9 @@
"properties": {
"previews": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ProjectPreview" }
+ "items": {
+ "$ref": "#/components/schemas/ProjectPreview"
+ }
}
}
},
@@ -5981,7 +6795,10 @@
"type": "object",
"required": ["key"],
"properties": {
- "key": { "type": "string", "description": "The key of the document" }
+ "key": {
+ "type": "string",
+ "description": "The key of the document"
+ }
}
},
"GetDocumentListResult": {
@@ -6062,7 +6879,9 @@
"properties": {
"data": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/GetDocumentProcessingResult",
"description": "Data to be returned"
@@ -6117,7 +6936,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/GetDocumentListResult" },
+ "items": {
+ "$ref": "#/components/schemas/GetDocumentListResult"
+ },
"description": "Data to be returned"
},
"error": {
@@ -6142,7 +6963,9 @@
"properties": {
"data": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UserDocumentsResponse",
"description": "Data to be returned"
@@ -6162,7 +6985,11 @@
"GetInstructionsDocumentResponse": {
"type": "object",
"required": ["documentId"],
- "properties": { "documentId": { "type": "string" } }
+ "properties": {
+ "documentId": {
+ "type": "string"
+ }
+ }
},
"GetPinsResponse": {
"type": "object",
@@ -6170,7 +6997,9 @@
"properties": {
"data": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UserPinsResponse",
"description": "Data to be returned"
@@ -6189,7 +7018,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ItemWithUserAccessLevel" },
+ "items": {
+ "$ref": "#/components/schemas/ItemWithUserAccessLevel"
+ },
"description": "DSS Items inside of a given project with their user access level attached to each item"
},
"error": {
@@ -6232,7 +7063,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Project" },
+ "items": {
+ "$ref": "#/components/schemas/Project"
+ },
"description": "Data to be returned"
},
"error": {
@@ -6247,7 +7080,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Item" },
+ "items": {
+ "$ref": "#/components/schemas/Item"
+ },
"description": "Data to be returned"
},
"error": {
@@ -6262,38 +7097,59 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/PresignedUrl" },
+ {
+ "$ref": "#/components/schemas/PresignedUrl"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["external"] }
+ "type": {
+ "type": "string",
+ "enum": ["external"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/S3ObjectInfo" },
+ {
+ "$ref": "#/components/schemas/S3ObjectInfo"
+ },
{
"type": "object",
"required": ["type"],
"properties": {
- "type": { "type": "string", "enum": ["internal"] }
+ "type": {
+ "type": "string",
+ "enum": ["internal"]
+ }
}
}
]
}
]
},
- "propertyNames": { "type": "string" }
+ "propertyNames": {
+ "type": "string"
+ }
+ },
+ "HighlightType": {
+ "type": "integer",
+ "enum": [1, 2, 3]
},
- "HighlightType": { "type": "integer", "enum": [1, 2, 3] },
"Item": {
"oneOf": [
- { "$ref": "#/components/schemas/BasicDocument" },
- { "$ref": "#/components/schemas/Chat" },
- { "$ref": "#/components/schemas/Project" }
+ {
+ "$ref": "#/components/schemas/BasicDocument"
+ },
+ {
+ "$ref": "#/components/schemas/Chat"
+ },
+ {
+ "$ref": "#/components/schemas/Project"
+ }
],
"discriminator": {
"propertyName": "type",
@@ -6308,8 +7164,12 @@
"type": "object",
"required": ["item", "userAccessLevel"],
"properties": {
- "item": { "$ref": "#/components/schemas/Item" },
- "userAccessLevel": { "$ref": "#/components/schemas/AccessLevel" }
+ "item": {
+ "$ref": "#/components/schemas/Item"
+ },
+ "userAccessLevel": {
+ "$ref": "#/components/schemas/AccessLevel"
+ }
}
},
"LatestMessage": {
@@ -6317,14 +7177,22 @@
"properties": {
"latest_message": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ChannelMessage" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ChannelMessage"
+ }
]
},
"latest_non_thread_message": {
"oneOf": [
- { "type": "null" },
- { "$ref": "#/components/schemas/ChannelMessage" }
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/ChannelMessage"
+ }
]
}
}
@@ -6349,7 +7217,9 @@
"properties": {
"presignedUrls": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PresignedUrl" },
+ "items": {
+ "$ref": "#/components/schemas/PresignedUrl"
+ },
"description": "The presigned urls of the docx bom parts if it is a docx"
}
}
@@ -6371,7 +7241,9 @@
},
"sort_method": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/SoupApiSort",
"description": "Sort method. Options are viewed_at, created_at, updated_at, viewed_updated. Defaults to viewed_at."
@@ -6397,7 +7269,9 @@
},
"sharePermission": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UpdateSharePermissionRequestV2",
"description": "The share permissions for the project."
@@ -6415,7 +7289,9 @@
},
"sharePermission": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/UpdateSharePermissionRequestV2",
"description": "The share permissions for the thread."
@@ -6428,24 +7304,34 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/PdfPlaceableCommentAnchor" },
+ {
+ "$ref": "#/components/schemas/PdfPlaceableCommentAnchor"
+ },
{
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["placeable"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["placeable"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/PdfHighlightAnchor" },
+ {
+ "$ref": "#/components/schemas/PdfHighlightAnchor"
+ },
{
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["highlight"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["highlight"]
+ }
}
}
]
@@ -6458,16 +7344,28 @@
"type": "object",
"required": ["uuid", "anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["free-comment"] },
- "uuid": { "type": "string", "format": "uuid" }
+ "anchorType": {
+ "type": "string",
+ "enum": ["free-comment"]
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
{
"type": "object",
"required": ["uuid", "anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["highlight"] },
- "uuid": { "type": "string", "format": "uuid" }
+ "anchorType": {
+ "type": "string",
+ "enum": ["highlight"]
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
]
@@ -6483,31 +7381,44 @@
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["free-comment"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["free-comment"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/PdfHighlightAnchorRequest" },
+ {
+ "$ref": "#/components/schemas/PdfHighlightAnchorRequest"
+ },
{
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["highlight"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["highlight"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/UnthreadedPdfUuidRequest" },
+ {
+ "$ref": "#/components/schemas/UnthreadedPdfUuidRequest"
+ },
{
"type": "object",
"required": ["anchorType"],
"properties": {
- "anchorType": { "type": "string", "enum": ["attachment"] }
+ "anchorType": {
+ "type": "string",
+ "enum": ["attachment"]
+ }
}
}
]
@@ -6535,26 +7446,72 @@
"highlightRects"
],
"properties": {
- "alpha": { "type": "number", "format": "double" },
- "blue": { "type": "integer", "format": "int32" },
- "createdAt": { "type": "integer", "format": "int64" },
- "deletedAt": { "type": ["integer", "null"], "format": "int64" },
- "documentId": { "type": "string" },
- "green": { "type": "integer", "format": "int32" },
+ "alpha": {
+ "type": "number",
+ "format": "double"
+ },
+ "blue": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deletedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "documentId": {
+ "type": "string"
+ },
+ "green": {
+ "type": "integer",
+ "format": "int32"
+ },
"highlightRects": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PdfHighlightRect" }
+ "items": {
+ "$ref": "#/components/schemas/PdfHighlightRect"
+ }
+ },
+ "highlightType": {
+ "$ref": "#/components/schemas/HighlightType"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "pageViewportHeight": {
+ "type": "number",
+ "format": "double"
+ },
+ "pageViewportWidth": {
+ "type": "number",
+ "format": "double"
+ },
+ "red": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "text": {
+ "type": "string"
+ },
+ "threadId": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
},
- "highlightType": { "$ref": "#/components/schemas/HighlightType" },
- "owner": { "type": "string" },
- "page": { "type": "integer", "format": "int32" },
- "pageViewportHeight": { "type": "number", "format": "double" },
- "pageViewportWidth": { "type": "number", "format": "double" },
- "red": { "type": "integer", "format": "int32" },
- "text": { "type": "string" },
- "threadId": { "type": ["integer", "null"], "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" },
- "uuid": { "type": "string", "format": "uuid" }
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"PdfHighlightAnchorRequest": {
@@ -6572,43 +7529,98 @@
"highlightRects"
],
"properties": {
- "alpha": { "type": "number", "format": "double" },
- "blue": { "type": "integer", "format": "int32" },
- "green": { "type": "integer", "format": "int32" },
+ "alpha": {
+ "type": "number",
+ "format": "double"
+ },
+ "blue": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "green": {
+ "type": "integer",
+ "format": "int32"
+ },
"highlightRects": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PdfHighlightRectAnchorRequest"
}
},
- "highlightType": { "$ref": "#/components/schemas/HighlightType" },
- "page": { "type": "integer", "format": "int32" },
- "pageViewportHeight": { "type": "number", "format": "double" },
- "pageViewportWidth": { "type": "number", "format": "double" },
- "red": { "type": "integer", "format": "int32" },
- "text": { "type": "string" },
- "uuid": { "type": ["string", "null"], "format": "uuid" }
+ "highlightType": {
+ "$ref": "#/components/schemas/HighlightType"
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "pageViewportHeight": {
+ "type": "number",
+ "format": "double"
+ },
+ "pageViewportWidth": {
+ "type": "number",
+ "format": "double"
+ },
+ "red": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "text": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ }
}
},
"PdfHighlightRect": {
"type": "object",
"required": ["id", "top", "left", "width", "height"],
"properties": {
- "height": { "type": "number", "format": "double" },
- "id": { "type": "integer", "format": "int64" },
- "left": { "type": "number", "format": "double" },
- "top": { "type": "number", "format": "double" },
- "width": { "type": "number", "format": "double" }
+ "height": {
+ "type": "number",
+ "format": "double"
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "left": {
+ "type": "number",
+ "format": "double"
+ },
+ "top": {
+ "type": "number",
+ "format": "double"
+ },
+ "width": {
+ "type": "number",
+ "format": "double"
+ }
}
},
"PdfHighlightRectAnchorRequest": {
"type": "object",
"required": ["top", "left", "width", "height"],
"properties": {
- "height": { "type": "number", "format": "double" },
- "left": { "type": "number", "format": "double" },
- "top": { "type": "number", "format": "double" },
- "width": { "type": "number", "format": "double" }
+ "height": {
+ "type": "number",
+ "format": "double"
+ },
+ "left": {
+ "type": "number",
+ "format": "double"
+ },
+ "top": {
+ "type": "number",
+ "format": "double"
+ },
+ "width": {
+ "type": "number",
+ "format": "double"
+ }
}
},
"PdfPlaceableCommentAnchor": {
@@ -6632,24 +7644,64 @@
],
"properties": {
"allowableEdits": {},
- "documentId": { "type": "string" },
- "heightPct": { "type": "number", "format": "double" },
- "originalIndex": { "type": "integer", "format": "int32" },
- "originalPage": { "type": "integer", "format": "int32" },
- "owner": { "type": "string" },
- "page": { "type": "integer", "format": "int32" },
- "rotation": { "type": "number", "format": "double" },
- "shouldLockOnSave": { "type": "boolean" },
- "threadId": { "type": "integer", "format": "int64" },
- "uuid": { "type": "string", "format": "uuid" },
- "wasDeleted": { "type": "boolean" },
- "wasEdited": { "type": "boolean" },
- "widthPct": { "type": "number", "format": "double" },
- "xPct": { "type": "number", "format": "double" },
- "yPct": { "type": "number", "format": "double" }
- }
- },
- "PdfPlaceableCommentAnchorRequest": {
+ "documentId": {
+ "type": "string"
+ },
+ "heightPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "originalIndex": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "originalPage": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "rotation": {
+ "type": "number",
+ "format": "double"
+ },
+ "shouldLockOnSave": {
+ "type": "boolean"
+ },
+ "threadId": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "wasDeleted": {
+ "type": "boolean"
+ },
+ "wasEdited": {
+ "type": "boolean"
+ },
+ "widthPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "xPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "yPct": {
+ "type": "number",
+ "format": "double"
+ }
+ }
+ },
+ "PdfPlaceableCommentAnchorRequest": {
"type": "object",
"required": [
"page",
@@ -6666,25 +7718,61 @@
],
"properties": {
"allowableEdits": {},
- "heightPct": { "type": "number", "format": "double" },
- "originalIndex": { "type": "integer", "format": "int32" },
- "originalPage": { "type": "integer", "format": "int32" },
- "page": { "type": "integer", "format": "int32" },
- "rotation": { "type": "number", "format": "double" },
- "shouldLockOnSave": { "type": "boolean" },
- "uuid": { "type": ["string", "null"], "format": "uuid" },
- "wasDeleted": { "type": "boolean" },
- "wasEdited": { "type": "boolean" },
- "widthPct": { "type": "number", "format": "double" },
- "xPct": { "type": "number", "format": "double" },
- "yPct": { "type": "number", "format": "double" }
+ "heightPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "originalIndex": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "originalPage": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "rotation": {
+ "type": "number",
+ "format": "double"
+ },
+ "shouldLockOnSave": {
+ "type": "boolean"
+ },
+ "uuid": {
+ "type": ["string", "null"],
+ "format": "uuid"
+ },
+ "wasDeleted": {
+ "type": "boolean"
+ },
+ "wasEdited": {
+ "type": "boolean"
+ },
+ "widthPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "xPct": {
+ "type": "number",
+ "format": "double"
+ },
+ "yPct": {
+ "type": "number",
+ "format": "double"
+ }
}
},
"PinRequest": {
"type": "object",
"required": ["pinType"],
"properties": {
- "pinType": { "type": "string", "description": "The type of the pin" }
+ "pinType": {
+ "type": "string",
+ "description": "The type of the pin"
+ }
}
},
"PinnedItem": {
@@ -6708,8 +7796,12 @@
},
"PostSoupRequest": {
"allOf": [
- { "$ref": "#/components/schemas/EntityFilters" },
- { "$ref": "#/components/schemas/Params" },
+ {
+ "$ref": "#/components/schemas/EntityFilters"
+ },
+ {
+ "$ref": "#/components/schemas/Params"
+ },
{
"type": "object",
"properties": {
@@ -6727,7 +7819,9 @@
"properties": {
"newBom": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SaveBomPart" },
+ "items": {
+ "$ref": "#/components/schemas/SaveBomPart"
+ },
"description": "The updated BOM for the document\nContaining the file path and the sha"
}
}
@@ -6752,7 +7846,9 @@
"properties": {
"presignedUrls": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PresignedUrl" },
+ "items": {
+ "$ref": "#/components/schemas/PresignedUrl"
+ },
"description": "Contains any presigned urls you need to upload specific bom parts with."
}
}
@@ -6765,7 +7861,10 @@
"type": "string",
"description": "The presigned url used to upload the sha"
},
- "sha": { "type": "string", "description": "The sha of the item" }
+ "sha": {
+ "type": "string",
+ "description": "The sha of the item"
+ }
}
},
"Project": {
@@ -6784,8 +7883,14 @@
"format": "int64",
"description": "The time the project was created"
},
- "deletedAt": { "type": ["integer", "null"], "format": "int64" },
- "id": { "type": "string", "description": "The id of the project" },
+ "deletedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "id": {
+ "type": "string",
+ "description": "The id of the project"
+ },
"name": {
"type": "string",
"description": "The name of the project"
@@ -6811,17 +7916,23 @@
"properties": {
"chat_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the chats that were marked as deleted"
},
"document_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the documents that were marked as deleted"
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "The ids of the project that were marked as deleted"
}
}
@@ -6830,8 +7941,12 @@
"type": "object",
"required": ["documentId", "status"],
"properties": {
- "documentId": { "type": "string" },
- "status": { "$ref": "#/components/schemas/UploadDocumentStatus" }
+ "documentId": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/components/schemas/UploadDocumentStatus"
+ }
}
},
"ProjectFilters": {
@@ -6840,12 +7955,16 @@
"properties": {
"owners": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Filter by project owner. Examples: ['macro|[email protected]'], ['macro|[email protected]', 'macro|[email protected]']. Empty to search all owners."
},
"project_ids": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "Project IDs to search within. Examples: ['project1']. Empty to search all accessible projects."
}
}
@@ -6854,36 +7973,51 @@
"oneOf": [
{
"allOf": [
- { "$ref": "#/components/schemas/ProjectPreviewData" },
+ {
+ "$ref": "#/components/schemas/ProjectPreviewData"
+ },
{
"type": "object",
"required": ["access"],
"properties": {
- "access": { "type": "string", "enum": ["access"] }
+ "access": {
+ "type": "string",
+ "enum": ["access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithProjectId" },
+ {
+ "$ref": "#/components/schemas/WithProjectId"
+ },
{
"type": "object",
"required": ["access"],
"properties": {
- "access": { "type": "string", "enum": ["no_access"] }
+ "access": {
+ "type": "string",
+ "enum": ["no_access"]
+ }
}
}
]
},
{
"allOf": [
- { "$ref": "#/components/schemas/WithProjectId" },
+ {
+ "$ref": "#/components/schemas/WithProjectId"
+ },
{
"type": "object",
"required": ["access"],
"properties": {
- "access": { "type": "string", "enum": ["does_not_exist"] }
+ "access": {
+ "type": "string",
+ "enum": ["does_not_exist"]
+ }
}
}
]
@@ -6894,11 +8028,25 @@
"type": "object",
"required": ["id", "name", "owner", "path", "updatedAt"],
"properties": {
- "id": { "type": "string" },
- "name": { "type": "string" },
- "owner": { "type": "string" },
- "path": { "type": "array", "items": { "type": "string" } },
- "updatedAt": { "type": "integer", "format": "int64" }
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "path": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"PropertyInput": {
@@ -6922,7 +8070,9 @@
"properties": {
"items": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Item" },
+ "items": {
+ "$ref": "#/components/schemas/Item"
+ },
"description": "The items returned from the call"
}
}
@@ -6950,8 +8100,12 @@
"type": "object",
"required": ["bucket", "key"],
"properties": {
- "bucket": { "type": "string" },
- "key": { "type": "string" }
+ "bucket": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ }
}
},
"SaveBomPart": {
@@ -6976,7 +8130,9 @@
},
"newBom": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/SaveBomPart" },
+ "items": {
+ "$ref": "#/components/schemas/SaveBomPart"
+ },
"description": "**DOCX ONLY**\nThe updated BOM for the document.\nContaining the file path and the sha."
},
"sha": {
@@ -7020,8 +8176,13 @@
"description": "Boolean true/false value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["boolean"] },
- "value": { "type": "boolean" }
+ "type": {
+ "type": "string",
+ "enum": ["boolean"]
+ },
+ "value": {
+ "type": "boolean"
+ }
}
},
{
@@ -7029,8 +8190,14 @@
"description": "Date and time value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["date"] },
- "value": { "type": "string", "format": "date-time" }
+ "type": {
+ "type": "string",
+ "enum": ["date"]
+ },
+ "value": {
+ "type": "string",
+ "format": "date-time"
+ }
}
},
{
@@ -7038,8 +8205,14 @@
"description": "Numeric value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["number"] },
- "value": { "type": "number", "format": "double" }
+ "type": {
+ "type": "string",
+ "enum": ["number"]
+ },
+ "value": {
+ "type": "number",
+ "format": "double"
+ }
}
},
{
@@ -7047,8 +8220,13 @@
"description": "String/text value",
"required": ["value", "type"],
"properties": {
- "type": { "type": "string", "enum": ["string"] },
- "value": { "type": "string" }
+ "type": {
+ "type": "string",
+ "enum": ["string"]
+ },
+ "value": {
+ "type": "string"
+ }
}
},
{
@@ -7056,8 +8234,14 @@
"description": "Select option by ID (for select-type properties)",
"required": ["option_id", "type"],
"properties": {
- "option_id": { "type": "string", "format": "uuid" },
- "type": { "type": "string", "enum": ["select_option"] }
+ "option_id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["select_option"]
+ }
}
},
{
@@ -7067,9 +8251,15 @@
"properties": {
"option_ids": {
"type": "array",
- "items": { "type": "string", "format": "uuid" }
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
},
- "type": { "type": "string", "enum": ["multi_select_option"] }
+ "type": {
+ "type": "string",
+ "enum": ["multi_select_option"]
+ }
}
},
{
@@ -7077,8 +8267,13 @@
"description": "Entity reference",
"required": ["reference", "type"],
"properties": {
- "reference": { "$ref": "#/components/schemas/EntityReference" },
- "type": { "type": "string", "enum": ["entity_reference"] }
+ "reference": {
+ "$ref": "#/components/schemas/EntityReference"
+ },
+ "type": {
+ "type": "string",
+ "enum": ["entity_reference"]
+ }
}
},
{
@@ -7088,9 +8283,14 @@
"properties": {
"references": {
"type": "array",
- "items": { "$ref": "#/components/schemas/EntityReference" }
+ "items": {
+ "$ref": "#/components/schemas/EntityReference"
+ }
},
- "type": { "type": "string", "enum": ["multi_entity_reference"] }
+ "type": {
+ "type": "string",
+ "enum": ["multi_entity_reference"]
+ }
}
},
{
@@ -7098,8 +8298,13 @@
"description": "Link value",
"required": ["url", "type"],
"properties": {
- "type": { "type": "string", "enum": ["link"] },
- "url": { "type": "string" }
+ "type": {
+ "type": "string",
+ "enum": ["link"]
+ },
+ "url": {
+ "type": "string"
+ }
}
},
{
@@ -7107,8 +8312,16 @@
"description": "Multiple link values (for multi-select link properties)",
"required": ["urls", "type"],
"properties": {
- "type": { "type": "string", "enum": ["multi_link"] },
- "urls": { "type": "array", "items": { "type": "string" } }
+ "type": {
+ "type": "string",
+ "enum": ["multi_link"]
+ },
+ "urls": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
}
],
@@ -7120,18 +8333,28 @@
"properties": {
"channelSharePermissions": {
"type": ["array", "null"],
- "items": { "$ref": "#/components/schemas/ChannelSharePermission" },
+ "items": {
+ "$ref": "#/components/schemas/ChannelSharePermission"
+ },
"description": "The channel share permissions for the item"
},
- "id": { "type": "string", "description": "The share permission id" },
+ "id": {
+ "type": "string",
+ "description": "The share permission id"
+ },
"isPublic": {
"type": "boolean",
"description": "If the item is publicly accessible"
},
- "owner": { "type": "string", "description": "The owner of the item" },
+ "owner": {
+ "type": "string",
+ "description": "The owner of the item"
+ },
"publicAccessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The level of public access"
@@ -7142,12 +8365,17 @@
},
"SoupApiItem": {
"allOf": [
- { "$ref": "#/components/schemas/SoupItem" },
+ {
+ "$ref": "#/components/schemas/SoupItem"
+ },
{
"type": "object",
"required": ["frecency_score"],
"properties": {
- "frecency_score": { "type": "number", "format": "double" }
+ "frecency_score": {
+ "type": "number",
+ "format": "double"
+ }
}
}
]
@@ -7166,20 +8394,44 @@
"type": "object",
"required": ["id", "messageId", "createdAt"],
"properties": {
- "contentId": { "type": ["string", "null"] },
- "createdAt": { "type": "integer", "format": "int64" },
- "filename": { "type": ["string", "null"] },
- "id": { "type": "string", "format": "uuid" },
- "messageId": { "type": "string", "format": "uuid" },
- "mimeType": { "type": ["string", "null"] },
- "providerAttachmentId": { "type": ["string", "null"] },
- "sizeBytes": { "type": ["integer", "null"], "format": "int64" }
+ "contentId": {
+ "type": ["string", "null"]
+ },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "filename": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "messageId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "mimeType": {
+ "type": ["string", "null"]
+ },
+ "providerAttachmentId": {
+ "type": ["string", "null"]
+ },
+ "sizeBytes": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"SoupChannel": {
"allOf": [
- { "$ref": "#/components/schemas/ChannelWithParticipants" },
- { "$ref": "#/components/schemas/LatestMessage" },
+ {
+ "$ref": "#/components/schemas/ChannelWithParticipants"
+ },
+ {
+ "$ref": "#/components/schemas/LatestMessage"
+ },
{
"type": "object",
"properties": {
@@ -7187,7 +8439,10 @@
"type": ["string", "null"],
"format": "date-time"
},
- "viewed_at": { "type": ["string", "null"], "format": "date-time" }
+ "viewed_at": {
+ "type": ["string", "null"],
+ "format": "date-time"
+ }
}
}
]
@@ -7218,7 +8473,10 @@
"type": "boolean",
"description": "Whether the chat is persistent or not"
},
- "name": { "type": "string", "description": "The name of the chat" },
+ "name": {
+ "type": "string",
+ "description": "The name of the chat"
+ },
"ownerId": {
"type": "string",
"description": "Who the chat belongs to"
@@ -7244,11 +8502,23 @@
"type": "object",
"required": ["id", "linkId"],
"properties": {
- "emailAddress": { "type": ["string", "null"] },
- "id": { "type": "string", "format": "uuid" },
- "linkId": { "type": "string", "format": "uuid" },
- "name": { "type": ["string", "null"] },
- "sfsPhotoUrl": { "type": ["string", "null"] }
+ "emailAddress": {
+ "type": ["string", "null"]
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "linkId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "sfsPhotoUrl": {
+ "type": ["string", "null"]
+ }
}
},
"SoupDocument": {
@@ -7316,7 +8586,9 @@
},
"subType": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/SoupDocumentSubType",
"description": "The sub type of the document if present.\nTask-related properties are encoded within the variant."
@@ -7346,7 +8618,10 @@
"type": "boolean",
"description": "Whether the task is completed.\nTrue if the Status property is set to \"Completed\"."
},
- "type": { "type": "string", "enum": ["task"] }
+ "type": {
+ "type": "string",
+ "enum": ["task"]
+ }
}
}
],
@@ -7367,22 +8642,59 @@
"viewedAt"
],
"properties": {
- "createdAt": { "type": "integer", "format": "int64" },
- "id": { "type": "string", "format": "uuid" },
- "inboxVisible": { "type": "boolean" },
- "isDraft": { "type": "boolean" },
- "isImportant": { "type": "boolean" },
- "isRead": { "type": "boolean" },
- "name": { "type": ["string", "null"] },
- "ownerId": { "type": "string" },
- "providerId": { "type": ["string", "null"] },
- "senderEmail": { "type": ["string", "null"] },
- "senderName": { "type": ["string", "null"] },
- "senderPhotoUrl": { "type": ["string", "null"] },
- "snippet": { "type": ["string", "null"] },
- "sortTs": { "type": "integer", "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" },
- "viewedAt": { "type": ["integer", "null"], "format": "int64" }
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "inboxVisible": {
+ "type": "boolean"
+ },
+ "isDraft": {
+ "type": "boolean"
+ },
+ "isImportant": {
+ "type": "boolean"
+ },
+ "isRead": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": ["string", "null"]
+ },
+ "ownerId": {
+ "type": "string"
+ },
+ "providerId": {
+ "type": ["string", "null"]
+ },
+ "senderEmail": {
+ "type": ["string", "null"]
+ },
+ "senderName": {
+ "type": ["string", "null"]
+ },
+ "senderPhotoUrl": {
+ "type": ["string", "null"]
+ },
+ "snippet": {
+ "type": ["string", "null"]
+ },
+ "sortTs": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "viewedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ }
}
},
"SoupEmailThreadPreviewMetadata": {
@@ -7414,7 +8726,9 @@
},
"SoupEnrichedEmailThreadPreview": {
"allOf": [
- { "$ref": "#/components/schemas/SoupEmailThreadPreview" },
+ {
+ "$ref": "#/components/schemas/SoupEmailThreadPreview"
+ },
{
"type": "object",
"required": [
@@ -7427,22 +8741,30 @@
"properties": {
"attachments": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SoupAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/SoupAttachment"
+ }
},
"attachmentsMacro": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SoupMacroAttachment" }
+ "items": {
+ "$ref": "#/components/schemas/SoupMacroAttachment"
+ }
},
"labels": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SoupLabel" }
+ "items": {
+ "$ref": "#/components/schemas/SoupLabel"
+ }
},
"metadata": {
"$ref": "#/components/schemas/SoupEmailThreadPreviewMetadata"
},
"participants": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SoupContact" }
+ "items": {
+ "$ref": "#/components/schemas/SoupContact"
+ }
}
}
}
@@ -7454,24 +8776,39 @@
"type": "object",
"required": ["data", "tag"],
"properties": {
- "data": { "$ref": "#/components/schemas/SoupDocument" },
- "tag": { "type": "string", "enum": ["document"] }
+ "data": {
+ "$ref": "#/components/schemas/SoupDocument"
+ },
+ "tag": {
+ "type": "string",
+ "enum": ["document"]
+ }
}
},
{
"type": "object",
"required": ["data", "tag"],
"properties": {
- "data": { "$ref": "#/components/schemas/SoupChat" },
- "tag": { "type": "string", "enum": ["chat"] }
+ "data": {
+ "$ref": "#/components/schemas/SoupChat"
+ },
+ "tag": {
+ "type": "string",
+ "enum": ["chat"]
+ }
}
},
{
"type": "object",
"required": ["data", "tag"],
"properties": {
- "data": { "$ref": "#/components/schemas/SoupProject" },
- "tag": { "type": "string", "enum": ["project"] }
+ "data": {
+ "$ref": "#/components/schemas/SoupProject"
+ },
+ "tag": {
+ "type": "string",
+ "enum": ["project"]
+ }
}
},
{
@@ -7481,15 +8818,23 @@
"data": {
"$ref": "#/components/schemas/SoupEnrichedEmailThreadPreview"
},
- "tag": { "type": "string", "enum": ["emailThread"] }
+ "tag": {
+ "type": "string",
+ "enum": ["emailThread"]
+ }
}
},
{
"type": "object",
"required": ["data", "tag"],
"properties": {
- "data": { "$ref": "#/components/schemas/SoupChannel" },
- "tag": { "type": "string", "enum": ["channel"] }
+ "data": {
+ "$ref": "#/components/schemas/SoupChannel"
+ },
+ "tag": {
+ "type": "string",
+ "enum": ["channel"]
+ }
}
}
]
@@ -7507,34 +8852,66 @@
"type"
],
"properties": {
- "createdAt": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
"labelListVisibility": {
"$ref": "#/components/schemas/SoupLabelListVisibility"
},
- "linkId": { "type": "string", "format": "uuid" },
+ "linkId": {
+ "type": "string",
+ "format": "uuid"
+ },
"messageListVisibility": {
"$ref": "#/components/schemas/SoupMessageListVisibility"
},
- "name": { "type": "string" },
- "providerLabelId": { "type": "string" },
- "type": { "$ref": "#/components/schemas/SoupLabelType" }
+ "name": {
+ "type": "string"
+ },
+ "providerLabelId": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/components/schemas/SoupLabelType"
+ }
}
},
"SoupLabelListVisibility": {
"type": "string",
"enum": ["labelShow", "labelShowIfUnread", "labelHide"]
},
- "SoupLabelType": { "type": "string", "enum": ["system", "user"] },
+ "SoupLabelType": {
+ "type": "string",
+ "enum": ["system", "user"]
+ },
"SoupMacroAttachment": {
"type": "object",
"required": ["threadId", "dbId", "messageId", "itemId", "itemType"],
"properties": {
- "dbId": { "type": "string", "format": "uuid" },
- "itemId": { "type": "string", "format": "uuid" },
- "itemType": { "type": "string" },
- "messageId": { "type": "string", "format": "uuid" },
- "threadId": { "type": "string", "format": "uuid" }
+ "dbId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "itemId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "itemType": {
+ "type": "string"
+ },
+ "messageId": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "threadId": {
+ "type": "string",
+ "format": "uuid"
+ }
}
},
"SoupMessageListVisibility": {
@@ -7547,9 +8924,13 @@
"properties": {
"items": {
"type": "array",
- "items": { "$ref": "#/components/schemas/SoupApiItem" }
+ "items": {
+ "$ref": "#/components/schemas/SoupApiItem"
+ }
},
- "next_cursor": { "type": ["string", "null"] }
+ "next_cursor": {
+ "type": ["string", "null"]
+ }
}
},
"SoupProject": {
@@ -7616,8 +8997,13 @@
"type": "object",
"required": ["peer", "counter"],
"properties": {
- "counter": { "type": "integer", "format": "int32" },
- "peer": { "type": "string" }
+ "counter": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "peer": {
+ "type": "string"
+ }
}
},
"Thread": {
@@ -7632,14 +9018,32 @@
"deletedAt"
],
"properties": {
- "createdAt": { "type": "integer", "format": "int64" },
- "deletedAt": { "type": ["integer", "null"], "format": "int64" },
- "documentId": { "type": "string" },
+ "createdAt": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "deletedAt": {
+ "type": ["integer", "null"],
+ "format": "int64"
+ },
+ "documentId": {
+ "type": "string"
+ },
"metadata": {},
- "owner": { "type": "string" },
- "resolved": { "type": "boolean" },
- "threadId": { "type": "integer", "format": "int64" },
- "updatedAt": { "type": "integer", "format": "int64" }
+ "owner": {
+ "type": "string"
+ },
+ "resolved": {
+ "type": "boolean"
+ },
+ "threadId": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "updatedAt": {
+ "type": "integer",
+ "format": "int64"
+ }
}
},
"ThreadResponse": {
@@ -7648,7 +9052,9 @@
"properties": {
"data": {
"type": "array",
- "items": { "$ref": "#/components/schemas/CommentThread" }
+ "items": {
+ "$ref": "#/components/schemas/CommentThread"
+ }
}
}
},
@@ -7664,7 +9070,9 @@
"properties": {
"items": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Item" },
+ "items": {
+ "$ref": "#/components/schemas/Item"
+ },
"description": "The items returned from the call"
}
}
@@ -7684,8 +9092,14 @@
"type": "object",
"required": ["uuid", "attachmentType"],
"properties": {
- "attachmentType": { "type": "string", "enum": ["highlight"] },
- "uuid": { "type": "string", "format": "uuid" }
+ "attachmentType": {
+ "type": "string",
+ "enum": ["highlight"]
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid"
+ }
}
}
]
@@ -7696,14 +9110,19 @@
"properties": {
"accessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The access level for the channel\nThis is required if the operation is add or replace"
}
]
},
- "channelId": { "type": "string", "description": "The channel id" },
+ "channelId": {
+ "type": "string",
+ "description": "The channel id"
+ },
"operation": {
"$ref": "#/components/schemas/UpdateOperation",
"description": "The type of operation to be performed on the chanel share permission\nYou can add, remove or replace and existing permission"
@@ -7730,7 +9149,9 @@
},
"publicAccessLevel": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"$ref": "#/components/schemas/AccessLevel",
"description": "The level of public access"
@@ -7748,9 +9169,15 @@
"type": "object",
"required": ["sha"],
"properties": {
- "name": { "type": ["string", "null"] },
- "parentId": { "type": ["string", "null"] },
- "sha": { "type": "string" }
+ "name": {
+ "type": ["string", "null"]
+ },
+ "parentId": {
+ "type": ["string", "null"]
+ },
+ "sha": {
+ "type": "string"
+ }
}
},
"UploadFolderRequest": {
@@ -7759,7 +9186,9 @@
"properties": {
"content": {
"type": "array",
- "items": { "$ref": "#/components/schemas/FolderItem" },
+ "items": {
+ "$ref": "#/components/schemas/FolderItem"
+ },
"description": "The content of the folder"
},
"parentId": {
@@ -7779,7 +9208,11 @@
"UpsertUserDocumentViewLocationRequest": {
"type": "object",
"required": ["location"],
- "properties": { "location": { "type": "string" } }
+ "properties": {
+ "location": {
+ "type": "string"
+ }
+ }
},
"UpsertUserMentionsRequest": {
"type": "object",
@@ -7787,7 +9220,9 @@
"properties": {
"mentions": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "List of user ids that are mentioned for this notification"
},
"metadata": {
@@ -7806,7 +9241,9 @@
},
"recent": {
"type": "array",
- "items": { "$ref": "#/components/schemas/Activity" },
+ "items": {
+ "$ref": "#/components/schemas/Activity"
+ },
"description": "The activities returned from the query"
},
"total": {
@@ -7822,14 +9259,24 @@
"description": "The last place a user viewed a particular document at",
"required": ["user_id", "document_id", "location"],
"properties": {
- "document_id": { "type": "string" },
- "location": { "type": "string" },
- "user_id": { "type": "string" }
+ "document_id": {
+ "type": "string"
+ },
+ "location": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "string"
+ }
}
},
"UserDocumentViewLocationResponse": {
"type": "object",
- "properties": { "location": { "type": ["string", "null"] } }
+ "properties": {
+ "location": {
+ "type": ["string", "null"]
+ }
+ }
},
"UserDocumentsResponse": {
"type": "object",
@@ -7837,7 +9284,9 @@
"properties": {
"documents": {
"type": "array",
- "items": { "$ref": "#/components/schemas/DocumentMetadata" }
+ "items": {
+ "$ref": "#/components/schemas/DocumentMetadata"
+ }
},
"next_offset": {
"type": ["integer", "null"],
@@ -7857,7 +9306,9 @@
"properties": {
"recent": {
"type": "array",
- "items": { "$ref": "#/components/schemas/PinnedItem" },
+ "items": {
+ "$ref": "#/components/schemas/PinnedItem"
+ },
"description": "The pins returned from the query"
}
}
@@ -7873,7 +9324,9 @@
},
"users": {
"type": "array",
- "items": { "type": "string" },
+ "items": {
+ "type": "string"
+ },
"description": "List of user emails who have viewed the document"
}
}
@@ -7892,16 +9345,34 @@
"config": {
"description": "It is an explicit choice that the structure of the view configuration\nis up to the frontend. The structure and composition of view configuration\nis still very much in flux."
},
- "createdAt": { "type": "string", "format": "date-time" },
- "id": { "type": "string", "format": "uuid" },
- "name": { "type": "string" },
- "updatedAt": { "type": "string", "format": "date-time" },
- "userId": { "type": "string" }
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "userId": {
+ "type": "string"
+ }
}
},
"ViewPatch": {
"type": "object",
- "properties": { "config": {}, "name": { "type": ["string", "null"] } }
+ "properties": {
+ "config": {},
+ "name": {
+ "type": ["string", "null"]
+ }
+ }
},
"ViewsResponse": {
"type": "object",
@@ -7909,23 +9380,35 @@
"properties": {
"excludedDefaultViews": {
"type": "array",
- "items": { "$ref": "#/components/schemas/ExcludedDefaultView" }
+ "items": {
+ "$ref": "#/components/schemas/ExcludedDefaultView"
+ }
},
"views": {
"type": "array",
- "items": { "$ref": "#/components/schemas/View" }
+ "items": {
+ "$ref": "#/components/schemas/View"
+ }
}
}
},
"WithDocumentId": {
"type": "object",
"required": ["document_id"],
- "properties": { "document_id": { "type": "string" } }
+ "properties": {
+ "document_id": {
+ "type": "string"
+ }
+ }
},
"WithProjectId": {
"type": "object",
"required": ["id"],
- "properties": { "id": { "type": "string" } }
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ }
}
}
},
diff --git a/js/app/packages/service-clients/service-sync/generated/schema.ts b/js/app/packages/service-clients/service-sync/generated/schema.ts
index d39549c53c..cad7c313ad 100644
--- a/js/app/packages/service-clients/service-sync/generated/schema.ts
+++ b/js/app/packages/service-clients/service-sync/generated/schema.ts
@@ -14,67 +14,58 @@
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
-import { BebopView, BebopRuntimeError, BebopRecord, BebopJson, BebopTypeGuard, Guid, GuidMap } from "bebop";
-
-export const BEBOP_SCHEMA = new Uint8Array ([
-3, 16, 0, 0, 0, 80, 101, 101, 114, 85, 112, 100, 97, 116,
-101, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 117, 112, 100, 97, 116,
-101, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 80,
-101, 101, 114, 65, 119, 97, 114, 101, 110, 101, 115, 115,
-0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 97, 119, 97, 114, 101, 110,
-101, 115, 115, 0, 242, 255, 255, 255, 0, 254, 255, 255,
-255, 0, 80, 101, 101, 114, 82, 101, 113, 117, 101, 115,
-116, 83, 105, 110, 99, 101, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1,
-102, 114, 111, 110, 116, 105, 101, 114, 115, 0, 242, 255,
-255, 255, 0, 254, 255, 255, 255, 0, 80, 101, 101, 114, 82,
-101, 113, 117, 101, 115, 116, 83, 110, 97, 112, 115, 104,
-111, 116, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 80, 101, 101, 114,
-82, 101, 103, 105, 115, 116, 101, 114, 73, 100, 0, 1, 0,
-0, 8, 0, 0, 0, 1, 1, 112, 101, 101, 114, 105, 100, 0, 249,
-255, 255, 255, 0, 70, 114, 111, 109, 80, 101, 101, 114, 0,
-3, 0, 5, 0, 0, 0, 5, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 3, 2,
-0, 0, 0, 4, 3, 0, 0, 0, 5, 4, 0, 0, 0, 82, 101, 109, 111,
-116, 101, 73, 110, 105, 116, 105, 97, 108, 83, 121, 110,
-99, 0, 1, 0, 0, 8, 0, 0, 0, 0, 2, 115, 110, 97, 112, 115,
-104, 111, 116, 0, 242, 255, 255, 255, 0, 254, 255, 255,
-255, 0, 97, 119, 97, 114, 101, 110, 101, 115, 115, 0, 242,
-255, 255, 255, 0, 254, 255, 255, 255, 0, 82, 101, 109,
-111, 116, 101, 85, 112, 100, 97, 116, 101, 0, 1, 0, 0, 4,
-0, 0, 0, 0, 1, 117, 112, 100, 97, 116, 101, 0, 242, 255,
-255, 255, 0, 254, 255, 255, 255, 0, 82, 101, 109, 111,
-116, 101, 65, 119, 97, 114, 101, 110, 101, 115, 115, 0, 1,
-0, 0, 4, 0, 0, 0, 0, 1, 97, 119, 97, 114, 101, 110, 101,
-115, 115, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0,
-82, 101, 109, 111, 116, 101, 83, 110, 97, 112, 115, 104,
-111, 116, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 115, 110, 97, 112,
-115, 104, 111, 116, 0, 242, 255, 255, 255, 0, 254, 255,
-255, 255, 0, 82, 101, 109, 111, 116, 101, 85, 112, 100,
-97, 116, 101, 65, 99, 107, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1,
-117, 112, 100, 97, 116, 101, 0, 242, 255, 255, 255, 0,
-254, 255, 255, 255, 0, 82, 101, 109, 111, 116, 101, 85,
-112, 100, 97, 116, 101, 83, 105, 110, 99, 101, 0, 1, 0, 0,
-8, 0, 0, 0, 0, 2, 117, 112, 100, 97, 116, 101, 0, 242,
-255, 255, 255, 0, 254, 255, 255, 255, 0, 102, 114, 111,
-110, 116, 105, 101, 114, 115, 0, 242, 255, 255, 255, 0,
-254, 255, 255, 255, 0, 70, 114, 111, 109, 82, 101, 109,
-111, 116, 101, 0, 3, 0, 9, 0, 0, 0, 6, 1, 6, 0, 0, 0, 2,
-7, 0, 0, 0, 3, 8, 0, 0, 0, 4, 9, 0, 0, 0, 5, 10, 0, 0, 0,
-6, 11, 0, 0, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110,
-0, 1, 0, 0, 12, 0, 0, 0, 0, 2, 117, 112, 100, 97, 116,
-101, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 116,
-105, 109, 101, 115, 116, 97, 109, 112, 0, 243, 255, 255,
-255, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 76,
-111, 103, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 111, 112, 101,
-114, 97, 116, 105, 111, 110, 115, 0, 242, 255, 255, 255,
-0, 13, 0, 0, 0, 0, 73, 110, 105, 116, 105, 97, 108, 105,
-122, 101, 70, 114, 111, 109, 83, 110, 97, 112, 115, 104,
-111, 116, 82, 101, 113, 117, 101, 115, 116, 0, 1, 0, 0, 4,
-0, 0, 0, 0, 1, 115, 110, 97, 112, 115, 104, 111, 116, 0,
-242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 0, 0, 0, 0
+import {
+ BebopJson,
+ type BebopRecord,
+ BebopRuntimeError,
+ BebopTypeGuard,
+ BebopView,
+} from 'bebop';
+
+export const BEBOP_SCHEMA = new Uint8Array([
+ 3, 16, 0, 0, 0, 80, 101, 101, 114, 85, 112, 100, 97, 116, 101, 0, 1, 0, 0, 4,
+ 0, 0, 0, 0, 1, 117, 112, 100, 97, 116, 101, 0, 242, 255, 255, 255, 0, 254,
+ 255, 255, 255, 0, 80, 101, 101, 114, 65, 119, 97, 114, 101, 110, 101, 115,
+ 115, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 97, 119, 97, 114, 101, 110, 101, 115, 115,
+ 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 80, 101, 101, 114, 82, 101,
+ 113, 117, 101, 115, 116, 83, 105, 110, 99, 101, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1,
+ 102, 114, 111, 110, 116, 105, 101, 114, 115, 0, 242, 255, 255, 255, 0, 254,
+ 255, 255, 255, 0, 80, 101, 101, 114, 82, 101, 113, 117, 101, 115, 116, 83,
+ 110, 97, 112, 115, 104, 111, 116, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 80, 101, 101,
+ 114, 82, 101, 103, 105, 115, 116, 101, 114, 73, 100, 0, 1, 0, 0, 8, 0, 0, 0,
+ 1, 1, 112, 101, 101, 114, 105, 100, 0, 249, 255, 255, 255, 0, 70, 114, 111,
+ 109, 80, 101, 101, 114, 0, 3, 0, 5, 0, 0, 0, 5, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0,
+ 3, 2, 0, 0, 0, 4, 3, 0, 0, 0, 5, 4, 0, 0, 0, 82, 101, 109, 111, 116, 101, 73,
+ 110, 105, 116, 105, 97, 108, 83, 121, 110, 99, 0, 1, 0, 0, 8, 0, 0, 0, 0, 2,
+ 115, 110, 97, 112, 115, 104, 111, 116, 0, 242, 255, 255, 255, 0, 254, 255,
+ 255, 255, 0, 97, 119, 97, 114, 101, 110, 101, 115, 115, 0, 242, 255, 255, 255,
+ 0, 254, 255, 255, 255, 0, 82, 101, 109, 111, 116, 101, 85, 112, 100, 97, 116,
+ 101, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 117, 112, 100, 97, 116, 101, 0, 242, 255,
+ 255, 255, 0, 254, 255, 255, 255, 0, 82, 101, 109, 111, 116, 101, 65, 119, 97,
+ 114, 101, 110, 101, 115, 115, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 97, 119, 97, 114,
+ 101, 110, 101, 115, 115, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 82,
+ 101, 109, 111, 116, 101, 83, 110, 97, 112, 115, 104, 111, 116, 0, 1, 0, 0, 4,
+ 0, 0, 0, 0, 1, 115, 110, 97, 112, 115, 104, 111, 116, 0, 242, 255, 255, 255,
+ 0, 254, 255, 255, 255, 0, 82, 101, 109, 111, 116, 101, 85, 112, 100, 97, 116,
+ 101, 65, 99, 107, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 117, 112, 100, 97, 116, 101,
+ 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 82, 101, 109, 111, 116, 101,
+ 85, 112, 100, 97, 116, 101, 83, 105, 110, 99, 101, 0, 1, 0, 0, 8, 0, 0, 0, 0,
+ 2, 117, 112, 100, 97, 116, 101, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255,
+ 0, 102, 114, 111, 110, 116, 105, 101, 114, 115, 0, 242, 255, 255, 255, 0, 254,
+ 255, 255, 255, 0, 70, 114, 111, 109, 82, 101, 109, 111, 116, 101, 0, 3, 0, 9,
+ 0, 0, 0, 6, 1, 6, 0, 0, 0, 2, 7, 0, 0, 0, 3, 8, 0, 0, 0, 4, 9, 0, 0, 0, 5, 10,
+ 0, 0, 0, 6, 11, 0, 0, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 0, 1, 0,
+ 0, 12, 0, 0, 0, 0, 2, 117, 112, 100, 97, 116, 101, 0, 242, 255, 255, 255, 0,
+ 254, 255, 255, 255, 0, 116, 105, 109, 101, 115, 116, 97, 109, 112, 0, 243,
+ 255, 255, 255, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 76, 111, 103, 0,
+ 1, 0, 0, 4, 0, 0, 0, 0, 1, 111, 112, 101, 114, 97, 116, 105, 111, 110, 115, 0,
+ 242, 255, 255, 255, 0, 13, 0, 0, 0, 0, 73, 110, 105, 116, 105, 97, 108, 105,
+ 122, 101, 70, 114, 111, 109, 83, 110, 97, 112, 115, 104, 111, 116, 82, 101,
+ 113, 117, 101, 115, 116, 0, 1, 0, 0, 4, 0, 0, 0, 0, 1, 115, 110, 97, 112, 115,
+ 104, 111, 116, 0, 242, 255, 255, 255, 0, 254, 255, 255, 255, 0, 0, 0, 0, 0,
]);
export interface IPeerUpdate extends BebopRecord {
-
readonly update: Uint8Array;
}
@@ -119,7 +110,7 @@ export class PeerUpdate implements IPeerUpdate {
* Unsafely creates an instance of {@link PeerUpdate} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IPeerUpdate {
- return new PeerUpdate(record);
+ return new PeerUpdate(record);
}
/**
@@ -167,9 +158,7 @@ export class PeerUpdate implements IPeerUpdate {
}
}
-
export interface IPeerAwareness extends BebopRecord {
-
readonly awareness: Uint8Array;
}
@@ -214,7 +203,7 @@ export class PeerAwareness implements IPeerAwareness {
* Unsafely creates an instance of {@link PeerAwareness} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IPeerAwareness {
- return new PeerAwareness(record);
+ return new PeerAwareness(record);
}
/**
@@ -262,9 +251,7 @@ export class PeerAwareness implements IPeerAwareness {
}
}
-
export interface IPeerRequestSince extends BebopRecord {
-
readonly frontiers: Uint8Array;
}
@@ -309,7 +296,7 @@ export class PeerRequestSince implements IPeerRequestSince {
* Unsafely creates an instance of {@link PeerRequestSince} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IPeerRequestSince {
- return new PeerRequestSince(record);
+ return new PeerRequestSince(record);
}
/**
@@ -357,17 +344,12 @@ export class PeerRequestSince implements IPeerRequestSince {
}
}
-
-export interface IPeerRequestSnapshot extends BebopRecord {
-}
+export interface IPeerRequestSnapshot extends BebopRecord {}
export class PeerRequestSnapshot implements IPeerRequestSnapshot {
public readonly discriminator: number = 4 as 4;
public static readonly discriminator: number = 4 as 4;
- constructor(record: IPeerRequestSnapshot) {
- }
-
/**
* Serializes the current instance into a JSON-Over-Bebop string
*/
@@ -392,15 +374,13 @@ export class PeerRequestSnapshot implements IPeerRequestSnapshot {
/**
* Validates that the specified dynamic object can become an instance of {@link PeerRequestSnapshot}.
*/
- public static validateCompatibility(record: IPeerRequestSnapshot): void {
-
- }
+ public static validateCompatibility(_record: IPeerRequestSnapshot): void {}
/**
* Unsafely creates an instance of {@link PeerRequestSnapshot} from the specified dynamic object. No type checking is performed.
*/
- public static unsafeCast(record: any): IPeerRequestSnapshot {
- return new PeerRequestSnapshot(record);
+ public static unsafeCast(_record: any): IPeerRequestSnapshot {
+ return new (PeerRequestSnapshot as any)(_record);
}
/**
@@ -408,7 +388,9 @@ export class PeerRequestSnapshot implements IPeerRequestSnapshot {
*/
public static fromJSON(json: string): IPeerRequestSnapshot {
if (typeof json !== 'string' || json.trim().length === 0) {
- throw new BebopRuntimeError(`PeerRequestSnapshot.fromJSON: expected string`);
+ throw new BebopRuntimeError(
+ `PeerRequestSnapshot.fromJSON: expected string`
+ );
}
const parsed = JSON.parse(json, BebopJson.reviver);
PeerRequestSnapshot.validateCompatibility(parsed);
@@ -425,7 +407,10 @@ export class PeerRequestSnapshot implements IPeerRequestSnapshot {
return view.toArray();
}
- public static encodeInto(record: IPeerRequestSnapshot, view: BebopView): number {
+ public static encodeInto(
+ _record: IPeerRequestSnapshot,
+ view: BebopView
+ ): number {
const before = view.length;
const after = view.length;
@@ -438,16 +423,13 @@ export class PeerRequestSnapshot implements IPeerRequestSnapshot {
return PeerRequestSnapshot.readFrom(view);
}
- public static readFrom(view: BebopView): IPeerRequestSnapshot {
- let message: IPeerRequestSnapshot = {
- };
- return new PeerRequestSnapshot(message);
+ public static readFrom(_view: BebopView): IPeerRequestSnapshot {
+ let message: IPeerRequestSnapshot = {};
+ return new (PeerRequestSnapshot as any)(message);
}
}
-
export interface IPeerRegisterId extends BebopRecord {
-
readonly peerid: bigint;
}
@@ -485,14 +467,14 @@ export class PeerRegisterId implements IPeerRegisterId {
* Validates that the specified dynamic object can become an instance of {@link PeerRegisterId}.
*/
public static validateCompatibility(record: IPeerRegisterId): void {
- BebopTypeGuard.ensureUint64(record.peerid)
+ BebopTypeGuard.ensureUint64(record.peerid);
}
/**
* Unsafely creates an instance of {@link PeerRegisterId} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IPeerRegisterId {
- return new PeerRegisterId(record);
+ return new PeerRegisterId(record);
}
/**
@@ -540,19 +522,17 @@ export class PeerRegisterId implements IPeerRegisterId {
}
}
-
-export type IFromPeerType
- = { discriminator: 1, value: IPeerUpdate }
- | { discriminator: 2, value: IPeerAwareness }
- | { discriminator: 3, value: IPeerRequestSince }
- | { discriminator: 4, value: IPeerRequestSnapshot }
- | { discriminator: 5, value: IPeerRegisterId };
+export type IFromPeerType =
+ | { discriminator: 1; value: IPeerUpdate }
+ | { discriminator: 2; value: IPeerAwareness }
+ | { discriminator: 3; value: IPeerRequestSince }
+ | { discriminator: 4; value: IPeerRequestSnapshot }
+ | { discriminator: 5; value: IPeerRegisterId };
export interface IFromPeer extends BebopRecord {
readonly data: IFromPeerType;
}
export class FromPeer implements IFromPeer {
-
public readonly data: IFromPeerType;
private constructor(data: IFromPeerType) {
@@ -568,46 +548,61 @@ export class FromPeer implements IFromPeer {
}
public static fromPeerUpdate(value: IPeerUpdate) {
- return new FromPeer({ discriminator: 1, value: new PeerUpdate(value)});
+ return new FromPeer({ discriminator: 1, value: new PeerUpdate(value) });
}
- public isPeerUpdate(): this is { value: PeerUpdate } & { data: Extract<IFromPeerType, { discriminator: 1 }> } {
+ public isPeerUpdate(): this is { value: PeerUpdate } & {
+ data: Extract<IFromPeerType, { discriminator: 1 }>;
+ } {
return this.data.value instanceof PeerUpdate;
}
public static fromPeerAwareness(value: IPeerAwareness) {
- return new FromPeer({ discriminator: 2, value: new PeerAwareness(value)});
+ return new FromPeer({ discriminator: 2, value: new PeerAwareness(value) });
}
- public isPeerAwareness(): this is { value: PeerAwareness } & { data: Extract<IFromPeerType, { discriminator: 2 }> } {
+ public isPeerAwareness(): this is { value: PeerAwareness } & {
+ data: Extract<IFromPeerType, { discriminator: 2 }>;
+ } {
return this.data.value instanceof PeerAwareness;
}
public static fromPeerRequestSince(value: IPeerRequestSince) {
- return new FromPeer({ discriminator: 3, value: new PeerRequestSince(value)});
+ return new FromPeer({
+ discriminator: 3,
+ value: new PeerRequestSince(value),
+ });
}
- public isPeerRequestSince(): this is { value: PeerRequestSince } & { data: Extract<IFromPeerType, { discriminator: 3 }> } {
+ public isPeerRequestSince(): this is { value: PeerRequestSince } & {
+ data: Extract<IFromPeerType, { discriminator: 3 }>;
+ } {
return this.data.value instanceof PeerRequestSince;
}
public static fromPeerRequestSnapshot(value: IPeerRequestSnapshot) {
- return new FromPeer({ discriminator: 4, value: new PeerRequestSnapshot(value)});
+ return new FromPeer({
+ discriminator: 4,
+ value: new (PeerRequestSnapshot as any)(value),
+ });
}
- public isPeerRequestSnapshot(): this is { value: PeerRequestSnapshot } & { data: Extract<IFromPeerType, { discriminator: 4 }> } {
+ public isPeerRequestSnapshot(): this is { value: PeerRequestSnapshot } & {
+ data: Extract<IFromPeerType, { discriminator: 4 }>;
+ } {
return this.data.value instanceof PeerRequestSnapshot;
}
public static fromPeerRegisterId(value: IPeerRegisterId) {
- return new FromPeer({ discriminator: 5, value: new PeerRegisterId(value)});
+ return new FromPeer({ discriminator: 5, value: new PeerRegisterId(value) });
}
- public isPeerRegisterId(): this is { value: PeerRegisterId } & { data: Extract<IFromPeerType, { discriminator: 5 }> } {
+ public isPeerRegisterId(): this is { value: PeerRegisterId } & {
+ data: Extract<IFromPeerType, { discriminator: 5 }>;
+ } {
return this.data.value instanceof PeerRegisterId;
}
-
/**
* Serializes the current instance into a JSON-Over-Bebop string
*/
@@ -667,25 +662,42 @@ export class FromPeer implements IFromPeer {
* Unsafely creates an instance of {@link FromPeer} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): FromPeer {
- const discriminator = record.data.discriminator;
- switch (discriminator) {
- case 1: {
- return new FromPeer({ discriminator: 1, value: PeerUpdate.unsafeCast(record.value) });
- }
- case 2: {
- return new FromPeer({ discriminator: 2, value: PeerAwareness.unsafeCast(record.value) });
- }
- case 3: {
- return new FromPeer({ discriminator: 3, value: PeerRequestSince.unsafeCast(record.value) });
- }
- case 4: {
- return new FromPeer({ discriminator: 4, value: PeerRequestSnapshot.unsafeCast(record.value) });
- }
- case 5: {
- return new FromPeer({ discriminator: 5, value: PeerRegisterId.unsafeCast(record.value) });
- }
+ const discriminator = record.data.discriminator;
+ switch (discriminator) {
+ case 1: {
+ return new FromPeer({
+ discriminator: 1,
+ value: PeerUpdate.unsafeCast(record.value),
+ });
+ }
+ case 2: {
+ return new FromPeer({
+ discriminator: 2,
+ value: PeerAwareness.unsafeCast(record.value),
+ });
+ }
+ case 3: {
+ return new FromPeer({
+ discriminator: 3,
+ value: PeerRequestSince.unsafeCast(record.value),
+ });
+ }
+ case 4: {
+ return new FromPeer({
+ discriminator: 4,
+ value: PeerRequestSnapshot.unsafeCast(record.value),
+ });
+ }
+ case 5: {
+ return new FromPeer({
+ discriminator: 5,
+ value: PeerRegisterId.unsafeCast(record.value),
+ });
}
- throw new BebopRuntimeError(`Failed to unsafely cast union from discriminator: ${discriminator}`);
+ }
+ throw new BebopRuntimeError(
+ `Failed to unsafely cast union from discriminator: ${discriminator}`
+ );
}
/**
@@ -760,14 +772,14 @@ export class FromPeer implements IFromPeer {
return this.fromPeerRegisterId(PeerRegisterId.readFrom(view));
default:
view.index = end;
- throw new BebopRuntimeError("Unrecognized discriminator while decoding FromPeer");
+ throw new BebopRuntimeError(
+ 'Unrecognized discriminator while decoding FromPeer'
+ );
}
}
}
-
export interface IRemoteInitialSync extends BebopRecord {
-
readonly snapshot: Uint8Array;
readonly awareness: Uint8Array;
@@ -817,7 +829,7 @@ export class RemoteInitialSync implements IRemoteInitialSync {
* Unsafely creates an instance of {@link RemoteInitialSync} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteInitialSync {
- return new RemoteInitialSync(record);
+ return new RemoteInitialSync(record);
}
/**
@@ -825,7 +837,9 @@ export class RemoteInitialSync implements IRemoteInitialSync {
*/
public static fromJSON(json: string): IRemoteInitialSync {
if (typeof json !== 'string' || json.trim().length === 0) {
- throw new BebopRuntimeError(`RemoteInitialSync.fromJSON: expected string`);
+ throw new BebopRuntimeError(
+ `RemoteInitialSync.fromJSON: expected string`
+ );
}
const parsed = JSON.parse(json, BebopJson.reviver);
RemoteInitialSync.validateCompatibility(parsed);
@@ -842,7 +856,10 @@ export class RemoteInitialSync implements IRemoteInitialSync {
return view.toArray();
}
- public static encodeInto(record: IRemoteInitialSync, view: BebopView): number {
+ public static encodeInto(
+ record: IRemoteInitialSync,
+ view: BebopView
+ ): number {
const before = view.length;
view.writeBytes(record.snapshot);
view.writeBytes(record.awareness);
@@ -869,9 +886,7 @@ export class RemoteInitialSync implements IRemoteInitialSync {
}
}
-
export interface IRemoteUpdate extends BebopRecord {
-
readonly update: Uint8Array;
}
@@ -916,7 +931,7 @@ export class RemoteUpdate implements IRemoteUpdate {
* Unsafely creates an instance of {@link RemoteUpdate} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteUpdate {
- return new RemoteUpdate(record);
+ return new RemoteUpdate(record);
}
/**
@@ -964,9 +979,7 @@ export class RemoteUpdate implements IRemoteUpdate {
}
}
-
export interface IRemoteAwareness extends BebopRecord {
-
readonly awareness: Uint8Array;
}
@@ -1011,7 +1024,7 @@ export class RemoteAwareness implements IRemoteAwareness {
* Unsafely creates an instance of {@link RemoteAwareness} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteAwareness {
- return new RemoteAwareness(record);
+ return new RemoteAwareness(record);
}
/**
@@ -1059,9 +1072,7 @@ export class RemoteAwareness implements IRemoteAwareness {
}
}
-
export interface IRemoteSnapshot extends BebopRecord {
-
readonly snapshot: Uint8Array;
}
@@ -1106,7 +1117,7 @@ export class RemoteSnapshot implements IRemoteSnapshot {
* Unsafely creates an instance of {@link RemoteSnapshot} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteSnapshot {
- return new RemoteSnapshot(record);
+ return new RemoteSnapshot(record);
}
/**
@@ -1154,9 +1165,7 @@ export class RemoteSnapshot implements IRemoteSnapshot {
}
}
-
export interface IRemoteUpdateAck extends BebopRecord {
-
readonly update: Uint8Array;
}
@@ -1201,7 +1210,7 @@ export class RemoteUpdateAck implements IRemoteUpdateAck {
* Unsafely creates an instance of {@link RemoteUpdateAck} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteUpdateAck {
- return new RemoteUpdateAck(record);
+ return new RemoteUpdateAck(record);
}
/**
@@ -1249,9 +1258,7 @@ export class RemoteUpdateAck implements IRemoteUpdateAck {
}
}
-
export interface IRemoteUpdateSince extends BebopRecord {
-
readonly update: Uint8Array;
readonly frontiers: Uint8Array;
@@ -1301,7 +1308,7 @@ export class RemoteUpdateSince implements IRemoteUpdateSince {
* Unsafely creates an instance of {@link RemoteUpdateSince} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IRemoteUpdateSince {
- return new RemoteUpdateSince(record);
+ return new RemoteUpdateSince(record);
}
/**
@@ -1309,7 +1316,9 @@ export class RemoteUpdateSince implements IRemoteUpdateSince {
*/
public static fromJSON(json: string): IRemoteUpdateSince {
if (typeof json !== 'string' || json.trim().length === 0) {
- throw new BebopRuntimeError(`RemoteUpdateSince.fromJSON: expected string`);
+ throw new BebopRuntimeError(
+ `RemoteUpdateSince.fromJSON: expected string`
+ );
}
const parsed = JSON.parse(json, BebopJson.reviver);
RemoteUpdateSince.validateCompatibility(parsed);
@@ -1326,7 +1335,10 @@ export class RemoteUpdateSince implements IRemoteUpdateSince {
return view.toArray();
}
- public static encodeInto(record: IRemoteUpdateSince, view: BebopView): number {
+ public static encodeInto(
+ record: IRemoteUpdateSince,
+ view: BebopView
+ ): number {
const before = view.length;
view.writeBytes(record.update);
view.writeBytes(record.frontiers);
@@ -1353,20 +1365,18 @@ export class RemoteUpdateSince implements IRemoteUpdateSince {
}
}
-
-export type IFromRemoteType
- = { discriminator: 1, value: IRemoteInitialSync }
- | { discriminator: 2, value: IRemoteUpdate }
- | { discriminator: 3, value: IRemoteAwareness }
- | { discriminator: 4, value: IRemoteSnapshot }
- | { discriminator: 5, value: IRemoteUpdateAck }
- | { discriminator: 6, value: IRemoteUpdateSince };
+export type IFromRemoteType =
+ | { discriminator: 1; value: IRemoteInitialSync }
+ | { discriminator: 2; value: IRemoteUpdate }
+ | { discriminator: 3; value: IRemoteAwareness }
+ | { discriminator: 4; value: IRemoteSnapshot }
+ | { discriminator: 5; value: IRemoteUpdateAck }
+ | { discriminator: 6; value: IRemoteUpdateSince };
export interface IFromRemote extends BebopRecord {
readonly data: IFromRemoteType;
}
export class FromRemote implements IFromRemote {
-
public readonly data: IFromRemoteType;
private constructor(data: IFromRemoteType) {
@@ -1382,54 +1392,80 @@ export class FromRemote implements IFromRemote {
}
public static fromRemoteInitialSync(value: IRemoteInitialSync) {
- return new FromRemote({ discriminator: 1, value: new RemoteInitialSync(value)});
+ return new FromRemote({
+ discriminator: 1,
+ value: new RemoteInitialSync(value),
+ });
}
- public isRemoteInitialSync(): this is { value: RemoteInitialSync } & { data: Extract<IFromRemoteType, { discriminator: 1 }> } {
+ public isRemoteInitialSync(): this is { value: RemoteInitialSync } & {
+ data: Extract<IFromRemoteType, { discriminator: 1 }>;
+ } {
return this.data.value instanceof RemoteInitialSync;
}
public static fromRemoteUpdate(value: IRemoteUpdate) {
- return new FromRemote({ discriminator: 2, value: new RemoteUpdate(value)});
+ return new FromRemote({ discriminator: 2, value: new RemoteUpdate(value) });
}
- public isRemoteUpdate(): this is { value: RemoteUpdate } & { data: Extract<IFromRemoteType, { discriminator: 2 }> } {
+ public isRemoteUpdate(): this is { value: RemoteUpdate } & {
+ data: Extract<IFromRemoteType, { discriminator: 2 }>;
+ } {
return this.data.value instanceof RemoteUpdate;
}
public static fromRemoteAwareness(value: IRemoteAwareness) {
- return new FromRemote({ discriminator: 3, value: new RemoteAwareness(value)});
+ return new FromRemote({
+ discriminator: 3,
+ value: new RemoteAwareness(value),
+ });
}
- public isRemoteAwareness(): this is { value: RemoteAwareness } & { data: Extract<IFromRemoteType, { discriminator: 3 }> } {
+ public isRemoteAwareness(): this is { value: RemoteAwareness } & {
+ data: Extract<IFromRemoteType, { discriminator: 3 }>;
+ } {
return this.data.value instanceof RemoteAwareness;
}
public static fromRemoteSnapshot(value: IRemoteSnapshot) {
- return new FromRemote({ discriminator: 4, value: new RemoteSnapshot(value)});
+ return new FromRemote({
+ discriminator: 4,
+ value: new RemoteSnapshot(value),
+ });
}
- public isRemoteSnapshot(): this is { value: RemoteSnapshot } & { data: Extract<IFromRemoteType, { discriminator: 4 }> } {
+ public isRemoteSnapshot(): this is { value: RemoteSnapshot } & {
+ data: Extract<IFromRemoteType, { discriminator: 4 }>;
+ } {
return this.data.value instanceof RemoteSnapshot;
}
public static fromRemoteUpdateAck(value: IRemoteUpdateAck) {
- return new FromRemote({ discriminator: 5, value: new RemoteUpdateAck(value)});
+ return new FromRemote({
+ discriminator: 5,
+ value: new RemoteUpdateAck(value),
+ });
}
- public isRemoteUpdateAck(): this is { value: RemoteUpdateAck } & { data: Extract<IFromRemoteType, { discriminator: 5 }> } {
+ public isRemoteUpdateAck(): this is { value: RemoteUpdateAck } & {
+ data: Extract<IFromRemoteType, { discriminator: 5 }>;
+ } {
return this.data.value instanceof RemoteUpdateAck;
}
public static fromRemoteUpdateSince(value: IRemoteUpdateSince) {
- return new FromRemote({ discriminator: 6, value: new RemoteUpdateSince(value)});
+ return new FromRemote({
+ discriminator: 6,
+ value: new RemoteUpdateSince(value),
+ });
}
- public isRemoteUpdateSince(): this is { value: RemoteUpdateSince } & { data: Extract<IFromRemoteType, { discriminator: 6 }> } {
+ public isRemoteUpdateSince(): this is { value: RemoteUpdateSince } & {
+ data: Extract<IFromRemoteType, { discriminator: 6 }>;
+ } {
return this.data.value instanceof RemoteUpdateSince;
}
-
/**
* Serializes the current instance into a JSON-Over-Bebop string
*/
@@ -1484,7 +1520,9 @@ export class FromRemote implements IFromRemote {
break;
}
default: {
- throw new Error(`Unknown discriminator for FromRemote: ${discriminator}`);
+ throw new Error(
+ `Unknown discriminator for FromRemote: ${discriminator}`
+ );
}
}
}
@@ -1493,28 +1531,48 @@ export class FromRemote implements IFromRemote {
* Unsafely creates an instance of {@link FromRemote} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): FromRemote {
- const discriminator = record.data.discriminator;
- switch (discriminator) {
- case 1: {
- return new FromRemote({ discriminator: 1, value: RemoteInitialSync.unsafeCast(record.value) });
- }
- case 2: {
- return new FromRemote({ discriminator: 2, value: RemoteUpdate.unsafeCast(record.value) });
- }
- case 3: {
- return new FromRemote({ discriminator: 3, value: RemoteAwareness.unsafeCast(record.value) });
- }
- case 4: {
- return new FromRemote({ discriminator: 4, value: RemoteSnapshot.unsafeCast(record.value) });
- }
- case 5: {
- return new FromRemote({ discriminator: 5, value: RemoteUpdateAck.unsafeCast(record.value) });
- }
- case 6: {
- return new FromRemote({ discriminator: 6, value: RemoteUpdateSince.unsafeCast(record.value) });
- }
+ const discriminator = record.data.discriminator;
+ switch (discriminator) {
+ case 1: {
+ return new FromRemote({
+ discriminator: 1,
+ value: RemoteInitialSync.unsafeCast(record.value),
+ });
+ }
+ case 2: {
+ return new FromRemote({
+ discriminator: 2,
+ value: RemoteUpdate.unsafeCast(record.value),
+ });
}
- throw new BebopRuntimeError(`Failed to unsafely cast union from discriminator: ${discriminator}`);
+ case 3: {
+ return new FromRemote({
+ discriminator: 3,
+ value: RemoteAwareness.unsafeCast(record.value),
+ });
+ }
+ case 4: {
+ return new FromRemote({
+ discriminator: 4,
+ value: RemoteSnapshot.unsafeCast(record.value),
+ });
+ }
+ case 5: {
+ return new FromRemote({
+ discriminator: 5,
+ value: RemoteUpdateAck.unsafeCast(record.value),
+ });
+ }
+ case 6: {
+ return new FromRemote({
+ discriminator: 6,
+ value: RemoteUpdateSince.unsafeCast(record.value),
+ });
+ }
+ }
+ throw new BebopRuntimeError(
+ `Failed to unsafely cast union from discriminator: ${discriminator}`
+ );
}
/**
@@ -1594,14 +1652,14 @@ export class FromRemote implements IFromRemote {
return this.fromRemoteUpdateSince(RemoteUpdateSince.readFrom(view));
default:
view.index = end;
- throw new BebopRuntimeError("Unrecognized discriminator while decoding FromRemote");
+ throw new BebopRuntimeError(
+ 'Unrecognized discriminator while decoding FromRemote'
+ );
}
}
}
-
export interface IOperation extends BebopRecord {
-
readonly update: Uint8Array;
readonly timestamp: Date;
@@ -1642,14 +1700,14 @@ export class Operation implements IOperation {
*/
public static validateCompatibility(record: IOperation): void {
BebopTypeGuard.ensureArray(record.update, BebopTypeGuard.ensureUint8);
- BebopTypeGuard.ensureDate(record.timestamp)
+ BebopTypeGuard.ensureDate(record.timestamp);
}
/**
* Unsafely creates an instance of {@link Operation} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IOperation {
- return new Operation(record);
+ return new Operation(record);
}
/**
@@ -1701,9 +1759,7 @@ export class Operation implements IOperation {
}
}
-
export interface IOperationLog extends BebopRecord {
-
readonly operations: Array<IOperation>;
}
@@ -1739,14 +1795,17 @@ export class OperationLog implements IOperationLog {
* Validates that the specified dynamic object can become an instance of {@link OperationLog}.
*/
public static validateCompatibility(record: IOperationLog): void {
- BebopTypeGuard.ensureArray(record.operations, Operation.validateCompatibility);
+ BebopTypeGuard.ensureArray(
+ record.operations,
+ Operation.validateCompatibility
+ );
}
/**
* Unsafely creates an instance of {@link OperationLog} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IOperationLog {
- return new OperationLog(record);
+ return new OperationLog(record);
}
/**
@@ -1777,7 +1836,7 @@ export class OperationLog implements IOperationLog {
const length0 = record.operations.length;
view.writeUint32(length0);
for (let i0 = 0; i0 < length0; i0++) {
- Operation.encodeInto(record.operations[i0], view)
+ Operation.encodeInto(record.operations[i0], view);
}
}
const after = view.length;
@@ -1808,13 +1867,13 @@ export class OperationLog implements IOperationLog {
}
}
-
export interface IInitializeFromSnapshotRequest extends BebopRecord {
-
readonly snapshot: Uint8Array;
}
-export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotRequest {
+export class InitializeFromSnapshotRequest
+ implements IInitializeFromSnapshotRequest
+{
public readonly snapshot: Uint8Array;
constructor(record: IInitializeFromSnapshotRequest) {
@@ -1845,7 +1904,9 @@ export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotReq
/**
* Validates that the specified dynamic object can become an instance of {@link InitializeFromSnapshotRequest}.
*/
- public static validateCompatibility(record: IInitializeFromSnapshotRequest): void {
+ public static validateCompatibility(
+ record: IInitializeFromSnapshotRequest
+ ): void {
BebopTypeGuard.ensureArray(record.snapshot, BebopTypeGuard.ensureUint8);
}
@@ -1853,7 +1914,7 @@ export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotReq
* Unsafely creates an instance of {@link InitializeFromSnapshotRequest} from the specified dynamic object. No type checking is performed.
*/
public static unsafeCast(record: any): IInitializeFromSnapshotRequest {
- return new InitializeFromSnapshotRequest(record);
+ return new InitializeFromSnapshotRequest(record);
}
/**
@@ -1861,7 +1922,9 @@ export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotReq
*/
public static fromJSON(json: string): IInitializeFromSnapshotRequest {
if (typeof json !== 'string' || json.trim().length === 0) {
- throw new BebopRuntimeError(`InitializeFromSnapshotRequest.fromJSON: expected string`);
+ throw new BebopRuntimeError(
+ `InitializeFromSnapshotRequest.fromJSON: expected string`
+ );
}
const parsed = JSON.parse(json, BebopJson.reviver);
InitializeFromSnapshotRequest.validateCompatibility(parsed);
@@ -1878,7 +1941,10 @@ export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotReq
return view.toArray();
}
- public static encodeInto(record: IInitializeFromSnapshotRequest, view: BebopView): number {
+ public static encodeInto(
+ record: IInitializeFromSnapshotRequest,
+ view: BebopView
+ ): number {
const before = view.length;
view.writeBytes(record.snapshot);
const after = view.length;
@@ -1900,4 +1966,3 @@ export class InitializeFromSnapshotRequest implements IInitializeFromSnapshotReq
return new InitializeFromSnapshotRequest(message);
}
}
-
diff --git a/js/app/packages/service-clients/service-unfurl/generated/client.ts b/js/app/packages/service-clients/service-unfurl/generated/client.ts
index 50744f48a5..111ad05a0a 100644
--- a/js/app/packages/service-clients/service-unfurl/generated/client.ts
+++ b/js/app/packages/service-clients/service-unfurl/generated/client.ts
@@ -9,169 +9,185 @@ import type {
GetUnfurlBulkResponse,
GetUnfurlParams,
GetUnfurlResponse,
- ProxyRequestHandlerParams
+ ProxyRequestHandlerParams,
} from './schemas';
export type proxyRequestHandlerResponseDefault = {
- data: unknown
- status: number
-}
-
-;
-export type proxyRequestHandlerResponseError = (proxyRequestHandlerResponseDefault) & {
- headers: Headers;
+ data: unknown;
+ status: number;
};
+export type proxyRequestHandlerResponseError =
+ proxyRequestHandlerResponseDefault & {
+ headers: Headers;
+ };
-export type proxyRequestHandlerResponse = (proxyRequestHandlerResponseError)
+export type proxyRequestHandlerResponse = proxyRequestHandlerResponseError;
-export const getProxyRequestHandlerUrl = (params: ProxyRequestHandlerParams,) => {
+export const getProxyRequestHandlerUrl = (
+ params: ProxyRequestHandlerParams
+) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/proxy?${stringifiedParams}` : `/proxy`
-}
+ return stringifiedParams.length > 0
+ ? `/proxy?${stringifiedParams}`
+ : `/proxy`;
+};
-export const proxyRequestHandler = async (params: ProxyRequestHandlerParams, options?: RequestInit): Promise<proxyRequestHandlerResponse> => {
-
- const res = await fetch(getProxyRequestHandlerUrl(params),
- {
+export const proxyRequestHandler = async (
+ params: ProxyRequestHandlerParams,
+ options?: RequestInit
+): Promise<proxyRequestHandlerResponse> => {
+ const res = await fetch(getProxyRequestHandlerUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: proxyRequestHandlerResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as proxyRequestHandlerResponse
-}
-
+ const data: proxyRequestHandlerResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as proxyRequestHandlerResponse;
+};
export type getUnfurlResponse200 = {
- data: GetUnfurlResponse
- status: 200
-}
+ data: GetUnfurlResponse;
+ status: 200;
+};
export type getUnfurlResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUnfurlResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getUnfurlResponse500 = {
- data: string
- status: 500
-}
-
-export type getUnfurlResponseSuccess = (getUnfurlResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getUnfurlResponseSuccess = getUnfurlResponse200 & {
headers: Headers;
};
-export type getUnfurlResponseError = (getUnfurlResponse401 | getUnfurlResponse404 | getUnfurlResponse500) & {
+export type getUnfurlResponseError = (
+ | getUnfurlResponse401
+ | getUnfurlResponse404
+ | getUnfurlResponse500
+) & {
headers: Headers;
};
-export type getUnfurlResponse = (getUnfurlResponseSuccess | getUnfurlResponseError)
+export type getUnfurlResponse =
+ | getUnfurlResponseSuccess
+ | getUnfurlResponseError;
-export const getGetUnfurlUrl = (params: GetUnfurlParams,) => {
+export const getGetUnfurlUrl = (params: GetUnfurlParams) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
-
if (value !== undefined) {
- normalizedParams.append(key, value === null ? 'null' : value.toString())
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
}
});
const stringifiedParams = normalizedParams.toString();
- return stringifiedParams.length > 0 ? `/unfurl?${stringifiedParams}` : `/unfurl`
-}
+ return stringifiedParams.length > 0
+ ? `/unfurl?${stringifiedParams}`
+ : `/unfurl`;
+};
-export const getUnfurl = async (params: GetUnfurlParams, options?: RequestInit): Promise<getUnfurlResponse> => {
-
- const res = await fetch(getGetUnfurlUrl(params),
- {
+export const getUnfurl = async (
+ params: GetUnfurlParams,
+ options?: RequestInit
+): Promise<getUnfurlResponse> => {
+ const res = await fetch(getGetUnfurlUrl(params), {
...options,
- method: 'GET'
-
-
- }
-)
+ method: 'GET',
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUnfurlResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUnfurlResponse
-}
-
+ const data: getUnfurlResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUnfurlResponse;
+};
export type getUnfurlBulkResponse200 = {
- data: GetUnfurlBulkResponse
- status: 200
-}
+ data: GetUnfurlBulkResponse;
+ status: 200;
+};
export type getUnfurlBulkResponse401 = {
- data: string
- status: 401
-}
+ data: string;
+ status: 401;
+};
export type getUnfurlBulkResponse404 = {
- data: string
- status: 404
-}
+ data: string;
+ status: 404;
+};
export type getUnfurlBulkResponse500 = {
- data: string
- status: 500
-}
-
-export type getUnfurlBulkResponseSuccess = (getUnfurlBulkResponse200) & {
+ data: string;
+ status: 500;
+};
+
+export type getUnfurlBulkResponseSuccess = getUnfurlBulkResponse200 & {
headers: Headers;
};
-export type getUnfurlBulkResponseError = (getUnfurlBulkResponse401 | getUnfurlBulkResponse404 | getUnfurlBulkResponse500) & {
+export type getUnfurlBulkResponseError = (
+ | getUnfurlBulkResponse401
+ | getUnfurlBulkResponse404
+ | getUnfurlBulkResponse500
+) & {
headers: Headers;
};
-export type getUnfurlBulkResponse = (getUnfurlBulkResponseSuccess | getUnfurlBulkResponseError)
+export type getUnfurlBulkResponse =
+ | getUnfurlBulkResponseSuccess
+ | getUnfurlBulkResponseError;
export const getGetUnfurlBulkUrl = () => {
+ return `/unfurl/bulk`;
+};
-
-
-
- return `/unfurl/bulk`
-}
-
-export const getUnfurlBulk = async (getUnfurlBulkBody: GetUnfurlBulkBody, options?: RequestInit): Promise<getUnfurlBulkResponse> => {
-
- const res = await fetch(getGetUnfurlBulkUrl(),
- {
+export const getUnfurlBulk = async (
+ getUnfurlBulkBody: GetUnfurlBulkBody,
+ options?: RequestInit
+): Promise<getUnfurlBulkResponse> => {
+ const res = await fetch(getGetUnfurlBulkUrl(), {
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
- body: JSON.stringify(
- getUnfurlBulkBody,)
- }
-)
+ body: JSON.stringify(getUnfurlBulkBody),
+ });
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
-
- const data: getUnfurlBulkResponse['data'] = body ? JSON.parse(body) : {}
- return { data, status: res.status, headers: res.headers } as getUnfurlBulkResponse
-}
+
+ const data: getUnfurlBulkResponse['data'] = body ? JSON.parse(body) : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as getUnfurlBulkResponse;
+};
diff --git a/js/app/packages/service-clients/service-unfurl/generated/schemas/getUnfurlParams.ts b/js/app/packages/service-clients/service-unfurl/generated/schemas/getUnfurlParams.ts
index cd8efbba65..23581f80fa 100644
--- a/js/app/packages/service-clients/service-unfurl/generated/schemas/getUnfurlParams.ts
+++ b/js/app/packages/service-clients/service-unfurl/generated/schemas/getUnfurlParams.ts
@@ -6,8 +6,8 @@
*/
export type GetUnfurlParams = {
-/**
- * URL to unfold
- */
-url: string;
+ /**
+ * URL to unfold
+ */
+ url: string;
};
diff --git a/js/app/packages/service-clients/service-unfurl/generated/schemas/index.ts b/js/app/packages/service-clients/service-unfurl/generated/schemas/index.ts
index 9f447665b6..fc9163cda2 100644
--- a/js/app/packages/service-clients/service-unfurl/generated/schemas/index.ts
+++ b/js/app/packages/service-clients/service-unfurl/generated/schemas/index.ts
@@ -20,4 +20,4 @@ export * from './vecItem';
export * from './vecItemOneOf';
export * from './vecItemOneOfDescription';
export * from './vecItemOneOfFaviconUrl';
-export * from './vecItemOneOfImageUrl';
\ No newline at end of file
+export * from './vecItemOneOfImageUrl';
diff --git a/js/app/packages/service-clients/service-unfurl/generated/schemas/proxyRequestHandlerParams.ts b/js/app/packages/service-clients/service-unfurl/generated/schemas/proxyRequestHandlerParams.ts
index 92f4ab9b96..bf3e5fc005 100644
--- a/js/app/packages/service-clients/service-unfurl/generated/schemas/proxyRequestHandlerParams.ts
+++ b/js/app/packages/service-clients/service-unfurl/generated/schemas/proxyRequestHandlerParams.ts
@@ -6,8 +6,8 @@
*/
export type ProxyRequestHandlerParams = {
-/**
- * The url to proxy from
- */
-url: string;
+ /**
+ * The url to proxy from
+ */
+ url: string;
};
diff --git a/js/app/packages/service-clients/service-unfurl/openapi.json b/js/app/packages/service-clients/service-unfurl/openapi.json
index 6874952758..389ad6a741 100644
--- a/js/app/packages/service-clients/service-unfurl/openapi.json
+++ b/js/app/packages/service-clients/service-unfurl/openapi.json
@@ -4,7 +4,9 @@
"title": "unfurl_service",
"description": "",
"termsOfService": "https://macro.com/terms",
- "license": { "name": "" },
+ "license": {
+ "name": ""
+ },
"version": "0.1.0"
},
"paths": {
@@ -18,7 +20,9 @@
"in": "query",
"description": "The url to proxy from",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {}
@@ -34,7 +38,9 @@
"in": "query",
"description": "URL to unfold",
"required": true,
- "schema": { "type": "string" }
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -42,21 +48,41 @@
"description": "",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetUnfurlResponse" }
+ "schema": {
+ "$ref": "#/components/schemas/GetUnfurlResponse"
+ }
}
}
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -69,7 +95,9 @@
"description": "JSON list of URLs",
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/GetUnfurlBulkBody" }
+ "schema": {
+ "$ref": "#/components/schemas/GetUnfurlBulkBody"
+ }
}
},
"required": true
@@ -87,15 +115,33 @@
},
"401": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"404": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"500": {
"description": "",
- "content": { "text/plain": { "schema": { "type": "string" } } }
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
}
}
}
@@ -107,49 +153,88 @@
"type": "object",
"required": ["url_list"],
"properties": {
- "url_list": { "type": "array", "items": { "type": "string" } }
+ "url_list": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
"GetUnfurlBulkResponse": {
"type": "object",
"required": ["responses"],
- "properties": { "responses": { "$ref": "#/components/schemas/Vec" } }
+ "properties": {
+ "responses": {
+ "$ref": "#/components/schemas/Vec"
+ }
+ }
},
"GetUnfurlQueryParams": {
"type": "object",
"required": ["url"],
- "properties": { "url": { "type": "string" } }
+ "properties": {
+ "url": {
+ "type": "string"
+ }
+ }
},
"GetUnfurlResponse": {
"type": "object",
"required": ["url", "title"],
"properties": {
- "description": { "type": ["string", "null"] },
- "favicon_url": { "type": ["string", "null"] },
- "image_url": { "type": ["string", "null"] },
- "title": { "type": "string" },
- "url": { "type": "string" }
+ "description": {
+ "type": ["string", "null"]
+ },
+ "favicon_url": {
+ "type": ["string", "null"]
+ },
+ "image_url": {
+ "type": ["string", "null"]
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
}
},
"ProxyParams": {
"type": "object",
"required": ["url"],
- "properties": { "url": { "type": "string" } }
+ "properties": {
+ "url": {
+ "type": "string"
+ }
+ }
},
"Vec": {
"type": "array",
"items": {
"oneOf": [
- { "type": "null" },
+ {
+ "type": "null"
+ },
{
"type": "object",
"required": ["url", "title"],
"properties": {
- "description": { "type": ["string", "null"] },
- "favicon_url": { "type": ["string", "null"] },
- "image_url": { "type": ["string", "null"] },
- "title": { "type": "string" },
- "url": { "type": "string" }
+ "description": {
+ "type": ["string", "null"]
+ },
+ "favicon_url": {
+ "type": ["string", "null"]
+ },
+ "image_url": {
+ "type": ["string", "null"]
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
}
}
]
@@ -157,5 +242,10 @@
}
}
},
- "tags": [{ "name": "macro unfurl service", "description": "Unfurl Service" }]
+ "tags": [
+ {
+ "name": "macro unfurl service",
+ "description": "Unfurl Service"
+ }
+ ]
}
diff --git a/js/app/scripts/generate-api-schema.ts b/js/app/scripts/generate-api-schema.ts
index 3fbd98bd26..e20d210d93 100644
--- a/js/app/scripts/generate-api-schema.ts
+++ b/js/app/scripts/generate-api-schema.ts
@@ -1,134 +1,187 @@
// Usage:
-// bun run scripts/generate-api-schema.ts <service-name> // to run only for a specific service
-// bun run scripts/generate-api-schema.ts // to run only for all services
+// bun run scripts/generate-api-schema.ts <service-name> // generate for specific service
+// bun run scripts/generate-api-schema.ts // generate for all services
+// bun run scripts/generate-api-schema.ts --check // verify types are up to date (for CI)
+//
+// This script generates OpenAPI schemas by running the local Rust binaries
+// instead of fetching from deployed services.
import * as path from 'node:path';
import { $, write } from 'bun';
-import { type Service, services, serviceUrl } from './services';
-
-// Get biome executable path (prefer system install over node_modules)
-const findBiomeScript = `
-IFS=':'
-for dir in $PATH; do
- if [ -f "$dir/biome" ] && [ -x "$dir/biome" ]; then
- realpath "$dir/biome"
- fi
-done
-`;
-const allBiomePaths = (await $`bash -c ${findBiomeScript}`.text()).trim().split('\n').filter(p => p);
-let biomePath = allBiomePaths.find(p => !p.includes('node_modules'));
-
-// Fallback to node_modules/.bin/biome if system biome not found
-if (!biomePath) {
- const nodeModulesBiome = path.resolve(import.meta.dirname, '../node_modules/.bin/biome');
- try {
- await $`test -x ${nodeModulesBiome}`;
- biomePath = nodeModulesBiome;
- } catch {
- console.error('Error: biome executable not found in PATH or node_modules');
- process.exit(1);
- }
-}
+import { type Service, services } from './services';
-const serviceClientsDir = path.resolve(import.meta.dirname, '../packages/service-clients');
+// Map service names to Rust crate names
+const serviceToCrate: Record<string, string> = {
+ 'cloud-storage': 'document_storage_service',
+ 'document-cognition': 'document_cognition_service',
+ 'auth-service': 'authentication_service',
+ 'comms-service': 'comms_service',
+ 'notification-service': 'notification_service',
+ 'static-files': 'static_file_service',
+ 'connection-gateway': 'connection_gateway',
+ 'contacts-service': 'contacts_service',
+ 'unfurl-service': 'unfurl_service',
+ 'email-service': 'email_service',
+ 'search-service': 'search_service',
+ 'properties-service': 'properties_service',
+ 'organization-service': 'organization_service',
+};
-async function downloadJson(url: string, outputFile: string): Promise<void> {
- try {
- const response = await fetch(url);
- if (!response.ok) {
- throw new Error(`HTTP error! status: ${response.status}`);
+const getRustCloudStorageDir = () => path.resolve(import.meta.dirname, '../../../rust/cloud-storage');
+const getServiceClientsDir = () => path.resolve(import.meta.dirname, '../packages/service-clients');
+// Parse arguments
+const getTargetServices = () => process.argv.slice(2).filter(arg => arg !== '--check');
+
+
+async function generateOpenApiFromCrate(crateName: string, rustCloudStorageDir = getRustCloudStorageDir()): Promise<string> {
+ const result = await $`cd ${rustCloudStorageDir} && SQLX_OFFLINE=true cargo run -p ${crateName} --bin ${crateName}_openapi`.text();
+ return result;
+}
+
+// Recursively sort all object keys in JSON to ensure deterministic output
+function sortJsonKeys(obj: unknown): unknown {
+ if (Array.isArray(obj)) {
+ return obj.map(sortJsonKeys);
+ }
+ if (obj !== null && typeof obj === 'object') {
+ const sorted: Record<string, unknown> = {};
+ for (const key of Object.keys(obj).sort()) {
+ sorted[key] = sortJsonKeys((obj as Record<string, unknown>)[key]);
}
- const jsonData = await response.text();
- await write(outputFile, jsonData);
- console.log(
- `Successfully downloaded and saved JSON from ${url} to ${outputFile}`
- );
- } catch (error) {
- console.error('An error occurred:', error);
+ return sorted;
}
+ return obj;
}
-// Get all arguments after "scripts/generate-api-schema.ts"
-// e.g., ["auth-service", "notification-service"]
-const targetServices = process.argv.slice(2);
-
-// Figure out which services to process
-let servicesToProcess: Service[];
-if (targetServices.length > 0) {
- // Filter only those whose names match the arguments
- servicesToProcess = services.filter((service) =>
- targetServices.includes(service.name)
- );
-
- // If none matched, bail out
- if (servicesToProcess.length === 0) {
- console.error(
- `Error: No matching services found for [${targetServices.join(', ')}].
- Valid options are: ${services.map((s) => s.name).join(', ')}`
+const getServicesToProcess = (targetServices: string[]) => {
+ // Figure out which services to process
+ let servicesToProcess: Service[];
+ if (targetServices.length > 0) {
+ // Filter only those whose names match the arguments
+ servicesToProcess = services.filter((service) =>
+ targetServices.includes(service.name)
);
- process.exit(1);
+
+ // If none matched, bail out
+ if (servicesToProcess.length === 0) {
+ console.error(
+ `Error: No matching services found for [${targetServices.join(', ')}].
+ Valid options are: ${services.map((s) => s.name).join(', ')}`
+ );
+ process.exit(1);
+ }
+ } else {
+ // If no arguments, process all
+ servicesToProcess = services;
}
-} else {
- // If no arguments, process all
- servicesToProcess = services;
+
+ return servicesToProcess
}
+
// Process all services in parallel
-const processService = async (service: Service) => {
+const processService = async (service: Service, { serviceClientsDir }: { serviceClientsDir: string }) => {
+ const crateName = serviceToCrate[service.name];
+ if (!crateName) {
+ console.error(`[${service.name}] No crate mapping found, skipping`);
+ return { service: service.name, status: 'skipped' };
+ }
+
try {
- let schemaUrl = serviceUrl(service);
const outputDir = path.resolve(import.meta.dirname, service.output);
const generatedDir = path.resolve(outputDir, 'generated');
- console.log(
- `[${service.name}] removing existing generated dir`,
- generatedDir
- );
- console.log(`[${service.name}] output dir`, outputDir);
+ const openApiPath = path.join(outputDir, 'openapi.json');
+
+ console.log(`[${service.name}] Generating OpenAPI spec from ${crateName}...`);
+
+ // Generate OpenAPI JSON from Rust binary
+ let openApiJson = await generateOpenApiFromCrate(crateName);
+
+
+ // Remove existing generated dir
+ console.log(`[${service.name}] Removing existing generated dir`, generatedDir);
await $`rm -rf ${generatedDir}`;
- await downloadJson(schemaUrl, path.join(outputDir, 'openapi.json'));
- await $`${biomePath} format --fix ${path.join(outputDir, 'openapi.json')}`;
+
+ // Write the OpenAPI JSON
+ await write(openApiPath, openApiJson);
+ console.log(`[${service.name}] Saved OpenAPI spec to ${openApiPath}`);
+
+ // Run orval to generate types
await $`cd ${serviceClientsDir} && bun run orval --config orval.config.ts --project ${service.orvalKey}`;
- if (service.name === 'document-cognition')
- await $`bun scripts/generate-dcs-types.ts`;
- console.log(`[${service.name}] ✅ Successfully processed`);
+
+ // Organize imports in generated files to ensure deterministic ordering
+ await $`bunx biome check --write --unsafe ${outputDir}`;
+
+ // Special handling for document-cognition
+ if (service.name === 'document-cognition') {
+ await $`cd ${path.resolve(import.meta.dirname, '..')} && bun scripts/generate-dcs-types.ts`;
+ }
+
+ console.log(`[${service.name}] Successfully processed`);
return { service: service.name, status: 'success' };
} catch (error) {
- console.error(`[${service.name}] ❌ Failed to process:`, error);
+ console.error(`[${service.name}] Failed to process:`, error);
return { service: service.name, status: 'failed', error };
}
};
-console.log(
- `\n🚀 Processing ${servicesToProcess.length} service(s) in parallel...\n`
-);
-
-const results = await Promise.allSettled(
- servicesToProcess.map((service) => processService(service))
-);
-
-// Summary report
-console.log('\n📊 Processing Summary:');
-const succeeded = results.filter(
- (r) => r.status === 'fulfilled' && r.value.status === 'success'
-);
-const failed = results.filter(
- (r) =>
- r.status === 'rejected' ||
- (r.status === 'fulfilled' && r.value.status === 'failed')
-);
-
-console.log(`✅ Succeeded: ${succeeded.length}/${servicesToProcess.length}`);
-if (failed.length > 0) {
- console.log(`❌ Failed: ${failed.length}/${servicesToProcess.length}`);
- failed.forEach((result) => {
- if (result.status === 'rejected') {
- console.error(` - Unknown service failed:`, result.reason);
- } else if (
- result.status === 'fulfilled' &&
- result.value.status === 'failed'
- ) {
- console.error(` - ${result.value.service}:`, result.value.error);
+
+// Process services sequentially to avoid cargo lock contention
+async function main() {
+ const serviceClientsDir = getServiceClientsDir();
+ const checkMode = process.argv.includes('--check');
+ const targetServices = getTargetServices();
+ const servicesToProcess = getServicesToProcess(targetServices);
+ console.log(
+ `\nProcessing ${servicesToProcess.length} service(s)...\n`
+ );
+
+ const results = [];
+ for (const service of servicesToProcess) {
+ const result = await processService(service, { serviceClientsDir } );
+ results.push(result);
+ }
+
+ // Summary report
+ console.log('\nProcessing Summary:');
+ const succeeded = results.filter((r) => r.status === 'success');
+ const failed = results.filter((r) => r.status === 'failed');
+ const skipped = results.filter((r) => r.status === 'skipped');
+
+
+ console.log(`Succeeded: ${succeeded.length}/${servicesToProcess.length}`);
+ if (skipped.length > 0) {
+ console.log(`Skipped: ${skipped.length}/${servicesToProcess.length}`);
+ }
+ if (failed.length > 0) {
+ console.log(`Failed: ${failed.length}/${servicesToProcess.length}`);
+ failed.forEach((result) => {
+ console.error(` - ${result.service}:`, result.error);
+ });
+ process.exit(1);
+ }
+ await $`bunx biome check --write --unsafe packages/service-clients/`;
+
+ // In check mode, verify no uncommitted changes
+ if (checkMode) {
+ const diff = await $`git diff --ignore-blank-lines ${serviceClientsDir}`.text();
+ const untrackedFiles = await $`git ls-files --others --exclude-standard ${serviceClientsDir}`.text();
+
+ if (diff.trim() || untrackedFiles.trim()) {
+ console.error('\n❌ Generated types are out of sync with Rust API definitions!');
+ console.error('The following files have changed:');
+ if (diff.trim()) console.error(diff);
+ if (untrackedFiles.trim()) console.error('Untracked:\n' + untrackedFiles);
+ const gitStatus = await $`git status`.text();
+ console.error('`git status` output:')
+ console.error(gitStatus.trim());
+ console.error('\nPlease run: bun run scripts/generate-api-schema.ts');
+ console.error('Then commit the changes.');
+ process.exit(1);
}
- });
- process.exit(1);
+
+ console.log('\n✓ Generated types are up to date');
+ }
}
+
+await main();
diff --git a/rust/cloud-storage/authentication_service/Cargo.toml b/rust/cloud-storage/authentication_service/Cargo.toml
index ecb2fe6e36..6c405baa7e 100644
--- a/rust/cloud-storage/authentication_service/Cargo.toml
+++ b/rust/cloud-storage/authentication_service/Cargo.toml
@@ -17,6 +17,10 @@ path = "src/bin/generate_keys.rs"
name = "backfill_null_macro_user_id"
path = "src/bin/backfill_null_macro_user_id.rs"
+[[bin]]
+name = "authentication_service_openapi"
+path = "src/openapi.rs"
+
[features]
default = ["rate_limit"]
local = []
diff --git a/rust/cloud-storage/authentication_service/src/api/mod.rs b/rust/cloud-storage/authentication_service/src/api/mod.rs
index 0f7956f9aa..83376dfb40 100644
--- a/rust/cloud-storage/authentication_service/src/api/mod.rs
+++ b/rust/cloud-storage/authentication_service/src/api/mod.rs
@@ -38,7 +38,7 @@ mod webhooks;
// Misc
mod middleware;
-mod swagger;
+pub(crate) mod swagger;
mod utils;
pub async fn setup_and_serve(state: ApiContext, port: usize) -> anyhow::Result<()> {
diff --git a/rust/cloud-storage/authentication_service/src/openapi.rs b/rust/cloud-storage/authentication_service/src/openapi.rs
new file mode 100644
index 0000000000..db25019c23
--- /dev/null
+++ b/rust/cloud-storage/authentication_service/src/openapi.rs
@@ -0,0 +1,16 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod generate_password;
+mod rate_limit_config;
+mod service;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/comms_service/Cargo.toml b/rust/cloud-storage/comms_service/Cargo.toml
index 214356a3ba..65562ac772 100644
--- a/rust/cloud-storage/comms_service/Cargo.toml
+++ b/rust/cloud-storage/comms_service/Cargo.toml
@@ -15,6 +15,10 @@ name = "backfill_comms_search"
path = "src/bin/backfill_search.rs"
required-features = []
+[[bin]]
+name = "comms_service_openapi"
+path = "src/openapi.rs"
+
[features]
channel_search = []
default = ["channel_search", "service"]
diff --git a/rust/cloud-storage/comms_service/src/api/mod.rs b/rust/cloud-storage/comms_service/src/api/mod.rs
index 5194003a9c..a6c4f3f14e 100644
--- a/rust/cloud-storage/comms_service/src/api/mod.rs
+++ b/rust/cloud-storage/comms_service/src/api/mod.rs
@@ -18,7 +18,7 @@ mod internal;
mod mentions;
mod middleware;
mod preview;
-mod swagger;
+pub(crate) mod swagger;
type Service = IntoMakeService<Router>;
diff --git a/rust/cloud-storage/comms_service/src/openapi.rs b/rust/cloud-storage/comms_service/src/openapi.rs
new file mode 100644
index 0000000000..1e228683b4
--- /dev/null
+++ b/rust/cloud-storage/comms_service/src/openapi.rs
@@ -0,0 +1,17 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod constants;
+mod notification;
+mod service;
+mod utils;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/connection_gateway/Cargo.toml b/rust/cloud-storage/connection_gateway/Cargo.toml
index 501192142b..8c197662db 100644
--- a/rust/cloud-storage/connection_gateway/Cargo.toml
+++ b/rust/cloud-storage/connection_gateway/Cargo.toml
@@ -19,6 +19,10 @@ path = "src/main.rs"
name = "stale_connections"
path = "scripts/stale_connections.rs"
+[[bin]]
+name = "connection_gateway_openapi"
+path = "src/openapi.rs"
+
[dependencies]
anyhow = { workspace = true }
aws-config = { workspace = true }
diff --git a/rust/cloud-storage/connection_gateway/src/api/mod.rs b/rust/cloud-storage/connection_gateway/src/api/mod.rs
index 942cf9eab7..3a561cf055 100644
--- a/rust/cloud-storage/connection_gateway/src/api/mod.rs
+++ b/rust/cloud-storage/connection_gateway/src/api/mod.rs
@@ -11,7 +11,7 @@ mod connection;
mod entities;
mod health;
mod message;
-mod swagger;
+pub(crate) mod swagger;
pub fn router(state: AppState) -> Router {
Router::new()
diff --git a/rust/cloud-storage/connection_gateway/src/openapi.rs b/rust/cloud-storage/connection_gateway/src/openapi.rs
new file mode 100644
index 0000000000..9d0c0fc036
--- /dev/null
+++ b/rust/cloud-storage/connection_gateway/src/openapi.rs
@@ -0,0 +1,17 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod constants;
+mod context;
+mod model;
+mod service;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/contacts_service/Cargo.toml b/rust/cloud-storage/contacts_service/Cargo.toml
index 5389404cd0..1cd50bdce9 100644
--- a/rust/cloud-storage/contacts_service/Cargo.toml
+++ b/rust/cloud-storage/contacts_service/Cargo.toml
@@ -9,6 +9,10 @@ version = "0.1.0"
name = "contacts_service"
path = "src/main.rs"
+[[bin]]
+name = "contacts_service_openapi"
+path = "src/openapi.rs"
+
[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
diff --git a/rust/cloud-storage/contacts_service/src/api/mod.rs b/rust/cloud-storage/contacts_service/src/api/mod.rs
index ab793f6ed6..2d15e45800 100644
--- a/rust/cloud-storage/contacts_service/src/api/mod.rs
+++ b/rust/cloud-storage/contacts_service/src/api/mod.rs
@@ -16,7 +16,7 @@ use utoipa_swagger_ui::SwaggerUi;
pub(crate) mod context;
mod health;
-mod swagger;
+pub(crate) mod swagger;
pub async fn setup_and_serve(state: context::AppState) -> anyhow::Result<()> {
let cors = macro_cors::cors_layer();
diff --git a/rust/cloud-storage/contacts_service/src/openapi.rs b/rust/cloud-storage/contacts_service/src/openapi.rs
new file mode 100644
index 0000000000..e7cbf87023
--- /dev/null
+++ b/rust/cloud-storage/contacts_service/src/openapi.rs
@@ -0,0 +1,16 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod graph;
+mod queue;
+mod user;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/document_cognition_service/Cargo.toml b/rust/cloud-storage/document_cognition_service/Cargo.toml
index cf867946bf..c2e8ad7112 100644
--- a/rust/cloud-storage/document_cognition_service/Cargo.toml
+++ b/rust/cloud-storage/document_cognition_service/Cargo.toml
@@ -13,6 +13,10 @@ path = "src/main.rs"
name = "backfill_dcs_search"
path = "src/bin/backfill_search.rs"
+[[bin]]
+name = "document_cognition_service_openapi"
+path = "src/openapi.rs"
+
[features]
local = []
local_queue = []
diff --git a/rust/cloud-storage/document_cognition_service/src/api/mod.rs b/rust/cloud-storage/document_cognition_service/src/api/mod.rs
index 62854557a7..4aca39cec9 100644
--- a/rust/cloud-storage/document_cognition_service/src/api/mod.rs
+++ b/rust/cloud-storage/document_cognition_service/src/api/mod.rs
@@ -19,7 +19,7 @@ mod health;
mod internal;
mod models;
mod preview;
-mod swagger;
+pub(crate) mod swagger;
pub mod utils;
mod ws;
diff --git a/rust/cloud-storage/document_cognition_service/src/openapi.rs b/rust/cloud-storage/document_cognition_service/src/openapi.rs
new file mode 100644
index 0000000000..6f819696a5
--- /dev/null
+++ b/rust/cloud-storage/document_cognition_service/src/openapi.rs
@@ -0,0 +1,18 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod core;
+mod model;
+mod service;
+
+pub use config::Config;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/document_storage_service/Cargo.toml b/rust/cloud-storage/document_storage_service/Cargo.toml
index 7c2120973d..95b8426375 100644
--- a/rust/cloud-storage/document_storage_service/Cargo.toml
+++ b/rust/cloud-storage/document_storage_service/Cargo.toml
@@ -17,6 +17,10 @@ path = "src/bin/backfill_search.rs"
name = "backfill_useritemaccess"
path = "src/bin/backfill_useritemaccess/mod.rs"
+[[bin]]
+name = "document_storage_service_openapi"
+path = "src/openapi.rs"
+
[features]
connection_gateway = []
default = ["connection_gateway", "location_check"]
diff --git a/rust/cloud-storage/document_storage_service/src/api/mod.rs b/rust/cloud-storage/document_storage_service/src/api/mod.rs
index d4d6e9c5a8..fc14725882 100644
--- a/rust/cloud-storage/document_storage_service/src/api/mod.rs
+++ b/rust/cloud-storage/document_storage_service/src/api/mod.rs
@@ -40,7 +40,7 @@ mod user_document_view_location;
mod items;
mod permissions;
-mod swagger;
+pub(crate) mod swagger;
mod threads;
// Constants
diff --git a/rust/cloud-storage/document_storage_service/src/openapi.rs b/rust/cloud-storage/document_storage_service/src/openapi.rs
new file mode 100644
index 0000000000..cf946bb8a6
--- /dev/null
+++ b/rust/cloud-storage/document_storage_service/src/openapi.rs
@@ -0,0 +1,15 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod model;
+mod service;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/email_service/Cargo.toml b/rust/cloud-storage/email_service/Cargo.toml
index 6c4398eda5..1c6940c94c 100644
--- a/rust/cloud-storage/email_service/Cargo.toml
+++ b/rust/cloud-storage/email_service/Cargo.toml
@@ -29,6 +29,10 @@ path = "src/bin/backfill_sfs_attachments/backfill_sfs_attachments.rs"
name = "pubsub_workers"
path = "src/bin/pubsub_workers/pubsub_workers.rs"
+[[bin]]
+name = "email_service_openapi"
+path = "src/openapi.rs"
+
[features]
attachment_upload = []
connection_gateway = []
@@ -110,7 +114,7 @@ sqs_client = { path = "../sqs_client", default-features = false, features = [
"email",
"gmail",
"search",
- "sfs_uploader",
+ "sfs_uploader"
] }
sqs_worker = { path = "../sqs_worker" }
static_file_service_client = { path = "../static_file_service_client" }
diff --git a/rust/cloud-storage/email_service/src/api/mod.rs b/rust/cloud-storage/email_service/src/api/mod.rs
index e02594b883..f1397ca8c6 100644
--- a/rust/cloud-storage/email_service/src/api/mod.rs
+++ b/rust/cloud-storage/email_service/src/api/mod.rs
@@ -16,7 +16,7 @@ pub(crate) mod context;
pub(crate) mod gmail;
mod internal;
mod middleware;
-mod swagger;
+pub(crate) mod swagger;
pub async fn setup_and_serve(state: ApiContext) -> anyhow::Result<()> {
let env = state.config.environment;
diff --git a/rust/cloud-storage/email_service/src/openapi.rs b/rust/cloud-storage/email_service/src/openapi.rs
new file mode 100644
index 0000000000..53e0d0b752
--- /dev/null
+++ b/rust/cloud-storage/email_service/src/openapi.rs
@@ -0,0 +1,16 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod pubsub;
+mod util;
+mod utils;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/notification_service/Cargo.toml b/rust/cloud-storage/notification_service/Cargo.toml
index c571e6c74b..585812c022 100644
--- a/rust/cloud-storage/notification_service/Cargo.toml
+++ b/rust/cloud-storage/notification_service/Cargo.toml
@@ -13,6 +13,10 @@ path = "src/notification_email_poller_worker.rs"
name = "notification_service"
path = "src/main.rs"
+[[bin]]
+name = "notification_service_openapi"
+path = "src/openapi.rs"
+
[features]
connection_gateway = ["notification_worker"]
default = [
diff --git a/rust/cloud-storage/notification_service/src/api/mod.rs b/rust/cloud-storage/notification_service/src/api/mod.rs
index c11b91fcce..7ddf477619 100644
--- a/rust/cloud-storage/notification_service/src/api/mod.rs
+++ b/rust/cloud-storage/notification_service/src/api/mod.rs
@@ -18,7 +18,7 @@ mod notification;
mod unsubscribe;
mod user_notification;
-mod swagger;
+pub(crate) mod swagger;
pub async fn setup_and_serve(state: ApiContext) -> anyhow::Result<()> {
let port = state.config.port;
diff --git a/rust/cloud-storage/notification_service/src/openapi.rs b/rust/cloud-storage/notification_service/src/openapi.rs
new file mode 100644
index 0000000000..9a5ac859d1
--- /dev/null
+++ b/rust/cloud-storage/notification_service/src/openapi.rs
@@ -0,0 +1,18 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod env;
+mod model;
+mod notification;
+mod push_notification_event;
+mod templates;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/organization_service/Cargo.toml b/rust/cloud-storage/organization_service/Cargo.toml
index 2eb04f3eb8..e6bd48f080 100644
--- a/rust/cloud-storage/organization_service/Cargo.toml
+++ b/rust/cloud-storage/organization_service/Cargo.toml
@@ -4,6 +4,14 @@ name = "organization_service"
publish = false
version = "0.1.0"
+[[bin]]
+name = "organization_service"
+path = "src/main.rs"
+
+[[bin]]
+name = "organization_service_openapi"
+path = "src/openapi.rs"
+
[dependencies]
anyhow = { workspace = true }
aws-config = { workspace = true }
diff --git a/rust/cloud-storage/organization_service/src/api/mod.rs b/rust/cloud-storage/organization_service/src/api/mod.rs
index 77206a2f1a..b1154062bc 100644
--- a/rust/cloud-storage/organization_service/src/api/mod.rs
+++ b/rust/cloud-storage/organization_service/src/api/mod.rs
@@ -20,7 +20,7 @@ mod users;
mod middleware;
-mod swagger;
+pub(crate) mod swagger;
// Constants
// role based constants
diff --git a/rust/cloud-storage/organization_service/src/openapi.rs b/rust/cloud-storage/organization_service/src/openapi.rs
new file mode 100644
index 0000000000..d6eff42d1e
--- /dev/null
+++ b/rust/cloud-storage/organization_service/src/openapi.rs
@@ -0,0 +1,16 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod model;
+mod service;
+mod utils;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/properties_service/Cargo.toml b/rust/cloud-storage/properties_service/Cargo.toml
index e490e041d5..3799cde53f 100644
--- a/rust/cloud-storage/properties_service/Cargo.toml
+++ b/rust/cloud-storage/properties_service/Cargo.toml
@@ -10,6 +10,9 @@ name = "properties_service"
path = "src/main.rs"
required-features = []
+[[bin]]
+name = "properties_service_openapi"
+path = "src/openapi.rs"
[features]
local_auth = []
diff --git a/rust/cloud-storage/properties_service/src/openapi.rs b/rust/cloud-storage/properties_service/src/openapi.rs
new file mode 100644
index 0000000000..5c7751810d
--- /dev/null
+++ b/rust/cloud-storage/properties_service/src/openapi.rs
@@ -0,0 +1,14 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod constants;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/search_service/Cargo.toml b/rust/cloud-storage/search_service/Cargo.toml
index 4c08d2fcf3..676c5b9732 100644
--- a/rust/cloud-storage/search_service/Cargo.toml
+++ b/rust/cloud-storage/search_service/Cargo.toml
@@ -4,6 +4,14 @@ name = "search_service"
publish = false
version = "0.1.0"
+[[bin]]
+name = "search_service"
+path = "src/main.rs"
+
+[[bin]]
+name = "search_service_openapi"
+path = "src/openapi.rs"
+
[dependencies]
anyhow = { workspace = true }
aws-config = { workspace = true }
diff --git a/rust/cloud-storage/search_service/src/api/mod.rs b/rust/cloud-storage/search_service/src/api/mod.rs
index a1c263762e..69a754ea6f 100644
--- a/rust/cloud-storage/search_service/src/api/mod.rs
+++ b/rust/cloud-storage/search_service/src/api/mod.rs
@@ -13,7 +13,7 @@ mod search;
// Misc
pub(crate) mod context;
-mod swagger;
+pub(crate) mod swagger;
pub async fn setup_and_serve(state: ApiContext) -> anyhow::Result<()> {
let cors = macro_cors::cors_layer();
diff --git a/rust/cloud-storage/search_service/src/openapi.rs b/rust/cloud-storage/search_service/src/openapi.rs
new file mode 100644
index 0000000000..faf5b1c433
--- /dev/null
+++ b/rust/cloud-storage/search_service/src/openapi.rs
@@ -0,0 +1,13 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/static_file_service/Cargo.toml b/rust/cloud-storage/static_file_service/Cargo.toml
index 4c3b8c9de2..b24347f378 100644
--- a/rust/cloud-storage/static_file_service/Cargo.toml
+++ b/rust/cloud-storage/static_file_service/Cargo.toml
@@ -4,6 +4,14 @@ name = "static_file_service"
publish = false
version = "0.1.0"
+[[bin]]
+name = "static_file_service"
+path = "src/main.rs"
+
+[[bin]]
+name = "static_file_service_openapi"
+path = "src/openapi.rs"
+
[features]
dynamodb_client_test = []
local_auth = []
diff --git a/rust/cloud-storage/static_file_service/src/api/mod.rs b/rust/cloud-storage/static_file_service/src/api/mod.rs
index d2c647a35c..c908a1073f 100644
--- a/rust/cloud-storage/static_file_service/src/api/mod.rs
+++ b/rust/cloud-storage/static_file_service/src/api/mod.rs
@@ -2,7 +2,7 @@ pub mod context;
mod event;
pub mod file;
mod health;
-mod swagger;
+pub(crate) mod swagger;
use super::config::Config;
use super::service::dynamodb::client::DynamodbClient;
diff --git a/rust/cloud-storage/static_file_service/src/openapi.rs b/rust/cloud-storage/static_file_service/src/openapi.rs
new file mode 100644
index 0000000000..cf946bb8a6
--- /dev/null
+++ b/rust/cloud-storage/static_file_service/src/openapi.rs
@@ -0,0 +1,15 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod model;
+mod service;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}
diff --git a/rust/cloud-storage/unfurl_service/Cargo.toml b/rust/cloud-storage/unfurl_service/Cargo.toml
index f275799ce4..a4ff3fc95f 100644
--- a/rust/cloud-storage/unfurl_service/Cargo.toml
+++ b/rust/cloud-storage/unfurl_service/Cargo.toml
@@ -4,6 +4,14 @@ name = "unfurl_service"
publish = false
version = "0.1.0"
+[[bin]]
+name = "unfurl_service"
+path = "src/main.rs"
+
+[[bin]]
+name = "unfurl_service_openapi"
+path = "src/openapi.rs"
+
[features]
mock = []
diff --git a/rust/cloud-storage/unfurl_service/src/api/mod.rs b/rust/cloud-storage/unfurl_service/src/api/mod.rs
index a7acc25b19..3338674d84 100644
--- a/rust/cloud-storage/unfurl_service/src/api/mod.rs
+++ b/rust/cloud-storage/unfurl_service/src/api/mod.rs
@@ -8,7 +8,7 @@ use utoipa_swagger_ui::SwaggerUi;
pub mod context;
mod health;
mod proxy;
-mod swagger;
+pub(crate) mod swagger;
mod unfurl;
pub async fn setup_and_serve(config: &Config) -> anyhow::Result<()> {
diff --git a/rust/cloud-storage/unfurl_service/src/openapi.rs b/rust/cloud-storage/unfurl_service/src/openapi.rs
new file mode 100644
index 0000000000..775dc59b53
--- /dev/null
+++ b/rust/cloud-storage/unfurl_service/src/openapi.rs
@@ -0,0 +1,14 @@
+#![allow(unused)]
+
+mod api;
+mod config;
+mod unfurl;
+
+use utoipa::OpenApi;
+
+fn main() {
+ println!(
+ "{}",
+ api::swagger::ApiDoc::openapi().to_pretty_json().unwrap()
+ );
+}