@alpic-ai/api 0.0.0-dev.gd909ef3 → 0.0.0-dev.gd90a081

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.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.30.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",
@@ -273,34 +283,51 @@ const deploymentSummarySchema = z.object({
273
283
  createdAt: z.coerce.date(),
274
284
  updatedAt: z.coerce.date()
275
285
  });
276
- /**
277
- * Public environment
278
- *
279
- * No OAuth metadata exposed.
280
- */
286
+ /** Public environment: answers anonymously and exposes no OAuth metadata. */
281
287
  const publicEnvironmentSchema = z.object({
288
+ allowsAnonymous: z.literal(true),
289
+ oAuthMetadata: z.strictObject({})
290
+ });
291
+ /** Protected environment whose external resource metadata URL is returned in the WWW-Authenticate header on the first 401; everything after is handled outside the MCP server scope. */
292
+ const externalResourceMetadataEnvironmentSchema = z.object({
293
+ allowsAnonymous: z.boolean(),
294
+ oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
295
+ scope: z.string().optional()
296
+ });
297
+ /** Protected environment whose own /.well-known/oauth-protected-resource endpoint points at an external authorization server; everything after is handled outside the MCP server scope. */
298
+ const externalAuthorizationServerEnvironmentSchema = z.object({
299
+ allowsAnonymous: z.boolean(),
300
+ oAuthMetadata: z.object({
301
+ externalAuthorizationServerUrl: z.url(),
302
+ resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
303
+ }),
304
+ scope: z.string().optional()
305
+ });
306
+ /** Standalone protected environment: the server itself exposes both the /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server endpoints. */
307
+ const standaloneEnvironmentSchema = z.object({
308
+ allowsAnonymous: z.boolean(),
309
+ oAuthMetadata: z.object({
310
+ authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
311
+ resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
312
+ }),
313
+ scope: z.string().optional()
314
+ });
315
+ /** Protected environment that enforces authentication but advertises no OAuth discovery metadata; clients must obtain credentials out-of-band. */
316
+ const protectedWithoutDiscoveryEnvironmentSchema = z.object({
317
+ allowsAnonymous: z.literal(false),
318
+ oAuthMetadata: z.strictObject({}),
319
+ scope: z.string().optional()
320
+ });
321
+ const legacyPublicEnvironmentSchema = z.object({
282
322
  isPublic: z.literal(true),
283
323
  oAuthMetadata: z.undefined().optional()
284
324
  });
285
- /**
286
- * Protected environment with an external resource metadata URL
287
- *
288
- * An external resource metadata URL is returned in the WWW-Authenticate header during the first 401 response.
289
- * Everything that follows is handled outside of the MCP server scope.
290
- */
291
- const externalResourceMetadataEnvironmentSchema = z.object({
325
+ const legacyExternalResourceMetadataEnvironmentSchema = z.object({
292
326
  isPublic: z.literal(false),
293
327
  oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
294
328
  scope: z.string().optional()
295
329
  });
296
- /**
297
- * Protected environment with an external authorization server URL
298
- *
299
- * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
300
- * An external authorization server URL is returned when requesting the endpoint.
301
- * Everything that follows is handled outside of the MCP server scope.
302
- */
303
- const externalAuthorizationServerEnvironmentSchema = z.object({
330
+ const legacyExternalAuthorizationServerEnvironmentSchema = z.object({
304
331
  isPublic: z.literal(false),
305
332
  oAuthMetadata: z.object({
306
333
  externalAuthorizationServerUrl: z.url(),
@@ -308,13 +335,7 @@ const externalAuthorizationServerEnvironmentSchema = z.object({
308
335
  }),
309
336
  scope: z.string().optional()
310
337
  });
311
- /**
312
- * Standalone protected environment
313
- *
314
- * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
315
- * The server itself exposes the /.well-known/oauth-authorization-server endpoint.
316
- */
317
- const standaloneEnvironmentSchema = z.object({
338
+ const legacyStandaloneEnvironmentSchema = z.object({
318
339
  isPublic: z.literal(false),
319
340
  oAuthMetadata: z.object({
320
341
  authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
@@ -322,14 +343,7 @@ const standaloneEnvironmentSchema = z.object({
322
343
  }),
323
344
  scope: z.string().optional()
324
345
  });
325
- /**
326
- * Protected environment without OAuth discovery
327
- *
328
- * The server enforces authentication but exposes no OAuth discovery metadata.
329
- * Neither /.well-known/oauth-protected-resource nor /.well-known/oauth-authorization-server
330
- * are advertised. Clients must obtain credentials out-of-band.
331
- */
332
- const protectedWithoutDiscoveryEnvironmentSchema = z.object({
346
+ const legacyProtectedWithoutDiscoveryEnvironmentSchema = z.object({
333
347
  isPublic: z.literal(false),
334
348
  oAuthMetadata: z.strictObject({}),
335
349
  scope: z.string().optional()
@@ -339,9 +353,19 @@ z.union([
339
353
  externalResourceMetadataEnvironmentSchema,
340
354
  externalAuthorizationServerEnvironmentSchema,
341
355
  standaloneEnvironmentSchema,
342
- protectedWithoutDiscoveryEnvironmentSchema
356
+ protectedWithoutDiscoveryEnvironmentSchema,
357
+ legacyPublicEnvironmentSchema,
358
+ legacyExternalResourceMetadataEnvironmentSchema,
359
+ legacyExternalAuthorizationServerEnvironmentSchema,
360
+ legacyStandaloneEnvironmentSchema,
361
+ legacyProtectedWithoutDiscoveryEnvironmentSchema
362
+ ]);
363
+ const playgroundModelSchema = z.enum([
364
+ "global.anthropic.claude-haiku-4-5-20251001-v1:0",
365
+ "global.anthropic.claude-sonnet-4-5-20250929-v1:0",
366
+ "openai.gpt-5.4",
367
+ "openai.gpt-5.5"
343
368
  ]);
344
- const allowedPlatformSchema = platformSchema;
345
369
  const environmentDomainSchema = z.object({
346
370
  name: z.string(),
347
371
  status: z.enum([
@@ -361,6 +385,7 @@ const environmentSchema$1 = z.object({
361
385
  latestDeployment: deploymentSummarySchema.optional(),
362
386
  openaiAppsChallenge: z.string().nullable().optional(),
363
387
  isPlaygroundEnabled: z.boolean(),
388
+ playgroundModel: playgroundModelSchema,
364
389
  isIpWhitelistEnabled: z.boolean(),
365
390
  ipAllowlist: z.array(z.string()).nullable(),
366
391
  allowedPlatforms: z.array(allowedPlatformSchema),
@@ -374,7 +399,8 @@ z.object({
374
399
  collectRequestPayload: z.boolean(),
375
400
  collectResponsePayload: z.boolean(),
376
401
  collectErrorMessage: z.boolean(),
377
- collectUserData: z.boolean()
402
+ collectUserData: z.boolean(),
403
+ identityTraitKey: z.string().min(1).max(200).nullable()
378
404
  });
379
405
  z.object({
380
406
  id: z.string(),
@@ -515,6 +541,10 @@ const domainFailureReasonSchema = z.enum([
515
541
  "invalid_domain",
516
542
  "other"
517
543
  ]);
544
+ const projectDomainMappingSchema = z.object({
545
+ pathPrefix: z.string(),
546
+ environment: environmentSchema$1
547
+ });
518
548
  z.object({
519
549
  name: z.string(),
520
550
  createdAt: z.coerce.date(),
@@ -524,7 +554,8 @@ z.object({
524
554
  "failed"
525
555
  ]),
526
556
  failureReason: domainFailureReasonSchema.nullable(),
527
- environment: environmentSchema$1
557
+ environment: environmentSchema$1,
558
+ mappings: z.array(projectDomainMappingSchema)
528
559
  });
529
560
  const serverFieldsSchema$1 = z.object({
530
561
  $schema: z.string(),
@@ -553,15 +584,7 @@ z.object({
553
584
  serverFields: serverFieldsSchema$1,
554
585
  source: z.enum(["registry", "defaults"])
555
586
  });
556
- /**
557
- * Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
558
- * rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
559
- *
560
- * NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
561
- * `minLength`, and the description. Any other validators on the source field (`.regex()`,
562
- * `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
563
- * free-text length caps only. A field with `null` `maxLength` is returned unchanged.
564
- */
587
+ /** Clamps instead of rejecting on max-length overflow (for AI-generated copy that overshoots); intentionally carries over only maxLength, minLength, and description, dropping any other validators. */
565
588
  const clampStringField = (field) => {
566
589
  const max = field.maxLength;
567
590
  if (max === null) return field;
@@ -588,8 +611,9 @@ const positiveTestCaseSchema = z.object({
588
611
  }).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
589
612
  const screenshotEntrySchema = z.object({
590
613
  prompt: z.string(),
591
- url: z.url().or(z.literal(""))
614
+ url: z.url()
592
615
  }).describe("Each screenshot: the user prompt that produced it + the image URL.");
616
+ const screenshotDraftEntrySchema = screenshotEntrySchema.extend({ url: z.string() });
593
617
  /** Accepts either a valid email or URL. */
594
618
  const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
595
619
  /** A URL field whose error spells out that the scheme is required. */
@@ -906,11 +930,7 @@ const chatgptToolJustificationSchema = z.object({
906
930
  openWorldJustification: z.string().describe("One sentence on whether the tool reaches external systems beyond your own service."),
907
931
  destructiveJustification: z.string().describe("One sentence on whether the tool changes data. For a read-only tool, state the full triad: \"No data is created, modified, or deleted.\"")
908
932
  }).describe("Per-tool justification of each MCP annotation value (one specific sentence per hint).");
909
- /**
910
- * Base copy fields, defined once and reused by both the submission form and per-locale
911
- * translations so the constraints (tagline ≤ 30 chars) never drift. The translation generation
912
- * path wraps these in {@link clampStringField} since the LLM tends to overshoot the limit.
913
- */
933
+ /** Defined once and reused by both the submission form and per-locale translations so the tagline ≤ 30 chars constraint never drifts. */
914
934
  const chatgptTaglineSchema = z.string().max(30);
915
935
  const chatgptDescriptionSchema = z.string();
916
936
  const chatgptTranslationSchema = z.object({
@@ -919,10 +939,7 @@ const chatgptTranslationSchema = z.object({
919
939
  description: chatgptDescriptionSchema
920
940
  }).describe("Locale-scoped override for tagline + description. English (US) is the default.");
921
941
  chatgptTranslationSchema.extend({ tagline: clampStringField(chatgptTaglineSchema) });
922
- /**
923
- * Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section.
924
- * When adding/removing/reordering fields, keep this in sync with the sheet.
925
- */
942
+ /** Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section; keep it in sync with the sheet. */
926
943
  const chatgptSubmissionFormDataSchema = z.object({
927
944
  logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
928
945
  logoDark: z.string().optional().describe("Optional dark-mode logo icon. Square PNG, same specs as the light icon. Leave empty if the light icon also works on dark backgrounds."),
@@ -948,6 +965,17 @@ const chatgptSubmissionFormDataSchema = z.object({
948
965
  allowedCountries: chatgptAllowedCountriesSchema.describe("Availability: all supported countries, or an allow-list / block-list of specific ones (ISO alpha-2)."),
949
966
  releaseNotes: z.string().describe("Publicly displayed on the app details page.")
950
967
  });
968
+ const chatgptSubmissionDraftSchema = chatgptSubmissionFormDataSchema.partial().extend({
969
+ tagline: z.string().optional(),
970
+ companyUrl: z.string().optional(),
971
+ supportChannel: z.string().optional(),
972
+ privacyPolicyUrl: z.string().optional(),
973
+ termsOfServiceUrl: z.string().optional(),
974
+ demoRecordingUrl: z.string().optional(),
975
+ serverUrl: z.string().optional(),
976
+ screenshots: z.array(screenshotDraftEntrySchema).optional(),
977
+ translations: z.array(chatgptTranslationSchema.extend({ tagline: z.string() })).optional()
978
+ });
951
979
  chatgptSubmissionFormDataSchema.pick({
952
980
  appName: true,
953
981
  developerName: true,
@@ -1008,11 +1036,7 @@ const claudePolicyAcknowledgementSchema = z.enum([
1008
1036
  "My connector does not collect conversation data beyond what is needed for its function.",
1009
1037
  "Public documentation for this connector will be live by the publish date."
1010
1038
  ]);
1011
- /**
1012
- * Field order mirrors the claude.ai directory submission wizard
1013
- * (`claude.ai/admin-settings/directory/submissions/new`), grouped by step.
1014
- * When adding/removing/reordering fields, keep this in sync with the wizard.
1015
- */
1039
+ /** Field order mirrors the claude.ai directory submission wizard (`claude.ai/admin-settings/directory/submissions/new`), grouped by step; keep it in sync with the wizard. */
1016
1040
  const claudeSubmissionFormDataSchema = z.object({
1017
1041
  serverUrl: z.url().describe(`The full https:// URL where your MCP server is hosted and reachable. In the claude.ai wizard this is read live
1018
1042
  from the custom connector you select — the connection is used to verify the URL and the tool list at submission time.
@@ -1074,6 +1098,21 @@ fully populated account.`),
1074
1098
  submission. Each is an attestation you are legally agreeing to by submitting.`),
1075
1099
  additionalNotes: z.string().optional().describe("Anything else the review team should know about your connector. Optional.")
1076
1100
  });
1101
+ const claudeSubmissionDraftSchema = claudeSubmissionFormDataSchema.partial().extend({
1102
+ serverUrl: z.string().optional(),
1103
+ name: z.string().optional(),
1104
+ slug: z.string().optional(),
1105
+ oneLiner: z.string().optional(),
1106
+ description: z.string().optional(),
1107
+ iconUrl: z.string().optional(),
1108
+ documentation: z.string().optional(),
1109
+ support: z.string().optional(),
1110
+ privacyPolicy: z.string().optional(),
1111
+ companyWebsite: z.string().optional(),
1112
+ primaryContactEmail: z.string().optional(),
1113
+ categories: z.array(claudeCategorySchema).optional(),
1114
+ screenshots: z.array(screenshotDraftEntrySchema).optional()
1115
+ });
1077
1116
  claudeSubmissionFormDataSchema.pick({
1078
1117
  serverUrl: true,
1079
1118
  name: true,
@@ -1089,12 +1128,7 @@ claudeSubmissionFormDataSchema.pick({
1089
1128
  connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
1090
1129
  testInstructions: claudeSubmissionFormDataSchema.shape.testInstructions.optional()
1091
1130
  });
1092
- /**
1093
- * Narrative fields the LLM-backed generation step produces for Claude submissions.
1094
- * This schema accepts the slightly loose shape returned by AI generation, then normalizes it into
1095
- * the strict form shape. Keep transforms here rather than in callers so generation leniency is
1096
- * colocated with the Claude contract.
1097
- */
1131
+ /** Loose shape returned by AI generation for Claude narrative fields; transforms live here so generation leniency stays colocated with the Claude contract. */
1098
1132
  const claudeAiGeneratedFormDataRawSchema = z.object({
1099
1133
  oneLiner: claudeSubmissionFormDataSchema.shape.oneLiner,
1100
1134
  description: claudeSubmissionFormDataSchema.shape.description,
@@ -1114,14 +1148,14 @@ const submissionMetaFieldsSchema = z.object({
1114
1148
  });
1115
1149
  const claudeSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
1116
1150
  platform: z.literal("claudeai"),
1117
- formData: claudeSubmissionFormDataSchema.partial()
1151
+ formData: claudeSubmissionDraftSchema
1118
1152
  });
1119
1153
  const chatgptSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
1120
1154
  platform: z.literal("chatgpt"),
1121
- formData: chatgptSubmissionFormDataSchema.partial()
1155
+ formData: chatgptSubmissionDraftSchema
1122
1156
  });
1123
1157
  z.discriminatedUnion("platform", [claudeSubmissionSchemaInternal, chatgptSubmissionSchemaInternal]);
1124
- z.union([claudeSubmissionFormDataSchema.partial(), chatgptSubmissionFormDataSchema.partial()]);
1158
+ z.union([claudeSubmissionDraftSchema, chatgptSubmissionDraftSchema]);
1125
1159
  const subscriptionPlanSchema = z.enum([
1126
1160
  "pro",
1127
1161
  "business",
@@ -1186,7 +1220,10 @@ const RESERVED_KEYS = [
1186
1220
  "BUILD_ARG_START_COMMAND",
1187
1221
  "ALPIC_HOST",
1188
1222
  "ALPIC_CUSTOM_DOMAINS",
1189
- "ALPIC_INTENT_META_KEY"
1223
+ "ALPIC_INTENT_META_KEY",
1224
+ "ALPIC_FEEDBACK_META_KEY",
1225
+ "ALPIC_EVENTS_META_KEY",
1226
+ "ALPIC_IDENTIFY_META_KEY"
1190
1227
  ];
1191
1228
  const environmentVariableSchema = z.object({
1192
1229
  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"),
@@ -1502,10 +1539,12 @@ const deployEnvironmentContractV1 = oc.route({
1502
1539
  successDescription: "The environment has been deployed successfully"
1503
1540
  }).errors({
1504
1541
  NOT_FOUND: {},
1505
- BAD_REQUEST: {}
1542
+ BAD_REQUEST: {},
1543
+ CONFLICT: {}
1506
1544
  }).input(z.object({
1507
1545
  environmentId: z.string().describe("The ID of the environment to deploy"),
1508
- token: z.string().describe("The token to identify the source archive").optional()
1546
+ token: z.string().describe("The token to identify the source archive").optional(),
1547
+ settings: buildSettingsSchema.extend({ transport: transportSchema }).optional().describe("Project settings detected by the client from the source. When provided, the server skips downloading and extracting the source archive to detect them.")
1509
1548
  })).output(deploymentSchema);
1510
1549
  const uploadDeploymentArtifactContractV1 = oc.route({
1511
1550
  path: "/v1/deployments/upload",
@@ -1542,6 +1581,21 @@ const getDeploymentContractV1 = oc.route({
1542
1581
  tags: ["deployments"],
1543
1582
  successDescription: "The deployment details"
1544
1583
  }).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentSchema);
1584
+ const logEntrySchema = z.object({
1585
+ timestamp: z.coerce.date(),
1586
+ type: z.enum([
1587
+ "START",
1588
+ "END",
1589
+ "INFO",
1590
+ "ERROR",
1591
+ "WARNING",
1592
+ "DEBUG"
1593
+ ]),
1594
+ requestId: z.string(),
1595
+ content: z.string().optional(),
1596
+ method: z.string().optional(),
1597
+ durationInMs: z.number().optional()
1598
+ });
1545
1599
  const getLogsContractV1 = oc.route({
1546
1600
  path: "/v1/environments/{environmentId}/logs",
1547
1601
  method: "GET",
@@ -1566,21 +1620,7 @@ const getLogsContractV1 = oc.route({
1566
1620
  search: z.string().optional().describe("Filter pattern to search for in log content"),
1567
1621
  nextToken: z.string().optional().describe("Pagination token from a previous response")
1568
1622
  })).output(z.object({
1569
- logs: z.array(z.object({
1570
- timestamp: z.coerce.date(),
1571
- type: z.enum([
1572
- "START",
1573
- "END",
1574
- "INFO",
1575
- "ERROR",
1576
- "WARNING",
1577
- "DEBUG"
1578
- ]),
1579
- requestId: z.string(),
1580
- content: z.string().optional(),
1581
- method: z.string().optional(),
1582
- durationInMs: z.number().optional()
1583
- })),
1623
+ logs: z.array(logEntrySchema),
1584
1624
  nextToken: z.string().nullable()
1585
1625
  }));
1586
1626
  const getLatestLogsContractV1 = oc.route({
@@ -1603,21 +1643,7 @@ const getLatestLogsContractV1 = oc.route({
1603
1643
  "DEBUG"
1604
1644
  ])).optional().describe("Filter by log level"),
1605
1645
  search: z.string().optional().describe("Filter pattern to search for in log content")
1606
- })).output(z.object({ logs: z.array(z.object({
1607
- timestamp: z.coerce.date(),
1608
- type: z.enum([
1609
- "START",
1610
- "END",
1611
- "INFO",
1612
- "ERROR",
1613
- "WARNING",
1614
- "DEBUG"
1615
- ]),
1616
- requestId: z.string(),
1617
- content: z.string().optional(),
1618
- method: z.string().optional(),
1619
- durationInMs: z.number().optional()
1620
- })) }));
1646
+ })).output(z.object({ logs: z.array(logEntrySchema) }));
1621
1647
  const getDeploymentLogsContractV1 = oc.route({
1622
1648
  path: "/v1/deployments/{deploymentId}/logs",
1623
1649
  method: "GET",
@@ -1843,5 +1869,10 @@ const contract = {
1843
1869
  get: { v1: getBeaconContractV1 }
1844
1870
  }
1845
1871
  };
1872
+ const { uploadArtifact: _discard, ...deploymentsForDocs } = contract.deployments;
1873
+ const contractForDocs = {
1874
+ ...contract,
1875
+ deployments: deploymentsForDocs
1876
+ };
1846
1877
  //#endregion
1847
- export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, PLATFORM_LABELS, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
1878
+ export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, PLATFORM_LABELS, buildSettingsSchema, contract, contractForDocs, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-dev.gd909ef3",
3
+ "version": "0.0.0-dev.gd90a081",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -14,22 +14,38 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
+ "nx": {
18
+ "targets": {
19
+ "build": {
20
+ "cache": true,
21
+ "inputs": [
22
+ "{projectRoot}/src/**/*",
23
+ "{projectRoot}/tsdown.config.ts",
24
+ "{projectRoot}/tsconfig.json",
25
+ "^default"
26
+ ],
27
+ "outputs": [
28
+ "{projectRoot}/dist"
29
+ ]
30
+ }
31
+ }
32
+ },
17
33
  "author": "Alpic",
18
34
  "license": "ISC",
19
35
  "dependencies": {
20
- "@orpc/contract": "^1.14.6",
36
+ "@orpc/contract": "^1.14.13",
21
37
  "ms": "^2.1.3",
22
38
  "zod": "^4.4.3"
23
39
  },
24
40
  "devDependencies": {
25
- "@orpc/openapi": "^1.14.6",
26
- "@orpc/zod": "^1.14.6",
41
+ "@orpc/openapi": "^1.14.13",
42
+ "@orpc/zod": "^1.14.13",
27
43
  "@total-typescript/tsconfig": "^1.0.4",
28
44
  "@types/ms": "^2.1.0",
29
45
  "shx": "^0.4.0",
30
- "tsdown": "^0.22.3",
46
+ "tsdown": "^0.22.14",
31
47
  "typescript": "^6.0.3",
32
- "vitest": "^4.1.9",
48
+ "vitest": "^4.1.10",
33
49
  "@alpic-ai/domains": "0.0.0"
34
50
  },
35
51
  "scripts": {
@@ -38,7 +54,7 @@
38
54
  "test": "pnpm run test:unit && pnpm run test:type && pnpm run test:format",
39
55
  "test:unit": "vitest run",
40
56
  "test:format": "biome check --error-on-warnings .",
41
- "test:type": "tsc --noEmit",
57
+ "test:type": "tsgo --noEmit",
42
58
  "publish:npm": "pnpm publish --tag \"${NPM_TAG}\" --access public --no-git-checks"
43
59
  }
44
60
  }