@alpic-ai/api 0.0.0-dev.gdda900d → 0.0.0-dev.gde39a96

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 +4 -31
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -600,9 +600,8 @@ const positiveTestCaseSchema = z.object({
600
600
  }).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
601
601
  const screenshotEntrySchema = z.object({
602
602
  prompt: z.string(),
603
- url: z.url()
603
+ url: z.url().or(z.literal(""))
604
604
  }).describe("Each screenshot: the user prompt that produced it + the image URL.");
605
- const screenshotDraftEntrySchema = screenshotEntrySchema.extend({ url: z.string() });
606
605
  /** Accepts either a valid email or URL. */
607
606
  const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
608
607
  /** A URL field whose error spells out that the scheme is required. */
@@ -961,17 +960,6 @@ const chatgptSubmissionFormDataSchema = z.object({
961
960
  allowedCountries: chatgptAllowedCountriesSchema.describe("Availability: all supported countries, or an allow-list / block-list of specific ones (ISO alpha-2)."),
962
961
  releaseNotes: z.string().describe("Publicly displayed on the app details page.")
963
962
  });
964
- const chatgptSubmissionDraftSchema = chatgptSubmissionFormDataSchema.partial().extend({
965
- tagline: z.string().optional(),
966
- companyUrl: z.string().optional(),
967
- supportChannel: z.string().optional(),
968
- privacyPolicyUrl: z.string().optional(),
969
- termsOfServiceUrl: z.string().optional(),
970
- demoRecordingUrl: z.string().optional(),
971
- serverUrl: z.string().optional(),
972
- screenshots: z.array(screenshotDraftEntrySchema).optional(),
973
- translations: z.array(chatgptTranslationSchema.extend({ tagline: z.string() })).optional()
974
- });
975
963
  chatgptSubmissionFormDataSchema.pick({
976
964
  appName: true,
977
965
  developerName: true,
@@ -1098,21 +1086,6 @@ fully populated account.`),
1098
1086
  submission. Each is an attestation you are legally agreeing to by submitting.`),
1099
1087
  additionalNotes: z.string().optional().describe("Anything else the review team should know about your connector. Optional.")
1100
1088
  });
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
- });
1116
1089
  claudeSubmissionFormDataSchema.pick({
1117
1090
  serverUrl: true,
1118
1091
  name: true,
@@ -1153,14 +1126,14 @@ const submissionMetaFieldsSchema = z.object({
1153
1126
  });
1154
1127
  const claudeSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
1155
1128
  platform: z.literal("claudeai"),
1156
- formData: claudeSubmissionDraftSchema
1129
+ formData: claudeSubmissionFormDataSchema.partial()
1157
1130
  });
1158
1131
  const chatgptSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
1159
1132
  platform: z.literal("chatgpt"),
1160
- formData: chatgptSubmissionDraftSchema
1133
+ formData: chatgptSubmissionFormDataSchema.partial()
1161
1134
  });
1162
1135
  z.discriminatedUnion("platform", [claudeSubmissionSchemaInternal, chatgptSubmissionSchemaInternal]);
1163
- z.union([claudeSubmissionDraftSchema, chatgptSubmissionDraftSchema]);
1136
+ z.union([claudeSubmissionFormDataSchema.partial(), chatgptSubmissionFormDataSchema.partial()]);
1164
1137
  const subscriptionPlanSchema = z.enum([
1165
1138
  "pro",
1166
1139
  "business",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-dev.gdda900d",
3
+ "version": "0.0.0-dev.gde39a96",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -54,7 +54,7 @@
54
54
  "test": "pnpm run test:unit && pnpm run test:type && pnpm run test:format",
55
55
  "test:unit": "vitest run",
56
56
  "test:format": "biome check --error-on-warnings .",
57
- "test:type": "tsgo --noEmit",
57
+ "test:type": "tsc --noEmit",
58
58
  "publish:npm": "pnpm publish --tag \"${NPM_TAG}\" --access public --no-git-checks"
59
59
  }
60
60
  }