@alpic-ai/api 0.0.0-dev.ge67feab → 0.0.0-dev.ge8867f0
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 +1 -1
- package/dist/index.mjs +254 -24
- package/package.json +1 -10
package/dist/index.d.mts
CHANGED
|
@@ -212,7 +212,7 @@ declare const contract: {
|
|
|
212
212
|
name: z.ZodString;
|
|
213
213
|
sourceBranch: z.ZodNullable<z.ZodString>;
|
|
214
214
|
mcpServerUrl: z.ZodString;
|
|
215
|
-
domains: z.ZodArray<z.
|
|
215
|
+
domains: z.ZodArray<z.ZodCustomStringFormat<"hostname">>;
|
|
216
216
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
217
217
|
projectId: z.ZodString;
|
|
218
218
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
package/dist/index.mjs
CHANGED
|
@@ -71,7 +71,7 @@ const auditReportWithScreenshotsSchema = auditReportSchema.extend({ widgetScreen
|
|
|
71
71
|
chatgpt: widgetScreenshotSchema.optional(),
|
|
72
72
|
claudeai: widgetScreenshotSchema.optional()
|
|
73
73
|
}) });
|
|
74
|
-
z.enum([
|
|
74
|
+
const deploymentStatusSchema$1 = z.enum([
|
|
75
75
|
"ongoing",
|
|
76
76
|
"deployed",
|
|
77
77
|
"failed",
|
|
@@ -81,6 +81,51 @@ z.object({
|
|
|
81
81
|
timestamp: z.coerce.date().optional(),
|
|
82
82
|
content: z.string().optional()
|
|
83
83
|
});
|
|
84
|
+
const deploymentSummarySchema = z.object({
|
|
85
|
+
id: z.string(),
|
|
86
|
+
status: deploymentStatusSchema$1,
|
|
87
|
+
sourceBucket: z.string().nullable(),
|
|
88
|
+
sourceObjectKey: z.string().nullable(),
|
|
89
|
+
sourceRef: z.string().nullable(),
|
|
90
|
+
sourceCommitId: z.string().nullable(),
|
|
91
|
+
sourceCommitMessage: z.string().nullable(),
|
|
92
|
+
environmentId: z.string(),
|
|
93
|
+
authorUsername: z.string().nullable(),
|
|
94
|
+
authorAvatarUrl: z.string().nullable(),
|
|
95
|
+
startedAt: z.coerce.date().nullable(),
|
|
96
|
+
completedAt: z.coerce.date().nullable(),
|
|
97
|
+
isCurrent: z.boolean().optional(),
|
|
98
|
+
createdAt: z.coerce.date(),
|
|
99
|
+
updatedAt: z.coerce.date()
|
|
100
|
+
});
|
|
101
|
+
const allowedPlatformSchema = platformSchema;
|
|
102
|
+
const environmentDomainSchema = z.object({
|
|
103
|
+
domain: z.string(),
|
|
104
|
+
status: z.enum([
|
|
105
|
+
"ongoing",
|
|
106
|
+
"deployed",
|
|
107
|
+
"failed"
|
|
108
|
+
]),
|
|
109
|
+
createdAt: z.coerce.date(),
|
|
110
|
+
updatedAt: z.coerce.date()
|
|
111
|
+
});
|
|
112
|
+
const environmentSchema$1 = z.object({
|
|
113
|
+
id: z.string(),
|
|
114
|
+
name: z.string(),
|
|
115
|
+
sourceBranch: z.string().nullable(),
|
|
116
|
+
mcpServerUrl: z.string(),
|
|
117
|
+
activeDeployment: deploymentSummarySchema.optional(),
|
|
118
|
+
latestDeployment: deploymentSummarySchema.optional(),
|
|
119
|
+
openaiAppsChallenge: z.string().nullable().optional(),
|
|
120
|
+
isPlaygroundEnabled: z.boolean(),
|
|
121
|
+
isIpWhitelistEnabled: z.boolean(),
|
|
122
|
+
ipAllowlist: z.array(z.string()).nullable(),
|
|
123
|
+
allowedPlatforms: z.array(allowedPlatformSchema),
|
|
124
|
+
projectId: z.string(),
|
|
125
|
+
createdAt: z.coerce.date(),
|
|
126
|
+
updatedAt: z.coerce.date()
|
|
127
|
+
});
|
|
128
|
+
const environmentWithDomainsSchema = environmentSchema$1.extend({ domains: z.array(environmentDomainSchema) });
|
|
84
129
|
z.object({
|
|
85
130
|
id: z.string(),
|
|
86
131
|
createdAt: z.coerce.date(),
|
|
@@ -92,6 +137,86 @@ z.object({
|
|
|
92
137
|
content: z.string(),
|
|
93
138
|
source: z.enum(["model", "user"])
|
|
94
139
|
});
|
|
140
|
+
const intentCategoryColorSchema = z.enum([
|
|
141
|
+
"red",
|
|
142
|
+
"orange",
|
|
143
|
+
"yellow",
|
|
144
|
+
"green",
|
|
145
|
+
"blue",
|
|
146
|
+
"purple",
|
|
147
|
+
"pink",
|
|
148
|
+
"gray"
|
|
149
|
+
]);
|
|
150
|
+
intentCategoryColorSchema.options;
|
|
151
|
+
const intentCategorySchema = z.object({
|
|
152
|
+
id: z.string(),
|
|
153
|
+
createdAt: z.coerce.date(),
|
|
154
|
+
environmentId: z.string(),
|
|
155
|
+
name: z.string(),
|
|
156
|
+
color: intentCategoryColorSchema
|
|
157
|
+
});
|
|
158
|
+
z.object({
|
|
159
|
+
id: z.string(),
|
|
160
|
+
name: z.string(),
|
|
161
|
+
color: intentCategoryColorSchema,
|
|
162
|
+
intentCount: z.number().int().nonnegative()
|
|
163
|
+
});
|
|
164
|
+
z.object({
|
|
165
|
+
id: z.string(),
|
|
166
|
+
createdAt: z.coerce.date(),
|
|
167
|
+
environmentId: z.string(),
|
|
168
|
+
toolName: z.string(),
|
|
169
|
+
message: z.string(),
|
|
170
|
+
categories: z.array(intentCategorySchema)
|
|
171
|
+
});
|
|
172
|
+
const signalCategorySchema = z.object({
|
|
173
|
+
id: z.string(),
|
|
174
|
+
name: z.string(),
|
|
175
|
+
color: intentCategoryColorSchema
|
|
176
|
+
});
|
|
177
|
+
z.discriminatedUnion("kind", [
|
|
178
|
+
z.object({
|
|
179
|
+
kind: z.literal("new"),
|
|
180
|
+
category: signalCategorySchema,
|
|
181
|
+
currentCount: z.number().int().nonnegative(),
|
|
182
|
+
currentShare: z.number()
|
|
183
|
+
}),
|
|
184
|
+
z.object({
|
|
185
|
+
kind: z.literal("resurging"),
|
|
186
|
+
category: signalCategorySchema,
|
|
187
|
+
currentCount: z.number().int().nonnegative(),
|
|
188
|
+
daysQuiet: z.number(),
|
|
189
|
+
currentShare: z.number()
|
|
190
|
+
}),
|
|
191
|
+
z.object({
|
|
192
|
+
kind: z.literal("spike"),
|
|
193
|
+
category: signalCategorySchema,
|
|
194
|
+
currentCount: z.number().int().nonnegative(),
|
|
195
|
+
previousCount: z.number().int().nonnegative(),
|
|
196
|
+
currentShare: z.number(),
|
|
197
|
+
previousShare: z.number(),
|
|
198
|
+
changeRatio: z.number()
|
|
199
|
+
}),
|
|
200
|
+
z.object({
|
|
201
|
+
kind: z.literal("declining"),
|
|
202
|
+
category: signalCategorySchema,
|
|
203
|
+
currentCount: z.number().int().nonnegative(),
|
|
204
|
+
previousCount: z.number().int().nonnegative(),
|
|
205
|
+
currentShare: z.number(),
|
|
206
|
+
previousShare: z.number(),
|
|
207
|
+
changeRatio: z.number()
|
|
208
|
+
})
|
|
209
|
+
]);
|
|
210
|
+
z.discriminatedUnion("kind", [z.object({
|
|
211
|
+
kind: z.literal("existing"),
|
|
212
|
+
categoryId: z.string(),
|
|
213
|
+
categoryName: z.string(),
|
|
214
|
+
intentIds: z.array(z.string())
|
|
215
|
+
}), z.object({
|
|
216
|
+
kind: z.literal("new"),
|
|
217
|
+
categoryName: z.string(),
|
|
218
|
+
intentIds: z.array(z.string())
|
|
219
|
+
})]);
|
|
95
220
|
z.object({
|
|
96
221
|
id: z.string(),
|
|
97
222
|
teamId: z.string(),
|
|
@@ -117,6 +242,76 @@ const transportSchema = z.enum([
|
|
|
117
242
|
"sse",
|
|
118
243
|
"streamablehttp"
|
|
119
244
|
]);
|
|
245
|
+
z.object({
|
|
246
|
+
id: z.string(),
|
|
247
|
+
name: z.string(),
|
|
248
|
+
teamId: z.string(),
|
|
249
|
+
sourceRepository: z.string().nullable(),
|
|
250
|
+
createdAt: z.coerce.date().optional(),
|
|
251
|
+
runtime: runtimeSchema,
|
|
252
|
+
transport: transportSchema.nullable(),
|
|
253
|
+
rootDirectory: z.string().nullable(),
|
|
254
|
+
installCommand: z.string().nullable(),
|
|
255
|
+
buildCommand: z.string().nullable(),
|
|
256
|
+
buildOutputDir: z.string().nullable(),
|
|
257
|
+
startCommand: z.string().nullable(),
|
|
258
|
+
fixedOutboundIp: z.boolean(),
|
|
259
|
+
environments: z.array(environmentWithDomainsSchema),
|
|
260
|
+
productionEnvironment: environmentWithDomainsSchema.nullable()
|
|
261
|
+
});
|
|
262
|
+
z.object({
|
|
263
|
+
domain: z.string(),
|
|
264
|
+
createdAt: z.coerce.date(),
|
|
265
|
+
status: z.enum([
|
|
266
|
+
"ongoing",
|
|
267
|
+
"deployed",
|
|
268
|
+
"failed"
|
|
269
|
+
]),
|
|
270
|
+
environment: environmentSchema$1
|
|
271
|
+
});
|
|
272
|
+
const serverFieldsSchema$1 = z.object({
|
|
273
|
+
$schema: z.string(),
|
|
274
|
+
name: z.string(),
|
|
275
|
+
description: z.string(),
|
|
276
|
+
version: z.string().optional(),
|
|
277
|
+
title: z.string().optional(),
|
|
278
|
+
websiteUrl: z.string().optional(),
|
|
279
|
+
icons: z.array(z.object({
|
|
280
|
+
src: z.string(),
|
|
281
|
+
mimeType: z.string().optional(),
|
|
282
|
+
sizes: z.array(z.string()).optional()
|
|
283
|
+
})).optional(),
|
|
284
|
+
remotes: z.array(z.object({
|
|
285
|
+
type: z.string(),
|
|
286
|
+
url: z.string().optional(),
|
|
287
|
+
headers: z.array(z.object({
|
|
288
|
+
name: z.string(),
|
|
289
|
+
description: z.string(),
|
|
290
|
+
isRequired: z.boolean().optional(),
|
|
291
|
+
isSecret: z.boolean().optional()
|
|
292
|
+
})).optional()
|
|
293
|
+
})).optional()
|
|
294
|
+
}).catchall(z.unknown());
|
|
295
|
+
z.object({
|
|
296
|
+
serverFields: serverFieldsSchema$1,
|
|
297
|
+
source: z.enum(["registry", "defaults"])
|
|
298
|
+
});
|
|
299
|
+
/**
|
|
300
|
+
* Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
|
|
301
|
+
* rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
|
|
302
|
+
*
|
|
303
|
+
* NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
|
|
304
|
+
* `minLength`, and the description. Any other validators on the source field (`.regex()`,
|
|
305
|
+
* `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
|
|
306
|
+
* free-text length caps only. A field with `null` `maxLength` is returned unchanged.
|
|
307
|
+
*/
|
|
308
|
+
const clampStringField = (field) => {
|
|
309
|
+
const max = field.maxLength;
|
|
310
|
+
if (max === null) return field;
|
|
311
|
+
const clamped = z.string().overwrite((value) => value.slice(0, max)).max(max);
|
|
312
|
+
const withMin = field.minLength === null ? clamped : clamped.min(field.minLength);
|
|
313
|
+
return field.description ? withMin.describe(field.description) : withMin;
|
|
314
|
+
};
|
|
120
315
|
const toolDefinitionSchema = z.object({
|
|
121
316
|
name: z.string(),
|
|
122
317
|
title: z.string().optional().describe("Human-friendly name for the tool, used in the UI. If not provided, `name` will be used."),
|
|
@@ -134,6 +329,10 @@ const positiveTestCaseSchema = z.object({
|
|
|
134
329
|
toolTriggered: z.string().optional(),
|
|
135
330
|
expectedOutput: z.string().optional()
|
|
136
331
|
}).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
|
|
332
|
+
const screenshotEntrySchema = z.object({
|
|
333
|
+
prompt: z.string(),
|
|
334
|
+
url: z.url().or(z.literal(""))
|
|
335
|
+
}).describe("Each screenshot: the user prompt that produced it + the image URL.");
|
|
137
336
|
/** Accepts either a valid email or URL. */
|
|
138
337
|
const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
|
|
139
338
|
const chatgptCategorySchema = z.enum([
|
|
@@ -174,7 +373,7 @@ const chatgptTranslationSchema = z.object({
|
|
|
174
373
|
*/
|
|
175
374
|
const chatgptSubmissionFormDataSchema = z.object({
|
|
176
375
|
logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
|
|
177
|
-
logoDark: z.string().describe("
|
|
376
|
+
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."),
|
|
178
377
|
appName: z.string().describe("The name users will see in ChatGPT and in the Apps Directory."),
|
|
179
378
|
tagline: z.string().max(30).describe("Plain-language phrase focused on function and user value. 30 chars max."),
|
|
180
379
|
description: z.string().describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page."),
|
|
@@ -192,7 +391,7 @@ const chatgptSubmissionFormDataSchema = z.object({
|
|
|
192
391
|
toolJustifications: z.array(chatgptToolJustificationSchema).describe("Per-tool justification of `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotation values."),
|
|
193
392
|
testCases: z.array(positiveTestCaseSchema).describe("At least 5 positive test cases. Each: Scenario, User prompt, Tool triggered, Expected output. Coverage over all major use cases."),
|
|
194
393
|
negativeTestCases: z.array(negativeTestCaseSchema).describe("3 negative test cases — prompts where the app should NOT trigger but the model might think it's relevant."),
|
|
195
|
-
screenshots: z.array(
|
|
394
|
+
screenshots: z.array(screenshotEntrySchema).describe("In-app screenshots paired with the user prompt that produced them. Widget apps must show the widget UI; non-widget apps show the model response. Min 1, max 4 entries. First three are public. Images: 706px wide, 400–860px tall, PNG."),
|
|
196
395
|
translations: z.array(chatgptTranslationSchema).describe("Per-locale translation of tagline + description. English (US) is the default."),
|
|
197
396
|
allowedCountries: chatgptAllowedCountriesSchema.describe("'Allow all' or restrict to a specific list. See OpenAI's supported countries list."),
|
|
198
397
|
releaseNotes: z.string().describe("Publicly displayed on the app details page.")
|
|
@@ -211,7 +410,7 @@ chatgptSubmissionFormDataSchema.pick({
|
|
|
211
410
|
testCases: true,
|
|
212
411
|
negativeTestCases: true,
|
|
213
412
|
toolJustifications: true
|
|
214
|
-
});
|
|
413
|
+
}).extend({ tagline: clampStringField(chatgptSubmissionFormDataSchema.shape.tagline) });
|
|
215
414
|
const claudeCategorySchema = z.enum([
|
|
216
415
|
"Business & Productivity",
|
|
217
416
|
"Communication",
|
|
@@ -223,7 +422,7 @@ const claudeCategorySchema = z.enum([
|
|
|
223
422
|
"Media & Entertainment",
|
|
224
423
|
"Commerce & Shopping"
|
|
225
424
|
]);
|
|
226
|
-
z.enum([
|
|
425
|
+
const claudeAuthenticationSchema = z.enum([
|
|
227
426
|
"No auth needed",
|
|
228
427
|
"OAuth 2.0",
|
|
229
428
|
"Custom URL"
|
|
@@ -231,28 +430,34 @@ z.enum([
|
|
|
231
430
|
const claudeMcpUrlTypeSchema = z.enum(["Universal URL", "Custom MCP URLs"]);
|
|
232
431
|
z.enum(["Static OAuth Client", "Dynamic OAuth Client (DCR / CIMD)"]);
|
|
233
432
|
const claudeReadWriteCapabilitiesSchema = z.enum([
|
|
234
|
-
"Read
|
|
235
|
-
"Write
|
|
236
|
-
"Read +
|
|
433
|
+
"Read Only",
|
|
434
|
+
"Write Only",
|
|
435
|
+
"Read + Write"
|
|
237
436
|
]);
|
|
238
437
|
const claudeTransportSchema = z.enum(["Streamable HTTP", "SSE"]);
|
|
438
|
+
const claudeTestedSurfaceSchema = z.enum([
|
|
439
|
+
"Claude.ai (web)",
|
|
440
|
+
"Claude Desktop",
|
|
441
|
+
"Claude Code",
|
|
442
|
+
"Cowork"
|
|
443
|
+
]);
|
|
239
444
|
const claudeThirdPartySchema = z.enum([
|
|
240
|
-
"Web access
|
|
241
|
-
"Third-party AI model integration",
|
|
242
|
-
"Third-party data retrieval (
|
|
243
|
-
"Third-party data modification (
|
|
445
|
+
"Web access: Fetches information from the open web (e.g., web scraping, search engines, or browsing arbitrary URLs, not just connecting to a specific API)",
|
|
446
|
+
"Third-party AI model integration: Sends data to or receives data from a generative AI model other than Claude",
|
|
447
|
+
"Third-party data retrieval: Connects to external services that themselves retrieve data from other sources (e.g., workflow automation platforms or other services that aggregate or relay data from multiple third-party sources)",
|
|
448
|
+
"Third-party data modification: Can connect to external services that themselves create, update, or delete data in other sources (e.g., workflow automation platforms or other services that write to multiple third-party sources)",
|
|
244
449
|
"N/A"
|
|
245
450
|
]);
|
|
246
451
|
const claudeDataHandlingSchema = z.enum([
|
|
247
452
|
"Server only accesses data explicitly requested by user",
|
|
248
453
|
"No data is stored beyond session requirements",
|
|
249
|
-
"Data transmission is encrypted (HTTPS
|
|
454
|
+
"Data transmission is encrypted (HTTPS/TLS)",
|
|
250
455
|
"GDPR compliant (if applicable)"
|
|
251
456
|
]);
|
|
252
457
|
const claudeSponsoredContentSchema = z.enum([
|
|
253
458
|
"No, there is no sponsored content or advertisements",
|
|
254
459
|
"Yes, there are banner ads or other paid visual elements",
|
|
255
|
-
"Yes, returned content or ranking is impacted by sponsorship or ad placement"
|
|
460
|
+
"Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement"
|
|
256
461
|
]);
|
|
257
462
|
/**
|
|
258
463
|
* Field order mirrors the Claude (Anthropic) submission spreadsheet, grouped by section.
|
|
@@ -317,7 +522,7 @@ If 'Yes', you will also be required to provide screenshots of your UI (see Promo
|
|
|
317
522
|
Note: These are attestations — you are legally agreeing to these practices by submitting the form.`),
|
|
318
523
|
personalDataHealthAccess: z.boolean().describe(`Select 'Yes' ONLY if your connector gives users access to their own personal health information — such as medical records, lab results, diagnoses, prescriptions, wearable health metrics (heart rate, sleep data, etc.), or mental health data.
|
|
319
524
|
Select 'No' for the vast majority of business/productivity/dev tools. When in doubt, select 'No'. This field triggers additional compliance review if 'Yes'.`),
|
|
320
|
-
|
|
525
|
+
category: claudeCategorySchema.describe(`Select the category that best describes your connector. This determines where it appears in the directory's browse experience. Choose the most specific fit:
|
|
321
526
|
• Business & Productivity — project management, CRM, HR, office tools
|
|
322
527
|
• Communication — email, chat, messaging, notifications
|
|
323
528
|
• Data & Analytics — dashboards, reporting, databases, BI tools
|
|
@@ -327,12 +532,13 @@ Select 'No' for the vast majority of business/productivity/dev tools. When in do
|
|
|
327
532
|
• Health & Life Sciences — clinical, pharma, medical professional tools
|
|
328
533
|
• Media & Entertainment — content, publishing, streaming
|
|
329
534
|
• Commerce & Shopping — e-commerce, inventory, orders
|
|
330
|
-
|
|
535
|
+
Anthropic's submission form only accepts a single category.`),
|
|
331
536
|
sponsoredContentsOrAdvertisement: claudeSponsoredContentSchema.describe(`Be honest here — advertising is not permitted in the Connectors Directory per Anthropic's policy. Select the option that accurately describes your server:
|
|
332
537
|
• 'No, there is no sponsored content or advertisements' — the results your server returns are not influenced by paid placement or sponsorship. This is what almost all connectors should select.
|
|
333
538
|
• 'Yes, there are banner ads or other paid visual elements' — your UI includes visual ads. NOTE: this will likely lead to rejection, as Anthropic prohibits advertising in Claude.
|
|
334
539
|
• 'Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement' — paid results affect what you return. NOTE: this also likely leads to rejection.
|
|
335
540
|
If your server returns organic results from a platform that has ads in its own UI (but your API results are not affected by ads), select 'No'.`),
|
|
541
|
+
authentication: claudeAuthenticationSchema.describe("How users authenticate with the server. No auth / OAuth 2.0 / Custom URL (not supported)."),
|
|
336
542
|
transportSupport: z.array(claudeTransportSchema).describe(`Select all transport protocols your server supports:
|
|
337
543
|
• 'Streamable HTTP' — the modern, recommended transport. Anthropic strongly recommends implementing this. This is the future-proof option and should be your default.
|
|
338
544
|
• 'SSE (Server-Sent Events)' — the older transport. SSE may be deprecated by Anthropic later in 2025/2026. If you currently only support SSE, you should plan to migrate to Streamable HTTP.
|
|
@@ -372,19 +578,21 @@ Reviewers test every single tool you list here — don't list tools that don't w
|
|
|
372
578
|
• 'I've specified user-friendly titles for all tools' — every tool has a 'title' annotation (a human-readable label, different from the tool name).
|
|
373
579
|
• 'I've specified accurate tool annotations for all tools' — every tool has the correct annotation: readOnlyHint: true for read operations (search, get, list, fetch), OR destructiveHint: true for write operations (create, update, delete, send).
|
|
374
580
|
This is the #1 reason submissions get rejected (30% of all rejections). Do not check these boxes without actually having implemented the annotations. See MCP spec for how to add them.`),
|
|
375
|
-
|
|
581
|
+
testedSurfaces: z.array(claudeTestedSurfaceSchema).describe(`Confirm testing is complete and your server works as intended in these surfaces. Select every surface you've verified. Claude.ai (web) and Claude Desktop are the usual targets for remote MCP servers; Claude Code and Cowork compatibility is not required. Anthropic requires at least two surfaces.`),
|
|
582
|
+
logoLight: z.string().describe(`Your connector's logo for light backgrounds. Requirements:
|
|
376
583
|
• Format: SVG only
|
|
377
584
|
• Aspect ratio: square (1:1)
|
|
378
|
-
• Should work on
|
|
585
|
+
• Should work on a light background
|
|
379
586
|
• Provide via URL (Google Drive link is fine) or upload directly
|
|
380
587
|
Tip: use a simple, recognizable icon — not a full wordmark. The logo appears at small sizes in the directory grid.`),
|
|
381
|
-
|
|
588
|
+
logoDark: z.string().optional().describe(`Optional dark-mode variant of the connector logo. Same specs as the light variant (SVG, square 1:1) but designed to read on a dark background. Leave empty if the light logo already works on dark.`),
|
|
589
|
+
screenshots: z.array(screenshotEntrySchema).describe(`Screenshots or promotional images of your connector in action within Claude. Strongly recommended for all connectors, and required for MCP Apps (interactive UI). Guidelines:
|
|
382
590
|
• 3–5 images is ideal
|
|
383
591
|
• Minimum 1000px width, PNG format preferred
|
|
592
|
+
• Each screenshot is paired with the user prompt that produced it
|
|
384
593
|
• Crop to just the relevant part of the Claude interface (the tool response area)
|
|
385
594
|
• Show your connector doing something impressive and useful — real data, real results
|
|
386
595
|
• If you're an MCP App, include screenshots of your interactive UI elements
|
|
387
|
-
• Videos are also welcome
|
|
388
596
|
These images appear in your directory listing and are a key factor in driving user installs.`)
|
|
389
597
|
});
|
|
390
598
|
claudeSubmissionFormDataSchema.pick({
|
|
@@ -397,14 +605,20 @@ claudeSubmissionFormDataSchema.pick({
|
|
|
397
605
|
isMcpApp: true,
|
|
398
606
|
transportSupport: true,
|
|
399
607
|
primaryContactEmail: true,
|
|
400
|
-
primaryContactName: true
|
|
608
|
+
primaryContactName: true,
|
|
609
|
+
authentication: true,
|
|
610
|
+
personalDataHealthAccess: true,
|
|
611
|
+
testedSurfaces: true
|
|
612
|
+
}).extend({
|
|
613
|
+
connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
|
|
614
|
+
testingCredentials: claudeSubmissionFormDataSchema.shape.testingCredentials.optional()
|
|
401
615
|
});
|
|
402
616
|
claudeSubmissionFormDataSchema.pick({
|
|
403
617
|
tagline: true,
|
|
404
618
|
description: true,
|
|
405
|
-
|
|
619
|
+
category: true,
|
|
406
620
|
testCases: true
|
|
407
|
-
});
|
|
621
|
+
}).extend({ tagline: clampStringField(claudeSubmissionFormDataSchema.shape.tagline) });
|
|
408
622
|
const submissionMetaFieldsSchema = z.object({
|
|
409
623
|
id: z.string(),
|
|
410
624
|
environmentId: z.string(),
|
|
@@ -427,6 +641,22 @@ const subscriptionPlanSchema = z.enum([
|
|
|
427
641
|
"enterprise"
|
|
428
642
|
]);
|
|
429
643
|
z.object({ plan: subscriptionPlanSchema.nullable() });
|
|
644
|
+
const customerCreditsSchema = z.object({
|
|
645
|
+
balanceInCents: z.number(),
|
|
646
|
+
expiresAt: z.number().nullable(),
|
|
647
|
+
currency: z.string()
|
|
648
|
+
});
|
|
649
|
+
const customerUsageSchema = z.object({
|
|
650
|
+
amountInCents: z.number(),
|
|
651
|
+
currency: z.string(),
|
|
652
|
+
periodEnd: z.number()
|
|
653
|
+
});
|
|
654
|
+
const partnerDiscountSchema = z.object({ endsAt: z.number() });
|
|
655
|
+
z.object({
|
|
656
|
+
customerCredits: customerCreditsSchema.nullable(),
|
|
657
|
+
customerUsage: customerUsageSchema.nullable(),
|
|
658
|
+
partnerDiscount: partnerDiscountSchema.nullable()
|
|
659
|
+
});
|
|
430
660
|
//#endregion
|
|
431
661
|
//#region src/schemas.ts
|
|
432
662
|
const RESERVED_KEYS = [
|
|
@@ -583,7 +813,7 @@ const getEnvironmentContractV1 = oc.route({
|
|
|
583
813
|
name: z.string(),
|
|
584
814
|
sourceBranch: z.string().nullable(),
|
|
585
815
|
mcpServerUrl: z.string(),
|
|
586
|
-
domains: z.array(z.
|
|
816
|
+
domains: z.array(z.hostname()),
|
|
587
817
|
createdAt: z.coerce.date(),
|
|
588
818
|
projectId: z.string()
|
|
589
819
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpic-ai/api",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.ge8867f0",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -14,15 +14,6 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
-
"nx": {
|
|
18
|
-
"targets": {
|
|
19
|
-
"build": {
|
|
20
|
-
"dependsOn": [
|
|
21
|
-
"^build"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
17
|
"author": "Alpic",
|
|
27
18
|
"license": "ISC",
|
|
28
19
|
"dependencies": {
|