-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,847 additions
and
633 deletions.
There are no files selected for viewing
Binary file not shown.
909 changes: 610 additions & 299 deletions
909
core/src/ten_manager/designer_frontend/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
core/src/ten_manager/designer_frontend/src/api/endpoints/addons.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Copyright © 2025 Agora | ||
// This file is part of TEN Framework, an open source project. | ||
// Licensed under the Apache License, Version 2.0, with certain conditions. | ||
// Refer to the "LICENSE" file in the root directory for more information. | ||
// | ||
import z from "zod"; | ||
|
||
import { API_DESIGNER_V1, ENDPOINT_METHOD } from "@/api/endpoints/constant"; | ||
import { genResSchema } from "@/api/endpoints/utils"; | ||
import type { IExtensionAddon } from "@/types/addons"; | ||
|
||
export const ENDPOINT_ADDONS = { | ||
extensionByName: { | ||
[ENDPOINT_METHOD.GET]: { | ||
url: `${API_DESIGNER_V1}/addons/extensions/:name`, | ||
method: ENDPOINT_METHOD.GET, | ||
pathParams: ["name"], | ||
responseSchema: genResSchema<IExtensionAddon>( | ||
z.object({ | ||
name: z.string(), | ||
url: z.string(), | ||
api: z.unknown().optional(), | ||
}) | ||
), | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.