@cat-factory/contracts 0.312.0 → 0.313.0
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/accountSettings.d.ts +3 -3
- package/dist/api-keys.d.ts +5 -5
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +1 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/modelPolicy.d.ts +2 -2
- package/dist/modelPolicy.d.ts.map +1 -1
- package/dist/modelPolicy.js +1 -0
- package/dist/modelPolicy.js.map +1 -1
- package/dist/reserved-env-keys.d.ts.map +1 -1
- package/dist/reserved-env-keys.js +4 -0
- package/dist/reserved-env-keys.js.map +1 -1
- package/dist/routes/accounts.d.ts +7 -7
- package/dist/routes/api-keys.d.ts +8 -8
- package/package.json +1 -1
|
@@ -126,7 +126,7 @@ export declare const accountSettingsConfigSchema: v.ObjectSchema<{
|
|
|
126
126
|
*/
|
|
127
127
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
128
128
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
129
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
129
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
130
130
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
131
131
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
132
132
|
}, undefined>, undefined>;
|
|
@@ -326,7 +326,7 @@ export declare const updateAccountSettingsSchema: v.ObjectSchema<{
|
|
|
326
326
|
*/
|
|
327
327
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
328
328
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
329
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
329
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
330
330
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
331
331
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
332
332
|
}, undefined>, undefined>;
|
|
@@ -526,7 +526,7 @@ export declare const accountSettingsViewSchema: v.ObjectSchema<{
|
|
|
526
526
|
*/
|
|
527
527
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
528
528
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
529
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
529
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
530
530
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
531
531
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
532
532
|
}, undefined>, undefined>;
|
package/dist/api-keys.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import * as v from 'valibot';
|
|
|
3
3
|
export declare const apiKeyScopeSchema: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
4
4
|
export type ApiKeyScope = v.InferOutput<typeof apiKeyScopeSchema>;
|
|
5
5
|
/** The direct providers that own a poolable API key. */
|
|
6
|
-
export declare const apiKeyProviderSchema: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
6
|
+
export declare const apiKeyProviderSchema: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
7
7
|
export type ApiKeyProvider = v.InferOutput<typeof apiKeyProviderSchema>;
|
|
8
8
|
/** One pool key as exposed to clients — metadata + usage, never the secret. */
|
|
9
9
|
export declare const apiKeySchema: v.ObjectSchema<{
|
|
10
10
|
readonly id: v.StringSchema<undefined>;
|
|
11
11
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
12
12
|
readonly scopeId: v.StringSchema<undefined>;
|
|
13
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
13
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
14
14
|
readonly label: v.StringSchema<undefined>;
|
|
15
15
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
16
16
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -31,7 +31,7 @@ export declare const apiKeyListSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
31
31
|
readonly id: v.StringSchema<undefined>;
|
|
32
32
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
33
33
|
readonly scopeId: v.StringSchema<undefined>;
|
|
34
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
34
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
35
35
|
readonly label: v.StringSchema<undefined>;
|
|
36
36
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
37
37
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -54,7 +54,7 @@ export declare const apiKeyListResultSchema: v.ObjectSchema<{
|
|
|
54
54
|
readonly id: v.StringSchema<undefined>;
|
|
55
55
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
56
56
|
readonly scopeId: v.StringSchema<undefined>;
|
|
57
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
57
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
58
58
|
readonly label: v.StringSchema<undefined>;
|
|
59
59
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
60
60
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -74,7 +74,7 @@ export declare const apiKeyListResultSchema: v.ObjectSchema<{
|
|
|
74
74
|
export type ApiKeyListResult = v.InferOutput<typeof apiKeyListResultSchema>;
|
|
75
75
|
/** Add a key to a pool. `key` is write-only (the raw secret). */
|
|
76
76
|
export declare const addApiKeySchema: v.ObjectSchema<{
|
|
77
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
77
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
78
78
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
79
79
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
80
80
|
}, undefined>;
|
package/dist/api-keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,+DAA+C,CAAA;AAC7E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE,wDAAwD;AACxD,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,+DAA+C,CAAA;AAC7E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,sHAY/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,+EAA+E;AAC/E,eAAO,MAAM,YAAY;;;;;;;;IAQvB,0EAA0E;;;;IAI1E;uFACmF;;IAEnF;;gGAE4F;;aAE5F,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;IAd3B,0EAA0E;;;;IAI1E;uFACmF;;IAEnF;;gGAE4F;;yBAKzC,CAAA;AACrD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE/D,wFAAwF;AACxF,eAAO,MAAM,sBAAsB;;;;;;;;;QAlBjC,0EAA0E;;;;QAI1E;2FACmF;;QAEnF;;oGAE4F;;;aASpB,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,iEAAiE;AACjE,eAAO,MAAM,eAAe;;;;aAI1B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA;AAElE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;aAG7B,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
package/dist/api-keys.js
CHANGED
|
@@ -19,6 +19,7 @@ export const apiKeyProviderSchema = v.picklist([
|
|
|
19
19
|
'qwen',
|
|
20
20
|
'deepseek',
|
|
21
21
|
'moonshot',
|
|
22
|
+
'xai',
|
|
22
23
|
// OpenAI-compatible aggregator/gateway providers: OpenRouter (a single hosted gateway
|
|
23
24
|
// to 300+ models) and LiteLLM (an operator-hosted gateway; its base URL comes from the
|
|
24
25
|
// deployment's LITELLM_BASE_URL). Both resolve via the shared OpenAI-compatible path.
|
package/dist/api-keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,0CAA0C;AAC1C,EAAE;AACF,kFAAkF;AAClF,kFAAkF;AAClF,6EAA6E;AAC7E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,6EAA6E;AAC7E,8EAA8E;AAE9E,6CAA6C;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAA;AAG7E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ClD,CAAC,CAAA;AAGF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACnC,CAAC,CAAA"}
|
package/dist/modelPolicy.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as v from 'valibot';
|
|
|
6
6
|
* OpenRouter slug, a per-user local runner) are UNCLASSIFIED and handled per the mode
|
|
7
7
|
* (allowlist ⇒ blocked, blocklist ⇒ allowed — see `isAllowedByFamilyPolicy`).
|
|
8
8
|
*/
|
|
9
|
-
export declare const modelFamilySchema: v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>;
|
|
9
|
+
export declare const modelFamilySchema: v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>;
|
|
10
10
|
export type ModelFamily = v.InferOutput<typeof modelFamilySchema>;
|
|
11
11
|
/**
|
|
12
12
|
* The account's operating region. Informational only — it drives WHICH built-in presets
|
|
@@ -35,7 +35,7 @@ export type ModelPolicyMode = v.InferOutput<typeof modelPolicyModeSchema>;
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const modelFamilyPolicySchema: v.ObjectSchema<{
|
|
37
37
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
38
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
38
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
39
39
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
40
40
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
41
41
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelPolicy.d.ts","sourceRoot":"","sources":["../src/modelPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"modelPolicy.d.ts","sourceRoot":"","sources":["../src/modelPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,iHAU5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,kEAAkD,CAAA;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,gEAAgD,CAAA;AAClF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;aAKlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,yCAAyC;AACzC,eAAO,MAAM,gBAAgB,EAAE,iBAI9B,CAAA;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,iBAAiB,CAAA;CAC1B;AAWD,eAAO,MAAM,2BAA2B,EAAE,uBAAuB,EAmDhE,CAAA"}
|
package/dist/modelPolicy.js
CHANGED
package/dist/modelPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelPolicy.js","sourceRoot":"","sources":["../src/modelPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,gDAAgD;AAChD,EAAE;AACF,qFAAqF;AACrF,qFAAqF;AACrF,wFAAwF;AACxF,oFAAoF;AACpF,sFAAsF;AACtF,4EAA4E;AAC5E,kFAAkF;AAClF,sFAAsF;AACtF,2EAA2E;AAC3E,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC1C,OAAO;IACP,MAAM;IACN,MAAM;IACN,UAAU;IACV,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,QAAQ;
|
|
1
|
+
{"version":3,"file":"modelPolicy.js","sourceRoot":"","sources":["../src/modelPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,gDAAgD;AAChD,EAAE;AACF,qFAAqF;AACrF,qFAAqF;AACrF,wFAAwF;AACxF,oFAAoF;AACpF,sFAAsF;AACtF,4EAA4E;AAC5E,kFAAkF;AAClF,sFAAsF;AACtF,2EAA2E;AAC3E,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC1C,OAAO;IACP,MAAM;IACN,MAAM;IACN,UAAU;IACV,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,MAAM;CACP,CAAC,CAAA;AAGF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,QAAQ,CAA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AAG,8BAA8B,CAAC;SACtD;KACF;IACD;QACE,EAAE,EAAE,aAAa;QACjB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,CAAC,GAAG,kBAAkB,CAAC;YACjC,gBAAgB,EAAE,CAAC,GAAG,8BAA8B,CAAC;SACtD;KACF;IACD;QACE,qFAAqF;QACrF,mFAAmF;QACnF,sFAAsF;QACtF,EAAE,EAAE,oBAAoB;QACxB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,EAAE;YACZ,gBAAgB,EAAE,CAAC,GAAG,8BAA8B,CAAC;SACtD;KACF;IACD;QACE,gFAAgF;QAChF,kDAAkD;QAClD,EAAE,EAAE,oBAAoB;QACxB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,CAAC,GAAG,kBAAkB,EAAE,OAAO,CAAC;YAC1C,gBAAgB,EAAE,CAAC,GAAG,8BAA8B,CAAC;SACtD;KACF;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,CAAC,GAAG,kBAAkB,CAAC;YACjC,gBAAgB,EAAE,CAAC,GAAG,8BAA8B,CAAC;SACtD;KACF;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reserved-env-keys.d.ts","sourceRoot":"","sources":["../src/reserved-env-keys.ts"],"names":[],"mappings":"AA4DA;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAAS,MAAM,EA0C3D,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"reserved-env-keys.d.ts","sourceRoot":"","sources":["../src/reserved-env-keys.ts"],"names":[],"mappings":"AA4DA;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAAS,MAAM,EA0C3D,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAwCvD,CAAA;AAKD;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAK7D;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzD;AAgDD,uGAAuG;AACvG,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKxD;AAED,yFAAyF;AACzF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM5D;AAED,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
|
|
@@ -154,6 +154,10 @@ export const PLATFORM_RESERVED_ENV_KEYS = [
|
|
|
154
154
|
'QWEN_API_KEY',
|
|
155
155
|
'REALTIME_NODE_ID',
|
|
156
156
|
'WORKER_PUBLIC_URL',
|
|
157
|
+
// Exact name rather than an `XAI_` family, for the same reason as `ADVANCE_TIMEOUT`: the
|
|
158
|
+
// platform owns one variable in that namespace, and reserving the family would newly
|
|
159
|
+
// refuse a credential key a deployment may already hold under it.
|
|
160
|
+
'XAI_API_KEY',
|
|
157
161
|
];
|
|
158
162
|
const RESERVED = new Set(PLATFORM_RESERVED_ENV_KEYS.map((key) => key.toUpperCase()));
|
|
159
163
|
const RESERVED_PREFIXES = PLATFORM_RESERVED_ENV_PREFIXES.map((prefix) => prefix.toUpperCase());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reserved-env-keys.js","sourceRoot":"","sources":["../src/reserved-env-keys.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0DAA0D;AAC1D,EAAE;AACF,iGAAiG;AACjG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;IAChB,aAAa;IACb,OAAO;IACP,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,cAAc;IACd,aAAa;CACd,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAsB;IAC3D,6FAA6F;IAC7F,6FAA6F;IAC7F,2FAA2F;IAC3F,wFAAwF;IACxF,qEAAqE;IACrE,iBAAiB;IACjB,mBAAmB;IACnB,cAAc;IACd,4BAA4B;IAC5B,cAAc;IACd,kBAAkB;IAClB,gBAAgB;IAChB,aAAa;IACb,6BAA6B;IAC7B,uBAAuB;IACvB,MAAM;IACN,WAAW;IACX,gGAAgG;IAChG,gGAAgG;IAChG,+FAA+F;IAC/F,mGAAmG;IACnG,wBAAwB;IACxB,kBAAkB;IAClB,6FAA6F;IAC7F,gGAAgG;IAChG,wFAAwF;IACxF,6BAA6B;IAC7B,gBAAgB;IAChB,iCAAiC;IACjC,MAAM;IACN,iCAAiC;IACjC,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"reserved-env-keys.js","sourceRoot":"","sources":["../src/reserved-env-keys.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0DAA0D;AAC1D,EAAE;AACF,iGAAiG;AACjG,iGAAiG;AACjG,gGAAgG;AAChG,iGAAiG;AACjG,6FAA6F;AAC7F,8CAA8C;AAC9C,EAAE;AACF,gGAAgG;AAChG,0EAA0E;AAC1E,EAAE;AACF,4FAA4F;AAC5F,+FAA+F;AAC/F,gGAAgG;AAChG,uFAAuF;AACvF,4FAA4F;AAC5F,gFAAgF;AAChF,EAAE;AACF,qFAAqF;AACrF,gGAAgG;AAChG,gGAAgG;AAChG,4FAA4F;AAC5F,gGAAgG;AAChG,iGAAiG;AACjG,6FAA6F;AAC7F,iGAAiG;AACjG,uFAAuF;AACvF,EAAE;AACF,+FAA+F;AAC/F,6FAA6F;AAC7F,gGAAgG;AAChG,6E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iG;AACjG,qFAAqF;AACrF,yBAAyB;AACzB,EAAE;AACF,mGAAmG;AACnG,yFAAyF;AACzF,kGAAkG;AAClG,gGAAgG;AAChG,kGAAkG;AAClG,iGAAiG;AACjG,mBAAmB;AACnB,8EAA8E;AAE9E;;;;;;;;;;;GAWG;AACH,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAClC,MAAM;IACN,MAAM;IACN,cAAc;IACd,WAAW;IACX,qBAAqB;IACrB,YAAY;IACZ,iBAAiB;IACjB,UAAU;IACV,KAAK;IACL,OAAO;IACP,KAAK;CACN,CAAC,CAAA;AACF,MAAM,sBAAsB,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;AAEtD,uGAAuG;AACvG,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IAC3B,IAAI,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAA;IACjD,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,CAAA;IACnC,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;AAC1E,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,CACL,IAAI,IAAI,iFAAiF;QACzF,qFAAqF;QACrF,uDAAuD,CACxD,CAAA;AACH,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC9C,CAAC"}
|
|
@@ -528,7 +528,7 @@ export declare const listAccountApiKeysContract: {
|
|
|
528
528
|
readonly id: v.StringSchema<undefined>;
|
|
529
529
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
530
530
|
readonly scopeId: v.StringSchema<undefined>;
|
|
531
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
531
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
532
532
|
readonly label: v.StringSchema<undefined>;
|
|
533
533
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
534
534
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -550,7 +550,7 @@ export declare const addAccountApiKeyContract: {
|
|
|
550
550
|
accountId: string;
|
|
551
551
|
}) => string;
|
|
552
552
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
553
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
553
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
554
554
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
555
555
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
556
556
|
}, undefined>;
|
|
@@ -581,7 +581,7 @@ export declare const addAccountApiKeyContract: {
|
|
|
581
581
|
readonly id: v.StringSchema<undefined>;
|
|
582
582
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
583
583
|
readonly scopeId: v.StringSchema<undefined>;
|
|
584
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
584
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
585
585
|
readonly label: v.StringSchema<undefined>;
|
|
586
586
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
587
587
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -634,7 +634,7 @@ export declare const updateAccountApiKeyContract: {
|
|
|
634
634
|
readonly id: v.StringSchema<undefined>;
|
|
635
635
|
readonly scope: v.PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
636
636
|
readonly scopeId: v.StringSchema<undefined>;
|
|
637
|
-
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
637
|
+
readonly provider: v.PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
638
638
|
readonly label: v.StringSchema<undefined>;
|
|
639
639
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
640
640
|
readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -905,7 +905,7 @@ export declare const getAccountSettingsContract: {
|
|
|
905
905
|
}, "Select which registered store the custom content-storage backend means.">]>, undefined>;
|
|
906
906
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
907
907
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
908
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
908
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
909
909
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
910
910
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
911
911
|
}, undefined>, undefined>;
|
|
@@ -1006,7 +1006,7 @@ export declare const updateAccountSettingsContract: {
|
|
|
1006
1006
|
}, "Select which registered store the custom content-storage backend means.">]>, undefined>;
|
|
1007
1007
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
1008
1008
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
1009
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
1009
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
1010
1010
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
1011
1011
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
1012
1012
|
}, undefined>, undefined>;
|
|
@@ -1124,7 +1124,7 @@ export declare const updateAccountSettingsContract: {
|
|
|
1124
1124
|
}, "Select which registered store the custom content-storage backend means.">]>, undefined>;
|
|
1125
1125
|
readonly modelPolicy: v.OptionalSchema<v.ObjectSchema<{
|
|
1126
1126
|
readonly mode: v.PicklistSchema<["off", "blocklist", "allowlist"], undefined>;
|
|
1127
|
-
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini"], undefined>, undefined>;
|
|
1127
|
+
readonly families: v.ArraySchema<v.PicklistSchema<["llama", "qwen", "kimi", "deepseek", "glm", "claude", "openai", "gemini", "grok"], undefined>, undefined>;
|
|
1128
1128
|
readonly trustedProviders: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
|
|
1129
1129
|
readonly region: v.OptionalSchema<v.PicklistSchema<["usa", "europe", "china", "other"], undefined>, undefined>;
|
|
1130
1130
|
}, undefined>, undefined>;
|
|
@@ -30,7 +30,7 @@ export declare const listWorkspaceApiKeysContract: {
|
|
|
30
30
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
31
31
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
32
32
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
33
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
33
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
34
34
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
35
35
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
36
36
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
@@ -47,7 +47,7 @@ export declare const addWorkspaceApiKeyContract: {
|
|
|
47
47
|
readonly method: "post";
|
|
48
48
|
readonly pathResolver: () => string;
|
|
49
49
|
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
50
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
50
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
51
51
|
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
52
52
|
readonly key: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
53
53
|
}, undefined>;
|
|
@@ -78,7 +78,7 @@ export declare const addWorkspaceApiKeyContract: {
|
|
|
78
78
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
79
79
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
80
80
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
81
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
81
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
82
82
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
83
83
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
84
84
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
@@ -129,7 +129,7 @@ export declare const updateWorkspaceApiKeyContract: {
|
|
|
129
129
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
130
130
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
131
131
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
132
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
132
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
133
133
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
134
134
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
135
135
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
@@ -206,7 +206,7 @@ export declare const listUserApiKeysContract: {
|
|
|
206
206
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
207
207
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
208
208
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
209
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
209
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
210
210
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
211
211
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
212
212
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
@@ -223,7 +223,7 @@ export declare const addUserApiKeyContract: {
|
|
|
223
223
|
readonly method: "post";
|
|
224
224
|
readonly pathResolver: () => string;
|
|
225
225
|
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
226
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
226
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
227
227
|
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
228
228
|
readonly key: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
229
229
|
}, undefined>;
|
|
@@ -254,7 +254,7 @@ export declare const addUserApiKeyContract: {
|
|
|
254
254
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
255
255
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
256
256
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
257
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
257
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
258
258
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
259
259
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
260
260
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
@@ -305,7 +305,7 @@ export declare const updateUserApiKeyContract: {
|
|
|
305
305
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
306
306
|
readonly scope: import("valibot").PicklistSchema<["account", "workspace", "user"], undefined>;
|
|
307
307
|
readonly scopeId: import("valibot").StringSchema<undefined>;
|
|
308
|
-
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "openrouter", "litellm"], undefined>;
|
|
308
|
+
readonly provider: import("valibot").PicklistSchema<["openai", "anthropic", "qwen", "deepseek", "moonshot", "xai", "openrouter", "litellm"], undefined>;
|
|
309
309
|
readonly label: import("valibot").StringSchema<undefined>;
|
|
310
310
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
311
311
|
readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|