@alpic-ai/api 0.0.0-staging.g845fffa → 0.0.0-staging.g84dfc77

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -11
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -169,21 +169,11 @@ z$1.object({
169
169
  token: z$1.string(),
170
170
  token_type_hint: z$1.string().optional()
171
171
  }).strip();
172
- //#endregion
173
- //#region ../domains/dist/index.mjs
174
- const AI_PLATFORMS = ["chatgpt", "claudeai"];
175
- const platformSchema = z.enum(AI_PLATFORMS);
172
+ const platformSchema = z.enum(["chatgpt", "claudeai"]);
176
173
  const PLATFORM_LABELS = {
177
174
  chatgpt: "ChatGPT",
178
175
  claudeai: "Claude.ai"
179
176
  };
180
- const WAF_PLATFORMS = [
181
- "akamai",
182
- "cloudflare",
183
- "fastly"
184
- ];
185
- const ALLOWED_PLATFORMS = [...AI_PLATFORMS, ...WAF_PLATFORMS];
186
- const allowedPlatformSchema = z.enum(ALLOWED_PLATFORMS);
187
177
  const auditStatusSchema = z.enum([
188
178
  "pending",
189
179
  "partial",
@@ -386,6 +376,7 @@ z.union([
386
376
  legacyStandaloneEnvironmentSchema,
387
377
  legacyProtectedWithoutDiscoveryEnvironmentSchema
388
378
  ]);
379
+ const allowedPlatformSchema = platformSchema;
389
380
  const playgroundModelSchema = z.enum([
390
381
  "global.anthropic.claude-haiku-4-5-20251001-v1:0",
391
382
  "global.anthropic.claude-sonnet-4-5-20250929-v1:0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.g845fffa",
3
+ "version": "0.0.0-staging.g84dfc77",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -33,17 +33,17 @@
33
33
  "author": "Alpic",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "@orpc/contract": "^1.14.8",
36
+ "@orpc/contract": "^1.14.7",
37
37
  "ms": "^2.1.3",
38
38
  "zod": "^4.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@orpc/openapi": "^1.14.8",
42
- "@orpc/zod": "^1.14.8",
41
+ "@orpc/openapi": "^1.14.7",
42
+ "@orpc/zod": "^1.14.7",
43
43
  "@total-typescript/tsconfig": "^1.0.4",
44
44
  "@types/ms": "^2.1.0",
45
45
  "shx": "^0.4.0",
46
- "tsdown": "^0.22.9",
46
+ "tsdown": "^0.22.5",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "^4.1.10",
49
49
  "@alpic-ai/domains": "0.0.0"