Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor(api): remove legacy account update endpoints (#45015)

非法操作02ca1df07d19
diff --git a/api/controllers/console/workspace/account.py b/api/controllers/console/workspace/account.py
index bdf23ffa040..253efff4bfb 100644
--- a/api/controllers/console/workspace/account.py
+++ b/api/controllers/console/workspace/account.py
@@ -74,40 +74,10 @@ class AccountInitPayload(BaseModel):
return timezone(value)
-class AccountNamePayload(BaseModel):
- name: str = Field(min_length=3, max_length=30)
-
-
-class AccountAvatarPayload(BaseModel):
- avatar: str
-
-
class AccountAvatarQuery(BaseModel):
avatar: str = Field(..., description="Avatar file ID")
-class AccountInterfaceLanguagePayload(BaseModel):
- interface_language: str
-
- @field_validator("interface_language")
- @classmethod
- def validate_language(cls, value: str) -> str:
- return supported_language(value)
-
-
-class AccountInterfaceThemePayload(BaseModel):
- interface_theme: Literal["light", "dark"]
-
-
-class AccountTimezonePayload(BaseModel):
- timezone: str
-
- @field_validator("timezone")
- @classmethod
- def validate_timezone(cls, value: str) -> str:
- return timezone(value)
-
-
class AccountProfilePatchPayload(BaseModel):
model_config = ConfigDict(extra="forbid")
@@ -203,12 +173,7 @@ class CheckEmailUniquePayload(BaseModel):
register_schema_models(
console_ns,
AccountInitPayload,
- AccountNamePayload,
- AccountAvatarPayload,
AccountAvatarQuery,
- AccountInterfaceLanguagePayload,
- AccountInterfaceThemePayload,
- AccountTimezonePayload,
AccountProfilePatchPayload,
AccountPasswordPayload,
AccountDeletePayload,
@@ -280,14 +245,6 @@ register_response_schema_models(
)
-def _update_account_profile(request_context: RequestContext, changes: AccountProfileChanges) -> dict[str, object]:
- try:
- account = application_services().accounts.profile.update(request_context, changes)
- except account_errors.AccountNotFoundError as error:
- raise AccountNotFound() from error
- return dump_response(AccountResponse, account)
-
-
@console_ns.route("/account/init")
class AccountInitApi(Resource):
@error_responses(
@@ -335,23 +292,11 @@ class AccountProfileApi(Resource):
@console_account_admission()
@model_validate(AccountProfilePatchPayload)
def patch(self, args: AccountProfilePatchPayload, request_context: RequestContext):
- return _update_account_profile(request_context, args.to_changes())
-
-
-@console_ns.route("/account/name")
-class AccountNameApi(Resource):
- """Deprecated compatibility route; use PATCH /account/profile."""
-
- @error_responses(AccountNotFound)
- @console_ns.doc("update_account_name_deprecated")
- @console_ns.doc(deprecated=True)
- @console_ns.doc(description="Deprecated. Use PATCH /account/profile instead.")
- @console_ns.expect(console_ns.models[AccountNamePayload.__name__])
- @console_ns.response(HTTPStatus.OK, "Success", console_ns.models[AccountResponse.__name__])
- @console_account_admission()
- @model_validate(AccountNamePayload)
- def post(self, args: AccountNamePayload, request_context: RequestContext):
- return _update_account_profile(request_context, AccountProfileChanges(name=args.name))
+ try:
+ account = application_services().accounts.profile.update(request_context, args.to_changes())
+ except account_errors.AccountNotFoundError as error:
+ raise AccountNotFound() from error
+ return dump_response(AccountResponse, account)
@console_ns.route("/account/avatar")
@@ -369,71 +314,6 @@ class AccountAvatarApi(Resource):
raise NotFound("Avatar file not found") from error
return AvatarUrlResponse(avatar_url=avatar_url).model_dump(mode="json")
- @error_responses(AccountNotFound)
- @console_ns.expect(console_ns.models[AccountAvatarPayload.__name__])
- @console_ns.doc("update_account_avatar_deprecated")
- @console_ns.doc(deprecated=True)
- @console_ns.doc(description="Deprecated. Use PATCH /account/profile instead.")
- @console_ns.response(HTTPStatus.OK, "Success", console_ns.models[AccountResponse.__name__])
- @console_account_admission()
- @model_validate(AccountAvatarPayload)
- def post(self, args: AccountAvatarPayload, request_context: RequestContext):
- return _update_account_profile(request_context, AccountProfileChanges(avatar=args.avatar))
-
-
-@console_ns.route("/account/interface-language")
-class AccountInterfaceLanguageApi(Resource):
- """Deprecated compatibility route; use PATCH /account/profile."""
-
- @error_responses(AccountNotFound)
- @console_ns.doc("update_account_interface_language_deprecated")
- @console_ns.doc(deprecated=True)
- @console_ns.doc(description="Deprecated. Use PATCH /account/profile instead.")
- @console_ns.expect(console_ns.models[AccountInterfaceLanguagePayload.__name__])
- @console_ns.response(HTTPStatus.OK, "Success", console_ns.models[AccountResponse.__name__])
- @console_account_admission()
- @model_validate(AccountInterfaceLanguagePayload)
- def post(self, args: AccountInterfaceLanguagePayload, request_context: RequestContext):
- return _update_account_profile(
- request_context,
- AccountProfileChanges(interface_language=args.interface_language),
- )
-
-
-@console_ns.route("/account/interface-theme")
-class AccountInterfaceThemeApi(Resource):
- """Deprecated compatibility route; use PATCH /account/profile."""
-
- @error_responses(AccountNotFound)
- @console_ns.doc("update_account_interface_theme_deprecated")
- @console_ns.doc(deprecated=True)
- @console_ns.doc(description="Deprecated. Use PATCH /account/profile instead.")
- @console_ns.expect(console_ns.models[AccountInterfaceThemePayload.__name__])
- @console_ns.response(HTTPStatus.OK, "Success", console_ns.models[AccountResponse.__name__])
- @console_account_admission()
- @model_validate(AccountInterfaceThemePayload)
- def post(self, args: AccountInterfaceThemePayload, request_context: RequestContext):
- return _update_account_profile(
- request_context,
- AccountProfileChanges(interface_theme=args.interface_theme),
- )
-
-
-@console_ns.route("/account/timezone")
-class AccountTimezoneApi(Resource):
- """Deprecated compatibility route; use PATCH /account/profile."""
-
- @error_responses(AccountNotFound)
- @console_ns.doc("update_account_timezone_deprecated")
- @console_ns.doc(deprecated=True)
- @console_ns.doc(description="Deprecated. Use PATCH /account/profile instead.")
- @console_ns.expect(console_ns.models[AccountTimezonePayload.__name__])
- @console_ns.response(HTTPStatus.OK, "Success", console_ns.models[AccountResponse.__name__])
- @console_account_admission()
- @model_validate(AccountTimezonePayload)
- def post(self, args: AccountTimezonePayload, request_context: RequestContext):
- return _update_account_profile(request_context, AccountProfileChanges(timezone=args.timezone))
-
@console_ns.route("/account/password")
class AccountPasswordApi(Resource):
diff --git a/api/openapi/markdown/console-openapi.md b/api/openapi/markdown/console-openapi.md
index 73e032f3e23..f5d442cf4b3 100644
--- a/api/openapi/markdown/console-openapi.md
+++ b/api/openapi/markdown/console-openapi.md
@@ -28,26 +28,6 @@ Get account avatar url
| 200 | Success | **application/json**: [AvatarUrlResponse](#avatarurlresponse)<br> |
| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-### ~~[POST] /account/avatar~~
-
-***DEPRECATED***
-
-Deprecated. Use PATCH /account/profile instead.
-
-#### Request Body
-
-| Required | Schema |
-| -------- | ------ |
-| Yes | **application/json**: [AccountAvatarPayload](#accountavatarpayload)<br> |
-
-#### Responses
-
-| Code | Description | Schema |
-| ---- | ----------- | ------ |
-| 200 | Success | **application/json**: [AccountResponse](#accountresponse)<br> |
-| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
-| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-
### [POST] /account/change-email
#### Request Body
@@ -222,66 +202,6 @@ Deprecated. Use PATCH /account/profile instead.
| 200 | Success | **application/json**: [AccountIntegrateListResponse](#accountintegratelistresponse)<br> |
| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-### ~~[POST] /account/interface-language~~
-
-***DEPRECATED***
-
-Deprecated. Use PATCH /account/profile instead.
-
-#### Request Body
-
-| Required | Schema |
-| -------- | ------ |
-| Yes | **application/json**: [AccountInterfaceLanguagePayload](#accountinterfacelanguagepayload)<br> |
-
-#### Responses
-
-| Code | Description | Schema |
-| ---- | ----------- | ------ |
-| 200 | Success | **application/json**: [AccountResponse](#accountresponse)<br> |
-| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
-| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-
-### ~~[POST] /account/interface-theme~~
-
-***DEPRECATED***
-
-Deprecated. Use PATCH /account/profile instead.
-
-#### Request Body
-
-| Required | Schema |
-| -------- | ------ |
-| Yes | **application/json**: [AccountInterfaceThemePayload](#accountinterfacethemepayload)<br> |
-
-#### Responses
-
-| Code | Description | Schema |
-| ---- | ----------- | ------ |
-| 200 | Success | **application/json**: [AccountResponse](#accountresponse)<br> |
-| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
-| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-
-### ~~[POST] /account/name~~
-
-***DEPRECATED***
-
-Deprecated. Use PATCH /account/profile instead.
-
-#### Request Body
-
-| Required | Schema |
-| -------- | ------ |
-| Yes | **application/json**: [AccountNamePayload](#accountnamepayload)<br> |
-
-#### Responses
-
-| Code | Description | Schema |
-| ---- | ----------- | ------ |
-| 200 | Success | **application/json**: [AccountResponse](#accountresponse)<br> |
-| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
-| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-
### [POST] /account/password
#### Request Body
@@ -321,26 +241,6 @@ Deprecated. Use PATCH /account/profile instead.
| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-### ~~[POST] /account/timezone~~
-
-***DEPRECATED***
-
-Deprecated. Use PATCH /account/profile instead.
-
-#### Request Body
-
-| Required | Schema |
-| -------- | ------ |
-| Yes | **application/json**: [AccountTimezonePayload](#accounttimezonepayload)<br> |
-
-#### Responses
-
-| Code | Description | Schema |
-| ---- | ----------- | ------ |
-| 200 | Success | **application/json**: [AccountResponse](#accountresponse)<br> |
-| 400 | Bad Request | **application/json**: [AccountNotFoundError](#accountnotfounderror)<br>[ErrorResponse](#errorresponse)<br> |
-| default | Error | **application/json**: [ErrorResponse](#errorresponse)<br> |
-
### [POST] /activate
**Accept an invitation without letting an existing session act for another account**
@@ -18334,12 +18234,6 @@ The account has been initialized. Please refresh the page.
| ---- | ---- | ----------- | -------- |
| AccountAlreadyInitedError | | The account has been initialized. Please refresh the page. | |
-#### AccountAvatarPayload
-
-| Name | Type | Description | Required |
-| ---- | ---- | ----------- | -------- |
-| avatar | string | | Yes |
-
#### AccountAvatarQuery
| Name | Type | Description | Required |
@@ -18399,24 +18293,6 @@ This email account has been deleted within the past 30 days and is temporarily u
| link | string | | No |
| provider | string | | Yes |
-#### AccountInterfaceLanguagePayload
-
-| Name | Type | Description | Required |
-| ---- | ---- | ----------- | -------- |
-| interface_language | string | | Yes |
-
-#### AccountInterfaceThemePayload
-
-| Name | Type | Description | Required |
-| ---- | ---- | ----------- | -------- |
-| interface_theme | string, <br>**Available values:** "dark", "light" | *Enum:* `"dark"`, `"light"` | Yes |
-
-#### AccountNamePayload
-
-| Name | Type | Description | Required |
-| ---- | ---- | ----------- | -------- |
-| name | string | | Yes |
-
#### AccountNotFoundError
Account not found.
@@ -18468,12 +18344,6 @@ Account not link tenant.
| name | string | | Yes |
| timezone | string | | No |
-#### AccountTimezonePayload
-
-| Name | Type | Description | Required |
-| ---- | ---- | ----------- | -------- |
-| timezone | string | | Yes |
-
#### AccountWithRoleListResponse
| Name | Type | Description | Required |
diff --git a/api/tests/unit_tests/controllers/console/workspace/test_account.py b/api/tests/unit_tests/controllers/console/workspace/test_account.py
index 61ba19c9e8e..19b5dd14030 100644
--- a/api/tests/unit_tests/controllers/console/workspace/test_account.py
+++ b/api/tests/unit_tests/controllers/console/workspace/test_account.py
@@ -28,7 +28,6 @@ from controllers.console.error import (
)
from controllers.console.workspace.account import (
AccountAvatarApi,
- AccountAvatarPayload,
AccountAvatarQuery,
AccountDeleteApi,
AccountDeletePayload,
@@ -38,18 +37,10 @@ from controllers.console.workspace.account import (
AccountInitApi,
AccountInitPayload,
AccountIntegrateApi,
- AccountInterfaceLanguageApi,
- AccountInterfaceLanguagePayload,
- AccountInterfaceThemeApi,
- AccountInterfaceThemePayload,
- AccountNameApi,
- AccountNamePayload,
AccountPasswordApi,
AccountPasswordPayload,
AccountProfileApi,
AccountProfilePatchPayload,
- AccountTimezoneApi,
- AccountTimezonePayload,
ChangeEmailCheckApi,
ChangeEmailResetApi,
ChangeEmailResetPayload,
@@ -723,76 +714,6 @@ class TestAccountsCases:
assert result["id"] == user.id
get_profile.assert_called_once_with(request_context)
- class TestAccountUpdateApis:
- @pytest.mark.parametrize(
- ("api_cls", "payload_model", "payload", "expected_changes"),
- [
- (AccountNameApi, AccountNamePayload, {"name": "test"}, AccountProfileChanges(name="test")),
- (
- AccountAvatarApi,
- AccountAvatarPayload,
- {"avatar": "img.png"},
- AccountProfileChanges(avatar="img.png"),
- ),
- (
- AccountInterfaceLanguageApi,
- AccountInterfaceLanguagePayload,
- {"interface_language": "en-US"},
- AccountProfileChanges(interface_language="en-US"),
- ),
- (
- AccountInterfaceThemeApi,
- AccountInterfaceThemePayload,
- {"interface_theme": "dark"},
- AccountProfileChanges(interface_theme="dark"),
- ),
- (
- AccountTimezoneApi,
- AccountTimezonePayload,
- {"timezone": "UTC"},
- AccountProfileChanges(timezone="UTC"),
- ),
- ],
- )
- def test_deprecated_update_routes_delegate_to_profile_service(
- self,
- app: Flask,
- account_services: AccountServices,
- api_cls,
- payload_model,
- payload,
- expected_changes: AccountProfileChanges,
- ):
- api = api_cls()
- method = inspect.unwrap(api.post)
- user = make_account()
- request_context = RequestContext(
- request_id="request-1",
- trace_id=None,
- account_id=user.id,
- active_workspace_id="workspace-1",
- )
- update_profile = MagicMock(return_value=user)
-
- with (
- app.test_request_context("/", json=payload),
- patch.object(account_services.profile, "update", update_profile),
- ):
- result = method(api, payload_model.model_validate(payload), request_context)
-
- assert result["id"] == user.id
- update_profile.assert_called_once_with(request_context, expected_changes)
-
- def test_deprecated_update_routes_are_marked_deprecated(self):
- for api_cls in (
- AccountNameApi,
- AccountAvatarApi,
- AccountInterfaceLanguageApi,
- AccountInterfaceThemeApi,
- AccountTimezoneApi,
- ):
- assert api_cls.post.__apidoc__["deprecated"] is True
-
class TestAccountProfilePatchApi:
def test_json_schema_matches_runtime_patch_rules(self):
schema = AccountProfilePatchPayload.model_json_schema()
@@ -939,13 +860,13 @@ class TestAccountsCases:
assert exc_info.value.code == 422
- class TestConvertedPostDecorator:
+ class TestConvertedPatchDecorator:
def test_rejects_an_invalid_body_through_the_decorator(self, app: Flask):
- """The decorator validates the JSON body before the view runs, for the POST handlers too."""
+ """The decorator validates the JSON body before the PATCH handler runs."""
account = make_account()
with (
- app.test_request_context("/account/name", method="POST", json={}),
+ app.test_request_context("/account/profile", method="PATCH", json={"name": None}),
patch("controllers.console.wraps._is_setup_completed", return_value=True),
config_overrides_context(LOGIN_DISABLED=True),
patch(
@@ -958,7 +879,7 @@ class TestAccountsCases:
),
):
with pytest.raises(UnprocessableEntity) as exc_info:
- AccountNameApi().post()
+ AccountProfileApi().patch()
assert exc_info.value.code == 422
diff --git a/api/tests/unit_tests/controllers/service_api/test___init__.py b/api/tests/unit_tests/controllers/service_api/test___init__.py
index cc74d84d0c5..4d4822b789c 100644
--- a/api/tests/unit_tests/controllers/service_api/test___init__.py
+++ b/api/tests/unit_tests/controllers/service_api/test___init__.py
@@ -732,7 +732,7 @@ def test_console_account_avatar_query_param_renders_as_query(openapi_json: OpenA
assert params["avatar"]["required"] is True
-def test_console_account_profile_patch_and_deprecated_aliases(openapi_json: OpenAPIJSONLoader):
+def test_console_account_profile_patch_without_legacy_update_routes(openapi_json: OpenAPIJSONLoader):
from controllers.console import bp as console_bp
payload = json.loads(openapi_json(console_bp, "/console/api/openapi.json", True))
@@ -753,7 +753,7 @@ def test_console_account_profile_patch_and_deprecated_aliases(openapi_json: Open
"/account/interface-theme",
"/account/timezone",
):
- assert paths[path]["post"]["deprecated"] is True
+ assert "post" not in paths.get(path, {})
assert paths["/account/avatar"]["get"].get("deprecated") is not True
diff --git a/packages/contracts/generated/api/console/account/errors.gen.ts b/packages/contracts/generated/api/console/account/errors.gen.ts
index 2c72fe6ce3d..5245a8d4feb 100644
--- a/packages/contracts/generated/api/console/account/errors.gen.ts
+++ b/packages/contracts/generated/api/console/account/errors.gen.ts
@@ -162,15 +162,13 @@ const zInvalidAccountPasswordError = /* @__PURE__ */ (() =>
}),
))()
-export const postErrors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
-
-export const post2Errors = {
+export const postErrors = {
account_in_freeze: { status: 400, data: zAccountInFreezeError },
email_already_in_use: { status: 400, data: zEmailAlreadyInUseError },
email_domain_suspended: { status: 400, data: zEmailDomainSuspendedError },
}
-export const post3Errors = {
+export const post2Errors = {
account_in_freeze: { status: 400, data: zAccountInFreezeError },
account_not_found: { status: 400, data: zAccountNotFoundError },
email_already_in_use: { status: 400, data: zEmailAlreadyInUseError },
@@ -178,14 +176,14 @@ export const post3Errors = {
invalid_or_expired_token: { status: 400, data: zInvalidOrExpiredTokenError },
}
-export const post4Errors = {
+export const post3Errors = {
email_change_limit: { status: 429, data: zEmailChangeLimitError },
email_code_error: { status: 400, data: zEmailCodeError },
invalid_email: { status: 400, data: zInvalidEmailError },
invalid_or_expired_token: { status: 400, data: zInvalidOrExpiredTokenError },
}
-export const post5Errors = {
+export const post4Errors = {
account_not_found: { status: 400, data: zAccountNotFoundError },
email_change_rate_limit_exceeded: { status: 429, data: zEmailChangeRateLimitExceededError },
email_send_ip_limit: { status: 429, data: zEmailSendIpLimitError },
@@ -201,7 +199,7 @@ export const get2Errors = {
},
}
-export const post7Errors = {
+export const post6Errors = {
invalid_account_deletion_code: { status: 400, data: zInvalidAccountDeletionCodeError },
}
@@ -210,25 +208,19 @@ export const get4Errors = {
education_verify_limit: { status: 429, data: zEducationVerifyLimitError },
}
-export const post8Errors = {
+export const post7Errors = {
account_not_found: { status: 400, data: zAccountNotFoundError },
education_activate_limit: { status: 429, data: zEducationActivateLimitError },
}
-export const post9Errors = {
+export const post8Errors = {
account_already_inited: { status: 400, data: zAccountAlreadyInitedError },
account_not_found: { status: 400, data: zAccountNotFoundError },
invalid_invitation_code: { status: 400, data: zInvalidInvitationCodeError },
missing_invitation_code: { status: 400, data: zMissingInvitationCodeError },
}
-export const post10Errors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
-
-export const post11Errors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
-
-export const post12Errors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
-
-export const post13Errors = {
+export const post9Errors = {
account_not_found: { status: 400, data: zAccountNotFoundError },
current_password_incorrect: { status: 400, data: zCurrentPasswordIncorrectError },
invalid_account_password: { status: 400, data: zInvalidAccountPasswordError },
@@ -237,5 +229,3 @@ export const post13Errors = {
export const get7Errors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
export const patchErrors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
-
-export const post14Errors = { account_not_found: { status: 400, data: zAccountNotFoundError } }
diff --git a/packages/contracts/generated/api/console/account/orpc.gen.ts b/packages/contracts/generated/api/console/account/orpc.gen.ts
index 54ed5eaa9fb..2810d0fa53e 100644
--- a/packages/contracts/generated/api/console/account/orpc.gen.ts
+++ b/packages/contracts/generated/api/console/account/orpc.gen.ts
@@ -35,8 +35,6 @@ import {
zGetAccountProfileResponse,
zPatchAccountProfileBody,
zPatchAccountProfileResponse,
- zPostAccountAvatarBody,
- zPostAccountAvatarResponse,
zPostAccountChangeEmailBody,
zPostAccountChangeEmailCheckEmailUniqueBody,
zPostAccountChangeEmailCheckEmailUniqueResponse,
@@ -53,16 +51,8 @@ import {
zPostAccountEducationResponse,
zPostAccountInitBody,
zPostAccountInitResponse,
- zPostAccountInterfaceLanguageBody,
- zPostAccountInterfaceLanguageResponse,
- zPostAccountInterfaceThemeBody,
- zPostAccountInterfaceThemeResponse,
- zPostAccountNameBody,
- zPostAccountNameResponse,
zPostAccountPasswordBody,
zPostAccountPasswordResponse,
- zPostAccountTimezoneBody,
- zPostAccountTimezoneResponse,
} from './zod.gen.ts'
/**
@@ -80,31 +70,11 @@ export const get = oc
.input(z.object({ query: zGetAccountAvatarQuery }))
.output(zGetAccountAvatarResponse)
-/**
- * Deprecated. Use PATCH /account/profile instead.
- *
- * @deprecated
- */
-export const post = oc
- .route({
- deprecated: true,
- description: 'Deprecated. Use PATCH /account/profile instead.',
- inputStructure: 'detailed',
- method: 'POST',
- operationId: 'postAccountAvatar',
- path: '/account/avatar',
- tags: ['console'],
- })
- .input(z.object({ body: zPostAccountAvatarBody }))
- .output(zPostAccountAvatarResponse)
- .errors({ account_not_found: { status: 400, data: zAccountNotFoundError } })
-
export const avatar = {
get,
- post,
}
-export const post2 = oc
+export const post = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -121,10 +91,10 @@ export const post2 = oc
})
export const checkEmailUnique = {
- post: post2,
+ post,
}
-export const post3 = oc
+export const post2 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -143,10 +113,10 @@ export const post3 = oc
})
export const reset = {
- post: post3,
+ post: post2,
}
-export const post4 = oc
+export const post3 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -164,10 +134,10 @@ export const post4 = oc
})
export const validity = {
- post: post4,
+ post: post3,
}
-export const post5 = oc
+export const post4 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -186,13 +156,13 @@ export const post5 = oc
})
export const changeEmail = {
- post: post5,
+ post: post4,
checkEmailUnique,
reset,
validity,
}
-export const post6 = oc
+export const post5 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -204,7 +174,7 @@ export const post6 = oc
.output(zPostAccountDeleteFeedbackResponse)
export const feedback = {
- post: post6,
+ post: post5,
}
export const get2 = oc
@@ -228,7 +198,7 @@ export const verify = {
get: get2,
}
-export const post7 = oc
+export const post6 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -243,7 +213,7 @@ export const post7 = oc
})
export const delete_ = {
- post: post7,
+ post: post6,
feedback,
verify,
}
@@ -291,7 +261,7 @@ export const get5 = oc
})
.output(zGetAccountEducationResponse)
-export const post8 = oc
+export const post7 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -308,12 +278,12 @@ export const post8 = oc
export const education = {
get: get5,
- post: post8,
+ post: post7,
autocomplete,
verify: verify2,
}
-export const post9 = oc
+export const post8 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -331,7 +301,7 @@ export const post9 = oc
})
export const init = {
- post: post9,
+ post: post8,
}
export const get6 = oc
@@ -348,76 +318,7 @@ export const integrates = {
get: get6,
}
-/**
- * Deprecated. Use PATCH /account/profile instead.
- *
- * @deprecated
- */
-export const post10 = oc
- .route({
- deprecated: true,
- description: 'Deprecated. Use PATCH /account/profile instead.',
- inputStructure: 'detailed',
- method: 'POST',
- operationId: 'postAccountInterfaceLanguage',
- path: '/account/interface-language',
- tags: ['console'],
- })
- .input(z.object({ body: zPostAccountInterfaceLanguageBody }))
- .output(zPostAccountInterfaceLanguageResponse)
- .errors({ account_not_found: { status: 400, data: zAccountNotFoundError } })
-
-export const interfaceLanguage = {
- post: post10,
-}
-
-/**
- * Deprecated. Use PATCH /account/profile instead.
- *
- * @deprecated
- */
-export const post11 = oc
- .route({
- deprecated: true,
- description: 'Deprecated. Use PATCH /account/profile instead.',
- inputStructure: 'detailed',
- method: 'POST',
- operationId: 'postAccountInterfaceTheme',
- path: '/account/interface-theme',
- tags: ['console'],
- })
- .input(z.object({ body: zPostAccountInterfaceThemeBody }))
- .output(zPostAccountInterfaceThemeResponse)
- .errors({ account_not_found: { status: 400, data: zAccountNotFoundError } })
-
-export const interfaceTheme = {
- post: post11,
-}
-
-/**
- * Deprecated. Use PATCH /account/profile instead.
- *
- * @deprecated
- */
-export const post12 = oc
- .route({
- deprecated: true,
- description: 'Deprecated. Use PATCH /account/profile instead.',
- inputStructure: 'detailed',
- method: 'POST',
- operationId: 'postAccountName',
- path: '/account/name',
- tags: ['console'],
- })
- .input(z.object({ body: zPostAccountNameBody }))
- .output(zPostAccountNameResponse)
- .errors({ account_not_found: { status: 400, data: zAccountNotFoundError } })
-
-export const name = {
- post: post12,
-}
-
-export const post13 = oc
+export const post9 = oc
.route({
inputStructure: 'detailed',
method: 'POST',
@@ -434,7 +335,7 @@ export const post13 = oc
})
export const password = {
- post: post13,
+ post: post9,
}
export const get7 = oc
@@ -465,29 +366,6 @@ export const profile = {
patch,
}
-/**
- * Deprecated. Use PATCH /account/profile instead.
- *
- * @deprecated
- */
-export const post14 = oc
- .route({
- deprecated: true,
- description: 'Deprecated. Use PATCH /account/profile instead.',
- inputStructure: 'detailed',
- method: 'POST',
- operationId: 'postAccountTimezone',
- path: '/account/timezone',
- tags: ['console'],
- })
- .input(z.object({ body: zPostAccountTimezoneBody }))
- .output(zPostAccountTimezoneResponse)
- .errors({ account_not_found: { status: 400, data: zAccountNotFoundError } })
-
-export const timezone = {
- post: post14,
-}
-
export const account = {
avatar,
changeEmail,
@@ -495,12 +373,8 @@ export const account = {
education,
init,
integrates,
- interfaceLanguage,
- interfaceTheme,
- name,
password,
profile,
- timezone,
}
export const contract = {
diff --git a/packages/contracts/generated/api/console/account/types.gen.ts b/packages/contracts/generated/api/console/account/types.gen.ts
index 2fa1ab7f9ab..ec9572013c9 100644
--- a/packages/contracts/generated/api/console/account/types.gen.ts
+++ b/packages/contracts/generated/api/console/account/types.gen.ts
@@ -18,30 +18,6 @@ export type ErrorResponse = {
status: number
}
-export type AccountAvatarPayload = {
- avatar: string
-}
-
-export type AccountResponse = {
- avatar?: string | null
- readonly avatar_url: string | null
- created_at?: number | null
- email: string
- id: string
- interface_language?: string | null
- interface_theme?: string | null
- is_password_set: boolean
- last_login_at?: number | null
- last_login_ip?: string | null
- name: string
- timezone?: string | null
-}
-
-export type AccountNotFoundError = ErrorResponse & {
- code: 'account_not_found'
- status: 400
-}
-
export type ChangeEmailSendPayload = {
email: string
language?: string | null
@@ -54,6 +30,11 @@ export type SimpleResultDataResponse = {
result: string
}
+export type AccountNotFoundError = ErrorResponse & {
+ code: 'account_not_found'
+ status: 400
+}
+
export type InvalidEmailError = ErrorResponse & {
code: 'invalid_email'
status: 400
@@ -102,6 +83,21 @@ export type ChangeEmailResetPayload = {
token: string
}
+export type AccountResponse = {
+ avatar?: string | null
+ readonly avatar_url: string | null
+ created_at?: number | null
+ email: string
+ id: string
+ interface_language?: string | null
+ interface_theme?: string | null
+ is_password_set: boolean
+ last_login_at?: number | null
+ last_login_ip?: string | null
+ name: string
+ timezone?: string | null
+}
+
export type ChangeEmailValidityPayload = {
code: string
email: string
@@ -206,18 +202,6 @@ export type AccountIntegrateListResponse = {
data: Array<AccountIntegrateResponse>
}
-export type AccountInterfaceLanguagePayload = {
- interface_language: string
-}
-
-export type AccountInterfaceThemePayload = {
- interface_theme: 'dark' | 'light'
-}
-
-export type AccountNamePayload = {
- name: string
-}
-
export type AccountPasswordPayload = {
new_password: string
password?: string | null
@@ -242,10 +226,6 @@ export type AccountProfilePatchPayload = {
timezone?: string
}
-export type AccountTimezonePayload = {
- timezone: string
-}
-
export type AccountIntegrateResponse = {
created_at?: number | null
is_bound: boolean
@@ -288,26 +268,6 @@ export type GetAccountAvatarResponses = {
export type GetAccountAvatarResponse = GetAccountAvatarResponses[keyof GetAccountAvatarResponses]
-export type PostAccountAvatarData = {
- body: AccountAvatarPayload
- path?: never
- query?: never
- url: '/account/avatar'
-}
-
-export type PostAccountAvatarErrors = {
- 400: AccountNotFoundError | ErrorResponse
- default: ErrorResponse
-}
-
-export type PostAccountAvatarError = PostAccountAvatarErrors[keyof PostAccountAvatarErrors]
-
-export type PostAccountAvatarResponses = {
- 200: AccountResponse
-}
-
-export type PostAccountAvatarResponse = PostAccountAvatarResponses[keyof PostAccountAvatarResponses]
-
export type PostAccountChangeEmailData = {
body: ChangeEmailSendPayload
path?: never
@@ -603,70 +563,6 @@ export type GetAccountIntegratesResponses = {
export type GetAccountIntegratesResponse =
GetAccountIntegratesResponses[keyof GetAccountIntegratesResponses]
-export type PostAccountInterfaceLanguageData = {
- body: AccountInterfaceLanguagePayload
- path?: never
- query?: never
- url: '/account/interface-language'
-}
-
-export type PostAccountInterfaceLanguageErrors = {
- 400: AccountNotFoundError | ErrorResponse
- default: ErrorResponse
-}
-
-export type PostAccountInterfaceLanguageError =
- PostAccountInterfaceLanguageErrors[keyof PostAccountInterfaceLanguageErrors]
-
-export type PostAccountInterfaceLanguageResponses = {
- 200: AccountResponse
-}
-
-export type PostAccountInterfaceLanguageResponse =
- PostAccountInterfaceLanguageResponses[keyof PostAccountInterfaceLanguageResponses]
-
-export type PostAccountInterfaceThemeData = {
- body: AccountInterfaceThemePayload
- path?: never
- query?: never
- url: '/account/interface-theme'
-}
-
-export type PostAccountInterfaceThemeErrors = {
- 400: AccountNotFoundError | ErrorResponse
- default: ErrorResponse
-}
-
-export type PostAccountInterfaceThemeError =
- PostAccountInterfaceThemeErrors[keyof PostAccountInterfaceThemeErrors]
-
-export type PostAccountInterfaceThemeResponses = {
- 200: AccountResponse
-}
-
-export type PostAccountInterfaceThemeResponse =
- PostAccountInterfaceThemeResponses[keyof PostAccountInterfaceThemeResponses]
-
-export type PostAccountNameData = {
- body: AccountNamePayload
- path?: never
- query?: never
- url: '/account/name'
-}
-
-export type PostAccountNameErrors = {
- 400: AccountNotFoundError | ErrorResponse
- default: ErrorResponse
-}
-
-export type PostAccountNameError = PostAccountNameErrors[keyof PostAccountNameErrors]
-
-export type PostAccountNameResponses = {
- 200: AccountResponse
-}
-
-export type PostAccountNameResponse = PostAccountNameResponses[keyof PostAccountNameResponses]
-
export type PostAccountPasswordData = {
body: AccountPasswordPayload
path?: never
@@ -732,24 +628,3 @@ export type PatchAccountProfileResponses = {
export type PatchAccountProfileResponse =
PatchAccountProfileResponses[keyof PatchAccountProfileResponses]
-
-export type PostAccountTimezoneData = {
- body: AccountTimezonePayload
- path?: never
- query?: never
- url: '/account/timezone'
-}
-
-export type PostAccountTimezoneErrors = {
- 400: AccountNotFoundError | ErrorResponse
- default: ErrorResponse
-}
-
-export type PostAccountTimezoneError = PostAccountTimezoneErrors[keyof PostAccountTimezoneErrors]
-
-export type PostAccountTimezoneResponses = {
- 200: AccountResponse
-}
-
-export type PostAccountTimezoneResponse =
- PostAccountTimezoneResponses[keyof PostAccountTimezoneResponses]
diff --git a/packages/contracts/generated/api/console/account/zod.gen.ts b/packages/contracts/generated/api/console/account/zod.gen.ts
index 988b970d0a8..9d72af3257c 100644
--- a/packages/contracts/generated/api/console/account/zod.gen.ts
+++ b/packages/contracts/generated/api/console/account/zod.gen.ts
@@ -26,28 +26,21 @@ export const zErrorResponse = z.object({
})
/**
- * AccountAvatarPayload
+ * ChangeEmailSendPayload
*/
-export const zAccountAvatarPayload = z.object({
- avatar: z.string(),
+export const zChangeEmailSendPayload = z.object({
+ email: z.string(),
+ language: z.string().nullish(),
+ phase: z.string().nullish(),
+ token: z.string().nullish(),
})
/**
- * AccountResponse
+ * SimpleResultDataResponse
*/
-export const zAccountResponse = z.object({
- avatar: z.string().nullish(),
- avatar_url: z.string().nullable(),
- created_at: z.int().nullish(),
- email: z.string(),
- id: z.string(),
- interface_language: z.string().nullish(),
- interface_theme: z.string().nullish(),
- is_password_set: z.boolean(),
- last_login_at: z.int().nullish(),
- last_login_ip: z.string().nullish(),
- name: z.string(),
- timezone: z.string().nullish(),
+export const zSimpleResultDataResponse = z.object({
+ data: z.string(),
+ result: z.string(),
})
/**
@@ -62,24 +55,6 @@ export const zAccountNotFoundError = zErrorResponse.and(
}),
)
-/**
- * ChangeEmailSendPayload
- */
-export const zChangeEmailSendPayload = z.object({
- email: z.string(),
- language: z.string().nullish(),
- phase: z.string().nullish(),
- token: z.string().nullish(),
-})
-
-/**
- * SimpleResultDataResponse
- */
-export const zSimpleResultDataResponse = z.object({
- data: z.string(),
- result: z.string(),
-})
-
/**
* InvalidEmailError
*
@@ -186,6 +161,24 @@ export const zChangeEmailResetPayload = z.object({
token: z.string(),
})
+/**
+ * AccountResponse
+ */
+export const zAccountResponse = z.object({
+ avatar: z.string().nullish(),
+ avatar_url: z.string().nullable(),
+ created_at: z.int().nullish(),
+ email: z.string(),
+ id: z.string(),
+ interface_language: z.string().nullish(),
+ interface_theme: z.string().nullish(),
+ is_password_set: z.boolean(),
+ last_login_at: z.int().nullish(),
+ last_login_ip: z.string().nullish(),
+ name: z.string(),
+ timezone: z.string().nullish(),
+})
+
/**
* ChangeEmailValidityPayload
*/
@@ -379,27 +372,6 @@ export const zMissingInvitationCodeError = zErrorResponse.and(
}),
)
-/**
- * AccountInterfaceLanguagePayload
- */
-export const zAccountInterfaceLanguagePayload = z.object({
- interface_language: z.string(),
-})
-
-/**
- * AccountInterfaceThemePayload
- */
-export const zAccountInterfaceThemePayload = z.object({
- interface_theme: z.enum(['dark', 'light']),
-})
-
-/**
- * AccountNamePayload
- */
-export const zAccountNamePayload = z.object({
- name: z.string().min(3).max(30),
-})
-
/**
* AccountPasswordPayload
*/
@@ -446,13 +418,6 @@ export const zAccountProfilePatchPayload = z
})
.strict()
-/**
- * AccountTimezonePayload
- */
-export const zAccountTimezonePayload = z.object({
- timezone: z.string(),
-})
-
/**
* AccountIntegrateResponse
*/
@@ -496,13 +461,6 @@ export const zGetAccountAvatarQuery = z.object({
*/
export const zGetAccountAvatarResponse = zAvatarUrlResponse
-export const zPostAccountAvatarBody = zAccountAvatarPayload
-
-/**
- * Success
- */
-export const zPostAccountAvatarResponse = zAccountResponse
-
export const zPostAccountChangeEmailBody = zChangeEmailSendPayload
/**
@@ -590,27 +548,6 @@ export const zPostAccountInitResponse = zSimpleResultResponse
*/
export const zGetAccountIntegratesResponse = zAccountIntegrateListResponse
-export const zPostAccountInterfaceLanguageBody = zAccountInterfaceLanguagePayload
-
-/**
- * Success
- */
-export const zPostAccountInterfaceLanguageResponse = zAccountResponse
-
-export const zPostAccountInterfaceThemeBody = zAccountInterfaceThemePayload
-
-/**
- * Success
- */
-export const zPostAccountInterfaceThemeResponse = zAccountResponse
-
-export const zPostAccountNameBody = zAccountNamePayload
-
-/**
- * Success
- */
-export const zPostAccountNameResponse = zAccountResponse
-
export const zPostAccountPasswordBody = zAccountPasswordPayload
/**
@@ -629,10 +566,3 @@ export const zPatchAccountProfileBody = zAccountProfilePatchPayload
* Success
*/
export const zPatchAccountProfileResponse = zAccountResponse
-
-export const zPostAccountTimezoneBody = zAccountTimezonePayload
-
-/**
- * Success
- */
-export const zPostAccountTimezoneResponse = zAccountResponse
diff --git a/packages/contracts/generated/api/console/errors.gen.ts b/packages/contracts/generated/api/console/errors.gen.ts
index 094653a9d99..b53babfefc3 100644
--- a/packages/contracts/generated/api/console/errors.gen.ts
+++ b/packages/contracts/generated/api/console/errors.gen.ts
@@ -319,31 +319,26 @@ export { patchErrors as 'PATCH /data-source/integrates/{binding_id}/{action}' }
export { patchErrors as 'PATCH /datasets/external-knowledge-api/{external_knowledge_api_id}' } from './datasets/errors.gen.ts'
export { patchErrors as 'PATCH /installed-apps/{installed_app_id}/conversations/{c_id}/pin' } from './installed-apps/errors.gen.ts'
export { patchErrors as 'PATCH /knowledge-fs/spaces/{control_space_id}/documents/{document_id}' } from './knowledge-fs/errors.gen.ts'
-export { post10Errors as 'POST /account/interface-language' } from './account/errors.gen.ts'
export { post10Errors as 'POST /agent/{agent_id}/config/files' } from './agent/errors.gen.ts'
export { post10Errors as 'POST /apps/{app_id}/agent/config/files' } from './apps/errors.gen.ts'
export { post10Errors as 'POST /installed-apps/{installed_app_id}/workflows/run' } from './installed-apps/errors.gen.ts'
export { post10Errors as 'POST /knowledge-fs/spaces/{control_space_id}/golden-questions' } from './knowledge-fs/errors.gen.ts'
export { post10Errors as 'POST /rag/pipelines/{pipeline_id}/workflows/draft/datasource/variables-inspect' } from './rag/errors.gen.ts'
export { post10Errors as 'POST /snippets/{snippet_id}/workflows/draft' } from './snippets/errors.gen.ts'
-export { post11Errors as 'POST /account/interface-theme' } from './account/errors.gen.ts'
export { post11Errors as 'POST /agent/{agent_id}/config/skills/upload' } from './agent/errors.gen.ts'
export { post11Errors as 'POST /apps/{app_id}/agent/config/skills/upload' } from './apps/errors.gen.ts'
export { post11Errors as 'POST /installed-apps/{installed_app_id}/workflows/tasks/{task_id}/stop' } from './installed-apps/errors.gen.ts'
export { post11Errors as 'POST /knowledge-fs/spaces/{control_space_id}/jobs/{job_id}/retry' } from './knowledge-fs/errors.gen.ts'
export { post11Errors as 'POST /rag/pipelines/{pipeline_id}/workflows/draft/iteration/nodes/{node_id}/run' } from './rag/errors.gen.ts'
-export { post12Errors as 'POST /account/name' } from './account/errors.gen.ts'
export { post12Errors as 'POST /agent/{agent_id}/copy' } from './agent/errors.gen.ts'
export { post12Errors as 'POST /datasets/{dataset_id}/documents/{document_id}/segment' } from './datasets/errors.gen.ts'
export { post12Errors as 'POST /knowledge-fs/spaces/{control_space_id}/logical-documents/download-zip' } from './knowledge-fs/errors.gen.ts'
export { post12Errors as 'POST /rag/pipelines/{pipeline_id}/workflows/draft/loop/nodes/{node_id}/run' } from './rag/errors.gen.ts'
export { post12Errors as 'POST /workspaces/current/members/invite-email' } from './workspaces/errors.gen.ts'
-export { post13Errors as 'POST /account/password' } from './account/errors.gen.ts'
export { post13Errors as 'POST /agent/{agent_id}/debug-conversation/refresh' } from './agent/errors.gen.ts'
export { post13Errors as 'POST /knowledge-fs/spaces/{control_space_id}/metadata' } from './knowledge-fs/errors.gen.ts'
export { post13Errors as 'POST /rag/pipelines/{pipeline_id}/workflows/draft/nodes/{node_id}/run' } from './rag/errors.gen.ts'
export { post13Errors as 'POST /workspaces/current/members/owner-transfer-check' } from './workspaces/errors.gen.ts'
-export { post14Errors as 'POST /account/timezone' } from './account/errors.gen.ts'
export { post14Errors as 'POST /agent/{agent_id}/features' } from './agent/errors.gen.ts'
export { post14Errors as 'POST /apps/{app_id}/annotations/batch-import' } from './apps/errors.gen.ts'
export { post14Errors as 'POST /datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks' } from './datasets/errors.gen.ts'
@@ -395,7 +390,7 @@ export { post28Errors as 'POST /knowledge-fs/spaces/{control_space_id}/sources/{
export { post29Errors as 'POST /apps/{app_id}/server/refresh' } from './apps/errors.gen.ts'
export { post29Errors as 'POST /knowledge-fs/spaces/{control_space_id}/sources/{source_id}/import' } from './knowledge-fs/errors.gen.ts'
export { post29Errors as 'POST /workspaces/current/plugin/install/github' } from './workspaces/errors.gen.ts'
-export { post2Errors as 'POST /account/change-email/check-email-unique' } from './account/errors.gen.ts'
+export { post2Errors as 'POST /account/change-email/reset' } from './account/errors.gen.ts'
export { post2Errors as 'POST /agent/{agent_id}/api-keys' } from './agent/errors.gen.ts'
export { post2Errors as 'POST /apps/imports' } from './apps/errors.gen.ts'
export { post2Errors as 'POST /datasets/external' } from './datasets/errors.gen.ts'
@@ -434,7 +429,7 @@ export { post38Errors as 'POST /workspaces/current/plugin/tasks/{task_id}/delete
export { post39Errors as 'POST /apps/{app_id}/trigger-enable' } from './apps/errors.gen.ts'
export { post39Errors as 'POST /knowledge-fs/spaces/{control_space_id}/upload-sessions' } from './knowledge-fs/errors.gen.ts'
export { post39Errors as 'POST /workspaces/current/plugin/uninstall' } from './workspaces/errors.gen.ts'
-export { post3Errors as 'POST /account/change-email/reset' } from './account/errors.gen.ts'
+export { post3Errors as 'POST /account/change-email/validity' } from './account/errors.gen.ts'
export { post3Errors as 'POST /agent/{agent_id}/audio-to-text' } from './agent/errors.gen.ts'
export { post3Errors as 'POST /datasets/external-knowledge-api' } from './datasets/errors.gen.ts'
export { post3Errors as 'POST /email-register' } from './email-register/errors.gen.ts'
@@ -461,7 +456,7 @@ export { post47Errors as 'POST /apps/{app_id}/workflows/draft/features' } from '
export { post48Errors as 'POST /apps/{app_id}/workflows/draft/human-input/nodes/{node_id}/delivery-test' } from './apps/errors.gen.ts'
export { post49Errors as 'POST /apps/{app_id}/workflows/draft/human-input/nodes/{node_id}/form/preview' } from './apps/errors.gen.ts'
export { post49Errors as 'POST /workspaces/current/skills/files/upload' } from './workspaces/errors.gen.ts'
-export { post4Errors as 'POST /account/change-email/validity' } from './account/errors.gen.ts'
+export { post4Errors as 'POST /account/change-email' } from './account/errors.gen.ts'
export { post4Errors as 'POST /agent/{agent_id}/build-chat/finalize' } from './agent/errors.gen.ts'
export { post4Errors as 'POST /apps/{app_id}/advanced-chat/workflows/draft/human-input/nodes/{node_id}/form/preview' } from './apps/errors.gen.ts'
export { post4Errors as 'POST /datasets/indexing-estimate' } from './datasets/errors.gen.ts'
@@ -485,7 +480,6 @@ export { post56Errors as 'POST /workspaces/current/skills' } from './workspaces/
export { post57Errors as 'POST /apps/{app_id}/workflows/draft/nodes/{node_id}/run' } from './apps/errors.gen.ts'
export { post58Errors as 'POST /apps/{app_id}/workflows/draft/nodes/{node_id}/trigger/run' } from './apps/errors.gen.ts'
export { post59Errors as 'POST /apps/{app_id}/workflows/draft/run' } from './apps/errors.gen.ts'
-export { post5Errors as 'POST /account/change-email' } from './account/errors.gen.ts'
export { post5Errors as 'POST /agent/{agent_id}/build-draft/apply' } from './agent/errors.gen.ts'
export { post5Errors as 'POST /apps/{app_id}/advanced-chat/workflows/draft/human-input/nodes/{node_id}/form/run' } from './apps/errors.gen.ts'
export { post5Errors as 'POST /datasets/init' } from './datasets/errors.gen.ts'
@@ -498,6 +492,7 @@ export { post62Errors as 'POST /apps/{app_id}/workflows/draft' } from './apps/er
export { post63Errors as 'POST /apps/{app_id}/workflows/publish' } from './apps/errors.gen.ts'
export { post64Errors as 'POST /apps/{app_id}/workflows/{workflow_id}/restore' } from './apps/errors.gen.ts'
export { post65Errors as 'POST /apps/{resource_id}/api-keys' } from './apps/errors.gen.ts'
+export { post6Errors as 'POST /account/delete' } from './account/errors.gen.ts'
export { post6Errors as 'POST /agent/{agent_id}/build-draft/checkout' } from './agent/errors.gen.ts'
export { post6Errors as 'POST /apps/{app_id}/advanced-chat/workflows/draft/iteration/nodes/{node_id}/run' } from './apps/errors.gen.ts'
export { post6Errors as 'POST /datasets/notion-indexing-estimate' } from './datasets/errors.gen.ts'
@@ -505,7 +500,7 @@ export { post6Errors as 'POST /installed-apps/{installed_app_id}/conversations/{
export { post6Errors as 'POST /knowledge-fs/spaces/{control_space_id}/documents/reindex' } from './knowledge-fs/errors.gen.ts'
export { post6Errors as 'POST /snippets/{snippet_id}/workflows/draft/nodes/{node_id}/agent-composer/save-to-roster' } from './snippets/errors.gen.ts'
export { post6Errors as 'POST /trial-apps/{app_id}/remote-files/upload' } from './trial-apps/errors.gen.ts'
-export { post7Errors as 'POST /account/delete' } from './account/errors.gen.ts'
+export { post7Errors as 'POST /account/education' } from './account/errors.gen.ts'
export { post7Errors as 'POST /agent/{agent_id}/chat-messages/{task_id}/stop' } from './agent/errors.gen.ts'
export { post7Errors as 'POST /apps/{app_id}/advanced-chat/workflows/draft/loop/nodes/{node_id}/run' } from './apps/errors.gen.ts'
export { post7Errors as 'POST /installed-apps/{installed_app_id}/messages/{message_id}/feedbacks' } from './installed-apps/errors.gen.ts'
@@ -515,21 +510,21 @@ export { post7Errors as 'POST /snippets/{snippet_id}/workflows/draft/nodes/{node
export { post7Errors as 'POST /trial-apps/{app_id}/text-to-audio' } from './trial-apps/errors.gen.ts'
export { post80Errors as 'POST /workspaces/custom-config/webapp-logo/upload' } from './workspaces/errors.gen.ts'
export { post83Errors as 'POST /workspaces/switch' } from './workspaces/errors.gen.ts'
-export { post8Errors as 'POST /account/education' } from './account/errors.gen.ts'
+export { post8Errors as 'POST /account/init' } from './account/errors.gen.ts'
export { post8Errors as 'POST /agent/{agent_id}/composer/validate' } from './agent/errors.gen.ts'
export { post8Errors as 'POST /apps/{app_id}/advanced-chat/workflows/draft/run' } from './apps/errors.gen.ts'
export { post8Errors as 'POST /installed-apps/{installed_app_id}/saved-messages' } from './installed-apps/errors.gen.ts'
export { post8Errors as 'POST /knowledge-fs/spaces/{control_space_id}/golden-questions/bulk-import' } from './knowledge-fs/errors.gen.ts'
export { post8Errors as 'POST /rag/pipelines/{pipeline_id}/workflow-runs/tasks/{task_id}/stop' } from './rag/errors.gen.ts'
export { post8Errors as 'POST /trial-apps/{app_id}/workflows/run' } from './trial-apps/errors.gen.ts'
-export { post9Errors as 'POST /account/init' } from './account/errors.gen.ts'
+export { post9Errors as 'POST /account/password' } from './account/errors.gen.ts'
export { post9Errors as 'POST /agent/{agent_id}/config/files/batch' } from './agent/errors.gen.ts'
export { post9Errors as 'POST /apps/{app_id}/agent/config/files/batch' } from './apps/errors.gen.ts'
export { post9Errors as 'POST /installed-apps/{installed_app_id}/text-to-audio' } from './installed-apps/errors.gen.ts'
export { post9Errors as 'POST /knowledge-fs/spaces/{control_space_id}/golden-questions/evidence-matches' } from './knowledge-fs/errors.gen.ts'
export { post9Errors as 'POST /rag/pipelines/{pipeline_id}/workflows/draft/datasource/nodes/{node_id}/run' } from './rag/errors.gen.ts'
export { post9Errors as 'POST /trial-apps/{app_id}/workflows/tasks/{task_id}/stop' } from './trial-apps/errors.gen.ts'
-export { postErrors as 'POST /account/avatar' } from './account/errors.gen.ts'
+export { postErrors as 'POST /account/change-email/check-email-unique' } from './account/errors.gen.ts'
export { postErrors as 'POST /activate' } from './activate/errors.gen.ts'
export { postErrors as 'POST /agent/{agent_id}/api-enable' } from './agent/errors.gen.ts'
export { postErrors as 'POST /api-key-auth/data-source/binding' } from './api-key-auth/errors.gen.ts'