@alpic-ai/api 0.0.0-dev.gf883282 → 0.0.0-dev.gf910851
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 +41 -9
- package/package.json +17 -1
package/dist/index.mjs
CHANGED
|
@@ -289,7 +289,7 @@ const publicEnvironmentSchema = z.object({
|
|
|
289
289
|
* Everything that follows is handled outside of the MCP server scope.
|
|
290
290
|
*/
|
|
291
291
|
const externalResourceMetadataEnvironmentSchema = z.object({
|
|
292
|
-
isPublic: z.
|
|
292
|
+
isPublic: z.boolean(),
|
|
293
293
|
oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
|
|
294
294
|
scope: z.string().optional()
|
|
295
295
|
});
|
|
@@ -301,7 +301,7 @@ const externalResourceMetadataEnvironmentSchema = z.object({
|
|
|
301
301
|
* Everything that follows is handled outside of the MCP server scope.
|
|
302
302
|
*/
|
|
303
303
|
const externalAuthorizationServerEnvironmentSchema = z.object({
|
|
304
|
-
isPublic: z.
|
|
304
|
+
isPublic: z.boolean(),
|
|
305
305
|
oAuthMetadata: z.object({
|
|
306
306
|
externalAuthorizationServerUrl: z.url(),
|
|
307
307
|
resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
|
|
@@ -315,7 +315,7 @@ const externalAuthorizationServerEnvironmentSchema = z.object({
|
|
|
315
315
|
* The server itself exposes the /.well-known/oauth-authorization-server endpoint.
|
|
316
316
|
*/
|
|
317
317
|
const standaloneEnvironmentSchema = z.object({
|
|
318
|
-
isPublic: z.
|
|
318
|
+
isPublic: z.boolean(),
|
|
319
319
|
oAuthMetadata: z.object({
|
|
320
320
|
authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
|
|
321
321
|
resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
|
|
@@ -330,7 +330,7 @@ const standaloneEnvironmentSchema = z.object({
|
|
|
330
330
|
* are advertised. Clients must obtain credentials out-of-band.
|
|
331
331
|
*/
|
|
332
332
|
const protectedWithoutDiscoveryEnvironmentSchema = z.object({
|
|
333
|
-
isPublic: z.
|
|
333
|
+
isPublic: z.boolean(),
|
|
334
334
|
oAuthMetadata: z.strictObject({}),
|
|
335
335
|
scope: z.string().optional()
|
|
336
336
|
});
|
|
@@ -522,6 +522,10 @@ const domainFailureReasonSchema = z.enum([
|
|
|
522
522
|
"invalid_domain",
|
|
523
523
|
"other"
|
|
524
524
|
]);
|
|
525
|
+
const projectDomainMappingSchema = z.object({
|
|
526
|
+
pathPrefix: z.string(),
|
|
527
|
+
environment: environmentSchema$1
|
|
528
|
+
});
|
|
525
529
|
z.object({
|
|
526
530
|
name: z.string(),
|
|
527
531
|
createdAt: z.coerce.date(),
|
|
@@ -531,7 +535,8 @@ z.object({
|
|
|
531
535
|
"failed"
|
|
532
536
|
]),
|
|
533
537
|
failureReason: domainFailureReasonSchema.nullable(),
|
|
534
|
-
environment: environmentSchema$1
|
|
538
|
+
environment: environmentSchema$1,
|
|
539
|
+
mappings: z.array(projectDomainMappingSchema)
|
|
535
540
|
});
|
|
536
541
|
const serverFieldsSchema$1 = z.object({
|
|
537
542
|
$schema: z.string(),
|
|
@@ -595,8 +600,9 @@ const positiveTestCaseSchema = z.object({
|
|
|
595
600
|
}).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
|
|
596
601
|
const screenshotEntrySchema = z.object({
|
|
597
602
|
prompt: z.string(),
|
|
598
|
-
url: z.url()
|
|
603
|
+
url: z.url()
|
|
599
604
|
}).describe("Each screenshot: the user prompt that produced it + the image URL.");
|
|
605
|
+
const screenshotDraftEntrySchema = screenshotEntrySchema.extend({ url: z.string() });
|
|
600
606
|
/** Accepts either a valid email or URL. */
|
|
601
607
|
const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
|
|
602
608
|
/** A URL field whose error spells out that the scheme is required. */
|
|
@@ -955,6 +961,17 @@ const chatgptSubmissionFormDataSchema = z.object({
|
|
|
955
961
|
allowedCountries: chatgptAllowedCountriesSchema.describe("Availability: all supported countries, or an allow-list / block-list of specific ones (ISO alpha-2)."),
|
|
956
962
|
releaseNotes: z.string().describe("Publicly displayed on the app details page.")
|
|
957
963
|
});
|
|
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
|
+
});
|
|
958
975
|
chatgptSubmissionFormDataSchema.pick({
|
|
959
976
|
appName: true,
|
|
960
977
|
developerName: true,
|
|
@@ -1081,6 +1098,21 @@ fully populated account.`),
|
|
|
1081
1098
|
submission. Each is an attestation you are legally agreeing to by submitting.`),
|
|
1082
1099
|
additionalNotes: z.string().optional().describe("Anything else the review team should know about your connector. Optional.")
|
|
1083
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
|
+
});
|
|
1084
1116
|
claudeSubmissionFormDataSchema.pick({
|
|
1085
1117
|
serverUrl: true,
|
|
1086
1118
|
name: true,
|
|
@@ -1121,14 +1153,14 @@ const submissionMetaFieldsSchema = z.object({
|
|
|
1121
1153
|
});
|
|
1122
1154
|
const claudeSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
|
|
1123
1155
|
platform: z.literal("claudeai"),
|
|
1124
|
-
formData:
|
|
1156
|
+
formData: claudeSubmissionDraftSchema
|
|
1125
1157
|
});
|
|
1126
1158
|
const chatgptSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
|
|
1127
1159
|
platform: z.literal("chatgpt"),
|
|
1128
|
-
formData:
|
|
1160
|
+
formData: chatgptSubmissionDraftSchema
|
|
1129
1161
|
});
|
|
1130
1162
|
z.discriminatedUnion("platform", [claudeSubmissionSchemaInternal, chatgptSubmissionSchemaInternal]);
|
|
1131
|
-
z.union([
|
|
1163
|
+
z.union([claudeSubmissionDraftSchema, chatgptSubmissionDraftSchema]);
|
|
1132
1164
|
const subscriptionPlanSchema = z.enum([
|
|
1133
1165
|
"pro",
|
|
1134
1166
|
"business",
|
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.gf910851",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -14,6 +14,22 @@
|
|
|
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": {
|