@appconda/nextjs 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,3 +35,7 @@ export declare const GetAgent: import("next-safe-action").SafeActionFn<string, i
|
|
35
35
|
id?: string[];
|
36
36
|
};
|
37
37
|
}, readonly [], Agent>;
|
38
|
+
export declare const ListModelProviders: import("next-safe-action").SafeActionFn<string, undefined, readonly [], {
|
39
|
+
formErrors: string[];
|
40
|
+
fieldErrors: {};
|
41
|
+
}, readonly [], Agent[]>;
|
@@ -38,3 +38,14 @@ export const GetAgent = actionClient
|
|
38
38
|
throw new Error('Failed to fetch ListWaitlists');
|
39
39
|
}
|
40
40
|
});
|
41
|
+
export const ListModelProviders = actionClient
|
42
|
+
.action(async ({ parsedInput }) => {
|
43
|
+
try {
|
44
|
+
const { agent } = await getSDKForCurrentUser();
|
45
|
+
return await agent.ListModelProviders();
|
46
|
+
}
|
47
|
+
catch (error) {
|
48
|
+
console.error('Error in ListModelProviders:', error);
|
49
|
+
throw new Error('Failed to fetch ListModelProviders');
|
50
|
+
}
|
51
|
+
});
|
@@ -7,4 +7,5 @@ export declare class AgentService extends ServiceClient {
|
|
7
7
|
CreateAgent(payload: z.infer<typeof CreateAgentSchema>): Promise<Agent>;
|
8
8
|
GetAgent(payload: z.infer<typeof GetAgentSchema>): Promise<Agent>;
|
9
9
|
ListAgents(): Promise<Agent[]>;
|
10
|
+
ListModelProviders(): Promise<Agent[]>;
|
10
11
|
}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.71",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
@@ -50,3 +50,15 @@ export const CreateAgent = actionClient
|
|
50
50
|
throw new Error('Failed to fetch ListWaitlists');
|
51
51
|
}
|
52
52
|
});
|
53
|
+
|
54
|
+
export const ListModelProviders = actionClient
|
55
|
+
.action(async ({ parsedInput }): Promise<Agent[]> => {
|
56
|
+
try {
|
57
|
+
|
58
|
+
const { agent } = await getSDKForCurrentUser();
|
59
|
+
return await agent.ListModelProviders ();
|
60
|
+
} catch (error) {
|
61
|
+
console.error('Error in ListModelProviders:', error);
|
62
|
+
throw new Error('Failed to fetch ListModelProviders');
|
63
|
+
}
|
64
|
+
});
|