ugcinc 4.5.37 → 4.5.39
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.
- package/dist/cli.js +1 -1
- package/dist/org.d.ts +1 -1
- package/dist/tools/org.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -192,7 +192,7 @@ async function runTool(toolName, rawParams) {
|
|
|
192
192
|
}
|
|
193
193
|
const config = loadConfig();
|
|
194
194
|
const isAdmin = config.admin === 'true';
|
|
195
|
-
const client = new client_1.UGCClient({ apiKey, orgId, admin: isAdmin });
|
|
195
|
+
const client = new client_1.UGCClient({ apiKey, orgId: orgId ?? config.orgId, admin: isAdmin });
|
|
196
196
|
let params = undefined;
|
|
197
197
|
if (parsed) {
|
|
198
198
|
const parseResult = tool.schema.safeParse(parsed);
|
package/dist/org.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface EditApiKeyParams {
|
|
|
19
19
|
apiKeyId: string;
|
|
20
20
|
name: string;
|
|
21
21
|
}
|
|
22
|
-
export type IntegrationProvider = 'fal' | '
|
|
22
|
+
export type IntegrationProvider = 'fal' | 'openrouter';
|
|
23
23
|
export interface IntegrationKey {
|
|
24
24
|
id: string;
|
|
25
25
|
provider: IntegrationProvider;
|
package/dist/tools/org.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.orgTools = [
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: 'list_integration_keys',
|
|
34
|
-
description: 'List integration keys (fal,
|
|
34
|
+
description: 'List integration keys (fal, openrouter). Values are masked.',
|
|
35
35
|
schema: zod_1.z.object({}).optional(),
|
|
36
36
|
execute: async (client) => {
|
|
37
37
|
return client.org.getIntegrationKeys();
|
|
@@ -41,7 +41,7 @@ exports.orgTools = [
|
|
|
41
41
|
name: 'upsert_integration_key',
|
|
42
42
|
description: 'Create or update an integration key for an AI provider.',
|
|
43
43
|
schema: zod_1.z.object({
|
|
44
|
-
provider: zod_1.z.enum(['fal', '
|
|
44
|
+
provider: zod_1.z.enum(['fal', 'openrouter']).describe('AI provider'),
|
|
45
45
|
key: zod_1.z.string().describe('API key value'),
|
|
46
46
|
}),
|
|
47
47
|
execute: async (client, params) => {
|