@alpic-ai/api 0.0.0-staging.ffd67d5 → 0.0.0-staging.g03f5f10
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 +227 -233
- package/dist/index.mjs +1314 -87
- package/package.json +9 -6
package/dist/index.mjs
CHANGED
|
@@ -1,72 +1,185 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as z$1 from "zod/v4";
|
|
1
3
|
import { oc } from "@orpc/contract";
|
|
2
4
|
import ms from "ms";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"ALPIC_CUSTOM_DOMAINS"
|
|
39
|
-
];
|
|
40
|
-
const environmentVariableSchema = z.object({
|
|
41
|
-
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"),
|
|
42
|
-
value: z.string().min(1, "Value is required"),
|
|
43
|
-
isSecret: z.boolean().default(false)
|
|
5
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_@cfworker+json-schema@4.1.1_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
6
|
+
/**
|
|
7
|
+
* Reusable URL validation that disallows javascript: scheme
|
|
8
|
+
*/
|
|
9
|
+
const SafeUrlSchema = z$1.url().superRefine((val, ctx) => {
|
|
10
|
+
if (!URL.canParse(val)) {
|
|
11
|
+
ctx.addIssue({
|
|
12
|
+
code: z$1.ZodIssueCode.custom,
|
|
13
|
+
message: "URL must be parseable",
|
|
14
|
+
fatal: true
|
|
15
|
+
});
|
|
16
|
+
return z$1.NEVER;
|
|
17
|
+
}
|
|
18
|
+
}).refine((url) => {
|
|
19
|
+
const u = new URL(url);
|
|
20
|
+
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
21
|
+
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
22
|
+
/**
|
|
23
|
+
* RFC 9728 OAuth Protected Resource Metadata
|
|
24
|
+
*/
|
|
25
|
+
const OAuthProtectedResourceMetadataSchema = z$1.looseObject({
|
|
26
|
+
resource: z$1.string().url(),
|
|
27
|
+
authorization_servers: z$1.array(SafeUrlSchema).optional(),
|
|
28
|
+
jwks_uri: z$1.string().url().optional(),
|
|
29
|
+
scopes_supported: z$1.array(z$1.string()).optional(),
|
|
30
|
+
bearer_methods_supported: z$1.array(z$1.string()).optional(),
|
|
31
|
+
resource_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
32
|
+
resource_name: z$1.string().optional(),
|
|
33
|
+
resource_documentation: z$1.string().optional(),
|
|
34
|
+
resource_policy_uri: z$1.string().url().optional(),
|
|
35
|
+
resource_tos_uri: z$1.string().url().optional(),
|
|
36
|
+
tls_client_certificate_bound_access_tokens: z$1.boolean().optional(),
|
|
37
|
+
authorization_details_types_supported: z$1.array(z$1.string()).optional(),
|
|
38
|
+
dpop_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
39
|
+
dpop_bound_access_tokens_required: z$1.boolean().optional()
|
|
44
40
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
/**
|
|
42
|
+
* RFC 8414 OAuth 2.0 Authorization Server Metadata
|
|
43
|
+
*/
|
|
44
|
+
const OAuthMetadataSchema = z$1.looseObject({
|
|
45
|
+
issuer: z$1.string(),
|
|
46
|
+
authorization_endpoint: SafeUrlSchema,
|
|
47
|
+
token_endpoint: SafeUrlSchema,
|
|
48
|
+
registration_endpoint: SafeUrlSchema.optional(),
|
|
49
|
+
scopes_supported: z$1.array(z$1.string()).optional(),
|
|
50
|
+
response_types_supported: z$1.array(z$1.string()),
|
|
51
|
+
response_modes_supported: z$1.array(z$1.string()).optional(),
|
|
52
|
+
grant_types_supported: z$1.array(z$1.string()).optional(),
|
|
53
|
+
token_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
|
|
54
|
+
token_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
55
|
+
service_documentation: SafeUrlSchema.optional(),
|
|
56
|
+
revocation_endpoint: SafeUrlSchema.optional(),
|
|
57
|
+
revocation_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
|
|
58
|
+
revocation_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
59
|
+
introspection_endpoint: z$1.string().optional(),
|
|
60
|
+
introspection_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
|
|
61
|
+
introspection_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
62
|
+
code_challenge_methods_supported: z$1.array(z$1.string()).optional(),
|
|
63
|
+
client_id_metadata_document_supported: z$1.boolean().optional()
|
|
51
64
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
/**
|
|
66
|
+
* OpenID Connect Discovery 1.0 Provider Metadata
|
|
67
|
+
* see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
|
|
68
|
+
*/
|
|
69
|
+
const OpenIdProviderMetadataSchema = z$1.looseObject({
|
|
70
|
+
issuer: z$1.string(),
|
|
71
|
+
authorization_endpoint: SafeUrlSchema,
|
|
72
|
+
token_endpoint: SafeUrlSchema,
|
|
73
|
+
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
74
|
+
jwks_uri: SafeUrlSchema,
|
|
75
|
+
registration_endpoint: SafeUrlSchema.optional(),
|
|
76
|
+
scopes_supported: z$1.array(z$1.string()).optional(),
|
|
77
|
+
response_types_supported: z$1.array(z$1.string()),
|
|
78
|
+
response_modes_supported: z$1.array(z$1.string()).optional(),
|
|
79
|
+
grant_types_supported: z$1.array(z$1.string()).optional(),
|
|
80
|
+
acr_values_supported: z$1.array(z$1.string()).optional(),
|
|
81
|
+
subject_types_supported: z$1.array(z$1.string()),
|
|
82
|
+
id_token_signing_alg_values_supported: z$1.array(z$1.string()),
|
|
83
|
+
id_token_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
84
|
+
id_token_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
|
|
85
|
+
userinfo_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
86
|
+
userinfo_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
87
|
+
userinfo_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
|
|
88
|
+
request_object_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
89
|
+
request_object_encryption_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
90
|
+
request_object_encryption_enc_values_supported: z$1.array(z$1.string()).optional(),
|
|
91
|
+
token_endpoint_auth_methods_supported: z$1.array(z$1.string()).optional(),
|
|
92
|
+
token_endpoint_auth_signing_alg_values_supported: z$1.array(z$1.string()).optional(),
|
|
93
|
+
display_values_supported: z$1.array(z$1.string()).optional(),
|
|
94
|
+
claim_types_supported: z$1.array(z$1.string()).optional(),
|
|
95
|
+
claims_supported: z$1.array(z$1.string()).optional(),
|
|
96
|
+
service_documentation: z$1.string().optional(),
|
|
97
|
+
claims_locales_supported: z$1.array(z$1.string()).optional(),
|
|
98
|
+
ui_locales_supported: z$1.array(z$1.string()).optional(),
|
|
99
|
+
claims_parameter_supported: z$1.boolean().optional(),
|
|
100
|
+
request_parameter_supported: z$1.boolean().optional(),
|
|
101
|
+
request_uri_parameter_supported: z$1.boolean().optional(),
|
|
102
|
+
require_request_uri_registration: z$1.boolean().optional(),
|
|
103
|
+
op_policy_uri: SafeUrlSchema.optional(),
|
|
104
|
+
op_tos_uri: SafeUrlSchema.optional(),
|
|
105
|
+
client_id_metadata_document_supported: z$1.boolean().optional()
|
|
106
|
+
});
|
|
107
|
+
/**
|
|
108
|
+
* OpenID Connect Discovery metadata that may include OAuth 2.0 fields
|
|
109
|
+
* This schema represents the real-world scenario where OIDC providers
|
|
110
|
+
* return a mix of OpenID Connect and OAuth 2.0 metadata fields
|
|
111
|
+
*/
|
|
112
|
+
const OpenIdProviderDiscoveryMetadataSchema = z$1.object({
|
|
113
|
+
...OpenIdProviderMetadataSchema.shape,
|
|
114
|
+
...OAuthMetadataSchema.pick({ code_challenge_methods_supported: true }).shape
|
|
115
|
+
});
|
|
116
|
+
z$1.object({
|
|
117
|
+
access_token: z$1.string(),
|
|
118
|
+
id_token: z$1.string().optional(),
|
|
119
|
+
token_type: z$1.string(),
|
|
120
|
+
expires_in: z$1.coerce.number().optional(),
|
|
121
|
+
scope: z$1.string().optional(),
|
|
122
|
+
refresh_token: z$1.string().optional()
|
|
123
|
+
}).strip();
|
|
124
|
+
z$1.object({
|
|
125
|
+
error: z$1.string(),
|
|
126
|
+
error_description: z$1.string().optional(),
|
|
127
|
+
error_uri: z$1.string().optional()
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri
|
|
131
|
+
*/
|
|
132
|
+
const OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z$1.literal("").transform(() => void 0));
|
|
133
|
+
/**
|
|
134
|
+
* RFC 7591 OAuth 2.0 Dynamic Client Registration metadata
|
|
135
|
+
*/
|
|
136
|
+
const OAuthClientMetadataSchema = z$1.object({
|
|
137
|
+
redirect_uris: z$1.array(SafeUrlSchema),
|
|
138
|
+
token_endpoint_auth_method: z$1.string().optional(),
|
|
139
|
+
grant_types: z$1.array(z$1.string()).optional(),
|
|
140
|
+
response_types: z$1.array(z$1.string()).optional(),
|
|
141
|
+
client_name: z$1.string().optional(),
|
|
142
|
+
client_uri: SafeUrlSchema.optional(),
|
|
143
|
+
logo_uri: OptionalSafeUrlSchema,
|
|
144
|
+
scope: z$1.string().optional(),
|
|
145
|
+
contacts: z$1.array(z$1.string()).optional(),
|
|
146
|
+
tos_uri: OptionalSafeUrlSchema,
|
|
147
|
+
policy_uri: z$1.string().optional(),
|
|
148
|
+
jwks_uri: SafeUrlSchema.optional(),
|
|
149
|
+
jwks: z$1.any().optional(),
|
|
150
|
+
software_id: z$1.string().optional(),
|
|
151
|
+
software_version: z$1.string().optional(),
|
|
152
|
+
software_statement: z$1.string().optional()
|
|
153
|
+
}).strip();
|
|
154
|
+
/**
|
|
155
|
+
* RFC 7591 OAuth 2.0 Dynamic Client Registration client information
|
|
156
|
+
*/
|
|
157
|
+
const OAuthClientInformationSchema = z$1.object({
|
|
158
|
+
client_id: z$1.string(),
|
|
159
|
+
client_secret: z$1.string().optional(),
|
|
160
|
+
client_id_issued_at: z$1.number().optional(),
|
|
161
|
+
client_secret_expires_at: z$1.number().optional()
|
|
162
|
+
}).strip();
|
|
163
|
+
OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
164
|
+
z$1.object({
|
|
165
|
+
error: z$1.string(),
|
|
166
|
+
error_description: z$1.string().optional()
|
|
167
|
+
}).strip();
|
|
168
|
+
z$1.object({
|
|
169
|
+
token: z$1.string(),
|
|
170
|
+
token_type_hint: z$1.string().optional()
|
|
171
|
+
}).strip();
|
|
172
|
+
const platformSchema = z.enum(["chatgpt", "claudeai"]);
|
|
173
|
+
const PLATFORM_LABELS = {
|
|
174
|
+
chatgpt: "ChatGPT",
|
|
175
|
+
claudeai: "Claude.ai"
|
|
176
|
+
};
|
|
177
|
+
const auditStatusSchema = z.enum([
|
|
64
178
|
"pending",
|
|
65
179
|
"partial",
|
|
66
180
|
"completed",
|
|
67
181
|
"failed"
|
|
68
182
|
]);
|
|
69
|
-
const platformSchema = z.enum(["chatgpt", "claudeai"]);
|
|
70
183
|
const checkSeveritySchema = z.enum([
|
|
71
184
|
"error",
|
|
72
185
|
"warning",
|
|
@@ -86,6 +199,8 @@ const checkDetailSchema = z.object({
|
|
|
86
199
|
});
|
|
87
200
|
const checkResultSchema = z.object({
|
|
88
201
|
checkId: z.string(),
|
|
202
|
+
checkName: z.string(),
|
|
203
|
+
description: z.string(),
|
|
89
204
|
status: z.enum([
|
|
90
205
|
"pass",
|
|
91
206
|
"fail",
|
|
@@ -117,12 +232,1032 @@ const auditReportSchema = z.object({
|
|
|
117
232
|
widgetScreenshotKeys: z.object({
|
|
118
233
|
chatgpt: z.string().optional(),
|
|
119
234
|
claudeai: z.string().optional()
|
|
120
|
-
})
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
235
|
+
})
|
|
236
|
+
});
|
|
237
|
+
const widgetScreenshotSchema = z.object({ url: z.string() });
|
|
238
|
+
const auditReportWithScreenshotsSchema = auditReportSchema.extend({ widgetScreenshots: z.object({
|
|
239
|
+
chatgpt: widgetScreenshotSchema.optional(),
|
|
240
|
+
claudeai: widgetScreenshotSchema.optional()
|
|
241
|
+
}) });
|
|
242
|
+
z.object({
|
|
243
|
+
id: z.string(),
|
|
244
|
+
environmentId: z.string(),
|
|
245
|
+
clientId: z.string(),
|
|
246
|
+
clientSecret: z.string(),
|
|
247
|
+
clientScopes: z.array(z.string())
|
|
248
|
+
});
|
|
249
|
+
const deploymentStatusSchema$1 = z.enum([
|
|
250
|
+
"ongoing",
|
|
251
|
+
"deployed",
|
|
252
|
+
"failed",
|
|
253
|
+
"canceled"
|
|
254
|
+
]);
|
|
255
|
+
z.object({
|
|
256
|
+
timestamp: z.coerce.date().optional(),
|
|
257
|
+
content: z.string().optional()
|
|
258
|
+
});
|
|
259
|
+
const deploymentSummarySchema = z.object({
|
|
260
|
+
id: z.string(),
|
|
261
|
+
status: deploymentStatusSchema$1,
|
|
262
|
+
sourceBucket: z.string().nullable(),
|
|
263
|
+
sourceObjectKey: z.string().nullable(),
|
|
264
|
+
sourceRef: z.string().nullable(),
|
|
265
|
+
sourceCommitId: z.string().nullable(),
|
|
266
|
+
sourceCommitMessage: z.string().nullable(),
|
|
267
|
+
environmentId: z.string(),
|
|
268
|
+
authorUsername: z.string().nullable(),
|
|
269
|
+
authorAvatarUrl: z.string().nullable(),
|
|
270
|
+
startedAt: z.coerce.date().nullable(),
|
|
271
|
+
completedAt: z.coerce.date().nullable(),
|
|
272
|
+
isCurrent: z.boolean().optional(),
|
|
273
|
+
createdAt: z.coerce.date(),
|
|
274
|
+
updatedAt: z.coerce.date()
|
|
275
|
+
});
|
|
276
|
+
/**
|
|
277
|
+
* Public environment
|
|
278
|
+
*
|
|
279
|
+
* No OAuth metadata exposed.
|
|
280
|
+
*/
|
|
281
|
+
const publicEnvironmentSchema = z.object({
|
|
282
|
+
isPublic: z.literal(true),
|
|
283
|
+
oAuthMetadata: z.undefined().optional()
|
|
284
|
+
});
|
|
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({
|
|
292
|
+
isPublic: z.literal(false),
|
|
293
|
+
oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
|
|
294
|
+
scope: z.string().optional()
|
|
295
|
+
});
|
|
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({
|
|
304
|
+
isPublic: z.literal(false),
|
|
305
|
+
oAuthMetadata: z.object({
|
|
306
|
+
externalAuthorizationServerUrl: z.url(),
|
|
307
|
+
resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
|
|
308
|
+
}),
|
|
309
|
+
scope: z.string().optional()
|
|
310
|
+
});
|
|
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({
|
|
318
|
+
isPublic: z.literal(false),
|
|
319
|
+
oAuthMetadata: z.object({
|
|
320
|
+
authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
|
|
321
|
+
resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
|
|
322
|
+
}),
|
|
323
|
+
scope: z.string().optional()
|
|
324
|
+
});
|
|
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({
|
|
333
|
+
isPublic: z.literal(false),
|
|
334
|
+
oAuthMetadata: z.strictObject({}),
|
|
335
|
+
scope: z.string().optional()
|
|
336
|
+
});
|
|
337
|
+
z.union([
|
|
338
|
+
publicEnvironmentSchema,
|
|
339
|
+
externalResourceMetadataEnvironmentSchema,
|
|
340
|
+
externalAuthorizationServerEnvironmentSchema,
|
|
341
|
+
standaloneEnvironmentSchema,
|
|
342
|
+
protectedWithoutDiscoveryEnvironmentSchema
|
|
343
|
+
]);
|
|
344
|
+
const allowedPlatformSchema = platformSchema;
|
|
345
|
+
const environmentDomainSchema = z.object({
|
|
346
|
+
domain: z.string(),
|
|
347
|
+
status: z.enum([
|
|
348
|
+
"ongoing",
|
|
349
|
+
"deployed",
|
|
350
|
+
"failed"
|
|
351
|
+
]),
|
|
352
|
+
createdAt: z.coerce.date(),
|
|
353
|
+
updatedAt: z.coerce.date()
|
|
354
|
+
});
|
|
355
|
+
const environmentSchema$1 = z.object({
|
|
356
|
+
id: z.string(),
|
|
357
|
+
name: z.string(),
|
|
358
|
+
sourceBranch: z.string().nullable(),
|
|
359
|
+
mcpServerUrl: z.string(),
|
|
360
|
+
activeDeployment: deploymentSummarySchema.optional(),
|
|
361
|
+
latestDeployment: deploymentSummarySchema.optional(),
|
|
362
|
+
openaiAppsChallenge: z.string().nullable().optional(),
|
|
363
|
+
isPlaygroundEnabled: z.boolean(),
|
|
364
|
+
isIpWhitelistEnabled: z.boolean(),
|
|
365
|
+
ipAllowlist: z.array(z.string()).nullable(),
|
|
366
|
+
allowedPlatforms: z.array(allowedPlatformSchema),
|
|
367
|
+
projectId: z.string(),
|
|
368
|
+
createdAt: z.coerce.date(),
|
|
369
|
+
updatedAt: z.coerce.date()
|
|
370
|
+
});
|
|
371
|
+
const environmentWithDomainsSchema = environmentSchema$1.extend({ domains: z.array(environmentDomainSchema) });
|
|
372
|
+
z.object({
|
|
373
|
+
id: z.string(),
|
|
374
|
+
createdAt: z.coerce.date(),
|
|
375
|
+
environmentId: z.string(),
|
|
376
|
+
content: z.string(),
|
|
377
|
+
source: z.enum(["model", "user"])
|
|
378
|
+
});
|
|
379
|
+
z.object({
|
|
380
|
+
content: z.string(),
|
|
381
|
+
source: z.enum(["model", "user"])
|
|
382
|
+
});
|
|
383
|
+
const intentCategoryColorSchema = z.enum([
|
|
384
|
+
"red",
|
|
385
|
+
"orange",
|
|
386
|
+
"yellow",
|
|
387
|
+
"green",
|
|
388
|
+
"blue",
|
|
389
|
+
"purple",
|
|
390
|
+
"pink",
|
|
391
|
+
"gray"
|
|
392
|
+
]);
|
|
393
|
+
intentCategoryColorSchema.options;
|
|
394
|
+
const intentCategorySchema = z.object({
|
|
395
|
+
id: z.string(),
|
|
396
|
+
createdAt: z.coerce.date(),
|
|
397
|
+
environmentId: z.string(),
|
|
398
|
+
name: z.string(),
|
|
399
|
+
color: intentCategoryColorSchema
|
|
400
|
+
});
|
|
401
|
+
z.object({
|
|
402
|
+
id: z.string(),
|
|
403
|
+
name: z.string(),
|
|
404
|
+
color: intentCategoryColorSchema,
|
|
405
|
+
intentCount: z.number().int().nonnegative()
|
|
406
|
+
});
|
|
407
|
+
z.object({
|
|
408
|
+
id: z.string(),
|
|
409
|
+
createdAt: z.coerce.date(),
|
|
410
|
+
environmentId: z.string(),
|
|
411
|
+
toolName: z.string(),
|
|
412
|
+
message: z.string(),
|
|
413
|
+
categories: z.array(intentCategorySchema)
|
|
414
|
+
});
|
|
415
|
+
const signalCategorySchema = z.object({
|
|
416
|
+
id: z.string(),
|
|
417
|
+
name: z.string(),
|
|
418
|
+
color: intentCategoryColorSchema
|
|
419
|
+
});
|
|
420
|
+
z.discriminatedUnion("kind", [
|
|
421
|
+
z.object({
|
|
422
|
+
kind: z.literal("new"),
|
|
423
|
+
category: signalCategorySchema,
|
|
424
|
+
currentCount: z.number().int().nonnegative(),
|
|
425
|
+
currentShare: z.number()
|
|
426
|
+
}),
|
|
427
|
+
z.object({
|
|
428
|
+
kind: z.literal("resurging"),
|
|
429
|
+
category: signalCategorySchema,
|
|
430
|
+
currentCount: z.number().int().nonnegative(),
|
|
431
|
+
daysQuiet: z.number(),
|
|
432
|
+
currentShare: z.number()
|
|
433
|
+
}),
|
|
434
|
+
z.object({
|
|
435
|
+
kind: z.literal("spike"),
|
|
436
|
+
category: signalCategorySchema,
|
|
437
|
+
currentCount: z.number().int().nonnegative(),
|
|
438
|
+
previousCount: z.number().int().nonnegative(),
|
|
439
|
+
currentShare: z.number(),
|
|
440
|
+
previousShare: z.number(),
|
|
441
|
+
changeRatio: z.number()
|
|
442
|
+
}),
|
|
443
|
+
z.object({
|
|
444
|
+
kind: z.literal("declining"),
|
|
445
|
+
category: signalCategorySchema,
|
|
446
|
+
currentCount: z.number().int().nonnegative(),
|
|
447
|
+
previousCount: z.number().int().nonnegative(),
|
|
448
|
+
currentShare: z.number(),
|
|
449
|
+
previousShare: z.number(),
|
|
450
|
+
changeRatio: z.number()
|
|
451
|
+
})
|
|
452
|
+
]);
|
|
453
|
+
z.discriminatedUnion("kind", [z.object({
|
|
454
|
+
kind: z.literal("existing"),
|
|
455
|
+
categoryId: z.string(),
|
|
456
|
+
categoryName: z.string(),
|
|
457
|
+
intentIds: z.array(z.string())
|
|
458
|
+
}), z.object({
|
|
459
|
+
kind: z.literal("new"),
|
|
460
|
+
categoryName: z.string(),
|
|
461
|
+
intentIds: z.array(z.string())
|
|
462
|
+
})]);
|
|
463
|
+
z.object({
|
|
464
|
+
id: z.string(),
|
|
465
|
+
teamId: z.string(),
|
|
466
|
+
email: z.string(),
|
|
467
|
+
expiresAt: z.coerce.date(),
|
|
468
|
+
createdAt: z.coerce.date(),
|
|
469
|
+
updatedAt: z.coerce.date()
|
|
470
|
+
});
|
|
471
|
+
z.enum([
|
|
472
|
+
"INFO",
|
|
473
|
+
"WARNING",
|
|
474
|
+
"DEBUG",
|
|
475
|
+
"ERROR"
|
|
476
|
+
]);
|
|
477
|
+
const runtimeSchema = z.enum([
|
|
478
|
+
"python3.13",
|
|
479
|
+
"python3.14",
|
|
480
|
+
"node22",
|
|
481
|
+
"node24"
|
|
482
|
+
]);
|
|
483
|
+
const transportSchema = z.enum([
|
|
484
|
+
"stdio",
|
|
485
|
+
"sse",
|
|
486
|
+
"streamablehttp"
|
|
487
|
+
]);
|
|
488
|
+
z.object({
|
|
489
|
+
id: z.string(),
|
|
490
|
+
name: z.string(),
|
|
491
|
+
teamId: z.string(),
|
|
492
|
+
sourceRepository: z.string().nullable(),
|
|
493
|
+
createdAt: z.coerce.date().optional(),
|
|
494
|
+
runtime: runtimeSchema,
|
|
495
|
+
transport: transportSchema.nullable(),
|
|
496
|
+
rootDirectory: z.string().nullable(),
|
|
497
|
+
installCommand: z.string().nullable(),
|
|
498
|
+
buildCommand: z.string().nullable(),
|
|
499
|
+
buildOutputDir: z.string().nullable(),
|
|
500
|
+
startCommand: z.string().nullable(),
|
|
501
|
+
fixedOutboundIp: z.boolean(),
|
|
502
|
+
environments: z.array(environmentWithDomainsSchema),
|
|
503
|
+
productionEnvironment: environmentWithDomainsSchema.nullable()
|
|
504
|
+
});
|
|
505
|
+
z.object({
|
|
506
|
+
domain: z.string(),
|
|
507
|
+
createdAt: z.coerce.date(),
|
|
508
|
+
status: z.enum([
|
|
509
|
+
"ongoing",
|
|
510
|
+
"deployed",
|
|
511
|
+
"failed"
|
|
512
|
+
]),
|
|
513
|
+
environment: environmentSchema$1
|
|
514
|
+
});
|
|
515
|
+
const serverFieldsSchema$1 = z.object({
|
|
516
|
+
$schema: z.string(),
|
|
517
|
+
name: z.string(),
|
|
518
|
+
description: z.string(),
|
|
519
|
+
version: z.string().optional(),
|
|
520
|
+
title: z.string().optional(),
|
|
521
|
+
websiteUrl: z.string().optional(),
|
|
522
|
+
icons: z.array(z.object({
|
|
523
|
+
src: z.string(),
|
|
524
|
+
mimeType: z.string().optional(),
|
|
525
|
+
sizes: z.array(z.string()).optional()
|
|
526
|
+
})).optional(),
|
|
527
|
+
remotes: z.array(z.object({
|
|
528
|
+
type: z.string(),
|
|
529
|
+
url: z.string().optional(),
|
|
530
|
+
headers: z.array(z.object({
|
|
531
|
+
name: z.string(),
|
|
532
|
+
description: z.string(),
|
|
533
|
+
isRequired: z.boolean().optional(),
|
|
534
|
+
isSecret: z.boolean().optional()
|
|
535
|
+
})).optional()
|
|
536
|
+
})).optional()
|
|
537
|
+
}).catchall(z.unknown());
|
|
538
|
+
z.object({
|
|
539
|
+
serverFields: serverFieldsSchema$1,
|
|
540
|
+
source: z.enum(["registry", "defaults"])
|
|
541
|
+
});
|
|
542
|
+
/**
|
|
543
|
+
* Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
|
|
544
|
+
* rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
|
|
545
|
+
*
|
|
546
|
+
* NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
|
|
547
|
+
* `minLength`, and the description. Any other validators on the source field (`.regex()`,
|
|
548
|
+
* `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
|
|
549
|
+
* free-text length caps only. A field with `null` `maxLength` is returned unchanged.
|
|
550
|
+
*/
|
|
551
|
+
const clampStringField = (field) => {
|
|
552
|
+
const max = field.maxLength;
|
|
553
|
+
if (max === null) return field;
|
|
554
|
+
const clamped = z.string().overwrite((value) => value.slice(0, max)).max(max);
|
|
555
|
+
const withMin = field.minLength === null ? clamped : clamped.min(field.minLength);
|
|
556
|
+
return field.description ? withMin.describe(field.description) : withMin;
|
|
557
|
+
};
|
|
558
|
+
const toolDefinitionSchema = z.object({
|
|
559
|
+
name: z.string(),
|
|
560
|
+
title: z.string().optional().describe("Human-friendly name for the tool, used in the UI. If not provided, `name` will be used."),
|
|
561
|
+
description: z.string().optional(),
|
|
562
|
+
annotations: z.object({
|
|
563
|
+
readOnlyHint: z.boolean().optional(),
|
|
564
|
+
destructiveHint: z.boolean().optional(),
|
|
565
|
+
openWorldHint: z.boolean().optional(),
|
|
566
|
+
idempotentHint: z.boolean().optional()
|
|
124
567
|
}).optional()
|
|
125
568
|
});
|
|
569
|
+
const positiveTestCaseSchema = z.object({
|
|
570
|
+
scenario: z.string().describe("Short label for what this case demonstrates."),
|
|
571
|
+
userPrompt: z.string().describe("A realistic, standalone user message a reviewer can paste and run with no prior state or multi-turn setup. Vary phrasing and tone across cases."),
|
|
572
|
+
toolTriggered: z.string().optional().describe("The tool this prompt should invoke."),
|
|
573
|
+
expectedOutput: z.string().optional().describe("What the user should see, including post-interaction behaviour where relevant.")
|
|
574
|
+
}).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
|
|
575
|
+
const screenshotEntrySchema = z.object({
|
|
576
|
+
prompt: z.string(),
|
|
577
|
+
url: z.url().or(z.literal(""))
|
|
578
|
+
}).describe("Each screenshot: the user prompt that produced it + the image URL.");
|
|
579
|
+
/** Accepts either a valid email or URL. */
|
|
580
|
+
const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
|
|
581
|
+
const chatgptCategorySchema = z.enum([
|
|
582
|
+
"BUSINESS",
|
|
583
|
+
"COLLABORATION",
|
|
584
|
+
"DESIGN",
|
|
585
|
+
"DEVELOPER_TOOLS",
|
|
586
|
+
"EDUCATION",
|
|
587
|
+
"ENTERTAINMENT",
|
|
588
|
+
"FINANCE",
|
|
589
|
+
"FOOD",
|
|
590
|
+
"LIFESTYLE",
|
|
591
|
+
"NEWS",
|
|
592
|
+
"PRODUCTIVITY",
|
|
593
|
+
"SHOPPING",
|
|
594
|
+
"TRAVEL"
|
|
595
|
+
]);
|
|
596
|
+
const chatgptAuthenticationSchema = z.enum(["No auth needed", "OAuth 2.0"]);
|
|
597
|
+
const chatgptCountryCodeSchema = z.enum([
|
|
598
|
+
"AD",
|
|
599
|
+
"AE",
|
|
600
|
+
"AF",
|
|
601
|
+
"AG",
|
|
602
|
+
"AL",
|
|
603
|
+
"AM",
|
|
604
|
+
"AO",
|
|
605
|
+
"AR",
|
|
606
|
+
"AT",
|
|
607
|
+
"AU",
|
|
608
|
+
"AW",
|
|
609
|
+
"AX",
|
|
610
|
+
"AZ",
|
|
611
|
+
"BA",
|
|
612
|
+
"BB",
|
|
613
|
+
"BD",
|
|
614
|
+
"BE",
|
|
615
|
+
"BF",
|
|
616
|
+
"BG",
|
|
617
|
+
"BH",
|
|
618
|
+
"BI",
|
|
619
|
+
"BJ",
|
|
620
|
+
"BL",
|
|
621
|
+
"BM",
|
|
622
|
+
"BN",
|
|
623
|
+
"BO",
|
|
624
|
+
"BR",
|
|
625
|
+
"BS",
|
|
626
|
+
"BT",
|
|
627
|
+
"BW",
|
|
628
|
+
"BZ",
|
|
629
|
+
"CA",
|
|
630
|
+
"CD",
|
|
631
|
+
"CF",
|
|
632
|
+
"CG",
|
|
633
|
+
"CH",
|
|
634
|
+
"CI",
|
|
635
|
+
"CL",
|
|
636
|
+
"CM",
|
|
637
|
+
"CO",
|
|
638
|
+
"CR",
|
|
639
|
+
"CV",
|
|
640
|
+
"CY",
|
|
641
|
+
"CZ",
|
|
642
|
+
"DE",
|
|
643
|
+
"DJ",
|
|
644
|
+
"DK",
|
|
645
|
+
"DM",
|
|
646
|
+
"DO",
|
|
647
|
+
"DZ",
|
|
648
|
+
"EC",
|
|
649
|
+
"EE",
|
|
650
|
+
"EG",
|
|
651
|
+
"ER",
|
|
652
|
+
"ES",
|
|
653
|
+
"ET",
|
|
654
|
+
"FI",
|
|
655
|
+
"FJ",
|
|
656
|
+
"FM",
|
|
657
|
+
"FO",
|
|
658
|
+
"FR",
|
|
659
|
+
"GA",
|
|
660
|
+
"GB",
|
|
661
|
+
"GD",
|
|
662
|
+
"GE",
|
|
663
|
+
"GF",
|
|
664
|
+
"GH",
|
|
665
|
+
"GL",
|
|
666
|
+
"GM",
|
|
667
|
+
"GN",
|
|
668
|
+
"GP",
|
|
669
|
+
"GQ",
|
|
670
|
+
"GR",
|
|
671
|
+
"GT",
|
|
672
|
+
"GW",
|
|
673
|
+
"GY",
|
|
674
|
+
"HN",
|
|
675
|
+
"HR",
|
|
676
|
+
"HT",
|
|
677
|
+
"HU",
|
|
678
|
+
"ID",
|
|
679
|
+
"IE",
|
|
680
|
+
"IL",
|
|
681
|
+
"IN",
|
|
682
|
+
"IQ",
|
|
683
|
+
"IS",
|
|
684
|
+
"IT",
|
|
685
|
+
"JM",
|
|
686
|
+
"JO",
|
|
687
|
+
"JP",
|
|
688
|
+
"KE",
|
|
689
|
+
"KG",
|
|
690
|
+
"KH",
|
|
691
|
+
"KI",
|
|
692
|
+
"KM",
|
|
693
|
+
"KN",
|
|
694
|
+
"KR",
|
|
695
|
+
"KW",
|
|
696
|
+
"KY",
|
|
697
|
+
"KZ",
|
|
698
|
+
"LA",
|
|
699
|
+
"LB",
|
|
700
|
+
"LC",
|
|
701
|
+
"LI",
|
|
702
|
+
"LK",
|
|
703
|
+
"LR",
|
|
704
|
+
"LS",
|
|
705
|
+
"LT",
|
|
706
|
+
"LU",
|
|
707
|
+
"LV",
|
|
708
|
+
"LY",
|
|
709
|
+
"MA",
|
|
710
|
+
"MC",
|
|
711
|
+
"MD",
|
|
712
|
+
"ME",
|
|
713
|
+
"MF",
|
|
714
|
+
"MG",
|
|
715
|
+
"MH",
|
|
716
|
+
"MK",
|
|
717
|
+
"ML",
|
|
718
|
+
"MM",
|
|
719
|
+
"MN",
|
|
720
|
+
"MQ",
|
|
721
|
+
"MR",
|
|
722
|
+
"MT",
|
|
723
|
+
"MU",
|
|
724
|
+
"MV",
|
|
725
|
+
"MW",
|
|
726
|
+
"MX",
|
|
727
|
+
"MY",
|
|
728
|
+
"MZ",
|
|
729
|
+
"NA",
|
|
730
|
+
"NC",
|
|
731
|
+
"NE",
|
|
732
|
+
"NG",
|
|
733
|
+
"NI",
|
|
734
|
+
"NL",
|
|
735
|
+
"NO",
|
|
736
|
+
"NP",
|
|
737
|
+
"NR",
|
|
738
|
+
"NZ",
|
|
739
|
+
"OM",
|
|
740
|
+
"PA",
|
|
741
|
+
"PE",
|
|
742
|
+
"PF",
|
|
743
|
+
"PG",
|
|
744
|
+
"PH",
|
|
745
|
+
"PK",
|
|
746
|
+
"PL",
|
|
747
|
+
"PM",
|
|
748
|
+
"PS",
|
|
749
|
+
"PT",
|
|
750
|
+
"PW",
|
|
751
|
+
"PY",
|
|
752
|
+
"QA",
|
|
753
|
+
"RE",
|
|
754
|
+
"RO",
|
|
755
|
+
"RS",
|
|
756
|
+
"RW",
|
|
757
|
+
"SA",
|
|
758
|
+
"SB",
|
|
759
|
+
"SC",
|
|
760
|
+
"SD",
|
|
761
|
+
"SE",
|
|
762
|
+
"SG",
|
|
763
|
+
"SH",
|
|
764
|
+
"SI",
|
|
765
|
+
"SJ",
|
|
766
|
+
"SK",
|
|
767
|
+
"SL",
|
|
768
|
+
"SM",
|
|
769
|
+
"SN",
|
|
770
|
+
"SO",
|
|
771
|
+
"SR",
|
|
772
|
+
"SS",
|
|
773
|
+
"ST",
|
|
774
|
+
"SV",
|
|
775
|
+
"SZ",
|
|
776
|
+
"TD",
|
|
777
|
+
"TF",
|
|
778
|
+
"TG",
|
|
779
|
+
"TH",
|
|
780
|
+
"TJ",
|
|
781
|
+
"TL",
|
|
782
|
+
"TM",
|
|
783
|
+
"TN",
|
|
784
|
+
"TO",
|
|
785
|
+
"TR",
|
|
786
|
+
"TT",
|
|
787
|
+
"TV",
|
|
788
|
+
"TW",
|
|
789
|
+
"TZ",
|
|
790
|
+
"UA",
|
|
791
|
+
"UG",
|
|
792
|
+
"US",
|
|
793
|
+
"UY",
|
|
794
|
+
"UZ",
|
|
795
|
+
"VA",
|
|
796
|
+
"VC",
|
|
797
|
+
"VN",
|
|
798
|
+
"VU",
|
|
799
|
+
"WF",
|
|
800
|
+
"WS",
|
|
801
|
+
"YE",
|
|
802
|
+
"YT",
|
|
803
|
+
"ZA",
|
|
804
|
+
"ZM",
|
|
805
|
+
"ZW"
|
|
806
|
+
]);
|
|
807
|
+
const chatgptAllowedCountriesSchema = z.discriminatedUnion("mode", [
|
|
808
|
+
z.object({ mode: z.literal("all") }),
|
|
809
|
+
z.object({
|
|
810
|
+
mode: z.literal("allow"),
|
|
811
|
+
countries: z.array(chatgptCountryCodeSchema)
|
|
812
|
+
}),
|
|
813
|
+
z.object({
|
|
814
|
+
mode: z.literal("block"),
|
|
815
|
+
countries: z.array(chatgptCountryCodeSchema)
|
|
816
|
+
})
|
|
817
|
+
]);
|
|
818
|
+
const chatgptTranslationLocaleSchema = z.enum([
|
|
819
|
+
"am",
|
|
820
|
+
"ar",
|
|
821
|
+
"bg-BG",
|
|
822
|
+
"bn-BD",
|
|
823
|
+
"bs-BA",
|
|
824
|
+
"ca-ES",
|
|
825
|
+
"cs-CZ",
|
|
826
|
+
"da-DK",
|
|
827
|
+
"de-DE",
|
|
828
|
+
"el-GR",
|
|
829
|
+
"es-419",
|
|
830
|
+
"es-ES",
|
|
831
|
+
"et-EE",
|
|
832
|
+
"fi-FI",
|
|
833
|
+
"fr-CA",
|
|
834
|
+
"fr-FR",
|
|
835
|
+
"gu-IN",
|
|
836
|
+
"hi-IN",
|
|
837
|
+
"hr-HR",
|
|
838
|
+
"hu-HU",
|
|
839
|
+
"hy-AM",
|
|
840
|
+
"id-ID",
|
|
841
|
+
"is-IS",
|
|
842
|
+
"it-IT",
|
|
843
|
+
"ja-JP",
|
|
844
|
+
"ka-GE",
|
|
845
|
+
"kk",
|
|
846
|
+
"kn-IN",
|
|
847
|
+
"ko-KR",
|
|
848
|
+
"lt",
|
|
849
|
+
"lv-LV",
|
|
850
|
+
"mk-MK",
|
|
851
|
+
"ml",
|
|
852
|
+
"mn",
|
|
853
|
+
"mr-IN",
|
|
854
|
+
"ms-MY",
|
|
855
|
+
"my-MM",
|
|
856
|
+
"nb-NO",
|
|
857
|
+
"nl-NL",
|
|
858
|
+
"pa",
|
|
859
|
+
"pl-PL",
|
|
860
|
+
"pt-BR",
|
|
861
|
+
"pt-PT",
|
|
862
|
+
"ro-RO",
|
|
863
|
+
"ru-RU",
|
|
864
|
+
"sk-SK",
|
|
865
|
+
"sl-SI",
|
|
866
|
+
"so-SO",
|
|
867
|
+
"sq-AL",
|
|
868
|
+
"sr-RS",
|
|
869
|
+
"sv-SE",
|
|
870
|
+
"sw-TZ",
|
|
871
|
+
"ta-IN",
|
|
872
|
+
"te-IN",
|
|
873
|
+
"th-TH",
|
|
874
|
+
"tl",
|
|
875
|
+
"tr-TR",
|
|
876
|
+
"uk-UA",
|
|
877
|
+
"ur",
|
|
878
|
+
"vi-VN",
|
|
879
|
+
"zh-CN",
|
|
880
|
+
"zh-HK",
|
|
881
|
+
"zh-TW"
|
|
882
|
+
]);
|
|
883
|
+
const negativeTestCaseSchema = z.object({
|
|
884
|
+
scenario: z.string(),
|
|
885
|
+
userPrompt: z.string()
|
|
886
|
+
}).partial().describe("Each case: Scenario + User prompt (the app should NOT trigger).");
|
|
887
|
+
const chatgptToolJustificationSchema = z.object({
|
|
888
|
+
toolName: z.string(),
|
|
889
|
+
readOnlyJustification: z.string().describe("One sentence on what the tool reads and returns."),
|
|
890
|
+
openWorldJustification: z.string().describe("One sentence on whether the tool reaches external systems beyond your own service."),
|
|
891
|
+
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.\"")
|
|
892
|
+
}).describe("Per-tool justification of each MCP annotation value (one specific sentence per hint).");
|
|
893
|
+
/**
|
|
894
|
+
* Base copy fields, defined once and reused by both the submission form and per-locale
|
|
895
|
+
* translations so the constraints (tagline ≤ 30 chars) never drift. The translation generation
|
|
896
|
+
* path wraps these in {@link clampStringField} since the LLM tends to overshoot the limit.
|
|
897
|
+
*/
|
|
898
|
+
const chatgptTaglineSchema = z.string().max(30);
|
|
899
|
+
const chatgptDescriptionSchema = z.string();
|
|
900
|
+
const chatgptTranslationSchema = z.object({
|
|
901
|
+
locale: chatgptTranslationLocaleSchema,
|
|
902
|
+
tagline: chatgptTaglineSchema,
|
|
903
|
+
description: chatgptDescriptionSchema
|
|
904
|
+
}).describe("Locale-scoped override for tagline + description. English (US) is the default.");
|
|
905
|
+
chatgptTranslationSchema.extend({ tagline: clampStringField(chatgptTaglineSchema) });
|
|
906
|
+
/**
|
|
907
|
+
* Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section.
|
|
908
|
+
* When adding/removing/reordering fields, keep this in sync with the sheet.
|
|
909
|
+
*/
|
|
910
|
+
const chatgptSubmissionFormDataSchema = z.object({
|
|
911
|
+
logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
|
|
912
|
+
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."),
|
|
913
|
+
appName: z.string().describe("The name users will see in ChatGPT and in the Apps Directory."),
|
|
914
|
+
tagline: chatgptTaglineSchema.describe("Plain-language phrase focused on function and user value, 30 chars max. Avoid generic superlatives like \"the best …\"."),
|
|
915
|
+
description: chatgptDescriptionSchema.describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page. End it by naming the product categories or intents the app does NOT cover, so ChatGPT learns when not to route to it (define exclusions by absent categories or wrong intents, never by naming other brands)."),
|
|
916
|
+
category: chatgptCategorySchema.describe("Category from the OpenAI taxonomy."),
|
|
917
|
+
developerName: z.string().describe("Developer name shown publicly on the app's directory page."),
|
|
918
|
+
companyUrl: z.url().describe("Your company's main website URL."),
|
|
919
|
+
supportChannel: supportChannelSchema.describe("Customer support URL or email address."),
|
|
920
|
+
privacyPolicyUrl: z.url().describe("URL to your privacy policy."),
|
|
921
|
+
termsOfServiceUrl: z.url().describe("URL to the app's terms of service."),
|
|
922
|
+
demoRecordingUrl: z.url().describe("URL to a video demonstrating the app, recorded via OpenAI Developer Mode. Cover all main use cases on web, iOS, and Android."),
|
|
923
|
+
appCommerceAndPurchasing: z.boolean().describe("Checkbox: 'My app links or directs users out of ChatGPT to make purchases.' Defaults to false. Verify the app does not offer digital goods."),
|
|
924
|
+
serverUrl: z.url().describe("URL of the MCP server."),
|
|
925
|
+
authentication: chatgptAuthenticationSchema.describe("OAuth 2.0 or No auth. OAuth configuration is auto-discovered from the MCP server's metadata."),
|
|
926
|
+
tools: z.array(toolDefinitionSchema).describe("List of tools exposed by the MCP server (auto-populated from the production server's manifest)."),
|
|
927
|
+
toolJustifications: z.array(chatgptToolJustificationSchema).describe("Per-tool justification of `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotation values. One short, specific sentence per hint describing what the tool actually does."),
|
|
928
|
+
testCases: z.array(positiveTestCaseSchema).describe("At least 5 positive test cases. Each: Scenario, User prompt, Tool triggered, Expected output. Collectively cover the full capability across different flow stages (initial search or browse, market or locale handling, post-interaction detail, an action ChatGPT performs on the user's behalf, and a conversion or secondary tool) rather than five variations of the same first step."),
|
|
929
|
+
negativeTestCases: z.array(negativeTestCaseSchema).describe("3 negative test cases: prompts where the app should NOT trigger but the model might think it is relevant. These become production routing metadata that teaches ChatGPT when to stay silent, so pick tight near-misses: a product category the app does not carry, the right brand or domain but an intent the app does not serve, or a boundary with a sibling app."),
|
|
930
|
+
screenshots: z.array(screenshotEntrySchema).max(3).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 3 entries, all public. Images: 706px wide, 400–860px tall, PNG."),
|
|
931
|
+
translations: z.array(chatgptTranslationSchema).describe("Per-locale translation of tagline + description. English (US) is the default."),
|
|
932
|
+
allowedCountries: chatgptAllowedCountriesSchema.describe("Availability: all supported countries, or an allow-list / block-list of specific ones (ISO alpha-2)."),
|
|
933
|
+
releaseNotes: z.string().describe("Publicly displayed on the app details page.")
|
|
934
|
+
});
|
|
935
|
+
chatgptSubmissionFormDataSchema.pick({
|
|
936
|
+
appName: true,
|
|
937
|
+
developerName: true,
|
|
938
|
+
serverUrl: true,
|
|
939
|
+
tools: true,
|
|
940
|
+
authentication: true
|
|
941
|
+
});
|
|
942
|
+
chatgptSubmissionFormDataSchema.pick({
|
|
943
|
+
tagline: true,
|
|
944
|
+
description: true,
|
|
945
|
+
category: true,
|
|
946
|
+
testCases: true,
|
|
947
|
+
negativeTestCases: true,
|
|
948
|
+
toolJustifications: true
|
|
949
|
+
}).extend({ tagline: clampStringField(chatgptSubmissionFormDataSchema.shape.tagline) });
|
|
950
|
+
const claudeCategorySchema = z.enum([
|
|
951
|
+
"Business & Productivity",
|
|
952
|
+
"Communication",
|
|
953
|
+
"Data & Analytics",
|
|
954
|
+
"Development tools",
|
|
955
|
+
"Financial Services",
|
|
956
|
+
"Consumer Health",
|
|
957
|
+
"Health & Life Sciences",
|
|
958
|
+
"Media & Entertainment",
|
|
959
|
+
"Commerce & Shopping"
|
|
960
|
+
]);
|
|
961
|
+
const claudeAuthenticationSchema = z.enum([
|
|
962
|
+
"No auth needed",
|
|
963
|
+
"OAuth 2.0",
|
|
964
|
+
"Custom URL"
|
|
965
|
+
]);
|
|
966
|
+
const claudeMcpUrlTypeSchema = z.enum(["Universal URL", "Custom MCP URLs"]);
|
|
967
|
+
z.enum(["Static OAuth Client", "Dynamic OAuth Client (DCR / CIMD)"]);
|
|
968
|
+
const claudeReadWriteCapabilitiesSchema = z.enum([
|
|
969
|
+
"Read Only",
|
|
970
|
+
"Write Only",
|
|
971
|
+
"Read + Write"
|
|
972
|
+
]);
|
|
973
|
+
const claudeTransportSchema = z.enum(["Streamable HTTP", "SSE"]);
|
|
974
|
+
const claudeTestedSurfaceSchema = z.enum([
|
|
975
|
+
"Claude.ai (web)",
|
|
976
|
+
"Claude Desktop",
|
|
977
|
+
"Claude Code",
|
|
978
|
+
"Cowork"
|
|
979
|
+
]);
|
|
980
|
+
const claudeThirdPartySchema = z.enum([
|
|
981
|
+
"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)",
|
|
982
|
+
"Third-party AI model integration: Sends data to or receives data from a generative AI model other than Claude",
|
|
983
|
+
"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)",
|
|
984
|
+
"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)",
|
|
985
|
+
"N/A"
|
|
986
|
+
]);
|
|
987
|
+
const claudeDataHandlingSchema = z.enum([
|
|
988
|
+
"Server only accesses data explicitly requested by user",
|
|
989
|
+
"No data is stored beyond session requirements",
|
|
990
|
+
"Data transmission is encrypted (HTTPS/TLS)",
|
|
991
|
+
"GDPR compliant (if applicable)"
|
|
992
|
+
]);
|
|
993
|
+
const claudeSponsoredContentSchema = z.enum([
|
|
994
|
+
"No, there is no sponsored content or advertisements",
|
|
995
|
+
"Yes, there are banner ads or other paid visual elements",
|
|
996
|
+
"Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement"
|
|
997
|
+
]);
|
|
998
|
+
/**
|
|
999
|
+
* Field order mirrors the Claude (Anthropic) submission spreadsheet, grouped by section.
|
|
1000
|
+
* When adding/removing/reordering fields, keep this in sync with the sheet.
|
|
1001
|
+
*/
|
|
1002
|
+
const claudeSubmissionFormDataSchema = z.object({
|
|
1003
|
+
companyName: z.string().describe("Enter your company's legal name or the name under which your product is publicly known. This is used for internal tracking and may appear in directory listings."),
|
|
1004
|
+
companyUrl: z.url().describe("Your company's main website URL, e.g. https://mycompany.com. Must be a valid URL with https://. This should be the root domain of the company behind this MCP server."),
|
|
1005
|
+
primaryContactName: z.string().describe("Full name of the person Anthropic should contact about this submission. This person will receive review feedback, approval notices, and any follow-up questions."),
|
|
1006
|
+
primaryContactEmail: z.email().describe("Business email for the primary contact. Must be a valid email address. Anthropic uses this to communicate about your submission status, required changes, and post-listing issues. Avoid using personal email addresses."),
|
|
1007
|
+
primaryContactRole: z.string().optional().describe("The job title or role of the primary contact (e.g. 'CTO', 'Developer Relations Lead', 'Founder'). Optional but helps Anthropic route questions to the right person."),
|
|
1008
|
+
anthropicPointOfContact: z.string().optional().describe("If you have a direct contact at Anthropic (e.g. from a partnership or sales conversation), enter their name here. This is optional but can greatly help expedite the review process. Leave blank if you don't have one."),
|
|
1009
|
+
appName: z.string().describe(`The public display name for your connector as it will appear in the Connectors Directory.
|
|
1010
|
+
|
|
1011
|
+
Rules:
|
|
1012
|
+
(1) Do NOT include the words 'MCP' or 'Server' — these are auto-rejected.
|
|
1013
|
+
(2) Use your brand/product name, e.g. 'Notion', 'Linear', 'Slack'.
|
|
1014
|
+
(3) You must own or have the right to use this brand name. For example, don't call it 'Google Drive Helper' if you're not Google.`),
|
|
1015
|
+
mcpUrlType: claudeMcpUrlTypeSchema.describe(`Choose how your server URL works:
|
|
1016
|
+
• 'Universal URL': one single URL that all users connect to (most common). Example: https://mcp.myapp.com
|
|
1017
|
+
• 'Custom MCP URLs': each user gets their own unique URL (e.g. based on their workspace or instance).
|
|
1018
|
+
If you choose this, you'll need to provide both a signup URL and a regex pattern that matches valid server URLs for your service.`),
|
|
1019
|
+
serverUrl: z.url().describe(`If 'Universal URL': enter the full https:// URL where your MCP server is hosted and reachable. Example: https://mcp.myapp.com/
|
|
1020
|
+
If 'Custom MCP URLs': provide (1) the signup/onboarding URL where users create an account, and (2) a regex pattern that matches all valid server URLs for your service (e.g. https://[a-z0-9-]+\\.myapp\\.com/mcp). The server must be publicly accessible without VPN or whitelisting required.`),
|
|
1021
|
+
tagline: z.string().max(55).describe(`A very short, punchy description shown below your server name in the directory listing. Max 55 characters including spaces.
|
|
1022
|
+
Think of it as a subtitle or elevator pitch fragment. Example: 'Manage tasks and projects in Linear' or 'Search and read your Notion workspace'. Avoid generic phrases like 'The best MCP server for...'`),
|
|
1023
|
+
description: z.string().describe(`A 50–100 word description of what your MCP server does. This appears in the connector's detail page inside Claude. Write it from a user perspective: what can users do with this connector? What are the key features/tools? Avoid marketing fluff. Be specific. Example: 'Connect Claude to your Linear workspace. Create and update issues, search projects, manage teams, and track engineering cycles, all from within Claude.' Anthropic reviewers check this for accuracy against your actual tools.`),
|
|
1024
|
+
testCases: z.array(positiveTestCaseSchema).describe(`Provide at least 3 concrete use cases, each with an example prompt a user could type to Claude. These are critical: Anthropic reviewers literally test your server using these prompts. Good examples are specific and demonstrate real value.
|
|
1025
|
+
Best format: [Use case]: [exact prompt]"
|
|
1026
|
+
Example for a task manager:
|
|
1027
|
+
1. Create a task: 'Create a task called Review Q3 report, due Friday, assigned to Alice'
|
|
1028
|
+
2. Search tasks: 'Show me all open bugs in the Mobile project'
|
|
1029
|
+
3. Update status: 'Mark the Deploy v2.1 task as done'"`),
|
|
1030
|
+
connectionRequirements: z.string().describe(`Describe any prerequisites a user must have before they can connect your server. Be exhaustive. Examples of things to mention:
|
|
1031
|
+
• Account type required (free vs paid plan)
|
|
1032
|
+
• Admin permissions or specific roles needed
|
|
1033
|
+
• Geographic restrictions (e.g. 'US only' or 'Not available in EU')
|
|
1034
|
+
• If users need to provide their own server URL or instance domain
|
|
1035
|
+
• Any setup steps needed before connecting (e.g. 'Enable API access in your account settings')
|
|
1036
|
+
If there are genuinely no special requirements, write exactly: 'No special requirements.'`),
|
|
1037
|
+
readWriteCapabilities: claudeReadWriteCapabilitiesSchema.describe(`Select the option that best describes what your server can do:
|
|
1038
|
+
|
|
1039
|
+
'Read Only': your tools only fetch/retrieve data (GET operations). Claude cannot modify anything via your server.
|
|
1040
|
+
'Write Only': your tools only create/update/delete data (rare).
|
|
1041
|
+
'Read + Write': your tools can both retrieve AND modify data (most common for full-featured connectors).
|
|
1042
|
+
|
|
1043
|
+
Note: Anthropic rejects catch-all tools that accept both safe (GET) and unsafe (POST, PUT, DELETE) HTTP methods via a parameter e.g. a single api_request(method, endpoint) tool. Each tool should have a fixed, specific purpose. `),
|
|
1044
|
+
isMcpApp: z.boolean().describe(`Select 'Yes' if your MCP server renders interactive UI elements (aka widgets or views) inside the Claude conversation.
|
|
1045
|
+
Select 'No' if your server only returns text/data responses.
|
|
1046
|
+
If 'Yes', you will also be required to provide screenshots of your UI (see Promotional Images section). MCP Apps are displayed with a special badge in the directory.`),
|
|
1047
|
+
thirdPartyConnectionsAndWebAccess: z.array(claudeThirdPartySchema).describe(`Multi-select all that apply to your server's behavior:
|
|
1048
|
+
• 'Web access' — your server fetches arbitrary URLs, scrapes websites, or makes open-ended HTTP requests to the web (not just your own API).
|
|
1049
|
+
• 'Third-party AI model integration' — your server calls another AI model (e.g. OpenAI, Gemini, Cohere) as part of its processing.
|
|
1050
|
+
• 'Third-party data retrieval' — your server retrieves data via a workflow or aggregator platform (e.g. Zapier, Make, n8n) rather than calling your own API directly.
|
|
1051
|
+
• 'Third-party data modification' — your server modifies data via such a platform.
|
|
1052
|
+
• 'N/A' — your server only calls your own first-party API and does nothing else. Select this only if none of the above apply.`),
|
|
1053
|
+
dataHandling: z.array(claudeDataHandlingSchema).describe(`Multi-select all data handling practices that accurately apply to your server. You must select at least 3. Key points:
|
|
1054
|
+
• 'Server only accesses data explicitly requested by user' — your server doesn't silently read unrelated user data.
|
|
1055
|
+
• 'No data is stored beyond session requirements' — you don't log or retain conversation data after the session.
|
|
1056
|
+
• 'Data transmission is encrypted (HTTPS/TLS)' — all data in transit is encrypted. This should always apply for remote servers.
|
|
1057
|
+
• 'GDPR compliant' — if you operate in the EU or serve EU users, check this only if you are genuinely compliant. Don't check it without having proper data processing agreements and procedures in place.
|
|
1058
|
+
Note: These are attestations — you are legally agreeing to these practices by submitting the form.`),
|
|
1059
|
+
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.
|
|
1060
|
+
Select 'No' for the vast majority of business/productivity/dev tools. When in doubt, select 'No'. This field triggers additional compliance review if 'Yes'.`),
|
|
1061
|
+
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:
|
|
1062
|
+
• Business & Productivity — project management, CRM, HR, office tools
|
|
1063
|
+
• Communication — email, chat, messaging, notifications
|
|
1064
|
+
• Data & Analytics — dashboards, reporting, databases, BI tools
|
|
1065
|
+
• Development tools — code repositories, CI/CD, issue trackers, monitoring
|
|
1066
|
+
• Financial Services — accounting, invoicing, fintech (note: financial transaction execution is not permitted)
|
|
1067
|
+
• Consumer Health — fitness, wellness, personal health tracking
|
|
1068
|
+
• Health & Life Sciences — clinical, pharma, medical professional tools
|
|
1069
|
+
• Media & Entertainment — content, publishing, streaming
|
|
1070
|
+
• Commerce & Shopping — e-commerce, inventory, orders
|
|
1071
|
+
Anthropic's submission form only accepts a single category.`),
|
|
1072
|
+
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:
|
|
1073
|
+
• '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.
|
|
1074
|
+
• '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.
|
|
1075
|
+
• '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.
|
|
1076
|
+
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'.`),
|
|
1077
|
+
authentication: claudeAuthenticationSchema.describe("How users authenticate with the server. No auth / OAuth 2.0 / Custom URL (not supported)."),
|
|
1078
|
+
transportSupport: z.array(claudeTransportSchema).describe(`Select all transport protocols your server supports:
|
|
1079
|
+
• 'Streamable HTTP' — the modern, recommended transport. Anthropic strongly recommends implementing this. This is the future-proof option and should be your default.
|
|
1080
|
+
• '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.
|
|
1081
|
+
If you support both, select both. If you're building from scratch, implement Streamable HTTP only.`),
|
|
1082
|
+
serverDocumentationLink: z.url().describe(`A public URL pointing to documentation that helps users understand and use your connector. This is displayed in the Directory listing and must be publicly accessible without login. Minimum requirements for the docs page:
|
|
1083
|
+
• What the connector does and its key capabilities
|
|
1084
|
+
• How to connect/set it up (step by step)
|
|
1085
|
+
• What each tool does (or at least the main ones)
|
|
1086
|
+
• How to troubleshoot common issues
|
|
1087
|
+
• A support contact or channel
|
|
1088
|
+
Acceptable formats: a dedicated docs page, a help center article, a README on GitHub, or a blog post — as long as it's comprehensive. Note: Anthropic requires public documentation to be live by your publish date.`),
|
|
1089
|
+
privacyPolicyUrl: z.url().describe(`URL to your privacy policy. This is mandatory and displayed in the directory listing. Missing or incomplete privacy policies result in immediate rejection. Your privacy policy must cover:
|
|
1090
|
+
• What data you collect (and how)
|
|
1091
|
+
• How you use the collected data
|
|
1092
|
+
• Where and how long you store it
|
|
1093
|
+
• Whether you share data with third parties (and who)
|
|
1094
|
+
• How users can contact you about data concerns
|
|
1095
|
+
The policy must be publicly accessible. If you don't have one yet, create one before submitting — there are free generators online, but make sure it accurately reflects your actual practices. If you're GDPR-compliant, your policy should reflect that.`),
|
|
1096
|
+
supportChannel: supportChannelSchema.describe(`A URL or email address where users can get help with your connector. This is displayed in the Directory listing. Acceptable options:
|
|
1097
|
+
• Email address (e.g. support@myapp.com)
|
|
1098
|
+
• Link to a GitHub Issues page
|
|
1099
|
+
• Link to a help center or support article
|
|
1100
|
+
• Link to a Discord/Slack community
|
|
1101
|
+
• Link to your documentation's troubleshooting section
|
|
1102
|
+
Also uses this to notify you of security or compliance issues, so make sure it's actively monitored.`),
|
|
1103
|
+
testingCredentials: z.string().describe(`Provide login credentials for a test account that Anthropic reviewers can use to verify your server works end-to-end. Critical requirements:
|
|
1104
|
+
• The account must have sample/demo data loaded — reviewers need to actually test your tools with real data.
|
|
1105
|
+
• No 2FA — reviewers can't receive SMS codes. Disable 2FA on this account.
|
|
1106
|
+
• If your service uses Google OAuth or another OAuth that requires email verification, use mcp-review@anthropic.com as the account email — Anthropic has access to this inbox.
|
|
1107
|
+
• Credentials must remain valid for at least 30 days from submission.
|
|
1108
|
+
• If your service requires API keys instead of a password, provide those.
|
|
1109
|
+
Format suggestion: Username/email: xxx | Password: xxx | Any other notes`),
|
|
1110
|
+
tools: z.array(toolDefinitionSchema).describe(`A comma-separated list of all tools your MCP server exposes. Use the format: tool_name (Human-Readable Name). The tool_name is the internal identifier (snake_case, max 64 characters). The Human-Readable Name is what users see.
|
|
1111
|
+
Example: list_issues (List Issues), create_issue (Create Issue), update_issue (Update Issue), delete_issue (Delete Issue), search_issues (Search Issues)
|
|
1112
|
+
Reviewers test every single tool you list here — don't list tools that don't work. Also: do not have a single catch-all tool like api_request(method, endpoint) — Anthropic rejects these. Each action should be its own purpose-built tool.`),
|
|
1113
|
+
toolTitlesAnnotationsConfirmed: z.boolean().describe(`This is a compliance confirmation — check both boxes only if you have actually implemented these in your server code:
|
|
1114
|
+
• 'I've specified user-friendly titles for all tools' — every tool has a 'title' annotation (a human-readable label, different from the tool name).
|
|
1115
|
+
• '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).
|
|
1116
|
+
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.`),
|
|
1117
|
+
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.`),
|
|
1118
|
+
logoLight: z.string().describe(`Your connector's logo for light backgrounds. Requirements:
|
|
1119
|
+
• Format: SVG only
|
|
1120
|
+
• Aspect ratio: square (1:1)
|
|
1121
|
+
• Should work on a light background
|
|
1122
|
+
• Provide via URL (Google Drive link is fine) or upload directly
|
|
1123
|
+
Tip: use a simple, recognizable icon — not a full wordmark. The logo appears at small sizes in the directory grid.`),
|
|
1124
|
+
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.`),
|
|
1125
|
+
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:
|
|
1126
|
+
• 3–5 images is ideal
|
|
1127
|
+
• Minimum 1000px width, PNG format preferred
|
|
1128
|
+
• Each screenshot is paired with the user prompt that produced it
|
|
1129
|
+
• Crop to just the relevant part of the Claude interface (the tool response area)
|
|
1130
|
+
• Show your connector doing something impressive and useful — real data, real results
|
|
1131
|
+
• If you're an MCP App, include screenshots of your interactive UI elements
|
|
1132
|
+
These images appear in your directory listing and are a key factor in driving user installs.`)
|
|
1133
|
+
});
|
|
1134
|
+
claudeSubmissionFormDataSchema.pick({
|
|
1135
|
+
companyName: true,
|
|
1136
|
+
appName: true,
|
|
1137
|
+
mcpUrlType: true,
|
|
1138
|
+
serverUrl: true,
|
|
1139
|
+
tools: true,
|
|
1140
|
+
readWriteCapabilities: true,
|
|
1141
|
+
isMcpApp: true,
|
|
1142
|
+
transportSupport: true,
|
|
1143
|
+
primaryContactEmail: true,
|
|
1144
|
+
primaryContactName: true,
|
|
1145
|
+
authentication: true,
|
|
1146
|
+
personalDataHealthAccess: true,
|
|
1147
|
+
testedSurfaces: true
|
|
1148
|
+
}).extend({
|
|
1149
|
+
connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
|
|
1150
|
+
testingCredentials: claudeSubmissionFormDataSchema.shape.testingCredentials.optional()
|
|
1151
|
+
});
|
|
1152
|
+
claudeSubmissionFormDataSchema.pick({
|
|
1153
|
+
tagline: true,
|
|
1154
|
+
description: true,
|
|
1155
|
+
category: true,
|
|
1156
|
+
testCases: true
|
|
1157
|
+
}).extend({ tagline: clampStringField(claudeSubmissionFormDataSchema.shape.tagline) });
|
|
1158
|
+
const submissionMetaFieldsSchema = z.object({
|
|
1159
|
+
id: z.string(),
|
|
1160
|
+
environmentId: z.string(),
|
|
1161
|
+
auditId: z.string().nullable(),
|
|
1162
|
+
createdAt: z.coerce.date(),
|
|
1163
|
+
updatedAt: z.coerce.date()
|
|
1164
|
+
});
|
|
1165
|
+
const claudeSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
|
|
1166
|
+
platform: z.literal("claudeai"),
|
|
1167
|
+
formData: claudeSubmissionFormDataSchema.partial()
|
|
1168
|
+
});
|
|
1169
|
+
const chatgptSubmissionSchemaInternal = submissionMetaFieldsSchema.extend({
|
|
1170
|
+
platform: z.literal("chatgpt"),
|
|
1171
|
+
formData: chatgptSubmissionFormDataSchema.partial()
|
|
1172
|
+
});
|
|
1173
|
+
z.discriminatedUnion("platform", [claudeSubmissionSchemaInternal, chatgptSubmissionSchemaInternal]);
|
|
1174
|
+
z.union([claudeSubmissionFormDataSchema.partial(), chatgptSubmissionFormDataSchema.partial()]);
|
|
1175
|
+
const subscriptionPlanSchema = z.enum([
|
|
1176
|
+
"pro",
|
|
1177
|
+
"business",
|
|
1178
|
+
"enterprise"
|
|
1179
|
+
]);
|
|
1180
|
+
z.object({ plan: subscriptionPlanSchema.nullable() });
|
|
1181
|
+
const customerCreditsSchema = z.object({
|
|
1182
|
+
balanceInCents: z.number(),
|
|
1183
|
+
expiresAt: z.number().nullable(),
|
|
1184
|
+
currency: z.string()
|
|
1185
|
+
});
|
|
1186
|
+
const customerUsageSchema = z.object({
|
|
1187
|
+
amountInCents: z.number(),
|
|
1188
|
+
currency: z.string(),
|
|
1189
|
+
periodEnd: z.number()
|
|
1190
|
+
});
|
|
1191
|
+
const partnerDiscountSchema = z.object({ endsAt: z.number() });
|
|
1192
|
+
z.object({
|
|
1193
|
+
customerCredits: customerCreditsSchema.nullable(),
|
|
1194
|
+
customerUsage: customerUsageSchema.nullable(),
|
|
1195
|
+
partnerDiscount: partnerDiscountSchema.nullable()
|
|
1196
|
+
});
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region src/schemas.ts
|
|
1199
|
+
const RESERVED_KEYS = [
|
|
1200
|
+
"_HANDLER",
|
|
1201
|
+
"_X_AMZN_TRACE_ID",
|
|
1202
|
+
"AWS_DEFAULT_REGION",
|
|
1203
|
+
"AWS_REGION",
|
|
1204
|
+
"AWS_EXECUTION_ENV",
|
|
1205
|
+
"AWS_LAMBDA_FUNCTION_NAME",
|
|
1206
|
+
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE",
|
|
1207
|
+
"AWS_LAMBDA_FUNCTION_VERSION",
|
|
1208
|
+
"AWS_LAMBDA_INITIALIZATION_TYPE",
|
|
1209
|
+
"AWS_LAMBDA_LOG_GROUP_NAME",
|
|
1210
|
+
"AWS_LAMBDA_LOG_STREAM_NAME",
|
|
1211
|
+
"AWS_ACCESS_KEY",
|
|
1212
|
+
"AWS_ACCESS_KEY_ID",
|
|
1213
|
+
"AWS_SECRET_ACCESS_KEY",
|
|
1214
|
+
"AWS_SESSION_TOKEN",
|
|
1215
|
+
"AWS_LAMBDA_RUNTIME_API",
|
|
1216
|
+
"LAMBDA_TASK_ROOT",
|
|
1217
|
+
"LAMBDA_RUNTIME_DIR",
|
|
1218
|
+
"START_COMMAND",
|
|
1219
|
+
"ENVIRONMENT_ID",
|
|
1220
|
+
"PROJECT_BUILD_IMAGES_REPOSITORY_URI",
|
|
1221
|
+
"ENVIRONMENT_LAMBDA_FUNCTION_ARN",
|
|
1222
|
+
"SOURCE_REPOSITORY",
|
|
1223
|
+
"SOURCE_BRANCH",
|
|
1224
|
+
"SOURCE_REPOSITORY_CREDENTIALS",
|
|
1225
|
+
"RUNTIME",
|
|
1226
|
+
"ROOT_DIRECTORY",
|
|
1227
|
+
"BUILD_ARG_INSTALL_COMMAND",
|
|
1228
|
+
"BUILD_ARG_BUILD_COMMAND",
|
|
1229
|
+
"BUILD_ARG_BUILD_OUTPUT_DIR",
|
|
1230
|
+
"BUILD_ARG_START_COMMAND",
|
|
1231
|
+
"ALPIC_HOST",
|
|
1232
|
+
"ALPIC_CUSTOM_DOMAINS",
|
|
1233
|
+
"ALPIC_INTENT_META_KEY"
|
|
1234
|
+
];
|
|
1235
|
+
const environmentVariableSchema = z.object({
|
|
1236
|
+
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"),
|
|
1237
|
+
value: z.string().min(1, "Value is required"),
|
|
1238
|
+
isSecret: z.boolean().default(false)
|
|
1239
|
+
});
|
|
1240
|
+
const environmentVariablesSchema = z.array(environmentVariableSchema);
|
|
1241
|
+
const updateEnvironmentVariableSchema = environmentVariableSchema.partial({
|
|
1242
|
+
value: true,
|
|
1243
|
+
isSecret: true
|
|
1244
|
+
});
|
|
1245
|
+
const buildSettingsSchema = z.object({
|
|
1246
|
+
installCommand: z.string().optional(),
|
|
1247
|
+
buildCommand: z.string().optional(),
|
|
1248
|
+
buildOutputDir: z.string().optional(),
|
|
1249
|
+
startCommand: z.string().optional()
|
|
1250
|
+
});
|
|
1251
|
+
const playgroundHeaderSchema = z.object({
|
|
1252
|
+
name: z.string().min(1).max(100),
|
|
1253
|
+
description: z.string().max(200),
|
|
1254
|
+
isRequired: z.boolean().default(false),
|
|
1255
|
+
isSecret: z.boolean().default(false)
|
|
1256
|
+
});
|
|
1257
|
+
const playgroundExamplePromptSchema = z.object({
|
|
1258
|
+
title: z.string().min(1).max(100),
|
|
1259
|
+
prompt: z.string().min(1).max(500)
|
|
1260
|
+
});
|
|
126
1261
|
const serverFieldsSchema = z.object({
|
|
127
1262
|
$schema: z.string(),
|
|
128
1263
|
name: z.string(),
|
|
@@ -199,7 +1334,7 @@ const createEnvironmentContractV1 = oc.route({
|
|
|
199
1334
|
id: z.string(),
|
|
200
1335
|
name: z.string(),
|
|
201
1336
|
sourceBranch: z.string().nullable().describe("The branch used to build the environment"),
|
|
202
|
-
urls: z.array(z.
|
|
1337
|
+
urls: z.array(z.url()).describe("The URLs of the MCP server"),
|
|
203
1338
|
createdAt: z.coerce.date(),
|
|
204
1339
|
projectId: z.string().describe("The ID of the project the environment belongs to")
|
|
205
1340
|
}));
|
|
@@ -215,7 +1350,7 @@ const getEnvironmentContractV1 = oc.route({
|
|
|
215
1350
|
name: z.string(),
|
|
216
1351
|
sourceBranch: z.string().nullable(),
|
|
217
1352
|
mcpServerUrl: z.string(),
|
|
218
|
-
domains: z.array(z.
|
|
1353
|
+
domains: z.array(z.hostname()),
|
|
219
1354
|
createdAt: z.coerce.date(),
|
|
220
1355
|
projectId: z.string()
|
|
221
1356
|
}));
|
|
@@ -275,6 +1410,9 @@ const listProjectsContractV1 = oc.route({
|
|
|
275
1410
|
description: "List all projects for a team",
|
|
276
1411
|
tags: ["projects"],
|
|
277
1412
|
successDescription: "The list of projects"
|
|
1413
|
+
}).errors({
|
|
1414
|
+
NOT_FOUND: {},
|
|
1415
|
+
BAD_REQUEST: {}
|
|
278
1416
|
}).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
|
|
279
1417
|
const createProjectContractV1 = oc.route({
|
|
280
1418
|
path: "/v1/projects",
|
|
@@ -361,7 +1499,7 @@ const updateEnvironmentVariableContractV1 = oc.route({
|
|
|
361
1499
|
environmentVariableId: z.string().describe("The ID of the environment variable"),
|
|
362
1500
|
key: environmentVariableSchema.shape.key,
|
|
363
1501
|
value: environmentVariableSchema.shape.value.optional(),
|
|
364
|
-
isSecret: environmentVariableSchema.shape.isSecret
|
|
1502
|
+
isSecret: environmentVariableSchema.shape.isSecret.optional()
|
|
365
1503
|
})).output(z.object({ success: z.literal(true) }));
|
|
366
1504
|
const deleteEnvironmentVariableContractV1 = oc.route({
|
|
367
1505
|
path: "/v1/environment-variables/{environmentVariableId}",
|
|
@@ -370,9 +1508,12 @@ const deleteEnvironmentVariableContractV1 = oc.route({
|
|
|
370
1508
|
description: "Delete an environment variable by ID",
|
|
371
1509
|
tags: ["environments"],
|
|
372
1510
|
successDescription: "The environment variable has been deleted successfully"
|
|
373
|
-
}).errors({
|
|
1511
|
+
}).errors({
|
|
1512
|
+
NOT_FOUND: {},
|
|
1513
|
+
BAD_REQUEST: {}
|
|
1514
|
+
}).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
|
|
374
1515
|
const deleteProjectContractV1 = oc.route({
|
|
375
|
-
path: "/v1/projects
|
|
1516
|
+
path: "/v1/projects/{projectId}",
|
|
376
1517
|
method: "DELETE",
|
|
377
1518
|
summary: "Delete a project",
|
|
378
1519
|
description: "Delete a project and all its environments",
|
|
@@ -415,6 +1556,9 @@ const uploadDeploymentArtifactContractV1 = oc.route({
|
|
|
415
1556
|
description: "Return a presigned S3 URL to upload a deployment artifact",
|
|
416
1557
|
tags: ["deployments"],
|
|
417
1558
|
successDescription: "The presigned upload URL has been generated successfully"
|
|
1559
|
+
}).errors({
|
|
1560
|
+
NOT_FOUND: {},
|
|
1561
|
+
BAD_REQUEST: {}
|
|
418
1562
|
}).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
|
|
419
1563
|
uploadUrl: z.url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
|
|
420
1564
|
token: z.string().describe("Token to identify the source archive"),
|
|
@@ -481,6 +1625,41 @@ const getLogsContractV1 = oc.route({
|
|
|
481
1625
|
})),
|
|
482
1626
|
nextToken: z.string().nullable()
|
|
483
1627
|
}));
|
|
1628
|
+
const getLatestLogsContractV1 = oc.route({
|
|
1629
|
+
path: "/v1/environments/{environmentId}/latest-logs",
|
|
1630
|
+
method: "GET",
|
|
1631
|
+
summary: "Get latest logs",
|
|
1632
|
+
description: "Get the N most recent logs for an environment",
|
|
1633
|
+
tags: ["environments"],
|
|
1634
|
+
successDescription: "The latest logs"
|
|
1635
|
+
}).errors({
|
|
1636
|
+
NOT_FOUND: {},
|
|
1637
|
+
BAD_REQUEST: {}
|
|
1638
|
+
}).input(z.object({
|
|
1639
|
+
environmentId: z.string().describe("The ID of the environment"),
|
|
1640
|
+
limit: z.coerce.number().int().min(1).max(1e3).default(100).describe("Number of most recent log entries to return"),
|
|
1641
|
+
level: z.array(z.enum([
|
|
1642
|
+
"INFO",
|
|
1643
|
+
"ERROR",
|
|
1644
|
+
"WARNING",
|
|
1645
|
+
"DEBUG"
|
|
1646
|
+
])).optional().describe("Filter by log level"),
|
|
1647
|
+
search: z.string().optional().describe("Filter pattern to search for in log content")
|
|
1648
|
+
})).output(z.object({ logs: z.array(z.object({
|
|
1649
|
+
timestamp: z.coerce.date(),
|
|
1650
|
+
type: z.enum([
|
|
1651
|
+
"START",
|
|
1652
|
+
"END",
|
|
1653
|
+
"INFO",
|
|
1654
|
+
"ERROR",
|
|
1655
|
+
"WARNING",
|
|
1656
|
+
"DEBUG"
|
|
1657
|
+
]),
|
|
1658
|
+
requestId: z.string(),
|
|
1659
|
+
content: z.string().optional(),
|
|
1660
|
+
method: z.string().optional(),
|
|
1661
|
+
durationInMs: z.number().optional()
|
|
1662
|
+
})) }));
|
|
484
1663
|
const getDeploymentLogsContractV1 = oc.route({
|
|
485
1664
|
path: "/v1/deployments/{deploymentId}/logs",
|
|
486
1665
|
method: "GET",
|
|
@@ -553,7 +1732,7 @@ const getTunnelTicketContractV1 = oc.route({
|
|
|
553
1732
|
description: "Get a signed ticket for establishing a tunnel connection. Requires user authentication (API keys are not supported).",
|
|
554
1733
|
tags: ["tunnels"],
|
|
555
1734
|
successDescription: "The tunnel ticket"
|
|
556
|
-
}).output(z.object({
|
|
1735
|
+
}).errors({ FORBIDDEN: {} }).output(z.object({
|
|
557
1736
|
subdomain: z.string().describe("The subdomain assigned to the user"),
|
|
558
1737
|
ticket: z.string().describe("The signed tunnel ticket"),
|
|
559
1738
|
tunnelHost: z.string().describe("The tunnel host to connect to")
|
|
@@ -590,35 +1769,78 @@ const getServerInfoContractV1 = oc.route({
|
|
|
590
1769
|
projectId: z.string(),
|
|
591
1770
|
domain: z.string()
|
|
592
1771
|
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
1772
|
+
const playgroundServerMetadataOutputSchema = z.object({
|
|
1773
|
+
name: z.string(),
|
|
1774
|
+
description: z.string(),
|
|
1775
|
+
headers: z.array(z.object({
|
|
1776
|
+
name: z.string(),
|
|
1777
|
+
description: z.string(),
|
|
1778
|
+
isRequired: z.boolean(),
|
|
1779
|
+
isSecret: z.boolean()
|
|
1780
|
+
})),
|
|
1781
|
+
examplePrompts: z.array(playgroundExamplePromptSchema)
|
|
1782
|
+
});
|
|
1783
|
+
const playgroundOutputSchema = z.object({
|
|
1784
|
+
isPlaygroundEnabled: z.boolean(),
|
|
1785
|
+
serverMetadata: playgroundServerMetadataOutputSchema.nullable()
|
|
1786
|
+
});
|
|
1787
|
+
const getPlaygroundContractV1 = oc.route({
|
|
1788
|
+
path: "/v1/environments/{environmentId}/playground",
|
|
1789
|
+
method: "GET",
|
|
1790
|
+
summary: "Get playground configuration",
|
|
1791
|
+
description: "Get the playground configuration for an environment",
|
|
1792
|
+
tags: ["environments"],
|
|
1793
|
+
successDescription: "The playground configuration"
|
|
1794
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ environmentId: z.string().describe("The ID of the environment") })).output(playgroundOutputSchema);
|
|
1795
|
+
const upsertPlaygroundContractV1 = oc.route({
|
|
1796
|
+
path: "/v1/environments/{environmentId}/playground",
|
|
1797
|
+
method: "PUT",
|
|
1798
|
+
summary: "Update playground configuration",
|
|
1799
|
+
description: "Update the playground configuration for an environment. All fields are optional — only provided fields are updated.",
|
|
1800
|
+
tags: ["environments"],
|
|
1801
|
+
successDescription: "The updated playground configuration"
|
|
1802
|
+
}).errors({
|
|
1803
|
+
NOT_FOUND: {},
|
|
1804
|
+
BAD_REQUEST: {}
|
|
1805
|
+
}).input(z.object({
|
|
1806
|
+
environmentId: z.string().describe("The ID of the environment"),
|
|
1807
|
+
isPlaygroundEnabled: z.boolean().optional(),
|
|
1808
|
+
name: z.string().min(1).max(100).optional(),
|
|
1809
|
+
description: z.string().min(1).max(500).optional(),
|
|
1810
|
+
headers: z.array(playgroundHeaderSchema).optional(),
|
|
1811
|
+
examplePrompts: z.array(playgroundExamplePromptSchema).max(5).optional()
|
|
1812
|
+
})).output(playgroundOutputSchema);
|
|
593
1813
|
const createBeaconContractV1 = oc.route({
|
|
594
|
-
path: "/v1/beacon/
|
|
1814
|
+
path: "/v1/beacon/audits",
|
|
595
1815
|
method: "POST",
|
|
596
|
-
summary: "Create a beacon
|
|
597
|
-
description: "
|
|
1816
|
+
summary: "Create a beacon audit",
|
|
1817
|
+
description: "Audit an MCP server for spec compliance and AI client compatibility",
|
|
598
1818
|
tags: ["beacon"],
|
|
599
|
-
successDescription: "The
|
|
1819
|
+
successDescription: "The audit has been created"
|
|
600
1820
|
}).errors({
|
|
601
1821
|
NOT_FOUND: {},
|
|
602
|
-
BAD_REQUEST: {}
|
|
1822
|
+
BAD_REQUEST: {},
|
|
1823
|
+
DNS_RESOLUTION_FAILED: { status: 400 }
|
|
603
1824
|
}).input(z.object({
|
|
604
|
-
targetUrl: z.
|
|
605
|
-
teamId: z.string().optional().describe("The team ID to associate the
|
|
606
|
-
projectId: z.string().optional().describe("The project ID to associate the
|
|
1825
|
+
targetUrl: z.url().describe("The HTTPS URL of the MCP server to audit"),
|
|
1826
|
+
teamId: z.string().optional().describe("The team ID to associate the audit with"),
|
|
1827
|
+
projectId: z.string().optional().describe("The project ID to associate the audit with"),
|
|
1828
|
+
excludeCategories: z.array(checkCategorySchema).optional().describe("Check categories to exclude from the audit")
|
|
607
1829
|
})).output(z.object({ id: z.string() }));
|
|
608
1830
|
const getBeaconContractV1 = oc.route({
|
|
609
|
-
path: "/v1/beacon/
|
|
1831
|
+
path: "/v1/beacon/audits/{auditId}",
|
|
610
1832
|
method: "GET",
|
|
611
|
-
summary: "Get a beacon
|
|
612
|
-
description: "Get a beacon
|
|
1833
|
+
summary: "Get a beacon audit",
|
|
1834
|
+
description: "Get a beacon audit by ID, including the report if completed",
|
|
613
1835
|
tags: ["beacon"],
|
|
614
|
-
successDescription: "The
|
|
615
|
-
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
1836
|
+
successDescription: "The audit details"
|
|
1837
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ auditId: z.string().describe("The ID of the audit") })).output(z.object({
|
|
616
1838
|
id: z.string(),
|
|
617
1839
|
targetUrl: z.string(),
|
|
618
|
-
status:
|
|
1840
|
+
status: auditStatusSchema,
|
|
619
1841
|
durationMs: z.number().nullable(),
|
|
620
1842
|
createdAt: z.coerce.date(),
|
|
621
|
-
report:
|
|
1843
|
+
report: auditReportWithScreenshotsSchema.nullable()
|
|
622
1844
|
}));
|
|
623
1845
|
const contract = {
|
|
624
1846
|
teams: { list: { v1: listTeamsContractV1 } },
|
|
@@ -633,7 +1855,8 @@ const contract = {
|
|
|
633
1855
|
create: { v1: createEnvironmentContractV1 },
|
|
634
1856
|
get: { v1: getEnvironmentContractV1 },
|
|
635
1857
|
deploy: { v1: deployEnvironmentContractV1 },
|
|
636
|
-
getLogs: { v1: getLogsContractV1 }
|
|
1858
|
+
getLogs: { v1: getLogsContractV1 },
|
|
1859
|
+
getLatestLogs: { v1: getLatestLogsContractV1 }
|
|
637
1860
|
},
|
|
638
1861
|
environmentVariables: {
|
|
639
1862
|
list: { v1: listEnvironmentVariablesContractV1 },
|
|
@@ -648,6 +1871,10 @@ const contract = {
|
|
|
648
1871
|
create: { v1: createProjectContractV1 },
|
|
649
1872
|
delete: { v1: deleteProjectContractV1 }
|
|
650
1873
|
},
|
|
1874
|
+
playground: {
|
|
1875
|
+
get: { v1: getPlaygroundContractV1 },
|
|
1876
|
+
upsert: { v1: upsertPlaygroundContractV1 }
|
|
1877
|
+
},
|
|
651
1878
|
tunnels: { getTicket: { v1: getTunnelTicketContractV1 } },
|
|
652
1879
|
distribution: {
|
|
653
1880
|
publish: { v1: publishServerContractV1 },
|
|
@@ -659,4 +1886,4 @@ const contract = {
|
|
|
659
1886
|
}
|
|
660
1887
|
};
|
|
661
1888
|
//#endregion
|
|
662
|
-
export {
|
|
1889
|
+
export { PLATFORM_LABELS, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
|