@alpic-ai/api 0.0.0-staging.g1abcf50 → 0.0.0-staging.g1afd4e3

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/index.d.mts CHANGED
@@ -257,6 +257,7 @@ declare const contract: {
257
257
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
258
258
  NOT_FOUND: {};
259
259
  BAD_REQUEST: {};
260
+ CONFLICT: {};
260
261
  }>, Record<never, never>>;
261
262
  };
262
263
  getLogs: {
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import * as z$1 from "zod/v4";
3
3
  import { oc } from "@orpc/contract";
4
4
  import ms from "ms";
5
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
5
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
6
6
  /**
7
7
  * Reusable URL validation that disallows javascript: scheme
8
8
  */
@@ -169,11 +169,21 @@ z$1.object({
169
169
  token: z$1.string(),
170
170
  token_type_hint: z$1.string().optional()
171
171
  }).strip();
172
- const platformSchema = z.enum(["chatgpt", "claudeai"]);
172
+ //#endregion
173
+ //#region ../domains/dist/index.mjs
174
+ const AI_PLATFORMS = ["chatgpt", "claudeai"];
175
+ const platformSchema = z.enum(AI_PLATFORMS);
173
176
  const PLATFORM_LABELS = {
174
177
  chatgpt: "ChatGPT",
175
178
  claudeai: "Claude.ai"
176
179
  };
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);
177
187
  const auditStatusSchema = z.enum([
178
188
  "pending",
179
189
  "partial",
@@ -376,7 +386,6 @@ z.union([
376
386
  legacyStandaloneEnvironmentSchema,
377
387
  legacyProtectedWithoutDiscoveryEnvironmentSchema
378
388
  ]);
379
- const allowedPlatformSchema = platformSchema;
380
389
  const playgroundModelSchema = z.enum([
381
390
  "global.anthropic.claude-haiku-4-5-20251001-v1:0",
382
391
  "global.anthropic.claude-sonnet-4-5-20250929-v1:0",
@@ -416,7 +425,8 @@ z.object({
416
425
  collectRequestPayload: z.boolean(),
417
426
  collectResponsePayload: z.boolean(),
418
427
  collectErrorMessage: z.boolean(),
419
- collectUserData: z.boolean()
428
+ collectUserData: z.boolean(),
429
+ identityTraitKey: z.string().min(1).max(200).nullable()
420
430
  });
421
431
  z.object({
422
432
  id: z.string(),
@@ -1260,7 +1270,10 @@ const RESERVED_KEYS = [
1260
1270
  "BUILD_ARG_START_COMMAND",
1261
1271
  "ALPIC_HOST",
1262
1272
  "ALPIC_CUSTOM_DOMAINS",
1263
- "ALPIC_INTENT_META_KEY"
1273
+ "ALPIC_INTENT_META_KEY",
1274
+ "ALPIC_FEEDBACK_META_KEY",
1275
+ "ALPIC_EVENTS_META_KEY",
1276
+ "ALPIC_IDENTIFY_META_KEY"
1264
1277
  ];
1265
1278
  const environmentVariableSchema = z.object({
1266
1279
  key: z.string().min(2, "Key must be at least 2 characters").regex(/^[a-zA-Z]([a-zA-Z0-9_])+$/, "Key must start with a letter and contain only letters, numbers, and underscores").refine((key) => !RESERVED_KEYS.includes(key), "This key is reserved and cannot be used as an environment variable key"),
@@ -1576,7 +1589,8 @@ const deployEnvironmentContractV1 = oc.route({
1576
1589
  successDescription: "The environment has been deployed successfully"
1577
1590
  }).errors({
1578
1591
  NOT_FOUND: {},
1579
- BAD_REQUEST: {}
1592
+ BAD_REQUEST: {},
1593
+ CONFLICT: {}
1580
1594
  }).input(z.object({
1581
1595
  environmentId: z.string().describe("The ID of the environment to deploy"),
1582
1596
  token: z.string().describe("The token to identify the source archive").optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.g1abcf50",
3
+ "version": "0.0.0-staging.g1afd4e3",
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.10",
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.10",
42
+ "@orpc/zod": "^1.14.10",
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.14",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "^4.1.10",
49
49
  "@alpic-ai/domains": "0.0.0"